pub struct SearchConfig {
pub enabled: bool,
pub backend: String,
pub api_key_vault_key: String,
pub endpoint: String,
pub max_results: usize,
pub timeout: u64,
}Expand description
Configuration for the native query-based web_search tool ([tools.search]).
Runtime-gated, not cargo-feature-gated: the tool compiles unconditionally but is only
advertised to the LLM when enabled is true AND a backend resolves (see
zeph_tools::search::SearchBackend::from_config). Disabled by default. The API key is
resolved exclusively from the age vault under api_key_vault_key — never from an
environment variable or a literal in this struct. See
specs/006-tools/006-1-web-search.md.
Fields§
§enabled: boolRuntime gate. When false, web_search is never advertised to the LLM. Default: false.
backend: StringSearchBackend variant selector (zeph-tools). Default: "brave".
api_key_vault_key: StringAge-vault key name the API key is resolved from. Never an environment variable.
Default: "ZEPH_WEB_SEARCH_API_KEY".
endpoint: StringSearch API endpoint. Override for a self-hosted/proxy/alternate backend. Default: the Brave Search API endpoint.
max_results: usizeCap on returned results. Default: 10.
timeout: u64Request timeout in seconds. Default: 15.
Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§fn clone(&self) -> SearchConfig
fn clone(&self) -> SearchConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more