pub struct ProviderOwnedSampler {
pub temperature: f32,
pub top_p: f32,
}Expand description
Portable caller-selected sampler semantics for a provider-owned backend.
Physical sampler stages, candidate bounds, and implementation defaults are deliberately absent. When this value is omitted, the selected backend owns both temperature and nucleus defaults.
Fields§
§temperature: f32Caller-selected sampling temperature.
top_p: f32Caller-selected nucleus probability.
Trait Implementations§
Source§impl Clone for ProviderOwnedSampler
impl Clone for ProviderOwnedSampler
impl Copy for ProviderOwnedSampler
Source§impl Debug for ProviderOwnedSampler
impl Debug for ProviderOwnedSampler
Source§impl<'de> Deserialize<'de> for ProviderOwnedSampler
impl<'de> Deserialize<'de> for ProviderOwnedSampler
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
Source§impl PartialEq for ProviderOwnedSampler
impl PartialEq for ProviderOwnedSampler
Source§impl Serialize for ProviderOwnedSampler
impl Serialize for ProviderOwnedSampler
impl StructuralPartialEq for ProviderOwnedSampler
Auto Trait Implementations§
impl Freeze for ProviderOwnedSampler
impl RefUnwindSafe for ProviderOwnedSampler
impl Send for ProviderOwnedSampler
impl Sync for ProviderOwnedSampler
impl Unpin for ProviderOwnedSampler
impl UnsafeUnpin for ProviderOwnedSampler
impl UnwindSafe for ProviderOwnedSampler
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