NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
Loading...
Searching...
No Matches
neuralplus::ToolOutput Struct Reference

Normalized multimodal result from a tool. More...

#include <tool.hpp>

Static Public Member Functions

static ToolOutput text (std::string value)
 Creates a successful text result.
 
static ToolOutput json (JsonValue value)
 Creates a successful JSON result serialized as text content.
 
static ToolOutput error (std::string value)
 Creates an unsuccessful text result.
 

Public Attributes

std::vector< Contentcontents
 Text, media, file, or provider-extension parts returned by the tool.
 
bool is_error {false}
 Whether the result represents an application/tool failure.
 

Detailed Description

Normalized multimodal result from a tool.


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