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

Function agent_tool_calls_push

ds4_agent.c:1280–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278 agent_publish(w, heap, (size_t)n);
1279 free(heap);
1280}
1281
1282static bool worker_is_idle(agent_worker *w);
1283
1284static void agent_set_status(agent_worker *w, agent_worker_state state) {
1285 pthread_mutex_lock(&w->mu);
1286 w->status.state = state;
1287 if (state != AGENT_WORKER_PREFILL)
1288 w->status.prefill_tps = 0.0;
1289 if (state != AGENT_WORKER_GENERATING)
1290 w->status.greedy_sampling = false;
1291 agent_wake_locked(w);

Callers 1

agent_dsml_parseFunction · 0.85

Calls 1

xreallocFunction · 0.70

Tested by

no test coverage detected