MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / familyOf

Function familyOf

scripts/agent-eval/parse-run.mjs:67–73  ·  view source on GitHub ↗

Which tool family a tool_use belongs to.

(name)

Source from the content-addressed store, hash-verified

65
66/** Which tool family a tool_use belongs to. */
67function familyOf(name) {
68 if (/codegraph/.test(name)) return 'codegraph';
69 if (name === 'Read' || name === 'NotebookRead') return 'read';
70 if (name === 'Grep' || name === 'Glob') return 'search';
71 if (name === 'Bash' || name === 'BashOutput') return 'bash';
72 return 'other';
73}
74const FAMILIES = ['codegraph', 'read', 'search', 'bash', 'other'];
75// The without-arm's way of getting the same bytes: reading and searching files.
76const FILE_ACCESS = ['read', 'search', 'bash'];

Callers 1

parseSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected