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

Function agent_set_status

ds4_agent.c:1118–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116 return out;
1117}
1118
1119static char *agent_build_tools_prompt(ds4_engine *engine, bool edit_upto) {
1120 if (agent_tool_syntax_for_engine(engine) == AGENT_TOOL_SYNTAX_GLM)
1121 return agent_build_glm_tools_prompt(edit_upto);
1122 return agent_build_dsml_tools_prompt(edit_upto);
1123}
1124
1125static const char agent_dsml_syntax_reminder[] =
1126 "DSML syntax reminder:\n"
1127 "<|DSML|tool_calls>\n"
1128 "<|DSML|invoke name=\"$TOOL_NAME\">\n"
1129 "<|DSML|parameter name=\"$PARAMETER_NAME\" string=\"true|false\">$PARAMETER_VALUE</|DSML|parameter>\n"
1130 "</|DSML|invoke>\n"

Callers 4

worker_run_turnFunction · 0.85
worker_run_deferred_saveFunction · 0.85
worker_mainFunction · 0.85

Calls 1

agent_wake_lockedFunction · 0.85

Tested by

no test coverage detected