Skip to main content

The Context Object

The context parameter provides access to conversation history and user data in your agent functions.

Context Properties

Context Object

Message Format

The context.messages follows the standard OpenAI message format, which can include text and images (multimodal). Here is an example of what context.messages looks like:

Working with Messages

You can easily process these messages to extract text or pass them directly to an LLM.

Next Steps

Customize UI

Tailor the chat interface to match your brand.