store_memory
Store or update a memory for an AI agent using a key-value pair, with optional automatic expiration.
Instructions
Store a value under a key for a given AI agent. Writing to an existing key updates the value (no duplicates created). Costs 1 credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Unique identifier for the agent. Max 100 characters. | |
| key | Yes | Memory label. Max 200 characters. | |
| value | Yes | What to remember. Max 5,000 characters. | |
| ttl_days | No | Optional. Days until this memory expires automatically. Omit for permanent memories. |