(agent: Registration, model: string)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected