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

Function tool_memory_init_locked

ds4_server.c:7775–7780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7773 if (item->is_custom || responses_tool_call_is_tool_search(tc, order)) return true;
7774 buf args = {0};
7775 append_json_object_string(&args, tc->arguments);
7776 buf b = {0};
7777 buf_printf(&b,
7778 "{\"type\":\"response.function_call_arguments.delta\","
7779 "\"item_id\":\"%s\",\"output_index\":%d,\"delta\":",
7780 item->fc_id, item->output_index);
7781 buf_append(&b, args.ptr ? args.ptr : "\"\"", args.ptr ? args.len : 2);
7782 buf_putc(&b, '}');
7783 bool ok = responses_sse_emit_event(fd, st, b.ptr);

Callers 1

tool_memory_put_lockedFunction · 0.85

Calls 2

raxNewFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected