| 24 | static bool starts_with_potential_bare_json_tool(const std::string & text, |
| 25 | const json & tools) { |
| 26 | if (!has_request_tools(tools)) return false; |
| 27 | size_t first = text.find_first_not_of(" \t\n\r"); |
| 28 | return first != std::string::npos && text[first] == '{'; |
| 29 | } |
| 30 | |
| 31 | static std::string gen_item_id() { |
no test coverage detected