add_memory
Store facts, preferences, or conversation turns into long-term memory for AI agents. Accepts text or message arrays with user/agent/run scoping.
Instructions
Store a fact, preference, or conversation in TeleMem long-term memory. Provide text for a single statement or messages for conversation turns. Scoped by user_id/agent_id/run_id; defaults to the server's default user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | A single statement to remember. Use this or `messages`. | |
| infer | No | Extract salient facts with the LLM before storing (TeleMem's default pipeline). Set false to store the raw text as-is. | |
| run_id | No | Optional run/session scope. | |
| user_id | No | User the memory belongs to. | |
| agent_id | No | Optional agent scope. | |
| messages | No | Conversation turns as [{"role": "user"|"assistant", "content": "..."}]. Takes precedence over `text`. | |
| metadata | No | Arbitrary metadata to attach to the stored memories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |