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

Method add_tool_calls

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

Source from the content-addressed store, hash-verified

59}
60
61bool 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}
69void 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_));

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected