Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::ToolResult Struct Reference

Result of a tool execution. More...

#include <entropic/types/tool_call.h>

Public Attributes

std::string call_id
 Matching ToolCall ID.
 
std::string name
 Tool name.
 
std::string result
 Result text.
 
bool is_error = false
 True if tool execution failed.
 
double duration_ms = 0.0
 Execution time in milliseconds.
 

Detailed Description

Result of a tool execution.

Maps to Python ToolResult dataclass.

Version
1.8.2

Definition at line 45 of file tool_call.h.

Member Data Documentation

◆ call_id

std::string entropic::ToolResult::call_id

Matching ToolCall ID.

Definition at line 46 of file tool_call.h.

◆ duration_ms

double entropic::ToolResult::duration_ms = 0.0

Execution time in milliseconds.

Definition at line 50 of file tool_call.h.

◆ is_error

bool entropic::ToolResult::is_error = false

True if tool execution failed.

Definition at line 49 of file tool_call.h.

◆ name

std::string entropic::ToolResult::name

Tool name.

Definition at line 47 of file tool_call.h.

◆ result

std::string entropic::ToolResult::result

Result text.

Definition at line 48 of file tool_call.h.


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