Module prelude

Module prelude 

Source
Available on crate feature graph only.
Expand description

Prelude module for convenient imports

Macros§

json
Construct a serde_json::Value from a JSON literal.

Structs§

AgentNode
Wrapper to use an existing ADK Agent as a graph node
Channel
Channel definition for a state field
Checkpoint
Checkpoint data structure for persistence
CompiledGraph
A compiled graph ready for execution
ExecutionConfig
Configuration passed to nodes during execution
FunctionNode
Function node - wraps an async function as a node
GraphAgent
GraphAgent wraps a CompiledGraph as an ADK Agent
GraphAgentBuilder
Builder for GraphAgent
InterruptedExecution
Information about an interrupted execution
MemoryCheckpointer
In-memory checkpointer for development and testing
NodeContext
Context passed to nodes during execution
NodeOutput
Output from a node execution
Router
Router helper functions for common patterns
StateGraph
Builder for constructing graphs
StateSchema
State schema defines channels and their reducers
StateSchemaBuilder
Builder for StateSchema

Enums§

Edge
Edge type
EdgeTarget
Target of an edge
GraphError
Errors that can occur during graph operations
Interrupt
Interrupt request from a node or configuration
Reducer
Reducer determines how state updates are merged
StreamEvent
Events emitted during streaming
StreamMode
Stream mode options
Value
Represents any valid JSON value.

Constants§

END
START
Special node identifiers

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

Type Aliases§

Result
Result type for graph operations
State
Graph state - a map of channel names to values