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

Result object for sampling/createMessage. More...

#include <sampling.hpp>

Static Public Member Functions

static CreateMessageResult text (std::string role, std::string value, std::string model={})
 Creates a text-only sampling result for the given role and model.
 

Public Attributes

std::string role
 Role assigned to the generated message.
 
ContentBlock content
 First or only generated content kept for simple callers.
 
std::vector< SamplingMessageContentcontents
 Optional full generated content list. Empty means content is serialized.
 
std::string model
 Model identifier selected by the client.
 
std::string stop_reason
 Optional reason generation stopped.
 
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

Result object for sampling/createMessage.


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