Skip to content

Commit

Permalink
fix: name/description bug in "Flow as Tool" (langflow-ai#4097)
Browse files Browse the repository at this point in the history
Fix name/description bug in "Flow as Tool".
  • Loading branch information
dhlidongming authored and diogocabral committed Nov 26, 2024
1 parent a56cfab commit 2fd3ea0
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 2fd3ea0

Please sign in to comment.