(...items: Array<() => ModelKey | undefined>)
| 99 | } |
| 100 | |
| 101 | const firstModel = (...items: Array<() => ModelKey | undefined>) => { |
| 102 | for (const item of items) { |
| 103 | const model = item() |
| 104 | if (!model) continue |
| 105 | if (validModel(model)) return model |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | const pickAgent = (name: string | undefined) => { |
| 110 | const items = list() |
no test coverage detected