Constructor MemoryContextProvider
- Namespace
- Oscova.Agents.Memory
- Assembly
- Oscova.Agents.dll
MemoryContextProvider(IAgentMemoryService, string, int, IReadOnlyList<AITool>?)
Boot-loads the user's long-term memory index and recent daily logs into the agent's system prompt.
public MemoryContextProvider(IAgentMemoryService memoryService, string userId, int maxTokenBudget = 2000, IReadOnlyList<AITool>? memoryTools = null)Parameters
memoryServiceIAgentMemoryService-
The memory service used to read memory files.
userIdstring-
The user whose memory to load.
maxTokenBudgetint-
Maximum token budget for the combined memory content.
memoryToolsIReadOnlyList<AITool>?-
Memory tools exposed when the memory provider is enabled for an agent.
Remarks
Initializes a new instance of Oscova.Agents.Memory.MemoryContextProvider.