| 135 | }; |
| 136 | |
| 137 | static 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 | |
| 145 | static json first_tool_call_zero_args = build_tool_call(FUN_FIRST, json::object(), CALL_ID_001); |
| 146 | static json first_tool_call_one_arg = build_tool_call(FUN_FIRST, {{ ARG_FIRST, "XXXX" }}, CALL_ID_001); |
no outgoing calls
no test coverage detected