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

Completion candidates returned by the server. More...

#include <completion.hpp>

Public Member Functions

bool has_more_results () const noexcept
 Convenience predicate treating a missing signal as false.
 

Public Attributes

std::vector< std::string > values
 Candidate values.
 
std::optional< int > total
 Optional total number of matches known to the server.
 
std::optional< bool > has_more
 Optional pagination signal.
 
Json extensions = Json::object()
 Unknown JSON members preserved for forward-compatible round trips.
 

Static Public Attributes

static constexpr std::size_t kMaxValues = 100
 Maximum number of completion values allowed by the MCP model.
 

Detailed Description

Completion candidates returned by the server.

Member Data Documentation

◆ has_more

std::optional<bool> mcp::protocol::CompletionResult::has_more

Optional pagination signal.

Missing means the peer did not state whether more matches exist; explicit false is preserved on the wire.


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