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

Parameters for sampling/createMessage. More...

#include <sampling.hpp>

Public Attributes

std::vector< SamplingMessagemessages
 Conversation messages to sample from.
 
std::optional< ModelPreferencesmodel_preferences
 Optional model selection preferences.
 
std::optional< std::string > system_prompt
 Optional system prompt supplied outside the message array.
 
std::optional< std::string > include_context
 Optional instruction for whether client context should be included.
 
std::optional< double > temperature
 Optional sampling temperature. Explicit 0.0 is serialized.
 
int max_tokens = 0
 Maximum tokens the client may generate.
 
std::vector< std::string > stop_sequences
 Optional stop sequences.
 
Json metadata = Json::object()
 Optional metadata object carried through the sampling request.
 
std::optional< TaskRequestParameterstask
 Optional task request parameters for asynchronous sampling.
 
std::optional< Jsonmeta
 Optional _meta extension object preserved on the wire.
 
std::vector< ToolDefinitiontools
 Optional tools available to the sampled model.
 
std::optional< ToolChoicetool_choice
 Optional tool selection behavior.
 
Json extensions = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Detailed Description

Parameters for sampling/createMessage.


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