Package dev.tachyonmcp.api.server.domain
Interface ImageContent.Builder
- Enclosing interface:
ImageContent
public static interface ImageContent.Builder
Builder for
ImageContent.-
Method Summary
Modifier and TypeMethodDescriptionannotations(@Nullable Annotations annotations) Sets the annotations.build()Builds theImageContentinstance.Sets the base64-encoded image data.Sets the metadata entries.Sets the MIME type of the image content.
-
Method Details
-
data
Sets the base64-encoded image data.- Parameters:
data- the image data- Returns:
- this builder
-
mimeType
Sets the MIME type of the image content.- Parameters:
mimeType- the image MIME type- Returns:
- this builder
-
annotations
Sets the annotations.- Parameters:
annotations- the annotations, ornull- Returns:
- this builder
-
meta
Sets the metadata entries.- Parameters:
entries- the metadata map, ornull- Returns:
- this builder
-
build
ImageContent build()Builds theImageContentinstance.- Returns:
- a new image content
-