MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / build_tool_call

Function build_tool_call

common/chat-diff-analyzer.cpp:137–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135};
136
137static json build_tool_call(const std::string & name, const json & args, const std::string & id = CALL_ID_001) {
138 return json{
139 { "id", id },
140 { "type", "function" },
141 { "function", json{ { "name", name }, { "arguments", args } } }
142 };
143}
144
145static json first_tool_call_zero_args = build_tool_call(FUN_FIRST, json::object(), CALL_ID_001);
146static json first_tool_call_one_arg = build_tool_call(FUN_FIRST, {{ ARG_FIRST, "XXXX" }}, CALL_ID_001);

Callers 3

analyze_contentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected