| 255 | } |
| 256 | |
| 257 | ToolCall 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 | |
| 264 | std::string generate_tool_call_id() { |
| 265 | // Generate a unique ID for tool calls |
nothing calls this directly
no test coverage detected