pub struct FirstTokenDistribution {
pub tokens: Vec<(String, f64)>,
pub floor: f64,
pub input_tokens: u32,
pub latency: Duration,
}Expand description
The distribution over the first generated token.
Fields§
§tokens: Vec<(String, f64)>Ranked tokens, highest logprob first.
floor: f64The lowest logprob the host reported.
A label missing from tokens ranked below every entry, so this value is a strict upper
bound on its logprob. cerno-core substitutes it and flags the answer as truncated.
input_tokens: u32§latency: DurationImplementations§
Trait Implementations§
Source§impl Clone for FirstTokenDistribution
impl Clone for FirstTokenDistribution
Source§fn clone(&self) -> FirstTokenDistribution
fn clone(&self) -> FirstTokenDistribution
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 moreAuto Trait Implementations§
impl Freeze for FirstTokenDistribution
impl RefUnwindSafe for FirstTokenDistribution
impl Send for FirstTokenDistribution
impl Sync for FirstTokenDistribution
impl Unpin for FirstTokenDistribution
impl UnsafeUnpin for FirstTokenDistribution
impl UnwindSafe for FirstTokenDistribution
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