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
257ToolCall create_tool_call(const std::string& tool_name,
258 const JsonValue& arguments,
259 const std::string& call_id) {
260 std::string id = call_id.empty() ? generate_tool_call_id() : call_id;
261 return ToolCall(id, tool_name, arguments);
262}
263
264std::string generate_tool_call_id() {
265 // Generate a unique ID for tool calls

Callers

nothing calls this directly

Calls 2

generate_tool_call_idFunction · 0.85
ToolCallClass · 0.85

Tested by

no test coverage detected