MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / find_first_seq

Function find_first_seq

server/src/server/prefix_cache.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 auto end_usr = tok.encode("</user>");
69 auto start_ast = tok.encode("<assistant>");
70 auto end_ast = tok.encode("</assistant>");
71 if (!start_sys.empty() && !end_sys.empty() && !start_usr.empty() &&
72 !end_usr.empty() && !start_ast.empty() && !end_ast.empty()) {
73 out.family = "laguna";
74 out.sys_role_prefix = start_sys;
75 out.end_msg_seqs = {end_sys, end_usr, end_ast};
76 out.next_role_starts = {start_usr, start_ast, start_sys};
77 return true;
78 }
79
80 return false;
81}

Callers 2

find_first_seq_anyFunction · 0.85
find_all_boundariesFunction · 0.85

Calls 3

seq_atFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected