langflow
langflow copied to clipboard
fix: agent tool metadata not updating
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 theagent_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 theto_toolkit
method to reflect the deprecation of the agent description feature and added handling fortools_metadata
.
Tool handling improvements:
-
src/backend/base/langflow/components/agents/agent.py
: Added a blank line for better readability in themessage_response
method. -
src/backend/base/langflow/custom/custom_component/component.py
: Updated imports to includeBaseTool
and removed unnecessary# noqa: TC001
comment. [1] [2] -
src/backend/base/langflow/custom/custom_component/component.py
: Modified_process_connection_or_parameters
method to includeTool
andBaseTool
in the type checking for list values.