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

Function validateModel

src/agents/index.ts:81–86  ·  view source on GitHub ↗
(agent: Registration, model: string)

Source from the content-addressed store, hash-verified

79 }
80
81 export function validateModel(agent: Registration, model: string) {
82 if (!agent.models.find((entry) => entry === model))
83 throw new Error(
84 `Model ${model} is not registered for agent ${agent.name}.`,
85 );
86 }
87
88 export function list() {
89 return Object.values(agents);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected