Package org.mcpjava.server
Interface MetaCarrier
- All Known Subinterfaces:
AudioContent,BlobResourceContents,CompletionResult,ContentBlock,EmbeddedResource,ImageContent,McpRequest,ProgressNotification,PromptResponse,ResourceContents,ResourceLink,ResourceResponse,TextContent,TextResourceContents,ToolResponse
public interface MetaCarrier
Super-interface for API types which include data in a
_meta field.
Many objects in the model context protocol allow additional data to be sent in the _meta
field and this interface allows that data to be read.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMetaCarrier.Builder<THIS extends MetaCarrier.Builder<THIS>>Super-interface for builders which can include data in a_metafield. -
Method Summary
-
Method Details
-
metadata
Gets the contents of_meta.- Returns:
_metaas aMap
-