Modules§
- chat
- checkpoint
- Checkpoint persistence types and traits
- client
- command
- config
- Configuration types for graph execution
- edge
- Edge system for graph routing
- error
- func
- Functional API for defining workflows with plain functions
- graph
- Graph building, compilation, and topology validation
- interrupt
- Human-in-the-Loop (HITL) support
- llm
- LLM integration module.
- memory
- High-level memory abstractions for Juncture agents.
- node
- Node system for graph execution
- observability
- prebuilt
- Prebuilt agent patterns for common LLM workflows.
- pregel
- Pregel execution engine
- prelude
- runtime
- Runtime context for graph execution
- send
- Send API for dynamic fan-out
- state
- store
- stream
- subgraph
- Subgraph support for nested graph execution
- time
- Platform-compatible time abstractions.
- tools
- Tools module for LLM function calling
- tracing_
wasm - WASM-compatible tracing helpers.
- wasm_
send - WASM-compatible
Sendwrappers.
Macros§
- info_
span - Create a span (native path).
- interrupt
- Interrupt macro for human-in-the-loop interactions (task-local version)
- interrupt_
with_ ctx - Interrupt macro for human-in-the-loop interactions (explicit context)
- parent_
command - Parent command macro for subgraph-to-parent routing
- path_
map - Construct a
PathMapfrom key-value pairs.
Structs§
- AnyValue
Reducer AnyValuereducer: assumes all values are equal- Append
Reducer - Append reducer: accumulate all writes
- Batch
Transformer - Transformer that batches events by accumulation.
- Budget
Config - Budget configuration limits
- Budget
Tracker - Budget tracker for execution limits
- Budget
Usage - Current budget usage statistics
- Cache
Config - Cache configuration for node results
- Cache
KeyInput - Cache key input for LLM response caching
- Cache
Policy - Cache policy controlling how node results are cached
- Call
Options - Options for LLM invocations
- Chat
Anthropic - Anthropic Claude implementation
- Chat
Ollama - Ollama implementation
- Chat
OpenAI OpenAIimplementation- Checkpoint
Namespace - Namespace for checkpoint isolation in subgraph execution
- Circuit
Breaker Config - Circuit breaker configuration for node execution
- Circuit
Breaker State - Runtime state of a circuit breaker
- Command
- Command: node return value combining state update and routing
- Compiled
Graph - Compiled and validated graph ready for execution
- CowState
- Copy-on-write state wrapper (default state wrapper)
- Delta
Channel - Delta channel: append-heavy optimization with periodic snapshots
- Delta
Counters - Delta tracking counters for a channel
- Drawable
Edge - Drawable edge for visualization
- Drawable
Graph - Drawable graph representation for export
- Drawable
Node - Drawable node for visualization
- Entrypoint
Config - Entry point configuration for graph execution
- Ephemeral
Channel - Ephemeral channel: value is cleared at the start of each superstep
- Error
Handler Node - Node wrapper that adds error recovery handling
- Event
Emitter - Event emitter for streaming
- Execution
Config - Immutable execution configuration
- Execution
Context - Mutable execution context: holds state and version tracking
- Execution
Info - Execution metadata for a graph run
- Field
Version Tracker - Field version tracker for Pregel execution
- Fields
Changed - Bitmask tracking which fields changed
- Filter
Fields Transformer - Transformer that filters specific fields
- Final
- Final value distinguishing return value from saved state
- Func
Runtime - Runtime context for functional API workflows
- Graph
Client - Graph-specific client
- Graph
Drained - Information about graph being drained
- Graph
Interrupt - Interrupt information from graph execution
- Graph
Output - Output from graph execution
- Graph
Output Metadata - Metadata about graph execution
- Health
Status - Health status of the graph execution
- Heartbeat
- Heartbeat mechanism for long-running nodes
- Heartbeat
Watcher - Watches heartbeats and detects staleness for idle timeout detection
- Image
Data - Image data for multimodal content
- Index
Config - Vector index configuration
- Interrupt
Context - Interrupt context for managing human-in-the-flow interactions
- Interrupt
Info - Information about a human-in-the-loop interrupt
- Interrupt
Signal - Signal sent when a node requests interruption
- Invoke
Config - Configuration for graph invocation
- Item
- Stored item
- Json
Parse Transformer - Transformer that parses JSON strings
- Juncture
Client - Juncture client for server interaction
- Juncture
Error - Juncture error with backtrace
- Last
Value After Finish Channel - Last-value-after-finish channel: value only available after
finish()is called - Last
Write Wins Reducer LastWriteWinsreducer: allows multiple writers, last one wins- Managed
Values - Managed values for step tracking
- Memory
Store - In-memory store implementation
- Message
- Message type for LLM conversations.
- Message
Batch Config - Configuration for batching LLM streaming chunks.
- Message
Chunk - Streaming message chunk
- Messages
State - Built-in state for simple chat agents
- Messages
State Update - Update type for
MessagesState - Namespace
Segment - Single namespace segment with node name and invocation UUID
- Node
Error - Error information for node execution failures
- Node
Health - Health status of an individual node
- Node
Metadata - Metadata stored for each node during graph construction
- NopTool
Interceptor - No-op interceptor (default implementation)
- Overwrite
- Bypass reducer: overwrite value directly, bypassing normal merge
- Parent
Command - Command wrapper for subgraph-to-parent communication
- PathMap
- Path mapping for conditional edges
- Pending
Task - Pending task for execution
- Pregel
Loop - Main Pregel execution loop
- React
Agent Config ReActagent configuration- Remove
Message - Remove-message identifier for message deletion
- Replace
Reducer - Replace reducer: only one writer per superstep (default)
- Resource
Limits - Resource limits for graph execution
- Retry
Policy - Retry policy for node execution
- Retrying
Node - Node wrapper that adds retry behavior
- Ring
Buffer Channel - Ring buffer channel for append-heavy fields with bounded size
- RunControl
- Collaborative drain control for graceful shutdown
- Runnable
Config - Configuration for graph execution
- Runtime
- Execution context for graph nodes
- Scratchpad
- Scratchpad for interrupt handling and transient data storage
- Search
Item - Search result item with optional similarity score
- Search
Query - Search query
- Search
Result - Search result
- Send
- Dynamic fan-out target
- Send
Target - Send target for dynamic fan-out
- State
Filter - Filter for state history queries
- State
Graph - Builder for constructing executable Juncture graphs
- State
Snapshot - State snapshot
- State
Update - State update for manual checkpoint modifications
- Stream
Config - Configuration for streaming.
- Stream
Handle - Result of a streaming graph execution.
- Stream
Part - Unified stream event format – all events carry namespace information.
- Stream
Resumption - Resumption state for streaming
- Stream
Writer - Writer for streaming events from a node
- Structured
Output Model - Wrapper for structured output from LLMs
- Subgraph
Config - Configuration for subgraph execution
- Subgraph
Info - Information about a subgraph in a compiled graph
- Subgraph
Mount - A mounted subgraph ready for execution as a node
- Subgraph
Node - Subgraph node wrapper for type erasure
- Subgraph
Transformer - Subgraph stream event transformer with namespace and filter
- Superstep
Result - Result of executing one superstep
- TTLConfig
- Configuration for time-to-live (TTL) behavior on
MemoryStore. - Task
Config - Task-level configuration for node execution
- Task
Output - Output from a single completed task
- Thread
- Thread information
- Timeout
Policy - Node-level timeout policy
- Token
Usage - Token usage information from LLM API responses
- Tool
Call - Tool call within a message
- Tool
Definition - Tool definition for function calling
- Tool
Execution Trace - Tool execution trace record
- Tool
Node - Tool node for executing function calls
- Tool
Node Config - Tool node configuration
- Tool
Runtime - Tool runtime context injected into tool execution
- Trigger
Table - Trigger table for compiled graph execution
- Trigger
ToNodes - Channel-to-node reverse mapping for efficient scheduling
- Untracked
Channel - Untracked channel: value is not persisted across checkpoints
Enums§
- Auth
Config - Authentication configuration for client
- Bubble
Up - Result that bubbles up from subgraph execution
- Budget
Exceeded Action - Action to take when a budget limit is exceeded
- Budget
Exceeded Reason - Reason why budget was exceeded
- Circuit
State - Circuit breaker states
- Client
Error - Client error types
- Command
Goto - Routing command from node to parent or child graph
- Content
- Message content
- Content
Part - Content part for multimodal messages
- Debug
Event - Debug event details
- Delta
Blob - Delta blob for representing checkpoint state
- Durability
- Checkpoint durability mode
- Edge
- Edge in a Juncture graph
- Error
Code - Error code categorizing the error type
- Filter
Expr - Filter expression for search
- Goto
- Routing instruction from node
- Graph
Target - Target graph for routing
- Image
Source - Image source for multimodal content
- Invalid
Update Error - Invalid update error variants
- LlmError
- LLM invocation error types
- Loop
Status - Status of the Pregel execution loop
- Node
Health State - Health state of a node
- Node
Timeout Error - Node timeout error variants
- Pregel
Stream Event - Stream event during graph execution
- Prompt
Source - Prompt source for agents
- Resume
Value - Value provided when resuming from an interrupt
- Role
- Message role
- Route
Result - Result of routing computation
- Store
Error - Store error types
- StoreOp
- Store operation type
- Store
Result - Store operation result
- Stream
Event - Stream event during graph execution
- Stream
Mode - Stream mode for graph execution
- Subgraph
Persistence - Checkpoint persistence mode for subgraphs
- Sync
Async Future - A task result that may be synchronously ready or asynchronously computed.
- Task
Event Type - Task event type
- Task
Trigger - What triggered a task to be scheduled
- Tool
Choice - Tool selection strategy
- Tool
Error - Tool execution error types
- Tools
Event - Tool execution event
- Topology
Error - Topology validation errors
Constants§
- CHECKPOINT_
NS_ SEPARATOR - Separator used between namespace segments in checkpoint namespace strings.
- END
- Sentinel constant for graph termination
- HIDDEN_
TAG - Tag used to mark interrupt signals that should be hidden from external consumers
- REMOVE_
ALL_ MESSAGES - Special sentinel: remove all messages
- START
- Sentinel constant for graph entry point
Traits§
- Channel
- Channel trait for state field access with checkpoint support
- Chat
Model - Unified
ChatModeltrait for all LLM providers - Checkpoint
Saver - Checkpoint persistence interface
- Embedding
Func - Trait for computing embeddings for vector search.
- From
State - Trait for extracting output schema from full State
- Graph
Lifecycle Callback - Callback trait for graph lifecycle events.
- Into
Node - Conversion trait for creating nodes from async functions
- Into
State - Trait for converting input schema into full State
- Json
Schema - Trait for types with JSON Schema support
- Metrics
Collector - Trait for collecting metrics during graph execution.
- Node
- Node trait for graph execution
- Pregel
Protocol - Pregel protocol trait for unified graph execution
- Reducer
- Reducer trait defining merge semantics for state fields
- Router
- Router trait for conditional edge routing
- State
- State trait for graph state management
- State
Subset - Compile-time constraint for shared-state subgraph mode
- Stateful
Tool - Stateful tool trait for tools that need graph state access
- Store
- Store trait for cross-thread long-term memory
- Stream
Transformer - Transformer for stream data
- Stream
Writer Trait - Non-generic stream writer trait for
Runtimeintegration. - Tool
- Unified tool trait
- Tool
Call Transformer - Tool call transformer trait
- Tool
Interceptor - Tool call interceptor trait
Functions§
- apply_
writes - Apply writes from completed tasks to the state
- call_
llm_ streaming - Call an LLM with streaming, forwarding chunks to the event emitter.
- compile_
entrypoint - Compile a functional workflow entrypoint into an executable graph
- compile_
entrypoint_ with_ config - Compile a functional workflow entrypoint with task configuration
- compute_
next_ tasks - Compute the next set of tasks to execute
- execute_
superstep - Execute a single superstep in parallel
- generate_
checkpoint_ id - Generate a new time-ordered checkpoint ID using UUID v6.
- generate_
interrupt_ id - Generate a deterministic interrupt ID from node name and index
- messages_
reducer - Messages reducer with append+merge+delete semantics
- should_
interrupt - Check if execution should interrupt based on the current state
- tools_
condition - Tools condition router function