Class ImageContent
java.lang.Object
org.apache.juneau.bean.mcp.v20250618.ImageContent
- All Implemented Interfaces:
Content
MCP
image content block (base64 data).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Base64-encoded image bytes.Image MIME type (for exampleimage/png).Sets the base64 payload.setMimeType(String value) Sets the MIME type.
-
Constructor Details
-
ImageContent
public ImageContent()
-
-
Method Details
-
getData
Base64-encoded image bytes.- Returns:
- The data, or
nullif not set.
-
setData
Sets the base64 payload.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getMimeType
Image MIME type (for exampleimage/png).- Returns:
- The MIME type, or
nullif not set.
-
setMimeType
Sets the MIME type.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-