cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::protocol::SamplingMessage Struct Reference

Input message supplied to a sampling request. More...

#include <sampling.hpp>

Static Public Member Functions

static SamplingMessage text (std::string role, std::string value)
 Creates a text-only sampling message for the given role.
 

Public Attributes

std::string role
 Message role understood by the sampling client.
 
ContentBlock content
 First or only message content block kept for simple callers.
 
std::vector< SamplingMessageContentcontents
 Optional full content list. Empty means content is serialized.
 
std::optional< Jsonmeta
 Optional _meta extension object preserved on the wire.
 
Json extensions = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Detailed Description

Input message supplied to a sampling request.


The documentation for this struct was generated from the following file: