Agents 1.4.0
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::ToolError Struct Reference

A ToolResult that represents a failure. More...

#include <tool.h>

Inheritance diagram for agents::ToolError:
agents::ToolResult

Public Member Functions

 ToolError (const JsonObject &error)
 Construct a new ToolError object.

Public Attributes

bool success
 Whether the tool execution was successful.
std::string content
 The content of the tool result.
JsonObject data
 The data of the tool result.

Detailed Description

A ToolResult that represents a failure.

Constructor & Destructor Documentation

◆ ToolError()

agents::ToolError::ToolError ( const JsonObject & error)
inline

Construct a new ToolError object.

Parameters
errorThe error data