| 59 | } |
| 60 | |
| 61 | bool common_chat_msg_parser::add_tool_calls(const json & arr) { |
| 62 | for (const auto & item : arr) { |
| 63 | if (!add_tool_call(item)) { |
| 64 | return false; |
| 65 | } |
| 66 | } |
| 67 | return true; |
| 68 | } |
| 69 | void common_chat_msg_parser::finish() { |
| 70 | if (!is_partial_ && pos_ != input_.size()) { |
| 71 | throw std::runtime_error("Unexpected content at end of input");// + input_.substr(pos_)); |
no outgoing calls
no test coverage detected