1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Message content types.
//!
//! The `ContentBlock` union + leaf content structs are canonically defined in
//! [`turbomcp_types`] as of v3.2. `ContentBlock` is a type alias over
//! [`turbomcp_types::Content`] so the two names refer to the same Rust type.
//!
//! # Content types
//!
//! - [`TextContent`], [`ImageContent`], [`AudioContent`] — inline content
//! - [`ResourceLink`] — reference to an external resource
//! - [`EmbeddedResource`] + [`ResourceContents`] (plural, `Text | Blob` union)
//! - `ResourceContent` — backward-compatibility alias for [`ResourceContents`]
//! - [`ContentType`] — `Json | Binary | Text` (turbomcp-internal; not MCP spec)
use ;
pub use ;
/// Backward-compatibility alias — canonical name is [`ResourceContents`].
pub type ResourceContent = ResourceContents;
/// 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.
pub type ContentBlock = Content;
/// Content type enumeration (turbomcp-internal transport discriminator; not part of the MCP spec).