Idea: Enhancing Start Node with Input Connector for Initial State Configuration #5
hangingman
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
I got the implementation idea for this from ComfyUI. I think it would be more user-friendly if users could individually configure workflow parts (e.g., LLM call settings) and if node connectors were color-coded for better clarity. https://mybyways.com/blog/llm-prompt-generation-with-ollama-in-comfyui |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think currently you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
LangGraph GUI leverages React Flow to build workflows visually, similar to tools like ComfyUI. However, the current implementation does not allow for configuring an initial state for the workflow directly within the Start node (If this assumption is wrong, sorry!). This limitation restricts flexibility when initializing workflows with predefined data. Adding an input connector to the Start node would allow for a more dynamic and user-friendly setup.
Additionally, there is a hypothesis that the workflow's state may only need to be explicitly defined at the Start node. If this hypothesis holds true, it could simplify state management across the entire LangGraph system.
Problem Statement
Currently:
Proposed Solution
Add an input connector to the Start node, enabling it to receive initial state data dynamically. This enhancement allows users to visually configure workflows with predefined input states and aligns with the intuitive design principles of LangGraph GUI.
Implementation Plan
1. Update Start Node Definition
Modify the Start node to include an input connector using React Flow’s
targetPosition
property.2. Handle Input Connections
Use React Flow’s
onConnect
event to detect connections to the Start node and update its state dynamically. This implementation supports the hypothesis that only the Start node needs state configuration.3. Add State Configuration UI
Enable users to edit the Start node’s state through a JSON editor in the property panel when the node is selected.
Benefits
Beta Was this translation helpful? Give feedback.
All reactions