pub struct OptionFields<'a> {
pub reasoning: Option<&'a Reasoning>,
pub cache: Option<&'a CacheRetention>,
pub service_tier: Option<&'a ServiceTier>,
pub verbosity: Option<&'a Verbosity>,
pub parallel_tool_calls: Option<bool>,
pub top_p: Option<f64>,
pub seed: Option<u64>,
pub stop: &'a [String],
pub cache_key: Option<&'a str>,
}Expand description
Every option but the policy, borrowed, as a wire’s
map_options reads it.
Not #[non_exhaustive], so wires in companion crates destructure it
whole, which #[non_exhaustive] forbids for
GenerationOptions.
Fields§
§reasoning: Option<&'a Reasoning>How much the model reasons.
cache: Option<&'a CacheRetention>How long the prompt prefix stays cached.
service_tier: Option<&'a ServiceTier>The processing tier.
verbosity: Option<&'a Verbosity>How long the answer should be.
parallel_tool_calls: Option<bool>Whether several tool calls may come in one turn.
top_p: Option<f64>Nucleus sampling probability mass.
seed: Option<u64>Sampling seed.
stop: &'a [String]Stop sequences; empty means unset.
cache_key: Option<&'a str>The key the provider routes prompt-cache lookups by.
Trait Implementations§
Source§impl<'a> Clone for OptionFields<'a>
impl<'a> Clone for OptionFields<'a>
Source§fn clone(&self) -> OptionFields<'a>
fn clone(&self) -> OptionFields<'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 moreimpl<'a> Copy for OptionFields<'a>
Source§impl<'a> Debug for OptionFields<'a>
impl<'a> Debug for OptionFields<'a>
Source§impl<'a> PartialEq for OptionFields<'a>
impl<'a> PartialEq for OptionFields<'a>
impl<'a> StructuralPartialEq for OptionFields<'a>
Auto Trait Implementations§
impl<'a> Forget for OptionFields<'a>
impl<'a> Freeze for OptionFields<'a>
impl<'a> Move for OptionFields<'a>
impl<'a> RefUnwindSafe for OptionFields<'a>
impl<'a> Send for OptionFields<'a>
impl<'a> Sync for OptionFields<'a>
impl<'a> Unpin for OptionFields<'a>
impl<'a> UnsafeUnpin for OptionFields<'a>
impl<'a> UnwindSafe for OptionFields<'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