pub struct ClassificationResult<T> {
pub value: T,
pub confidence: Option<f64>,
pub raw_json: Value,
}Expand description
The result of a successful classification.
Fields§
§value: TThe deserialized output value.
confidence: Option<f64>Confidence score if the provider included one in the response.
The schema must include a "confidence" field of type f64 for this
to be populated; the Anthropic API does not return metadata outside the
schema.
raw_json: ValueRaw JSON returned by the provider, useful for prompt improvement feedback.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ClassificationResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ClassificationResult<T>where
T: RefUnwindSafe,
impl<T> Send for ClassificationResult<T>where
T: Send,
impl<T> Sync for ClassificationResult<T>where
T: Sync,
impl<T> Unpin for ClassificationResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for ClassificationResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ClassificationResult<T>where
T: UnwindSafe,
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