MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / create_tool_call

Function create_tool_call

src/tools/tool_executor.cpp:257–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256 return tools;
257}
258
259ToolCall create_tool_call(const std::string& tool_name,
260 const JsonValue& arguments,
261 const std::string& call_id) {
262 std::string id = call_id.empty() ? generate_tool_call_id() : call_id;
263 return ToolCall(id, tool_name, arguments);
264}
265

Callers

nothing calls this directly

Calls 2

generate_tool_call_idFunction · 0.85
ToolCallClass · 0.85

Tested by

no test coverage detected