Graph
is the central orchestration component in GraphAI. It connects Nodes
and Routers
into a coherent workflow and manages the execution flow.
max_steps
(int, default=10): Maximum number of steps to prevent infinite loopsinitial_state
(Dict[str, Any], optional): Initial state for the graph execution"choice"
key with the name of the next node to execute:
"choice"
output determines the next node