(docs) Updated docs as for using agent_id (#2090)

This commit is contained in:
Saket Aryan
2024-12-16 16:02:29 +05:30
committed by GitHub
parent 4d08c16bd8
commit be4188c6b4

View File

@@ -156,6 +156,10 @@ curl -X POST "https://api.mem0.ai/v1/memories/" \
<Note> The `add` method offers support for two output formats: `v1.0` (default) and `v1.1`. To enable the latest format, which provides enhanced detail for each memory operation, set the `output_format` parameter to `v1.1`. Note that `v1.0` will be deprecated in version `0.1.30`. </Note>
<Note>
Messages passed along with `user_id`, `run_id`, or `app_id` are stored as user memories, while messages from the assistant are excluded from memory. To store messages for the assistant, use `agent_id` exclusively and avoid including other IDs, such as user_id, alongside it. This ensures the memory is properly attributed to the assistant.
</Note>
#### Short-term memory for a user session
@@ -331,6 +335,10 @@ curl -X POST "https://api.mem0.ai/v1/memories/" \
```
</CodeGroup>
<Note>
The `agent_id` retains memories exclusively based on messages generated by the assistant or those explicitly provided as input to the assistant. Messages outside these criteria are not stored as memory.
</Note>
#### Monitor Memories