Agent相关

Component as Tool

src/backend/base/langflow/base/tools/component_tool.py

get_tools方法

作为工具的组件的输出运行过程

  1. _handle_tool_mode 追加一个component_as_tool的Output输出

    这个Output对应to_toolkit方法

  2. _get_outputs_to_process和_should_process_output

    作为工具情况, 那条边上的名字就是component_as_tool

  3. to_tookit默认实现就是用上述 component_tool 包装为StructuredTool