pub struct ExtractOptions {
pub instruction: String,
pub schema: BTreeMap<String, String>,
pub model: Option<String>,
pub temperature: Option<f64>,
pub max_tokens: Option<u32>,
pub on_failure: Option<String>,
}Expand description
B-109 — options for StreamBuilder::extract. instruction + schema required.
Fields§
§instruction: String§schema: BTreeMap<String, String>§model: Option<String>§temperature: Option<f64>§max_tokens: Option<u32>§on_failure: Option<String>Trait Implementations§
Source§impl Clone for ExtractOptions
impl Clone for ExtractOptions
Source§impl Debug for ExtractOptions
impl Debug for ExtractOptions
Auto Trait Implementations§
impl Freeze for ExtractOptions
impl RefUnwindSafe for ExtractOptions
impl Send for ExtractOptions
impl Sync for ExtractOptions
impl Unpin for ExtractOptions
impl UnsafeUnpin for ExtractOptions
impl UnwindSafe for ExtractOptions
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