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:
[ {'role': 'user', 'content': 'hello'}, {'role': 'assistant', 'content': 'Hello! How can I assist you today?'}, {'role': 'user', 'content': [ {'type': 'image_url', 'image_url': {'url': 'https://.../image.png'}} ]}, {'role': 'assistant', 'content': "It looks like you're looking at an image..."},]