pub struct KeyFact {
pub id: String,
pub actor_id: Option<String>,
pub category: FactCategory,
pub content: String,
pub confidence: f32,
pub salience: f32,
pub extracted_at: DateTime<Utc>,
pub last_accessed: Option<DateTime<Utc>>,
pub source_message_id: Option<String>,
pub source_language: Option<String>,
}Expand description
A single extracted fact about an actor.
Fields§
§id: String§actor_id: Option<String>Which actor this fact is about. None means a general fact.
category: FactCategory§content: StringFact content in natural language (always English for cross-language dedup).
confidence: f32Extraction confidence from 0.0 to 1.0.
salience: f32Importance score from 0.0 to 1.0. Reserved for time-based decay algorithms.
extracted_at: DateTime<Utc>§last_accessed: Option<DateTime<Utc>>Last time this fact was injected into context. Reserved for recency tracking.
source_message_id: Option<String>Which message triggered this extraction.
source_language: Option<String>Language of the original conversation.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyFact
impl<'de> Deserialize<'de> for KeyFact
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyFact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KeyFact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for KeyFact
impl Serialize for KeyFact
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for KeyFact
impl RefUnwindSafe for KeyFact
impl Send for KeyFact
impl Sync for KeyFact
impl Unpin for KeyFact
impl UnsafeUnpin for KeyFact
impl UnwindSafe for KeyFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.