pub enum MeasurementConfidence {
Exact,
HighConfidence,
LowConfidence,
}Expand description
How much to trust PromptMeasurement.input_tokens when deciding whether to compress. Kept
separate from MeasurementSource — the reason a number exists and how much a caller should
lean on it are different questions (a LocalExact cl100k count for an Anthropic request is
still nontrivially uncertain, but it is not a bare guess either).
Variants§
Trait Implementations§
Source§impl Clone for MeasurementConfidence
impl Clone for MeasurementConfidence
Source§fn clone(&self) -> MeasurementConfidence
fn clone(&self) -> MeasurementConfidence
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 Copy for MeasurementConfidence
Source§impl Debug for MeasurementConfidence
impl Debug for MeasurementConfidence
Source§impl<'de> Deserialize<'de> for MeasurementConfidence
impl<'de> Deserialize<'de> for MeasurementConfidence
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
impl Eq for MeasurementConfidence
Source§impl PartialEq for MeasurementConfidence
impl PartialEq for MeasurementConfidence
Source§impl Serialize for MeasurementConfidence
impl Serialize for MeasurementConfidence
impl StructuralPartialEq for MeasurementConfidence
Auto Trait Implementations§
impl Freeze for MeasurementConfidence
impl RefUnwindSafe for MeasurementConfidence
impl Send for MeasurementConfidence
impl Sync for MeasurementConfidence
impl Unpin for MeasurementConfidence
impl UnsafeUnpin for MeasurementConfidence
impl UnwindSafe for MeasurementConfidence
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