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

Function agent_tool_arg_value

ds4_agent.c:1290–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288static const char agent_vision_tool_schema[] =
1289 "{\"name\":\"view_image\",\"description\":\"Open a local PNG or JPEG as a visual observation.\",\"parameters\":{\"type\":\"object\",\"properties\":{\"path\":{\"type\":\"string\"}},\"required\":[\"path\"]}}";
1290
1291static char *agent_build_dsml_tools_prompt(bool edit_upto, bool vision) {
1292 const char *edit = edit_upto ? agent_tools_prompt_edit_upto
1293 : agent_tools_prompt_edit_exact;
1294 size_t a = strlen(agent_tools_prompt_intro);
1295 size_t b = strlen(edit);
1296 size_t c = strlen(agent_tools_prompt_after_edit);
1297 const char *vision_start = "\n{\"type\":\"function\",\"function\":";
1298 size_t v = vision ? strlen(vision_start) + strlen(agent_vision_tool_schema) + 2 : 0;
1299 char *out = xmalloc(a + b + c + v + 1);

Callers 13

agent_tool_readFunction · 0.85
agent_tool_moreFunction · 0.85
agent_tool_writeFunction · 0.85
agent_tool_listFunction · 0.85
agent_preflight_edit_oldFunction · 0.85
agent_tool_editFunction · 0.85
agent_tool_searchFunction · 0.85
agent_tool_google_searchFunction · 0.85
agent_tool_visit_pageFunction · 0.85
agent_tool_job_idFunction · 0.85
agent_tool_pidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected