| 224 | return add_tool_call(name, "", arguments); |
| 225 | } |
| 226 | void common_chat_msg_parser::finish() { |
| 227 | if (!is_partial_ && pos_ != input_.size()) { |
| 228 | throw std::runtime_error("Unexpected content at end of input");// + input_.substr(pos_)); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | bool common_chat_msg_parser::consume_spaces() { |
| 233 | const auto length = input_.size(); |