Wraps a NodeLike (function, tool, agent, or existing node) into a BaseNode, optionally overriding its properties.
The TypeScript form is a plain function (there is no @node decorator form, unlike Python). Examples:
@node
const a = node(myFunction, {name: 'classify'});const b = node(myTool); Copy
const a = node(myFunction, {name: 'classify'});const b = node(myTool);
Ported from google/adk-python workflow/_node.py::node.
google/adk-python
workflow/_node.py::node
Wraps a NodeLike (function, tool, agent, or existing node) into a BaseNode, optionally overriding its properties.
The TypeScript form is a plain function (there is no
@nodedecorator form, unlike Python). Examples:Ported from
google/adk-pythonworkflow/_node.py::node.