Table of Contents

Class InMemoryAgentRunStore

Namespace
LMKit.Agents.Runs
Assembly
LM-Kit.NET.dll

An IAgentRunStore held in memory, for tests and for a process that resumes its own runs. Each state is kept as its JSON, so what is loaded is a copy, exactly as a durable store would return it.

public sealed class InMemoryAgentRunStore : IAgentRunStore
Inheritance
InMemoryAgentRunStore
Implements
Inherited Members

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 owner matches.

LoadAsync(string, CancellationToken)

Loads a run's state.

SaveAsync(AgentRunState, CancellationToken)

Saves a run's state, replacing the previous one.

Share