pub struct CallDefaults {Show 13 fields
pub max_output_tokens: Option<u32>,
pub temperature: Option<f64>,
pub stop_sequences: Option<Vec<String>>,
pub top_p: Option<f64>,
pub top_k: Option<u32>,
pub presence_penalty: Option<f64>,
pub frequency_penalty: Option<f64>,
pub response_format: Option<ResponseFormat>,
pub seed: Option<u64>,
pub tools: Vec<ToolDefinition>,
pub tool_choice: Option<ToolChoice>,
pub headers: Headers,
pub provider_options: ProviderOptions,
}Expand description
Settings applied when the call does not set them.
Scalars fill None values. tools applies when the call sends no
tools. headers and provider_options are merged with the call’s
values taking precedence (provider options merge recursively).
Fields§
§max_output_tokens: Option<u32>§temperature: Option<f64>§stop_sequences: Option<Vec<String>>§top_p: Option<f64>See CallOptions::top_p.
top_k: Option<u32>See CallOptions::top_k.
presence_penalty: Option<f64>§frequency_penalty: Option<f64>§response_format: Option<ResponseFormat>§seed: Option<u64>See CallOptions::seed.
tools: Vec<ToolDefinition>See CallOptions::tools.
tool_choice: Option<ToolChoice>§headers: HeadersSee CallOptions::headers.
provider_options: ProviderOptionsTrait Implementations§
Source§impl Clone for CallDefaults
impl Clone for CallDefaults
Source§fn clone(&self) -> CallDefaults
fn clone(&self) -> CallDefaults
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 CallDefaults
impl Debug for CallDefaults
Source§impl Default for CallDefaults
impl Default for CallDefaults
Source§fn default() -> CallDefaults
fn default() -> CallDefaults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CallDefaults
impl RefUnwindSafe for CallDefaults
impl Send for CallDefaults
impl Sync for CallDefaults
impl Unpin for CallDefaults
impl UnsafeUnpin for CallDefaults
impl UnwindSafe for CallDefaults
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