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

Function tool_memory_release_block_locked

ds4_server.c:7845–7856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7843 "\"item\":{\"id\":\"%s\",\"type\":\"reasoning\",\"status\":\"%s\",\"summary\":[",
7844 st->reasoning_index, st->reasoning_id, item_status);
7845 if (st->reasoning_text.len) {
7846 buf_puts(&b, "{\"type\":\"summary_text\",\"text\":");
7847 json_escape_n(&b, st->reasoning_text.ptr, st->reasoning_text.len);
7848 buf_putc(&b, '}');
7849 }
7850 buf_puts(&b, "]}}");
7851 ok = responses_sse_emit_event(fd, st, b.ptr);
7852 buf_free(&b);
7853 return ok;
7854}
7855
7856static bool responses_sse_message_added(int fd, responses_stream *st) {
7857 buf b = {0};
7858 buf_printf(&b,
7859 "{\"type\":\"response.output_item.added\",\"output_index\":%d,"

Callers 2

tool_memory_put_lockedFunction · 0.85

Calls 1

raxRemoveFunction · 0.85

Tested by

no test coverage detected