OptionalafterThe set of agents to route to. Can be an array of agents or a Record of keys to agents. If an array is provided, the agent names will be used as keys.
OptionalbeforeOptionaldescriptionHuman-readable description (used when a node is exposed as a tool).
OptionalinputOptional schema validating the node input (Zod v3/v4 or genai Schema).
OptionalisolationRuns this node's subtree in an isolated conversation scope: an agent inside
it sees only session events carrying the same scope, plus untagged ones.
true derives a scope per node run; a string is an explicit shared tag.
Canonical, unique-within-a-graph node name.
OptionaloutputOptional schema validating the node output (Zod v3/v4 or genai Schema).
OptionalparentOptionalrerunIf true, the node re-executes when a workflow resumes even if it already completed in a prior turn. Default false.
OptionalretryOptional retry configuration for transient failures.
The function to select which agent to run.
OptionalstateOptional schema validating relevant session state (Zod v3/v4 or genai Schema).
OptionalsubOptionaltimeoutMaximum time, in seconds, for this node to complete.
OptionalwaitIf true, the node only produces its output once all of its predecessors have triggered it (fan-in / join semantics). Default false.
Configuration for the RoutingAgent.