pub struct IntentPrediction {
pub intent: IntentId,
pub confidence: Confidence,
pub alternative_intents: Vec<(IntentId, Confidence)>,
pub reasoning: String,
}
Expand description
Intent classification result
Fields§
§intent: IntentId
The predicted intent
confidence: Confidence
Confidence score for the prediction
alternative_intents: Vec<(IntentId, Confidence)>
Alternative intents with their confidence scores
reasoning: String
Human-readable reasoning for the classification
Trait Implementations§
Source§impl Clone for IntentPrediction
impl Clone for IntentPrediction
Source§fn clone(&self) -> IntentPrediction
fn clone(&self) -> IntentPrediction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IntentPrediction
impl Debug for IntentPrediction
Source§impl<'de> Deserialize<'de> for IntentPrediction
impl<'de> Deserialize<'de> for IntentPrediction
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
Auto Trait Implementations§
impl Freeze for IntentPrediction
impl RefUnwindSafe for IntentPrediction
impl Send for IntentPrediction
impl Sync for IntentPrediction
impl Unpin for IntentPrediction
impl UnwindSafe for IntentPrediction
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