space_id; when omitted, the server resolves a default space from configuration or the authenticated account.
search_memories
Search memories with hybrid retrieval.
The search query.
add_memory
Store raw sources or a conversation. Provide exactly one of sources or messages.
Raw source
| Field | Type | Default | Description |
|---|---|---|---|
content | string | required | Raw content text. |
content_type | string | text | Content type such as text or markdown. |
role | string | null | Speaker role for conversation-like content. |
sequence | number | 0 | Order within a batch. |
meta | object | null | Arbitrary metadata. |
Conversation
| Field | Type | Default | Description |
|---|---|---|---|
messages | array | required | Ordered { role, content } messages. |
session_id | string | null | Conversation identifier. |
session_date | string | null | ISO datetime for the session. |
meta | object | null | Metadata attached to created sources. |
list_spaces
List spaces available to the authenticated user.
health_check
Check connectivity to the Crosmos Memory API.
Agent usage pattern
Search before answering
Use
search_memories when the user asks about prior context, preferences, or history.Answer with context
Use returned memories as grounded context, not as the final answer by themselves.