pub type ContentBlock = Content;Expand description
Spec-aligned alias for the ContentBlock union per MCP 2025-11-25.
Canonical Rust name in turbomcp_types is Content; this alias
surfaces the spec name. Both refer to the same type.
Aliased Type§
pub enum ContentBlock {
Text(TextContent),
Image(ImageContent),
Audio(AudioContent),
ResourceLink(ResourceLink),
Resource(EmbeddedResource),
}Variants§
Text(TextContent)
Text content
Image(ImageContent)
Image content (base64 encoded)
Audio(AudioContent)
Audio content (base64 encoded)
ResourceLink(ResourceLink)
Resource link (reference to a resource without embedding)
Resource(EmbeddedResource)
Embedded resource content