Modules§
Structs§
- AnyValue
Reducer AnyValuereducer: assumes all values are equal- Append
Reducer - Append reducer: accumulate all writes
- CowState
- Copy-on-write state wrapper (default state wrapper)
- Delta
Channel - Delta channel: append-heavy optimization with periodic snapshots
- Ephemeral
Channel - Ephemeral channel: value is cleared at the start of each superstep
- Field
Versions - Per-field version numbers for state change tracking.
- Fields
Changed - Bitmask tracking which fields changed
- Image
Data - Image data for multimodal content
- 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- Message
- Message type for LLM conversations.
- Messages
State - Built-in state for simple chat agents
- Messages
State Update - Update type for
MessagesState - Named
Barrier Channel - Named barrier channel: waits for all registered named sources to write
- Overwrite
- Bypass reducer: overwrite value directly, bypassing normal merge
- Remove
Message - Remove-message identifier for message deletion
- Replace
Reducer - Replace reducer: only one writer per superstep (default)
- Ring
Buffer Channel - Ring buffer channel for append-heavy fields with bounded size
- Token
Usage - Token usage information from LLM API responses
- Tool
Call - Tool call within a message
- Topic
Channel - Topic channel: accumulates all published values into a list
- Untracked
Channel - Untracked channel: value is not persisted across checkpoints
Enums§
- Content
- Message content
- Content
Part - Content part for multimodal messages
- Delta
Blob - Delta blob for representing checkpoint state
- Image
Source - Image source for multimodal content
- Role
- Message role
Constants§
- REMOVE_
ALL_ MESSAGES - Special sentinel: remove all messages
Traits§
- Channel
- Channel trait for state field access with checkpoint support
- From
State - Trait for extracting output schema from full State
- Into
State - Trait for converting input schema into full State
- Reducer
- Reducer trait defining merge semantics for state fields
- State
- State trait for graph state management
Functions§
- messages_
reducer - Messages reducer with append+merge+delete semantics