How to Create a Custom Node
To expose any function as a node in Pipeline‑UI, simply add the@node() decorator. For example:
Steps for Creating Your Own Node
- Define the Function: Write a Python function with the appropriate inputs.
- Decorate with @node(): Add the decorator.
- Annotate the Return Type: Use
Annotated[<type>, NodeOutput(...)]to declare output properties. - Customize Inputs: Use
NodeInputfor required data and parameter classes (such asTextParameter,NumberParameter) for configuration defaults. - Test in the UI: Run the project; your node should appear as a draggable block in the editor.