Skip to main contentCrate synaptic_graph
Source - AgentOptions
- Options for creating an agent with
create_agent. - CachePolicy
- Cache policy for node-level caching.
- Checkpoint
- A snapshot of graph state at a point in execution.
- CheckpointConfig
- Configuration identifying a checkpoint (thread/conversation).
- Command
- A command returned from a node to control graph flow.
- 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.
- GraphEvent
- An event yielded during graph streaming.
- Interrupt
- Interrupt graph execution and request human input.
- MemorySaver
- In-memory checkpointer (for development/testing).
- MessageState
- Built-in state containing a list of messages (most common use case).
- MultiGraphEvent
- An event yielded during multi-mode streaming, tagged with its stream mode.
- 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.
- SupervisorOptions
- Options for the supervisor multi-agent pattern.
- SwarmAgent
- A swarm agent definition.
- SwarmOptions
- Options for the swarm multi-agent pattern.
- ToolNode
- Prebuilt node that executes tool calls from the last AI message in state.
- CommandGoto
- Routing target for a Command.
- GraphResult
- The result of a graph invocation.
- NodeOutput
- What a node can return from its
process() method. - StreamMode
- Controls what is yielded during graph streaming.
- END
- Sentinel name for the graph end point.
- START
- Sentinel name for the graph start point.
- 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.
- create_agent
- Create a prebuilt agent graph with full middleware and store support.
- create_handoff_tool
- Create a handoff tool that signals transfer to another agent.
- create_react_agent
- Create a prebuilt ReAct agent graph.
- create_react_agent_with_options
- Create a prebuilt ReAct agent graph with additional configuration options.
- create_supervisor
- Create a supervisor multi-agent graph.
- create_swarm
- Create a swarm multi-agent graph.
- interrupt
- Create an interrupt command that pauses graph execution.
- tools_condition
- Standard routing function: returns “tools” if last message has tool_calls, else END.
- GraphStream
- A stream of graph events.
- MultiGraphStream
- A stream of multi-mode graph events.
- PostModelHook
- A hook called after each model invocation. Can modify the state.
- PreModelHook
- A hook called before each model invocation. Can modify the state.
- RouterFn
- A routing function that inspects state and returns a target node name.