Entropic
2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
tool_call.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
12
#pragma once
13
14
#include <string>
15
#include <unordered_map>
16
#include <vector>
17
18
namespace
entropic
{
19
31
struct
ToolCall
{
32
std::string
id
;
33
std::string
name
;
34
std::unordered_map<std::string, std::string>
arguments
;
35
std::string
arguments_json
;
36
};
37
45
struct
ToolResult
{
46
std::string
call_id
;
47
std::string
name
;
48
std::string
result
;
49
bool
is_error
=
false
;
50
double
duration_ms
= 0.0;
51
};
52
53
}
// namespace entropic
entropic
Activate model on GPU (WARM → ACTIVE).
Definition
bundled_models.h:20
entropic::ToolCall
A tool call request parsed from model output.
Definition
tool_call.h:31
entropic::ToolCall::arguments
std::unordered_map< std::string, std::string > arguments
Tool arguments as string key-value pairs.
Definition
tool_call.h:34
entropic::ToolCall::id
std::string id
Unique call ID (UUID)
Definition
tool_call.h:32
entropic::ToolCall::arguments_json
std::string arguments_json
Original JSON string (for passthrough dispatch)
Definition
tool_call.h:35
entropic::ToolCall::name
std::string name
Tool name (e.g. "filesystem.read_file")
Definition
tool_call.h:33
entropic::ToolResult
Result of a tool execution.
Definition
tool_call.h:45
entropic::ToolResult::name
std::string name
Tool name.
Definition
tool_call.h:47
entropic::ToolResult::call_id
std::string call_id
Matching ToolCall ID.
Definition
tool_call.h:46
entropic::ToolResult::duration_ms
double duration_ms
Execution time in milliseconds.
Definition
tool_call.h:50
entropic::ToolResult::is_error
bool is_error
True if tool execution failed.
Definition
tool_call.h:49
entropic::ToolResult::result
std::string result
Result text.
Definition
tool_call.h:48
entropic
types
tool_call.h
Generated by
1.9.8