pub struct EnhancementResult {
pub entities: Vec<EnhancedEntity>,
pub relationships: Vec<EnhancedRelationship>,
pub concepts: Vec<String>,
pub used_local_llm: bool,
}Expand description
Result of entity enhancement
Fields§
§entities: Vec<EnhancedEntity>Extracted entities
relationships: Vec<EnhancedRelationship>Extracted relationships
concepts: Vec<String>Extracted domain concepts
used_local_llm: boolWhether LLM was used
Implementations§
Source§impl EnhancementResult
impl EnhancementResult
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Create an empty enhancement result (no entities, relationships, or concepts).
Sourcepub fn from_local(
entities: Vec<EnhancedEntity>,
relationships: Vec<EnhancedRelationship>,
concepts: Vec<String>,
) -> Self
pub fn from_local( entities: Vec<EnhancedEntity>, relationships: Vec<EnhancedRelationship>, concepts: Vec<String>, ) -> Self
Create an enhancement result from LLM-extracted data.
Trait Implementations§
Source§impl Clone for EnhancementResult
impl Clone for EnhancementResult
Source§fn clone(&self) -> EnhancementResult
fn clone(&self) -> EnhancementResult
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 moreAuto Trait Implementations§
impl Freeze for EnhancementResult
impl RefUnwindSafe for EnhancementResult
impl Send for EnhancementResult
impl Sync for EnhancementResult
impl Unpin for EnhancementResult
impl UnsafeUnpin for EnhancementResult
impl UnwindSafe for EnhancementResult
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