rlm_remember_if_novel
Store a memory only if it is sufficiently novel compared to existing memories, avoiding duplicates. Supports fact, decision, learning, preference, todo, and context.
Instructions
Store a durable Memory V2 record only if it is sufficiently novel compared with existing memories. Direct writes support fact, decision, learning, preference, todo, and context. Use context tools for source truth and rlm_end_of_task_commit for workflow capture. Returns duplicate matches when skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The memory text to store | |
| type | No | fact | |
| scope | No | Memory owner boundary. scope=agent requires agent_id; scope=user is personal to the authenticated user or integrator external_user_id. | project |
| agent_id | No | Required when scope=agent; identifies the agent-owned memory namespace | |
| external_user_id | No | Integrator client keys only: stable end-user ID for scope=user memory. Snipara hashes and namespaces it per integrator client. | |
| category | No | ||
| ttl_days | No | ||
| related_to | No | ||
| document_refs | No | ||
| source | No | Optional source label for the memory write | |
| novelty_threshold | No | Similarity threshold above which a memory is treated as duplicate | |
| dedupe_limit | No | ||
| allow_supersede | No | Reserved for future conflict handling |