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

Function parse_reasoning_effort_value

ds4_server.c:818–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816 * prefix" request. The protocol gives tool outputs a call_id that binds
817 * them to a prior assistant tool call. If that call_id is still known in
818 * memory, the live KV is the authoritative prefix, including any hidden
819 * thinking that the client did not replay. These fields carry the parsed
820 * evidence needed by generate_job() to append only the new suffix.
821 *
822 * A tool-output-only request has no stateless prefix to match. If the live
823 * call_id binding is gone by the time the worker executes it, DS4 must ask
824 * for a full replay rather than cold-prefilling a prompt that starts with a
825 * naked tool result. Similarly, if live state is gone, a reasoning-mode
826 * tool replay must contain the prior reasoning item (or an equivalent
827 * opaque reasoning state from a future implementation). */
828 bool responses_requires_live_tool_state;
829 bool responses_requires_live_reasoning;

Callers 6

parse_chat_requestFunction · 0.85
parse_anthropic_requestFunction · 0.85
parse_completion_requestFunction · 0.85

Calls 4

json_wsFunction · 0.85
json_litFunction · 0.85
json_stringFunction · 0.85

Tested by 1