ImagePart
An image content part. The source may be a URL or base64-encoded data.
Class Diagram
Section titled “Class Diagram”---
title: ImagePart
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ContentPart {
<<abstract>>
+string kind
}
ContentPart <|-- ImagePart
class ImagePart {
+string kind
+string source
+string detail
+string mediaType
}
Yaml Example
Section titled “Yaml Example”source: https://example.com/image.pngdetail: automediaType: image/pngProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for image content |
| source | string | URL or base64-encoded image data |
| detail | string | Detail level hint for the model (e.g., ‘auto’, ‘low’, ‘high’) |
| mediaType | string | MIME type of the image (e.g., ‘image/png’) |