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

Method with_token_callback

server/src/common/daemon_loop.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53DaemonIO DaemonIO::with_token_callback(const TokenCallback & cb) const {
54 DaemonIO out = *this;
55 if (!cb) return out;
56 TokenCallback existing = out.on_token;
57 out.on_token = [existing, cb](int32_t tok) -> bool {
58 if (existing && !existing(tok)) return false;
59 return cb(tok);
60 };
61 return out;
62}
63
64// Default typed compress: delegates to handle_compress via temp file + DaemonIO collector.
65ModelBackend::CompressResult ModelBackend::compress(const CompressRequest & req) {

Callers 13

generate_implMethod · 0.80
generate_implMethod · 0.80
run_from_stateMethod · 0.80
decode_dflashMethod · 0.80
generate_implMethod · 0.80
generate_implMethod · 0.80
generate_hybridMethod · 0.80
generate_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected