Get user context

Returns most relevant context from the user graph (including memory from any/all past threads) based on the content of the past few messages of the given thread.

Path Parameters

threadIdstringRequired

The ID of the current thread (for which context is being retrieved).

Query Parameters

minRatingdoubleOptional
The minimum rating by which to filter relevant facts.
template_idstringOptional
Optional template ID to use for custom context rendering.
modeenumOptionalDefaults to summary
Deprecated, this field will be removed in a future release. Defaults to summary mode. Use basic for lower latency
Allowed values:

Response

OK
contextstring or null

Context block containing relevant facts, entities, and messages/episodes from the user graph. Meant to be replaced in the system prompt on every chat turn.

Errors