pub struct ProviderOptions {
pub reliability: ProviderReliability,
pub thinking: ProviderThinkingPolicy,
pub max_output_tokens: Option<u64>,
pub cache_retention: CacheRetention,
}Fields§
§reliability: ProviderReliability§thinking: ProviderThinkingPolicy§max_output_tokens: Option<u64>Per-request output-token cap. None lets each provider apply its
own default. Providers translate to their wire-specific field
(max_tokens, max_output_tokens, maxOutputTokens, …).
cache_retention: CacheRetentionPrompt-cache lifetime hint; see CacheRetention.
Implementations§
Source§impl ProviderOptions
impl ProviderOptions
pub fn is_default(&self) -> bool
pub fn llm_timeouts(&self) -> LlmTimeouts
Trait Implementations§
Source§impl Clone for ProviderOptions
impl Clone for ProviderOptions
Source§fn clone(&self) -> ProviderOptions
fn clone(&self) -> ProviderOptions
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 ProviderOptions
impl Debug for ProviderOptions
Source§impl Default for ProviderOptions
impl Default for ProviderOptions
Source§fn default() -> ProviderOptions
fn default() -> ProviderOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderOptions
impl<'de> Deserialize<'de> for ProviderOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderOptions
Source§impl PartialEq for ProviderOptions
impl PartialEq for ProviderOptions
Source§fn eq(&self, other: &ProviderOptions) -> bool
fn eq(&self, other: &ProviderOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderOptions
impl Serialize for ProviderOptions
impl StructuralPartialEq for ProviderOptions
Auto Trait Implementations§
impl Freeze for ProviderOptions
impl RefUnwindSafe for ProviderOptions
impl Send for ProviderOptions
impl Sync for ProviderOptions
impl Unpin for ProviderOptions
impl UnsafeUnpin for ProviderOptions
impl UnwindSafe for ProviderOptions
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