Skip to content

Commit

Permalink
Fix name/description bug in "Flow as Tool".
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlidongming authored and ogabrielluiz committed Oct 14, 2024
1 parent 2b3e826 commit a4b4e9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/base/langflow/components/prototypes/FlowTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a4b4e9f

Please sign in to comment.