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],
}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.
Trait Implementations§
Source§impl<'a> Clone for OptionFields<'a>
impl<'a> Clone for OptionFields<'a>
impl<'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> Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more