#[non_exhaustive]pub struct Sampling {
pub temperature: Option<f32>,
pub seed: Option<u64>,
pub reasoning_effort: Option<ReasoningEffort>,
pub dropped: Vec<&'static str>,
}Expand description
The sampling parameters a profile accepts, and the names of those it does not.
Every adapter maps the kept values to its own wire fields and reports each dropped name as a warning, so a per-task setting never makes a call fail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.temperature: Option<f32>The temperature to send.
seed: Option<u64>The seed to send.
reasoning_effort: Option<ReasoningEffort>The reasoning effort to send.
dropped: Vec<&'static str>Parameters the request set and the profile does not take.
Trait Implementations§
impl StructuralPartialEq for Sampling
Auto Trait Implementations§
impl Freeze for Sampling
impl RefUnwindSafe for Sampling
impl Send for Sampling
impl Sync for Sampling
impl Unpin for Sampling
impl UnsafeUnpin for Sampling
impl UnwindSafe for Sampling
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