JVMFilePersistenceStorageProvider
A JVM-specific implementation of FilePersistenceStorageProvider for managing agent checkpoints in a file system.
This class utilizes JVM's Path for file system operations and JVMFileSystemProvider.ReadWrite for file system access. It organizes checkpoints by agent ID in a structured directory format under the specified root directory.
Use this class to persistently store and retrieve agent checkpoints to and from a file-based system in JVM environments.
Parameters
The root directory where all agent checkpoints will be stored.
Constructors
Initializes the JVMFilePersistenceStorageProvider with a specified root directory root.
Functions
Retrieves the list of checkpoints of the AI agent with the given sessionId
Retrieves the latest checkpoint of the AI agent with sessionId
Saves provided checkpoint (agentCheckpointData) of the agent with sessionId to the storage (ex: database, S3, file)