From 2fd3ea087052abcb6ca6fd0eb95debcc69ac76a3 Mon Sep 17 00:00:00 2001 From: dhlidongming Date: Mon, 14 Oct 2024 20:52:26 +0800 Subject: [PATCH] fix: name/description bug in "Flow as Tool" (#4097) Fix name/description bug in "Flow as Tool". --- .../base/langflow/components/prototypes/FlowTool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/base/langflow/components/prototypes/FlowTool.py b/src/backend/base/langflow/components/prototypes/FlowTool.py index 23f512cca2a9..7a4c0ee3b738 100644 --- a/src/backend/base/langflow/components/prototypes/FlowTool.py +++ b/src/backend/base/langflow/components/prototypes/FlowTool.py @@ -51,12 +51,12 @@ def update_build_config(self, build_config: dotdict, field_value: Any, field_nam name="flow_name", display_name="Flow Name", info="The name of the flow to run.", refresh_button=True ), StrInput( - name="name", + name="tool_name", display_name="Name", info="The name of the tool.", ), StrInput( - name="description", + name="tool_description", display_name="Description", info="The description of the tool.", ), @@ -89,8 +89,8 @@ def build_tool(self) -> Tool: logger.opt(exception=True).warning("Failed to set run_id") inputs = get_flow_inputs(graph) tool = FlowTool( - name=self.name, - description=self.description, + name=self.tool_name, + description=self.tool_description, graph=graph, return_direct=self.return_direct, inputs=inputs,