| 247 | } |
| 248 | |
| 249 | common_chat_msg_parser::consume_json_result common_chat_msg_parser::consume_json_with_dumped_args( |
| 250 | const std::vector<std::vector<std::string>> & args_paths, |
| 251 | const std::vector<std::vector<std::string>> & content_paths |
| 252 | ) { |
| 253 | if (auto result = try_consume_json_with_dumped_args(args_paths, content_paths)) { |
| 254 | return *result; |
| 255 | } |
| 256 | throw common_chat_msg_partial_exception("JSON"); |
| 257 | } |
| 258 | |
| 259 | std::optional<common_chat_msg_parser::consume_json_result> common_chat_msg_parser::try_consume_json_with_dumped_args( |
| 260 | const std::vector<std::vector<std::string>> & args_paths, |
no test coverage detected