Persistency
A feature that provides checkpoint functionality for AI agents.
This class allows saving and restoring the state of an agent at specific points during execution. Checkpoints capture the agent's message history, current node, and input data, enabling:
Resuming agent execution from a specific point
Rolling back to previous states
Persisting agent state across sessions
The feature can be configured to automatically create checkpoints after each node execution using the PersistencyFeatureConfig.enableAutomaticPersistency option.
Types
Feature companion object that implements AIAgentFeature for the checkpoint functionality.
Properties
Functions
Creates a checkpoint of the agent's current state.
Retrieves a specific checkpoint by ID for the specified agent.
Retrieves the latest checkpoint for the specified agent.
Rolls back an agent's state to a specific checkpoint.
Rolls back an agent's state to the latest checkpoint.
Saves a checkpoint using the configured storage provider.
Sets the execution point of an agent to a specific state.