ImageBytesSource#

Choose message roles and distinguish model input from stored history. See the guide.

class zett_agent.messages.ImageBytesSource(data, media_type)[源代码]#

In-memory encoded image bytes and their MIME type.

参数:
  • 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.