MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / consume_rest

Method consume_rest

subprojects/llama.cpp/common/chat-parser.cpp:433–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433std::string common_chat_msg_parser::consume_rest() {
434 auto rest = input_.substr(pos_);
435 pos_ = input_.size();
436 return rest;
437}
438
439// Tries to find the regex, consumes it (pos right after it) and gives the prelude (right before it) and the groups to the callback.
440std::optional<common_chat_msg_parser::find_regex_result> common_chat_msg_parser::try_find_regex(const common_regex & regex, size_t from, bool add_prelude_to_content) {

Callers 15

test_reasoningFunction · 0.80
test_regexFunction · 0.80
test_positionsFunction · 0.80
parse_xml_tool_callsFunction · 0.80
parse_json_tool_callsFunction · 0.80

Calls 1

sizeMethod · 0.65

Tested by 4

test_reasoningFunction · 0.64
test_regexFunction · 0.64
test_positionsFunction · 0.64