( harness: HarnessName, provider: ProviderName, grokOptions?: GrokHarnessOptions, )
| 157 | |
| 158 | /** Build the adapter for a harness run, including per-run Grok protocol options. */ |
| 159 | export function buildHarnessAdapter( |
| 160 | harness: HarnessName, |
| 161 | provider: ProviderName, |
| 162 | grokOptions?: GrokHarnessOptions, |
| 163 | ): AnyTextAdapter { |
| 164 | if (harness === 'grok') { |
| 165 | return grokBuildText(grokOptions?.model ?? 'composer-2.5', { |
| 166 | protocol: grokOptions?.protocol ?? 'acp', |
| 167 | transport: grokOptions?.transport ?? 'auto', |
| 168 | }) |
| 169 | } |
| 170 | return HARNESSES[harness].makeAdapter(provider) |
| 171 | } |
| 172 | |
| 173 | export interface ProviderSpec { |
| 174 | label: string |
no test coverage detected