Class AgentMemoryService
- Namespace
- Oscova.Agents.Memory
- Assembly
- Oscova.Agents.dll
Stores bounded long-term, topic, and daily memory beneath caller-selected user roots.
public class AgentMemoryService : IAgentMemoryServiceInheritance
Implements
Inherited Members
Constructors
- AgentMemoryService(Func<string, string>, long, Func<string, Task<DateOnly>>, IUserFileBackupService)
-
Creates file-backed agent memory beneath caller-selected user roots.
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.