| 241 | }; |
| 242 | |
| 243 | static void test(const std::string & input, bool is_partial, const std::vector<std::vector<std::string>> & args_paths, const std::vector<std::vector<std::string>> & content_paths, const std::string & expected) { |
| 244 | common_chat_msg_parser builder(input, is_partial, {}); |
| 245 | auto js = builder.try_consume_json_with_dumped_args(args_paths, content_paths); |
| 246 | assert_equals(true, js.has_value()); |
| 247 | assert_equals(is_partial, js->is_partial); |
| 248 | assert_equals(expected, args_paths.size() == 1 && args_paths[0].empty() ? js->value.get<std::string>() : js->value.dump()); |
| 249 | } |
| 250 | |
| 251 | static void test_deepseek_v3_1_tool_calls() { |
| 252 | //common_log_set_verbosity_thold(LOG_DEFAULT_DEBUG); |
no test coverage detected