Class AudioContent
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.AudioContent
- All Implemented Interfaces:
Content
MCP
audio content block (base64 data).
Joins the general-purpose Content dictionary alongside TextContent/ImageContent/
EmbeddedResourceContent — usable anywhere a Content is accepted, not only in sampling contexts.
Added specifically to give SamplingMessage.content/CreateMessageResult.content genuine
text/image/audio/resource fidelity to the real MCP sampling schema; usable
anywhere a Content is accepted, not only sampling contexts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Base64-encoded audio bytes.Audio MIME type (for exampleaudio/wav,audio/mpeg).Sets the base64 payload.setMimeType(String value) Sets the MIME type.
-
Constructor Details
-
AudioContent
public AudioContent()
-
-
Method Details
-
getData
Base64-encoded audio 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
Audio MIME type (for exampleaudio/wav,audio/mpeg).- 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).
-