| 11 | |
| 12 | namespace { |
| 13 | std::string trim_gemma4e_tool_value(std::string value) { |
| 14 | size_t start = value.find_first_not_of(" \t\r\n"); |
| 15 | if (start == std::string::npos) { |
| 16 | return ""; |
| 17 | } |
| 18 | |
| 19 | size_t end = value.find_last_not_of(" \t\r\n"); |
| 20 | return value.substr(start, end - start + 1); |
| 21 | } |
| 22 | |
| 23 | // --- Gemma4e tool-args parser ------------------------------------------------- |
| 24 | // The model emits relaxed JSON for tool arguments: |
no outgoing calls
no test coverage detected