Parameters
Optional conversation identifier. When provided, results are biased toward memories relevant to the active conversation. When supplied, it must be a valid UUID registered via
record_message.One or more search queries to find relevant organizational memories. If omitted, returns the most recent and highest-confidence client-scoped memories.
Maximum number of memory items to return. Defaults to
10. Maximum 50.Filter results to specific memory types. If omitted, all types are included.
| Value | Description |
|---|---|
fact | Factual information about your organization or product |
preference | Organizational preferences and standards |
episode | Significant organizational events |
temporal_event | Time-bound organizational events (launches, deadlines) |
Retrieval mode that controls the speed-quality tradeoff: the retrieval axis (
For real per-mode latency on your instance, see Dashboard → Usage.
fast vs accurate) of Retrieval Modes.| Value | Description |
|---|---|
fast | Vector search only. Lower latency. Default. |
accurate | Full vector + graph + re-ranking. Higher quality, higher latency. |
Returns
AContextResponse with the following fields:
Array of fact memories relevant to the query. Each includes
content, confidence, entities, source, and relevance_score.Array of preference memories.
Array of episode memories.
Response metadata including
total_results, query_time_ms, tokens_used, scope, and mode.Example
Response
Client context is cached with a 30-minute TTL. Repeated queries within the TTL window are served from cache without re-querying the storage engines. New bootstrap ingestions automatically invalidate the cache.
Raises
InvalidInputError: whenmodeis not"fast"or"accurate".SDKNotInitializedError: when called beforeawait sdk.initialize().AuthenticationError: when the API key is invalid or revoked.
See also
sdk.user.context.fetch: user-scoped contextsdk.customer.context.fetch: customer-scoped contextsdk.context.fetch: unified scope-chain fetch