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.
A builder class responsible for creating a RollbackToolRegistry while managing associations between tools and their corresponding rollback tools.
A builder class responsible for creating a RollbackToolRegistry while managing associations between tools and their corresponding rollback tools.
A builder class responsible for creating a RollbackToolRegistry while managing associations between tools and their corresponding rollback tools.
A builder class responsible for creating a RollbackToolRegistry while managing associations between tools and their corresponding rollback tools.
API for RollbackToolRegistryBuilder
Represents a set of tools that can perform rollback or reversal operations for a given tool and toolset. This interface provides a mechanism to locate and retrieve tools that revert specific operations.
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 context.
Extension function to access the checkpoint feature from a session.
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 AI agent's persistence layer.
Executes the provided action within the context of the session's persistence layer if the session is in a running state.