()
| 166 | return summary ? `Searching for ${summary}` : 'Searching the web' |
| 167 | }, |
| 168 | isEnabled() { |
| 169 | const provider = getAPIProvider() |
| 170 | const model = getMainLoopModel() |
| 171 | |
| 172 | // Enable for firstParty |
| 173 | if (provider === 'firstParty') { |
| 174 | return true |
| 175 | } |
| 176 | |
| 177 | // Enable for Vertex AI with supported models (Claude 4.0+) |
| 178 | if (provider === 'vertex') { |
| 179 | const supportsWebSearch = |
| 180 | model.includes('claude-opus-4') || |
| 181 | model.includes('claude-sonnet-4') || |
| 182 | model.includes('claude-haiku-4') |
| 183 | |
| 184 | return supportsWebSearch |
| 185 | } |
| 186 | |
| 187 | // Foundry only ships models that already support Web Search |
| 188 | if (provider === 'foundry') { |
| 189 | return true |
| 190 | } |
| 191 | |
| 192 | return false |
| 193 | }, |
| 194 | get inputSchema(): InputSchema { |
| 195 | return inputSchema() |
| 196 | }, |
nothing calls this directly
no test coverage detected