Package-level declarations
Types
Represents the checkpoint data for an agent's state during a session.
A feature that provides checkpoint functionality for AI agents.
Configuration class for the Snapshot feature.
A registry for managing and retrieving rollback tools associated with specific tools. This class allows for the association of tools that have rollback counterparts and provides mechanisms for retrieval and addition of such tools.
Functions
Adds a tool and its corresponding rollback tool to the registry. This convenience method converts both toolFunction and rollbackToolFunction into Tool objects before adding them.
Checks whether the AgentCheckpointData instance is marked as a tombstone.
Extension function to access the checkpoint feature from an agent.
Extension function to access the checkpoint feature from an agent context.
Registers a relationship between a tool and its corresponding rollback tool using the specified functions.
Converts an instance of AgentCheckpointData to AgentContextData.
Creates a tombstone checkpoint for an agent's session. A tombstone checkpoint represents a placeholder state with no real interactions or messages, intended to mark a terminated or invalid session.
Executes the provided action within the context of the agent's persistence layer if the agent is in a running state.
Executes the provided action within the context of the AI agent's persistence layer.