Write memory
memory_writeSave user preferences, facts, or commitments for future recall by providing content and user ID. Qwen automatically extracts summary, tags, and importance.
Instructions
Persist something worth remembering about a user (a preference, fact, commitment, or event). Qwen derives a short summary, tags, importance (salience), and kind. Call this whenever the user reveals durable information you should recall in future sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | Stable id namespacing this user's memories. | |
| content | Yes | The information to remember, in plain language. | |
| salience | No | Optional importance override in [0,1]; otherwise Qwen decides. | |
| sourceSession | No | Optional originating session/conversation id. |