Table of Contents

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

memoryService IAgentMemoryService

The memory service used to read memory files.

userId string

The user whose memory to load.

maxTokenBudget int

Maximum token budget for the combined memory content.

memoryTools IReadOnlyList<AITool>?

Memory tools exposed when the memory provider is enabled for an agent.

Remarks

Initializes a new instance of Oscova.Agents.Memory.MemoryContextProvider.