The Context Object
Thecontext parameter provides access to conversation history and user data in your agent functions.
Context Properties
Message Format
Thecontext.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.