Method AppendLongTermMemoryAsync
- Namespace
- Oscova.Agents.Memory
- Assembly
- Oscova.Agents.dll
AppendLongTermMemoryAsync(string, string, string?, CancellationToken)
Appends a new entry to the user's long-term index or a topic file.
public Task AppendLongTermMemoryAsync(string userId, string memoryEntry, string? topic = null, CancellationToken ct = default)Parameters
userIdstring-
The user whose memory should be updated.
memoryEntrystring-
The entry text to append.
topicstring?-
Optional lowercase kebab-case topic slug.
ctCancellationToken-
A token that can cancel before the final mutation; an admitted write completes.