pub struct Hallucination {
pub claim: String,
pub hallucination_type: HallucinationType,
pub reality: String,
pub evidence: Vec<Citation>,
pub severity: HallucinationSeverity,
}Expand description
A single detected hallucination.
Fields§
§claim: StringThe hallucinated claim.
hallucination_type: HallucinationTypeType of hallucination.
reality: StringWhat’s actually true.
evidence: Vec<Citation>Evidence for reality.
severity: HallucinationSeveritySeverity.
Trait Implementations§
Source§impl Clone for Hallucination
impl Clone for Hallucination
Source§fn clone(&self) -> Hallucination
fn clone(&self) -> Hallucination
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 Hallucination
impl Debug for Hallucination
Source§impl<'de> Deserialize<'de> for Hallucination
impl<'de> Deserialize<'de> for Hallucination
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 Hallucination
impl RefUnwindSafe for Hallucination
impl Send for Hallucination
impl Sync for Hallucination
impl Unpin for Hallucination
impl UnsafeUnpin for Hallucination
impl UnwindSafe for Hallucination
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