MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / get

Function get

src/agents/index.ts:75–79  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

73 }
74
75 export function get(name: string): Registration {
76 const agent = agents[name];
77 if (!agent) throw new Error(`Agent ${name} was not found.`);
78 return agent;
79 }
80
81 export function validateModel(agent: Registration, model: string) {
82 if (!agent.models.find((entry) => entry === model))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected