Boost C++ Libraries

PrevUpHomeNext

Struct tool_result

boost::taar::mcp::tool_result — A complete tools/call result: content items, optional structured content, error flag.

Synopsis

// In header: <boost/taar/mcp/content.hpp>


struct tool_result {

  // public member functions
  tool_result & add(content_item);

  // public data members
  std::vector< content_item > content;
  std::optional< boost::json::value > structured;
  bool is_error;
};

Description

tool_result public member functions

  1. tool_result & add(content_item item);

PrevUpHomeNext