Skip to main content

SamplingMessageContent

Type Alias SamplingMessageContent 

Source
pub type SamplingMessageContent = SamplingMessageContentBlock;
๐Ÿ‘ŽDeprecated since 2.0.0:

Renamed to SamplingMessageContentBlock

Aliased Typeยง

pub enum SamplingMessageContent {
    Text(TextContent),
    Image(ImageContent),
    Audio(AudioContent),
    ToolUse(ToolUseContent),
    ToolResult(ToolResultContent),
}

Variantsยง

ยง

Text(TextContent)

๐Ÿ‘ŽDeprecated since 2.0.0:

Sampling is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577

ยง

Image(ImageContent)

๐Ÿ‘ŽDeprecated since 2.0.0:

Sampling is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577

ยง

Audio(AudioContent)

๐Ÿ‘ŽDeprecated since 2.0.0:

Sampling is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577

ยง

ToolUse(ToolUseContent)

๐Ÿ‘ŽDeprecated since 2.0.0:

Sampling is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577

Assistant only

ยง

ToolResult(ToolResultContent)

๐Ÿ‘ŽDeprecated since 2.0.0:

Sampling is deprecated by SEP-2577 and will be removed in a future release. See https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577

User only