synaptic-graph 0.4.0

LangGraph-style state machine: StateGraph, CompiledGraph, ReAct agent, checkpointing
Documentation
mod builder;
mod checkpoint;
mod command;
mod compiled;
mod edge;
mod node;
mod prebuilt;
mod send;
mod state;
mod store_checkpointer;
mod tool_node;
mod visualization;

pub use builder::StateGraph;
pub use checkpoint::{Checkpoint, CheckpointConfig, Checkpointer};
pub use command::{interrupt, Command, CommandGoto, GraphResult, Interrupt, NodeOutput};
pub use compiled::{
    CachePolicy, CompiledGraph, GraphEvent, GraphStream, MultiGraphEvent, MultiGraphStream,
    StreamMode,
};
pub use edge::{ConditionalEdge, Edge, RouterFn};
pub use node::{FnNode, Node};
pub use prebuilt::{
    create_agent, create_handoff_tool, create_react_agent, create_react_agent_with_options,
    create_supervisor, create_swarm, AgentOptions, PostModelHook, PreModelHook, ReactAgentOptions,
    SupervisorOptions, SwarmAgent, SwarmOptions,
};
pub use send::Send;
pub use state::{MessageState, State};
pub use store_checkpointer::StoreCheckpointer;
pub use tool_node::{tools_condition, ToolNode};

/// Sentinel name for the graph start point.
pub const START: &str = "__start__";
/// Sentinel name for the graph end point.
pub const END: &str = "__end__";