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

template_idstringOptional
Optional template ID to use for custom context rendering.

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