MCPcopy
hub / github.com/anomalyco/opencode / webSearchEnabled

Function webSearchEnabled

packages/opencode/src/tool/registry.ts:55–57  ·  view source on GitHub ↗
(providerID: ProviderV2.ID, flags = { exa: false, parallel: false })

Source from the content-addressed store, hash-verified

53import { ModelV2 } from "@opencode-ai/core/model"
54
55export function webSearchEnabled(providerID: ProviderV2.ID, flags = { exa: false, parallel: false }) {
56 return providerID === ProviderV2.ID.opencode || flags.exa || flags.parallel
57}
58
59type TaskDef = Tool.InferDef<typeof TaskTool>
60type ReadDef = Tool.InferDef<typeof ReadTool>

Callers 2

websearch.test.tsFile · 0.90
registry.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected