-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Flow, Flow as Tool, Sub Flow components do not show flows in drop down box for flow name #2972
Comments
The issue with the "Run Flow," "Flow as Tool," and "Sub Flow" components not displaying flows in the dropdown box for selecting a flow name is likely due to the Here is the relevant code snippet from the class FlowToolComponent(CustomComponent):
# ... other methods and attributes ...
def get_flow_names(self) -> List[str]:
flow_datas = self.list_flows()
return [flow_data.data["name"] for flow_data in flow_datas]
def update_build_config(self, build_config: dotdict, field_value: Any, field_name: str | None = None):
logger.debug(f"Updating build config with field value {field_value} and field name {field_name}")
if field_name == "flow_name":
build_config["flow_name"]["options"] = self.get_flow_names()
return build_config To resolve this issue, ensure that:
Additionally, the "Flow as Tool," "Run Flow," and "Sub Flow" components have a |
Encountering the same issue here too. |
Same error here 1.12, |
It was resolved in v1.0.13. |
Hi @YamonBot it appears not fixed : only the run as flow tool shows items in its dropdown box, and attempting to use the component always produced the error : "Error building Component Run Flow: 'in ' requires string as left operand, not NoneType". I am on 1.0.13. Thanks : Arron |
Hello! I will be fixing this issue today. Thanks! |
Bug Description
Run Flow, Flow as Tool, Sub Flow components do not show flows in drop down box for flow name
Reproduction
Place components on canvas attempt to set flow name from dropdown
Expected behavior
Should show flows from collection
Who can help?
@anovazzi1
@Cristhianzl
@lucaseduoli
Operating System
Ubuntu Linux 22.04
Langflow Version
1.10 to 1.12 at least
Python Version
3.10
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: