Skip to main content

Crate synaptic_graph

Crate synaptic_graph 

Source

Structs§

Checkpoint
A snapshot of graph state at a point in execution.
CheckpointConfig
Configuration identifying a checkpoint (thread/conversation).
CompiledGraph
The compiled, executable graph.
ConditionalEdge
A conditional edge from source node to a dynamically chosen target.
Edge
A fixed edge from source node to target node.
FnNode
Wraps an async function as a Node.
GraphContext
A context that nodes can use to issue graph execution commands.
GraphEvent
An event yielded during graph streaming.
MemorySaver
In-memory checkpointer (for development/testing).
MessageState
Built-in state containing a list of messages (most common use case).
ReactAgentOptions
Options for creating a ReAct agent with create_react_agent_with_options.
Send
A Send instruction for dynamic fan-out to multiple nodes.
StateGraph
Builder for constructing a state graph.
ToolNode
Prebuilt node that executes tool calls from the last AI message in state.

Enums§

GraphCommand
A graph execution command that can override normal edge routing.
StreamMode
Controls what is yielded during graph streaming.

Constants§

END
Sentinel name for the graph end point.
START
Sentinel name for the graph start point.

Traits§

Checkpointer
Trait for persisting graph state checkpoints.
Node
A node in the graph that processes state.
State
Trait for graph state. Types implementing this can be used as graph state.

Functions§

create_react_agent
Create a prebuilt ReAct agent graph.
create_react_agent_with_options
Create a prebuilt ReAct agent graph with additional configuration options.

Type Aliases§

GraphStream
A stream of graph events.
RouterFn
A routing function that inspects state and returns a target node name.