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:
parent
28445d0a70
commit
eba76ecc57
1 changed files with 12 additions and 2 deletions
|
|
@ -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"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue