langflow icon indicating copy to clipboard operation
langflow copied to clipboard

fix: tools metadata fields, added info and updated the metadata Table Display Names

Open edwinjosechittilappilly opened this issue 2 months ago • 2 comments

This pull request includes changes to enhance the metadata display for tools in the Langflow backend. The most important changes involve updating the tool schema and incorporating additional metadata information.

Changes to tool metadata:

  • src/backend/base/langflow/base/tools/constants.py: Updated the TOOL_TABLE_SCHEMA to include more descriptive display names and descriptions for tool fields. Added a new constant TOOLS_METADATA_INFO to provide additional information about tool metadata.

Integration of new metadata information:

  • src/backend/base/langflow/custom/custom_component/component.py: Imported the new TOOLS_METADATA_INFO constant.
  • src/backend/base/langflow/custom/custom_component/component.py: Updated the _build_tools_metadata_input method to include the new info parameter, which uses TOOLS_METADATA_INFO.
Screenshot 2024-12-05 at 4 17 44 PM Screenshot 2024-12-05 at 4 17 37 PM

edwinjosechittilappilly avatar Dec 05 '24 21:12 edwinjosechittilappilly