MCPcopy Create free account
hub / github.com/diillson/chatcli / SelectSearchChainNames

Function SelectSearchChainNames

cli/plugins/builtin_websearch.go:266–273  ·  view source on GitHub ↗

SelectSearchChainNames returns just the provider names in chain order. Exposed for display layers (e.g. /websearch status) that shouldn't touch the internal provider-entry struct.

()

Source from the content-addressed store, hash-verified

264// Exposed for display layers (e.g. /websearch status) that shouldn't touch
265// the internal provider-entry struct.
266func SelectSearchChainNames() []SearchProvider {
267 chain := SelectSearchChain()
268 out := make([]SearchProvider, 0, len(chain))
269 for _, p := range chain {
270 out = append(out, p.name)
271 }
272 return out
273}
274
275// selectSearchChainFromEnv is the pure-logic core, unit-testable without
276// touching process environment state.

Callers 3

showWebSearchStatusMethod · 0.92
showConfigPanoramaMethod · 0.92

Calls 1

SelectSearchChainFunction · 0.85

Tested by

no test coverage detected