(name: string)
| 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)) |
nothing calls this directly
no outgoing calls
no test coverage detected