Method ApplyFilter
ApplyFilter()
Applies the user-scope filter to the underlying memory so that retrieval operations only consider this user's data sources.
[Obsolete("Sets a process-wide filter on the shared memory, so only one user scope can be active at a time and concurrent users leak into each other. Query with RecallAsync, which scopes per call; for conversation-attached memory, give each user their own AgentMemory.")]
public void ApplyFilter()
Remarks
The filter is set on the shared Filter property: it is PROCESS-WIDE state, so exactly one user scope can be active at a time, and concurrent users of the same shared memory observe each other's filter. Prefer RecallAsync(string, int, CancellationToken), which scopes per call, or give each user their own AgentMemory when attaching memory to a conversation.