pub enum SearchProvider {
Show 13 variants
Bing,
DuckDuckGo,
Firecrawl,
Tavily,
Bocha,
Metaso,
Searxng,
Baidu,
Volcengine,
Sofya,
Serply,
DeepSeek,
SearchApi,
}Expand description
Search provider enumeration — selects the first backend web_search uses.
API-backed providers may visibly degrade through DuckDuckGo → Bing after
runtime failure or an empty result. Configuration and
network-policy errors fail closed without crossing providers.
Variants§
Bing
Bing HTML scraping. No API key needed.
DuckDuckGo
DuckDuckGo HTML scraping with Bing fallback. No API key needed.
Firecrawl
Firecrawl Search API. Works keyless on Firecrawl Cloud with a bounded
per-IP quota; [search] api_key or FIRECRAWL_API_KEY raises limits.
Tavily
Tavily AI Search API (https://tavily.com). Requires api_key.
Bocha
Bocha AI Search API (https://bochaai.com). Requires api_key.
Metaso
Metaso AI Search API (https://metaso.cn). Requires [search] api_key
or the METASO_API_KEY env var.
Searxng
SearXNG JSON search API. Requires a trusted/self-hosted base_url.
Baidu
Baidu AI Search API (https://qianfan.baidubce.com). Requires api_key.
Volcengine
Volcengine Ark web_search via Responses API. Requires api_key.
Free tier: 20K queries/month per API key. Falls back to
VOLCENGINE_API_KEY / VOLCENGINE_ARK_API_KEY / ARK_API_KEY
env vars when [search] api_key is not set.
Sofya
Sofya web search API (https://sofya.co). Requires api_key
(ay_live_...). Returns full extracted page content rather than
snippets; falls back to the SOFYA_API_KEY env var when
[search] api_key is not set.
Serply
Serply Google search API (https://serply.io). Requires api_key;
returns Google organic results with snippets. Falls back to the
SERPLY_API_KEY env var when [search] api_key is not set.
DeepSeek
DeepSeek Search API (https://api-docs.deepseek.com/guides/search). Requires api_key.
SearchApi
SearchApi Google SERP API (https://www.searchapi.io). Requires api_key;
returns Google organic results with snippets. Falls back to the
SEARCHAPI_API_KEY env var when [search] api_key is not set.
Implementations§
Trait Implementations§
Source§impl Clone for SearchProvider
impl Clone for SearchProvider
impl Copy for SearchProvider
Source§impl Debug for SearchProvider
impl Debug for SearchProvider
Source§impl Default for SearchProvider
impl Default for SearchProvider
Source§impl<'de> Deserialize<'de> for SearchProvider
impl<'de> Deserialize<'de> for SearchProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SearchProvider
Source§impl PartialEq for SearchProvider
impl PartialEq for SearchProvider
Source§impl Serialize for SearchProvider
impl Serialize for SearchProvider
impl StructuralPartialEq for SearchProvider
Auto Trait Implementations§
impl Forget for SearchProvider
impl Freeze for SearchProvider
impl Move for SearchProvider
impl RefUnwindSafe for SearchProvider
impl Send for SearchProvider
impl Sync for SearchProvider
impl Unpin for SearchProvider
impl UnsafeUnpin for SearchProvider
impl UnwindSafe for SearchProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.