pub struct IntentClassification {
pub intent: QueryIntent,
pub confidence: f32,
pub secondary: Vec<(QueryIntent, f32)>,
pub entity_focus: Option<String>,
}Expand description
Intent classification result with confidence
Fields§
§intent: QueryIntentThe primary intent
confidence: f32Confidence score (0.0 to 1.0)
secondary: Vec<(QueryIntent, f32)>Secondary intents (if any)
entity_focus: Option<String>Extracted entity name for entity-focused queries
Trait Implementations§
Source§impl Clone for IntentClassification
impl Clone for IntentClassification
Source§fn clone(&self) -> IntentClassification
fn clone(&self) -> IntentClassification
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 moreAuto Trait Implementations§
impl Freeze for IntentClassification
impl RefUnwindSafe for IntentClassification
impl Send for IntentClassification
impl Sync for IntentClassification
impl Unpin for IntentClassification
impl UnsafeUnpin for IntentClassification
impl UnwindSafe for IntentClassification
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