Description
"It would be great to have a feature that allows us to limit connection types. For example, an output could have a property like fNodeOutput = ["tool", "input_text"], meaning it could only connect to an fNodeInput with type = "tool". Currently, we have something similar, but it requires specifying a list of node IDs, which isn’t very scalable or practical."
Additional Context
Feature Request: Connection Type Filtering
It would be highly beneficial to introduce a feature that enables type-based connection constraints between nodes.
Currently, connections are limited by explicitly defining a list of node IDs, which becomes impractical as the graph scales.
Proposed Improvement
Allow developers to define accepted connection types using semantic tags. For example:
fNodeOutput = ["tool", "input_text"];
This would restrict connections so that the output can only be linked to nodes with a matching fNodeInput type:
fNodeInput.type = "tool";
Benefits
- Scalability: Avoids the need to maintain long and dynamic lists of node IDs.
- Maintainability: Improves readability and manageability of node relationships.
- Flexibility: Enables more expressive and reusable flow configurations.
Description
"It would be great to have a feature that allows us to limit connection types. For example, an output could have a property like
fNodeOutput = ["tool", "input_text"], meaning it could only connect to anfNodeInputwithtype = "tool". Currently, we have something similar, but it requires specifying a list of node IDs, which isn’t very scalable or practical."Additional Context
Feature Request: Connection Type Filtering
It would be highly beneficial to introduce a feature that enables type-based connection constraints between nodes.
Currently, connections are limited by explicitly defining a list of node IDs, which becomes impractical as the graph scales.
Proposed Improvement
Allow developers to define accepted connection types using semantic tags. For example:
This would restrict connections so that the output can only be linked to nodes with a matching
fNodeInputtype:Benefits