Expand description
Agent Persistence and State Management
This module provides comprehensive persistence capabilities for AI agents:
- State Snapshots: Serialize and restore complete agent state
- Conversation History: Store and retrieve conversation threads
- Checkpointing: Automatic and manual checkpoints for recovery
- State Versioning: Track state changes over time
- Storage Backends: SQLite, file-based, and in-memory options
- Migration Support: Handle schema changes between versions
Structs§
- Agent
State - Agent state that can be persisted
- Attachment
- An attachment to a message
- Checkpoint
- A checkpoint for recovery
- Checkpoint
Config - Configuration for automatic checkpointing
- Conversation
- A conversation thread
- File
Backend - File-based persistence backend
- Memory
Backend - In-memory persistence backend (for testing)
- Message
- A message in a conversation
- Persistence
Manager - Main persistence manager
- Storage
Stats - Storage statistics
- Tool
Call - A tool call made by the agent
Enums§
Traits§
- Persistence
Backend - Storage backend for persistence
Functions§
- persistence_
builtins - Create builtin functions for persistence
Type Aliases§
- AgentId
- Unique identifier for agent instances
- Checkpoint
Id - Unique identifier for checkpoints
- Conversation
Id - Unique identifier for conversations