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

Function tool_memory_put_source

ds4_server.c:8114–8121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8112 } else {
8113 st->mode = OPENAI_STREAM_SUPPRESS;
8114 }
8115 } else if (final) {
8116 st->mode = OPENAI_STREAM_SUPPRESS;
8117 }
8118 }
8119
8120 if (st->mode == OPENAI_STREAM_TOOL) {
8121 if (!openai_tool_stream_update(fd, s, r, id, &st->tool, raw, raw_len)) return false;
8122 if (!st->tool.active) st->mode = OPENAI_STREAM_SUPPRESS;
8123 }
8124 return true;

Callers 2

tool_memory_putFunction · 0.85

Calls 1

tool_memory_put_lockedFunction · 0.85

Tested by

no test coverage detected