nexus.context_retrieve
Retrieves relevant memories, recent conversations, and stored facts from prior sessions to provide context for open-ended user queries.
Instructions
Use when user asks anything that might need context from prior sessions, prior conversations, or stored facts. Single call returns relevant memories, recent conversation turns, and knowledge entities together. Prefer this over nexus.memory_search when query is open-ended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User identifier within tenant scope. Required per-call. | |
| query | Yes | ||
| limit | No | ||
| as_of | No | ISO 8601 with timezone, max 90 days in the past. Default: NULL (current valid memories, no anchor inheritance from previous calls). Do NOT infer as_of from conversation context — user must explicitly express time intent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| retrieve_id | Yes | PASS THIS to nexus.memory_feedback to rate this retrieval. Save it before continuing the conversation. | |
| memories | Yes | ||
| conversation_turns | Yes | ||
| knowledge_entities | Yes | ||
| errors | No | Non-empty if partial degradation (dict[str,str] type, key=layer, value=error message). Null when all layers healthy. HTTP 200 + errors!=null indicates partial result. | |
| _warnings | No | Partial-result warning channel; populated when one or more retrieval layers degraded. |