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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Super-interface for builders which can include data in a _meta field.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the contents of _meta.
  • Method Details

    • metadata

      Map<String,Object> metadata()
      Gets the contents of _meta.
      Returns:
      _meta as a Map