forget
Delete stored memories matching a query key. Irreversibly removes incorrect, sensitive, or outdated information from long-term memory.
Instructions
Delete stored memories that match a query key.
IMPORTANT: Deletion operates on short, canonical keys. The LLM MUST issue forget calls using the same concise, embedding-optimized, space-separated key style used to create memories (otherwise relevant memories may not be found). Prefer 1–5 words separated by spaces when requesting deletions.
This tool SHOULD be called by the LLM when the user explicitly requests that certain stored information be forgotten or removed (for example: "forget that I live in Paris") or when the assistant decides a memory must be purged because it is incorrect or sensitive.
Parameters:
key: concise, canonical, space-separated query text used to find candidate memories to delete.
top_k: number of nearest matches to consider for deletion.
Behavior:
Deletion is irreversible; the LLM should confirm with the user when intent is ambiguous before invoking this tool.
The tool returns
deleted_idsfor the memories that were removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| top_k | No |