Interface McpContentBlock
- All Known Implementing Classes:
McpAudioContent, McpEmbeddedResource, McpImageContent, McpResourceLink, McpTextContent
@ThreadSafe
public sealed interface McpContentBlock
permits McpAudioContent, McpEmbeddedResource, McpImageContent, McpResourceLink, McpTextContent
Immutable content block carried by an MCP tool result or prompt message.
This type may gain reviewed permitted subtypes in Soklet 4.x; use a forward-compatible default when switching over its values.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionReturns optional presentation annotations for this content block.Returns protocol extension metadata associated with this content block.
-
Method Details
-
getAnnotations
Returns optional presentation annotations for this content block.- Returns:
- content annotations, if supplied
-
getMetadata
Returns protocol extension metadata associated with this content block.- Returns:
- immutable extension metadata
-