Helper module used to define the ContentBlock structure.
(MCP protocol: 2025-11-25)
ContentBlock is a union type. Build one of the specific content
modules to use it as a ContentBlock.
About specification
Specification: ContentBlock
ContentBlock:
| TextContent
| ImageContent
| AudioContent
| ResourceLink
| EmbeddedResource
Summary
Types
@type t() :: %OzMcp.Structs.TextContent{_meta: term(), annotations: term(), text: term()} | %OzMcp.Structs.ImageContent{ _meta: term(), annotations: term(), data: term(), mimeType: term() } | %OzMcp.Structs.AudioContent{ _meta: term(), annotations: term(), data: term(), mimeType: term() } | %OzMcp.Structs.ResourceLink{ _meta: term(), annotations: term(), description: term(), icons: term(), mimeType: term(), name: term(), size: term(), title: term(), uri: term() } | %OzMcp.Structs.EmbeddedResource{ _meta: term(), annotations: term(), resource: term() } | map()