memory_write
Store and manage memory items with automatic contradiction detection and embedding support for semantic search. New content supersedes conflicting memories of same type and title.
Instructions
Creates a MemoryItem and optionally embeds it for semantic search. Contradiction detection is automatic — if new content conflicts with an existing memory of the same type/title, the old one is superseded. Use type='auto' to let the LLM decide the best category.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| embed | No | ||
| scope | No | agent | |
| title | No | ||
| source | No | agent | |
| content | Yes | ||
| user_id | No | ||
| variant | No | ||
| agent_id | No | ||
| database | No | ||
| metadata | No | {} | |
| model_id | No | ||
| valid_to | No | ||
| embed_text | No | ||
| importance | No | ||
| refresh_on | No | ||
| valid_from | No | ||
| change_agent | No | ||
| auto_classify | No | ||
| refresh_reason | No | ||
| conversation_id | No |