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 moreSource§impl Debug for SearchConfig
impl Debug for SearchConfig
Source§impl Default for SearchConfig
impl Default for SearchConfig
Source§fn default() -> SearchConfig
fn default() -> SearchConfig
Source§impl<'de> Deserialize<'de> for SearchConfig
impl<'de> Deserialize<'de> for SearchConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SearchConfig
impl Serialize for SearchConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnsafeUnpin for SearchConfig
impl UnwindSafe for SearchConfig
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request