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

Function agent_prompt_queue_push_front

ds4_agent.c:8460–8468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8458 return 1;
8459 }
8460 for (int i = 0; i < tokens.len && *generated < max_tokens; i++) {
8461 if (worker_accept_generated_token(w, tokens.v[i], generated, t0,
8462 stream, err, err_len) != 0) {
8463 ds4_tokens_free(&tokens);
8464 return 1;
8465 }
8466 }
8467 ds4_tokens_free(&tokens);
8468 return 0;
8469}
8470
8471/* ============================================================================

Callers 2

run_agentFunction · 0.85

Calls 1

xreallocFunction · 0.70

Tested by

no test coverage detected