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

Function agent_buf_take

ds4_agent.c:3577–3582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3575 }
3576 } else if (sr->parser->state == AGENT_DSML_ERROR) {
3577 if (sr->dsml_ignored) {
3578 agent_stream_finish_ignored_dsml(
3579 sr, "malformed tool call inside <think></think>");
3580 } else {
3581 char status[220];
3582 snprintf(status, sizeof(status), "[invalid tool call: %s]\n",
3583 sr->parser->error[0] ? sr->parser->error : "parse error");
3584 agent_trace(sr->renderer->worker, "dsml error %s",
3585 sr->parser->error[0] ? sr->parser->error : "parse error");

Callers 15

agent_default_cache_dirFunction · 0.85
agent_kv_save_pathFunction · 0.85
agent_session_title_clipFunction · 0.85
agent_edit_resultFunction · 0.85
agent_read_rangeFunction · 0.85
agent_tool_writeFunction · 0.85
agent_tool_listFunction · 0.85
agent_apply_file_spliceFunction · 0.85
agent_tool_editFunction · 0.85

Calls 1

xstrdupFunction · 0.70

Tested by

no test coverage detected