Skip to main content

synaptic_graph/
lib.rs

1mod builder;
2mod checkpoint;
3mod command;
4mod compiled;
5mod edge;
6mod node;
7mod prebuilt;
8mod send;
9mod state;
10mod tool_node;
11mod visualization;
12
13pub use builder::StateGraph;
14pub use checkpoint::{Checkpoint, CheckpointConfig, Checkpointer, MemorySaver};
15pub use command::{interrupt, Command, CommandGoto, GraphResult, Interrupt, NodeOutput};
16pub use compiled::{
17    CachePolicy, CompiledGraph, GraphEvent, GraphStream, MultiGraphEvent, MultiGraphStream,
18    StreamMode,
19};
20pub use edge::{ConditionalEdge, Edge, RouterFn};
21pub use node::{FnNode, Node};
22pub use prebuilt::{
23    create_agent, create_handoff_tool, create_react_agent, create_react_agent_with_options,
24    create_supervisor, create_swarm, AgentOptions, PostModelHook, PreModelHook, ReactAgentOptions,
25    SupervisorOptions, SwarmAgent, SwarmOptions,
26};
27pub use send::Send;
28pub use state::{MessageState, State};
29pub use tool_node::{tools_condition, ToolNode};
30
31/// Sentinel name for the graph start point.
32pub const START: &str = "__start__";
33/// Sentinel name for the graph end point.
34pub const END: &str = "__end__";