|
cxxmcp 1.1.6
C++ MCP SDK
|
One sampling message content item. More...
#include <sampling.hpp>
Static Public Member Functions | |
| static SamplingMessageContent | text (std::string value) |
| Creates a text sampling content item. | |
| static SamplingMessageContent | from_content (ContentBlock value) |
| Wraps a regular content block. | |
| static SamplingMessageContent | tool_use_content (ToolUseContent value) |
| Creates an assistant tool-use content item. | |
| static SamplingMessageContent | tool_result_content (ToolResultContent value) |
| Creates a user tool-result content item. | |
Public Attributes | |
| ContentBlock | content = ContentBlock::text_content("") |
| Ordinary content block for text, image, audio, or extension content. | |
| std::optional< ToolUseContent > | tool_use |
| Assistant-only tool-use content. | |
| std::optional< ToolResultContent > | tool_result |
| User-only tool-result content. | |
One sampling message content item.
Text, image, and audio content reuse ContentBlock. SEP-1577 tool-use and tool-result items are modeled explicitly because their wire shape is not the same as ordinary tool-call results.