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

Function agent_tool_google_search

ds4_agent.c:6558–6572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6556 return false;
6557
6558 const char *match = NULL;
6559 bool unique = agent_find_unique(data, len, old, old_len, &match,
6560 "old prefix", err, sizeof(err));
6561 free(data);
6562 if (unique) {
6563 forcer->done = true;
6564 return true;
6565 }
6566 return false;
6567}
6568
6569static bool agent_edit_find_old_span(const char *data, size_t len,
6570 const char *old, bool allow_upto,
6571 const char **match,
6572 size_t *match_len, bool *anchored,
6573 char *err, size_t err_len) {
6574 static const char marker[] = "[upto]";
6575 size_t old_len = strlen(old);

Callers 1

agent_execute_tool_callFunction · 0.85

Calls 6

agent_tool_arg_valueFunction · 0.85
ds4_web_google_searchFunction · 0.85
agent_buf_putsFunction · 0.85
agent_buf_takeFunction · 0.85
xstrdupFunction · 0.70

Tested by

no test coverage detected