langflow icon indicating copy to clipboard operation
langflow copied to clipboard

fix: agent tool metadata not updating

Open edwinjosechittilappilly opened this issue 2 months ago • 2 comments

This pull request includes several changes to the src/backend/base/langflow directory, focusing on deprecating the agent description feature and updating tool handling. The most important changes include marking the agent description as deprecated, updating tool metadata handling, and importing necessary modules.

Deprecation and updates to agent description:

  • src/backend/base/langflow/base/agents/agent.py: Marked the agent_description field as deprecated and added a note that it will be removed in future versions.
  • src/backend/base/langflow/base/agents/agent.py: Updated the to_toolkit method to reflect the deprecation of the agent description feature and added handling for tools_metadata.

Tool handling improvements:

  • src/backend/base/langflow/components/agents/agent.py: Added a blank line for better readability in the message_response method.
  • src/backend/base/langflow/custom/custom_component/component.py: Updated imports to include BaseTool and removed unnecessary # noqa: TC001 comment. [1] [2]
  • src/backend/base/langflow/custom/custom_component/component.py: Modified _process_connection_or_parameters method to include Tool and BaseTool in the type checking for list values.

edwinjosechittilappilly avatar Dec 13 '24 06:12 edwinjosechittilappilly