mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 00:32:49 +08:00
Tool-mode components built by component_tool returned a synthetic "Tool ... executed with inputs" payload instead of running the wrapped component; only a hard-coded calculator actually executed, so agent flows appeared to succeed while their tools never ran real component logic. Resolve the tool's component blob in ToolWrapperInputHandler.prepare (where the Stepflow context is available), reshape the raw component definition into the executor's enhanced blob shape, pre-compile it via CustomCodeExecutor, and wire an async tool_func that runs the real component through _execute_compiled_component on each invocation. The calculator stays as a self-contained fast-path.