|
NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
|
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< Content > | contents |
| Text, media, file, or provider-extension parts returned by the tool. | |
| bool | is_error {false} |
| Whether the result represents an application/tool failure. | |
Normalized multimodal result from a tool.