pub struct IntentFeedback {
pub text: String,
pub predicted_intent: IntentId,
pub actual_intent: IntentId,
pub satisfaction_score: f64,
pub notes: Option<String>,
pub timestamp: DateTime<Utc>,
}
Expand description
Feedback for improving the classifier
Fields§
§text: String
The original text that was classified
predicted_intent: IntentId
The intent that was predicted
actual_intent: IntentId
The correct intent (according to user feedback)
satisfaction_score: f64
User satisfaction score (1.0 to 5.0)
notes: Option<String>
Additional notes from the user
timestamp: DateTime<Utc>
Timestamp of the feedback
Trait Implementations§
Source§impl Clone for IntentFeedback
impl Clone for IntentFeedback
Source§fn clone(&self) -> IntentFeedback
fn clone(&self) -> IntentFeedback
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 IntentFeedback
impl Debug for IntentFeedback
Source§impl<'de> Deserialize<'de> for IntentFeedback
impl<'de> Deserialize<'de> for IntentFeedback
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 IntentFeedback
impl RefUnwindSafe for IntentFeedback
impl Send for IntentFeedback
impl Sync for IntentFeedback
impl Unpin for IntentFeedback
impl UnwindSafe for IntentFeedback
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