{ "content": "USER CONTEXT: User ID 123 has previously reported login issues on 2024-01-15. Recent interactions show confusion about password reset flow. User preferences: technical explanations, quick solutions.\n\nINTERACTION HISTORY: User asked about password reset but seemed confused about email verification step. Frustration level: moderate. Previous attempts: 3.", "metadata": { "token_count": 847 }}
Endpoints
Resolve context
Fetch compressed, context-rich content from a single context
{ "content": "USER CONTEXT: User ID 123 has previously reported login issues on 2024-01-15. Recent interactions show confusion about password reset flow. User preferences: technical explanations, quick solutions.\n\nINTERACTION HISTORY: User asked about password reset but seemed confused about email verification step. Frustration level: moderate. Previous attempts: 3.", "metadata": { "token_count": 847 }}
The context resolve endpoint fetches compressed, data-rich content from a single context. This is useful when you only need content from one specific context source, rather than combining multiple contexts together. For combining multiple contexts in a specific order, use the prompt resolve endpoint.
Optional query string for RAG contexts. This helps filter and rank relevant content, preventing context rot by including only information semantically similar to your query.
{ "content": "USER CONTEXT: User ID 123 has previously reported login issues on 2024-01-15. Recent interactions show confusion about password reset flow. User preferences: technical explanations, quick solutions.\n\nINTERACTION HISTORY: User asked about password reset but seemed confused about email verification step. Frustration level: moderate. Previous attempts: 3.", "metadata": { "token_count": 847 }}