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

Function res

scripts/agent-eval/parse-run.mjs:970–972  ·  view source on GitHub ↗
(id, chars)

Source from the content-addressed store, hash-verified

968 }));
969 const use = (id, name, input = {}) => ({ type: 'tool_use', id, name, input });
970 const res = (id, chars) => JSON.stringify({
971 type: 'user', message: { content: [{ type: 'tool_result', tool_use_id: id, content: [{ type: 'text', text: 'x'.repeat(chars) }] }] },
972 });
973 const done = () => JSON.stringify({ type: 'result', subtype: 'success', duration_ms: 1000, total_cost_usd: 0.1, usage: {} });
974 const write = (name, lines) => { const f = join(dir, name); writeFileSync(f, lines.join('\n') + '\n'); return f; };
975

Callers 5

selftestFunction · 0.85
oneShotFunction · 0.85
requestFunction · 0.85
askJudgeFunction · 0.85
runOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected