Skip to main content

Module orchestration

Module orchestration 

Source
Expand description

Multi-agent orchestration: chains, graphs, DAGs, and workflows.

  • Chain runs steps sequentially, passing context from one to the next.
  • Graph runs nodes with conditional routing, cycles, and fan-out/fan-in (Pregel / sequential walker model).
  • Dag performs topological scheduling: independent nodes execute in parallel, with cycle detection at build time (AllPredecessor model).
  • Workflow extends the DAG model with field-level data mapping between nodes, inspired by Eino’s typed-field workflow engine.

Re-exports§

pub use chain::AgentStep;
pub use chain::Chain;
pub use chain::ChainBuilder;
pub use chain::ChainContext;
pub use chain::ChainStep;
pub use chain::TransformStep;
pub use dag::AgentDagNode;
pub use dag::Dag;
pub use dag::DagBuilder;
pub use dag::DagContext;
pub use dag::DagNode;
pub use dag::FnDagNode;
pub use dag::END;
pub use dag::START;
pub use graph::AgentNode;
pub use graph::Edge;
pub use graph::FnNode;
pub use graph::Graph;
pub use graph::GraphBuilder;
pub use graph::GraphContext;
pub use graph::GraphNode;
pub use graph::NodeOutcome;
pub use workflow::AgentWorkflowNode;
pub use workflow::FnWorkflowNode;
pub use workflow::Workflow;
pub use workflow::WorkflowBuilder;
pub use workflow::WorkflowNode;

Modules§

chain
Linear pipeline orchestration.
dag
Directed Acyclic Graph (DAG) orchestration with parallel execution.
graph
Graph-based orchestration with conditional routing, cycles, and fan-out/fan-in.
workflow
Eino-style Workflow orchestration with field-level mapping.