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
18namespace entropic {
19
31struct 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
45struct 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
Activate model on GPU (WARM → ACTIVE).
A tool call request parsed from model output.
Definition tool_call.h:31
std::unordered_map< std::string, std::string > arguments
Tool arguments as string key-value pairs.
Definition tool_call.h:34
std::string id
Unique call ID (UUID)
Definition tool_call.h:32
std::string arguments_json
Original JSON string (for passthrough dispatch)
Definition tool_call.h:35
std::string name
Tool name (e.g. "filesystem.read_file")
Definition tool_call.h:33
Result of a tool execution.
Definition tool_call.h:45
std::string name
Tool name.
Definition tool_call.h:47
std::string call_id
Matching ToolCall ID.
Definition tool_call.h:46
double duration_ms
Execution time in milliseconds.
Definition tool_call.h:50
bool is_error
True if tool execution failed.
Definition tool_call.h:49
std::string result
Result text.
Definition tool_call.h:48