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

Function worker_request_save

ds4_agent.c:7957–7963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7955
7956static void test_agent_glm_tool_parser_rejects_missing_value(void) {
7957 const char *text = "<tool_call>list<arg_key>path</arg_key></tool_call>";
7958 agent_dsml_parser p = {
7959 .syntax = AGENT_TOOL_SYNTAX_GLM,
7960 .state = AGENT_DSML_SEARCH,
7961 };
7962
7963 agent_dsml_feed(&p, text, strlen(text));
7964
7965 AGENT_TEST_ASSERT(p.state == AGENT_DSML_ERROR);
7966 AGENT_TEST_ASSERT(strstr(p.error, "expected <arg_value>") != NULL);

Callers 1

run_agentFunction · 0.85

Calls 1

agent_wake_lockedFunction · 0.85

Tested by

no test coverage detected