pub struct ResearchOptions {
pub max_pages: usize,
pub search_options: Option<SearchOptions>,
pub extraction_prompt: Option<String>,
pub synthesize: bool,
}Expand description
Research options for research tasks.
Fields§
§max_pages: usizeMaximum pages to visit.
search_options: Option<SearchOptions>Search options for the query.
extraction_prompt: Option<String>Custom extraction prompt.
synthesize: boolWhether to synthesize findings into a summary.
Implementations§
Source§impl ResearchOptions
impl ResearchOptions
Sourcepub fn with_max_pages(self, n: usize) -> Self
pub fn with_max_pages(self, n: usize) -> Self
Set max pages to visit.
Sourcepub fn with_search_options(self, options: SearchOptions) -> Self
pub fn with_search_options(self, options: SearchOptions) -> Self
Set search options.
Sourcepub fn with_extraction_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_extraction_prompt(self, prompt: impl Into<String>) -> Self
Set extraction prompt.
Sourcepub fn with_synthesize(self, enabled: bool) -> Self
pub fn with_synthesize(self, enabled: bool) -> Self
Enable or disable synthesis.
Trait Implementations§
Source§impl Clone for ResearchOptions
impl Clone for ResearchOptions
Source§fn clone(&self) -> ResearchOptions
fn clone(&self) -> ResearchOptions
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 ResearchOptions
impl Debug for ResearchOptions
Source§impl Default for ResearchOptions
impl Default for ResearchOptions
Source§fn default() -> ResearchOptions
fn default() -> ResearchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResearchOptions
impl RefUnwindSafe for ResearchOptions
impl Send for ResearchOptions
impl Sync for ResearchOptions
impl Unpin for ResearchOptions
impl UnsafeUnpin for ResearchOptions
impl UnwindSafe for ResearchOptions
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