pub struct ExtractionOptions<'a> {
pub temperature: f32,
pub max_tokens: u32,
pub extractor_prompts: &'a ExtractorPrompts,
pub retry: RetryConfig,
pub timeout: Duration,
}Expand description
Bundles extraction parameters
Fields§
§temperature: f32§max_tokens: u32§extractor_prompts: &'a ExtractorPrompts§retry: RetryConfig§timeout: DurationImplementations§
Source§impl<'a> ExtractionOptions<'a>
impl<'a> ExtractionOptions<'a>
pub fn new(extractor_prompts: &'a ExtractorPrompts) -> Self
Trait Implementations§
Source§impl<'a> Clone for ExtractionOptions<'a>
impl<'a> Clone for ExtractionOptions<'a>
Source§fn clone(&self) -> ExtractionOptions<'a>
fn clone(&self) -> ExtractionOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ExtractionOptions<'a>
impl<'a> RefUnwindSafe for ExtractionOptions<'a>
impl<'a> Send for ExtractionOptions<'a>
impl<'a> Sync for ExtractionOptions<'a>
impl<'a> Unpin for ExtractionOptions<'a>
impl<'a> UnsafeUnpin for ExtractionOptions<'a>
impl<'a> UnwindSafe for ExtractionOptions<'a>
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