A TypeScript function that inspects GraphState and returns the id of the next node. Used with { type: 'function' } conditions so authors can express arbitrary routing logic.
GraphState
{ type: 'function' }
A TypeScript function that inspects
GraphStateand returns the id of the next node. Used with{ type: 'function' }conditions so authors can express arbitrary routing logic.