Package-level declarations
Types
Represents the checkpoint data for an agent's state during a session.
Custom serializer for AgentCheckpointData that adds backward compatibility with the pre-refactoring format, where AgentCheckpointData.nodePath, AgentCheckpointData.lastInput, and AgentCheckpointData.lastOutput were top-level fields instead of entries in AgentCheckpointData.properties.
Specialized data for graph-based agents, including execution path and input/output states.
A feature that provides checkpoint functionality for AI agents.
Configuration class for the Snapshot feature.
Specialized data for planner agents, capturing state, plan, and current execution point.
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.
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.