Class FileAgentRunStore
An IAgentRunStore that keeps one JSON file per run in a folder. A save writes a temporary file and moves it over the previous one, so a crash mid-save leaves the previous checkpoint intact.
public sealed class FileAgentRunStore : IAgentRunStore
- Inheritance
-
FileAgentRunStore
- Implements
- Inherited Members
Constructors
- FileAgentRunStore(string)
Initializes the store over a folder, created when missing.
Properties
- Directory
Gets the folder the runs are kept in.
Methods
- DeleteAsync(string, CancellationToken)
Deletes a run's state.
- ListAsync(string, CancellationToken)
Lists the runs the store holds, newest first, optionally only those whose metadata
ownermatches.
- LoadAsync(string, CancellationToken)
Loads a run's state.
- SaveAsync(AgentRunState, CancellationToken)
Saves a run's state, replacing the previous one.