Contexts

Contexts provide structured state or memory that an agent can use during execution.

Contexts are small pieces of structured information supplied to an agent. They are useful when the answer depends on state outside the user's latest message.

Examples

ContextExample fields
User profilename, plan, locale, preferences
Workspace stateproject_name, current_phase, owner
Support caseticket_id, priority, last_status

Contexts vs Knowledge

Use contexts for compact, structured state. Use knowledge bases for larger searchable documents.

Use caseBetter fit
User's current planContext
A 20-page policy PDFKnowledge base
Current ticket priorityContext
Product troubleshooting guideKnowledge base

Privacy

Only pass context fields the agent needs. Avoid sending sensitive user data unless your product and data policy require it.