Skip to content

How to implement type-based connection filtering in userland #149

@adrielov

Description

@adrielov

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.

Metadata

Metadata

Labels

feature requestThis issue represents a new feature or feature requestnot plannedReviewed but not planned for implementation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions