JVMFilePersistencyStorageProvider

A JVM-specific implementation of FilePersistencyStorageProvider 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

root

The root directory where all agent checkpoints will be stored.

Constructors

Link copied to clipboard
constructor(root: Path, persistenceId: String)

Initializes the JVMFilePersistencyStorageProvider with a specified root directory root.

Functions

Link copied to clipboard
open suspend override fun getCheckpoints(): List<AgentCheckpointData>
Link copied to clipboard
open suspend override fun getLatestCheckpoint(): AgentCheckpointData?
Link copied to clipboard
open suspend override fun saveCheckpoint(agentCheckpointData: AgentCheckpointData)