Conditional Routing
Conditional routing is driven by edge when values and node return values.
Edge syntax
Node return
Execution routing matches in this order:
state.lastConditionstate.lastIntent
If no condition matches for that conditional group, runtime falls back to an internal __end__ mapping for that source node.
Example loop
Define the condition branches on the workflow edges.
Return the matching condition from the node.
Workflow transition (different from edge routing)
Use transitionTo to jump to another workflow id:
The orchestrator emits a transition chunk and loads the target workflow with selectWorkflow.