pub struct ExtractedEntity {
pub name: String,
pub entity_type: String,
pub attributes: HashMap<String, String>,
}Expand description
An entity extracted from a conversation — a person, pet, place, event, or item with structured attributes. Entities accumulate knowledge across mentions.
Fields§
§name: StringCanonical name of the entity (e.g., “Max”, “Serenity Yoga”, “Love is in the Air Dinner”)
entity_type: StringType classification: person, pet, place, event, item, organization, account
attributes: HashMap<String, String>Key-value attributes discovered about this entity. Keys are attribute names (e.g., “breed”, “location”, “date”), values are the attribute values (e.g., “Golden Retriever”, “downtown”, “February 14th”).
Implementations§
Source§impl ExtractedEntity
impl ExtractedEntity
Sourcepub fn embedding_key(&self) -> String
pub fn embedding_key(&self) -> String
Build a searchable text representation of this entity and its attributes. Includes categories for discoverability by abstract searches.
Sourcepub fn to_content(&self) -> String
pub fn to_content(&self) -> String
Build a rich content string for storage as a memory node. Includes category for searchability by abstract queries.
Trait Implementations§
Source§impl Clone for ExtractedEntity
impl Clone for ExtractedEntity
Source§fn clone(&self) -> ExtractedEntity
fn clone(&self) -> ExtractedEntity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more