class

Smith::Web::SearchProvider

Inherits Reference < Object

An adapter interface for the same reason LLM::Provider is one: no binding to a single vendor, and the specs can parse a captured response without touching the network.

Deliberately no scraping of Google/Bing/DDG HTML — it breaks their terms and breaks again at every layout change.

Class methods

build(kind : String, searxng_host : String | Nil = nil) : SearchProvider | Nil

nil when searching is switched off or unconfigured, so the tool simply is not registered.

Source

Instance methods

name
Source
search(query : String, limit : Int32) : Array(SearchResult)
Source

Nested types