MemoGrafterAgent
forgetMany()
Soft-forget several memories.
What it does
Soft-forget several memories.
The batch form applies the same soft-forget behavior to multiple records and reports how many records actually changed.
Signature
TypeScript
forgetMany(memoryIds: string[]): Promise<number>Parameters
memoryIds (string[]) — Memory records to change in one operation.Result
The number of changed memory rows.
Example
example.ts
const changed = await agent.forgetMany(memoryIds);