MCPcopy Create free account
hub / github.com/antirez/ds4 / generation_done

Function generation_done

ds4_cli.c:384–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 bool format_thinking;
383 bool in_think;
384 bool color_open;
385 bool use_color;
386 bool last_output_newline;
387 char pending[16];
388 size_t pending_len;
389} token_printer;
390
391static bool bytes_has_prefix(const char *p, size_t n, const char *prefix) {
392 size_t plen = strlen(prefix);
393 return n >= plen && memcmp(p, prefix, plen) == 0;
394}
395

Callers 2

run_sampled_generationFunction · 0.85
run_chat_turnFunction · 0.85

Calls 1

token_printer_finishFunction · 0.85

Tested by

no test coverage detected