FilePersistencyStorageProvider

A file-based implementation of PersistencyStorageProvider that stores agent checkpoints in a file system.

This implementation organizes checkpoints by agent ID and uses JSON serialization for storing and retrieving checkpoint data. It relies on FileSystemProvider.ReadWrite for file system operations.

Parameters

Path

Type representing the file path in the storage system.

fs

A file system provider enabling read and write operations for file storage.

root

Root file path where the checkpoint storage will organize data.

Inheritors

Constructors

Link copied to clipboard
constructor(persistenceId: String, fs: FileSystemProvider.ReadWrite<Path>, root: Path)

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)