pub struct IntentDetectionResult {
pub detected_intent: String,
pub confidence: f32,
pub target_hints: Option<TargetHints>,
}Expand description
Result from IntentDetection harness
Fields§
§detected_intent: StringDetected intent: “locate” | “understand” | “retrieve” | “explore” | “reason” | “validate” | “compare” | “track”
confidence: f32Confidence score 0.0 - 1.0
target_hints: Option<TargetHints>Optional target hints from the harness
Trait Implementations§
Source§impl Clone for IntentDetectionResult
impl Clone for IntentDetectionResult
Source§fn clone(&self) -> IntentDetectionResult
fn clone(&self) -> IntentDetectionResult
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 IntentDetectionResult
impl Debug for IntentDetectionResult
Source§impl<'de> Deserialize<'de> for IntentDetectionResult
impl<'de> Deserialize<'de> for IntentDetectionResult
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 IntentDetectionResult
impl RefUnwindSafe for IntentDetectionResult
impl Send for IntentDetectionResult
impl Sync for IntentDetectionResult
impl Unpin for IntentDetectionResult
impl UnsafeUnpin for IntentDetectionResult
impl UnwindSafe for IntentDetectionResult
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