pub enum ObjectKind {
Entity,
Event,
Episode,
Document,
Fact,
Artifact,
Custom(String),
}Expand description
Classification of a Knowledge Object. Determines which indices and query optimizations apply.
Variants§
Entity
A persistent entity (person, organization, concept). Typically has long valid-time intervals and many edges.
Event
A temporal event or episode. Has precise valid-time intervals and causal edges.
Episode
An episodic memory or conversation turn. Dense in embeddings, often has derivation edges.
Document
A document or content chunk. Primary carrier of text content and semantic embeddings.
Fact
A fact or claim extracted from content. Has provenance edges linking to source documents.
Artifact
An agent-generated artifact (plan, summary, decision). Has derivation provenance and typically short valid-time windows.
Custom(String)
User-defined type with a custom label.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectKind
impl Clone for ObjectKind
Source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
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 ObjectKind
impl Debug for ObjectKind
Source§impl<'de> Deserialize<'de> for ObjectKind
impl<'de> Deserialize<'de> for ObjectKind
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
Source§impl Display for ObjectKind
impl Display for ObjectKind
impl Eq for ObjectKind
Source§impl Hash for ObjectKind
impl Hash for ObjectKind
Source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
Source§fn eq(&self, other: &ObjectKind) -> bool
fn eq(&self, other: &ObjectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObjectKind
impl Serialize for ObjectKind
impl StructuralPartialEq for ObjectKind
Auto Trait Implementations§
impl Freeze for ObjectKind
impl RefUnwindSafe for ObjectKind
impl Send for ObjectKind
impl Sync for ObjectKind
impl Unpin for ObjectKind
impl UnsafeUnpin for ObjectKind
impl UnwindSafe for ObjectKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.