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

Function thinking_live_remember

ds4_server.c:7984–7993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7982
7983 if (tool_before_close) {
7984 if (complete_tool) {
7985 st->emit_pos = (size_t)(tool - raw);
7986 st->mode = RESP_STREAM_SUPPRESS;
7987 }
7988 return true;
7989 }
7990
7991 if (close) {
7992 st->emit_pos = (size_t)(close - raw) + strlen("</think>");
7993 st->mode = RESP_STREAM_TEXT;
7994 st->reasoning_closed_naturally = true;
7995 } else if (final) {
7996 st->mode = RESP_STREAM_SUPPRESS;

Callers 1

Calls 3

ds4_session_posFunction · 0.85
xstrdupFunction · 0.70

Tested by

no test coverage detected