pub struct ResearchConfig {
pub provider: ResearchProvider,
pub depth: ResearchDepth,
pub max_sources: u32,
pub include_images: bool,
pub async_mode: bool,
}Expand description
Options for configuring a web research request
Fields§
§provider: ResearchProviderThe search provider to use
depth: ResearchDepthThe depth of the search
max_sources: u32Maximum number of sources to include
include_images: boolWhether to include images in the results
async_mode: boolProcess the request asynchronously
Implementations§
Source§impl ResearchConfig
impl ResearchConfig
Sourcepub fn with_provider(self, provider: ResearchProvider) -> Self
pub fn with_provider(self, provider: ResearchProvider) -> Self
Set the search provider
Sourcepub fn with_depth(self, depth: ResearchDepth) -> Self
pub fn with_depth(self, depth: ResearchDepth) -> Self
Set the search depth
Sourcepub fn with_max_sources(self, max: u32) -> Self
pub fn with_max_sources(self, max: u32) -> Self
Set maximum sources
Sourcepub fn with_async(self, async_mode: bool) -> Self
pub fn with_async(self, async_mode: bool) -> Self
Enable async mode
Trait Implementations§
Source§impl Clone for ResearchConfig
impl Clone for ResearchConfig
Source§fn clone(&self) -> ResearchConfig
fn clone(&self) -> ResearchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResearchConfig
impl Debug for ResearchConfig
Source§impl Default for ResearchConfig
impl Default for ResearchConfig
Source§impl<'de> Deserialize<'de> for ResearchConfig
impl<'de> Deserialize<'de> for ResearchConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResearchConfig
impl RefUnwindSafe for ResearchConfig
impl Send for ResearchConfig
impl Sync for ResearchConfig
impl Unpin for ResearchConfig
impl UnwindSafe for ResearchConfig
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
Mutably borrows from an owned value. Read more