pub struct ResearchConfig {
pub provider: ResearchProvider,
pub depth: ResearchDepth,
pub max_sources: u32,
pub include_images: bool,
pub async_mode: bool,
pub model: Option<String>,
pub thinking_level: Option<ThinkingLevel>,
}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
model: Option<String>The specific AI model to use for analysis (e.g. “gemini-2.0-flash-exp”)
thinking_level: Option<ThinkingLevel>The thinking level for Gemini 3 models
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
Set the request to be processed asynchronously
Sourcepub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
Set the specific AI model
Sourcepub fn with_thinking_level(self, level: ThinkingLevel) -> Self
pub fn with_thinking_level(self, level: ThinkingLevel) -> Self
Set the thinking level (Gemini 3 only)
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 UnsafeUnpin 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