Available on crate feature
graph only.Expand description
Graph-based workflow engine (LangGraph-inspired).
Build complex agent workflows with:
StateGraph- Graph builder with nodes and edgesGraphAgent- ADK Agent integrationCheckpointer- Persistent state for human-in-the-loopRouter- Conditional edge routing helpers- Cycle support with recursion limits
- Streaming execution modes
Available with feature: graph
Modules§
- agent
- GraphAgent - ADK Agent integration for graph workflows
- checkpoint
- Checkpointing for persistent graph state
- edge
- Edge types for graph control flow
- error
- Error types for adk-graph
- executor
- Pregel-based execution engine for graphs
- graph
- StateGraph builder for constructing graphs
- interrupt
- Human-in-the-loop interrupt types
- node
- Node types for graph execution
- prelude
- Prelude module for convenient imports
- state
- State management for graph execution
- stream
- Streaming types for graph execution
Structs§
- Agent
Node - Wrapper to use an existing ADK Agent as a graph node
- Channel
- Channel definition for a state field
- Checkpoint
- Checkpoint data structure for persistence
- Compiled
Graph - A compiled graph ready for execution
- Execution
Config - Configuration passed to nodes during execution
- Function
Node - Function node - wraps an async function as a node
- Graph
Agent - GraphAgent wraps a CompiledGraph as an ADK Agent
- Graph
Agent Builder - Builder for GraphAgent
- Interrupted
Execution - Information about an interrupted execution
- Memory
Checkpointer - In-memory checkpointer for development and testing
- Node
Context - Context passed to nodes during execution
- Node
Output - Output from a node execution
- Pregel
Executor - Pregel-based executor for graphs
- Router
- Router helper functions for common patterns
- State
Graph - Builder for constructing graphs
- State
Schema - State schema defines channels and their reducers
- State
Schema Builder - Builder for StateSchema
Enums§
- Edge
- Edge type
- Edge
Target - Target of an edge
- Graph
Error - Errors that can occur during graph operations
- Interrupt
- Interrupt request from a node or configuration
- Reducer
- Reducer determines how state updates are merged
- Stream
Event - Events emitted during streaming
- Stream
Mode - Stream mode options
Constants§
Traits§
- Checkpointer
- Checkpointer trait for persistence
- Node
- A node in the graph
Functions§
- interrupt
- Helper to create a dynamic interrupt from within a node
- interrupt_
with_ data - Helper to create a dynamic interrupt with data