|
cxxmcp 1.1.6
C++ MCP SDK
|
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< SamplingMessageContent > | contents |
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< Json > | meta |
Optional _meta extension object preserved on the wire. | |
| Json | extensions = Json::object() |
| Unknown JSON members preserved for forward-compatible round trips. | |
Result object for sampling/createMessage.