InMemoryTrajectoryStore
Models & Types ยท AiDotNet.Agentic.SelfImproving
A process-local ITrajectoryStore that keeps captured runs in memory. Ideal for tests and
single-process self-improvement loops; contents are lost when the process exits.
Implements: ITrajectoryStore
For Beginners
The simplest logbook, kept in RAM โ fast and zero-config, but not saved to disk. Swap in a durable store when you need trajectories to persist across restarts.
Constructors
| Constructor | Summary |
|---|---|
InMemoryTrajectoryStore() |
Methods
| Method | Summary |
|---|---|
Task ClearAsync(CancellationToken cancellationToken) |
|
Task<AgentTrajectory> GetAsync(string id, CancellationToken cancellationToken) |
|
Task<IReadOnlyList<AgentTrajectory>> GetAllAsync(CancellationToken cancellationToken) |
|
Task<IReadOnlyList<AgentTrajectory>> QueryAsync(Func<AgentTrajectory, bool> predicate, CancellationToken cancellationToken) |
|
Task<string> AddAsync(AgentTrajectory trajectory, CancellationToken cancellationToken) |