pub struct Extraction {
pub facts: Vec<String>,
pub entities: Vec<ExtractedEntity>,
pub relations: Vec<ExtractedRelation>,
}Expand description
Résultat d’extraction : faits durables + entités + relations.
C’est le schéma JSON produit par le LLM (autonome) ou par l’agent lui-même
(consolidation pilotée par l’agent, ADR-018). Champs absents tolérés (default).
Sérialisable pour permettre aux consommateurs (serveur MCP) de le transporter.
Fields§
§facts: Vec<String>Faits durables à promouvoir en couche semantic.
entities: Vec<ExtractedEntity>Entités du graphe (nœuds).
relations: Vec<ExtractedRelation>Relations du graphe (arêtes), référençant les id des entités.
Trait Implementations§
Source§impl Clone for Extraction
impl Clone for Extraction
Source§fn clone(&self) -> Extraction
fn clone(&self) -> Extraction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Extraction
impl Debug for Extraction
Source§impl Default for Extraction
impl Default for Extraction
Source§fn default() -> Extraction
fn default() -> Extraction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Extraction
impl<'de> Deserialize<'de> for Extraction
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 Extraction
impl RefUnwindSafe for Extraction
impl Send for Extraction
impl Sync for Extraction
impl Unpin for Extraction
impl UnsafeUnpin for Extraction
impl UnwindSafe for Extraction
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more