Table of Contents

Interface IAgentMemoryService

Namespace
Oscova.Agents.Memory
Assembly
Oscova.Agents.dll

Provides access to the agent's persistent memory files for a given user.

public interface IAgentMemoryService

Methods

AppendDailyLogAsync(string, string, TimeZoneInfo?, CancellationToken)

Appends an entry to the user's daily log for the current date in the requested time zone.

AppendLongTermMemoryAsync(string, string, string?, CancellationToken)

Appends a new entry to the user's long-term index or a topic file.

ForgetLongTermMemoryAsync(string, string, CancellationToken)

Removes matching text from the long-term index and topic files.

ListDailyLogsDatesAsync(string, CancellationToken)

Lists daily log dates available for the user.

ReadDailyLogAsync(string, int, CancellationToken)

Reads the user's daily log relative to the user's current local date.

ReadDailyLogForDateAsync(string, DateOnly, CancellationToken)

Reads the user's daily log for an explicit local date.

ReadLongTermMemoryAsync(string, CancellationToken)

Reads the user's durable long-term memory text.

ReadTopicMemoryAsync(string, string, CancellationToken)

Reads a long-term memory topic file.

WriteLongTermMemoryAsync(string, string, CancellationToken)

Replaces the user's long-term memory with the supplied content.