Expand description
Graph-based orchestration with conditional routing, cycles, and fan-out/fan-in.
A Graph is a directed graph of GraphNodes connected by edges.
Edges can be unconditional or conditional (predicate-based). Nodes return
a NodeOutcome that controls the traversal.
Structs§
- Agent
Node - Wraps an
Agentas aGraphNode. Readsstate["input"]as the prompt, writes the response tostate["output"], and returnsNodeOutcome::Continue. - Edge
- An edge connecting two nodes. Can be unconditional or conditional.
- FnNode
- A node built from an async closure.
- Graph
- A directed graph of nodes with conditional routing, cycle support, and fan-out/fan-in parallel execution.
- Graph
Builder - Builder for constructing a
Graph. - Graph
Context - Shared state flowing through a graph. Nodes read and write entries.
Enums§
- Node
Outcome - The outcome of a node’s execution, controlling graph traversal.