fix: run flow multiple execution in tool mode (#7873)

* disable dataframe and data output in tool mode

* Update src/backend/base/langflow/base/tools/run_flow.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Edwin Jose 2025-05-02 13:10:58 -04:00 committed by GitHub
commit eba76ecc57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,9 +47,19 @@ class RunFlowBaseComponent(Component):
),
]
_base_outputs: list[Output] = [
Output(name="flow_outputs_data", display_name="Flow Data Output", method="data_output", hidden=True),
Output(
name="flow_outputs_dataframe", display_name="Flow Dataframe Output", method="dataframe_output", hidden=True
name="flow_outputs_data",
display_name="Flow Data Output",
method="data_output",
hidden=True,
tool_mode=False, # This output is not intended to be used as a tool, so tool_mode is disabled.
),
Output(
name="flow_outputs_dataframe",
display_name="Flow Dataframe Output",
method="dataframe_output",
hidden=True,
tool_mode=False, # This output is not intended to be used as a tool, so tool_mode is disabled.
),
Output(name="flow_outputs_message", display_name="Flow Message Output", method="message_output"),
]