pub struct MapLlmOptions {
pub output_field: String,
pub model: Option<String>,
pub temperature: Option<f64>,
pub max_tokens: Option<u32>,
pub parallelism: Option<u32>,
pub ordering: Option<String>,
pub on_failure: Option<String>,
pub max_calls_per_sec: Option<u32>,
}Expand description
B-109 — options for StreamBuilder::map_llm. output_field is required.
Fields§
§output_field: String§model: Option<String>§temperature: Option<f64>§max_tokens: Option<u32>§parallelism: Option<u32>§ordering: Option<String>Must be "PRESERVE_INPUT" or "UNORDERED".
on_failure: Option<String>Must be "EMIT_ERROR", "DROP", or "PASS_THROUGH".
max_calls_per_sec: Option<u32>Trait Implementations§
Source§impl Clone for MapLlmOptions
impl Clone for MapLlmOptions
Source§fn clone(&self) -> MapLlmOptions
fn clone(&self) -> MapLlmOptions
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 moreSource§impl Debug for MapLlmOptions
impl Debug for MapLlmOptions
Source§impl Default for MapLlmOptions
impl Default for MapLlmOptions
Source§fn default() -> MapLlmOptions
fn default() -> MapLlmOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MapLlmOptions
impl RefUnwindSafe for MapLlmOptions
impl Send for MapLlmOptions
impl Sync for MapLlmOptions
impl Unpin for MapLlmOptions
impl UnsafeUnpin for MapLlmOptions
impl UnwindSafe for MapLlmOptions
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