ImageBytesSource#
Choose message roles and distinguish model input from stored history. See the guide.
- class zett_agent.messages.ImageBytesSource(data, media_type)[source]#
In-memory encoded image bytes and their MIME type.
- Parameters:
data (bytes)
media_type (str)
- data: bytes#
Encoded image file bytes, not decoded pixels or base64 text.
- media_type: str#
Image MIME type, such as image/png or image/jpeg.