MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / consume_json_with_dumped_args

Method consume_json_with_dumped_args

smallthinker/common/chat-parser.cpp:249–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249common_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
259std::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,

Tested by

no test coverage detected