JVMFilePersistenceStorageProvider
class JVMFilePersistenceStorageProvider(root: Path, json: Json = PersistenceUtils.defaultCheckpointJson) : FilePersistenceStorageProvider<Path> (source)
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
root
The root directory where all agent checkpoints will be stored.
Constructors
Link copied to clipboard
Initializes the JVMFilePersistenceStorageProvider with a specified root directory root.
Functions
Link copied to clipboard
open suspend override fun getCheckpoints(agentId: String, filter: AgentCheckpointPredicateFilter?): List<AgentCheckpointData>
Link copied to clipboard
open suspend override fun getLatestCheckpoint(agentId: String, filter: AgentCheckpointPredicateFilter?): AgentCheckpointData?
Link copied to clipboard