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

Function xrealloc

ds4_agent.c:365–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365static int agent_worker_effective_ctx_size(const agent_worker *w) {
366 int ctx = 0;
367 if (w && w->session) ctx = ds4_session_ctx(w->session);
368 if (ctx <= 0 && w && w->cfg) ctx = w->cfg->gen.ctx_size;
369 return ctx;
370}
371
372/* ============================================================================
373 * Small Utilities And Command-Line Parsing
374 * ============================================================================
375 */

Callers 14

agent_input_buf_appendFunction · 0.70
agent_tool_call_add_argFunction · 0.70
agent_tool_calls_pushFunction · 0.70
agent_dsml_raw_appendFunction · 0.70
agent_buf_appendFunction · 0.70
agent_history_ptrs_pushFunction · 0.70
agent_session_list_pushFunction · 0.70
agent_line_spans_pushFunction · 0.70
agent_read_file_bytesFunction · 0.70
agent_tool_searchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected