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

Tool selection behavior supplied to sampling/createMessage. More...

#include <sampling.hpp>

Static Public Member Functions

static ToolChoice auto_choice ()
 Lets the model decide whether to use tools.
 
static ToolChoice required ()
 Requires the model to use a tool.
 
static ToolChoice none ()
 Prevents model tool use.
 

Public Attributes

std::optional< ToolChoiceModemode
 Optional selection mode. Missing preserves an empty object if present.
 
Json extensions = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Detailed Description

Tool selection behavior supplied to sampling/createMessage.


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