pub struct ConversationScore {
pub reached: bool,
pub turns: usize,
pub dead_ends: usize,
pub loops: usize,
pub not_understood: usize,
pub refused: usize,
pub offers_refused: usize,
pub failed_turns: usize,
}Expand description
The classes a conversation is scored on.
Fields§
§reached: boolWhether the goal’s state was reached.
turns: usizeTurns taken.
dead_ends: usizeReplies that ended on no question, no ask, no card and no offer.
loops: usizeReplies that asked what the reply before them asked.
not_understood: usizeParts of messages not understood.
refused: usizeActs the domain refused.
offers_refused: usizeRefused acts of an operation the reply before had offered.
failed_turns: usizeTurns that failed outright.
Implementations§
Source§impl ConversationScore
impl ConversationScore
Sourcepub const fn violations(&self) -> usize
pub const fn violations(&self) -> usize
Broken guarantees: a reply with no way forward, an offer the domain refused. Zero.
Trait Implementations§
Source§impl Clone for ConversationScore
impl Clone for ConversationScore
impl Copy for ConversationScore
Source§impl Debug for ConversationScore
impl Debug for ConversationScore
Source§impl Default for ConversationScore
impl Default for ConversationScore
Source§impl<'de> Deserialize<'de> for ConversationScore
impl<'de> Deserialize<'de> for ConversationScore
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
impl Eq for ConversationScore
Source§impl PartialEq for ConversationScore
impl PartialEq for ConversationScore
Source§impl Serialize for ConversationScore
impl Serialize for ConversationScore
impl StructuralPartialEq for ConversationScore
Auto Trait Implementations§
impl Freeze for ConversationScore
impl RefUnwindSafe for ConversationScore
impl Send for ConversationScore
impl Sync for ConversationScore
impl Unpin for ConversationScore
impl UnsafeUnpin for ConversationScore
impl UnwindSafe for ConversationScore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.