MCPcopy Create free account
hub / github.com/anomalyco/opencode / webSearchProviderLabel

Function webSearchProviderLabel

packages/tui/src/util/tool-display.ts:1–5  ·  view source on GitHub ↗
(provider: unknown)

Source from the content-addressed store, hash-verified

1export function webSearchProviderLabel(provider: unknown) {
2 if (provider === "parallel") return "Parallel Web Search"
3 if (provider === "exa") return "Exa Web Search"
4 return "Web Search"
5}
6
7export function toolDisplayMetadata(state: unknown): Record<string, unknown> {
8 if (!state || typeof state !== "object" || Array.isArray(state)) return {}

Callers 3

infoFunction · 0.90
WebSearchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected