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

One rendered prompt message. More...

#include <prompt.hpp>

Static Public Member Functions

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

Public Attributes

std::string role
 Message role understood by the receiving model or peer.
 
ContentBlock content
 Message content block.
 
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

One rendered prompt message.


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