pub struct ConsciousnessEmbedding {
pub agent_id: String,
pub timestamp: DateTime<Utc>,
pub level: f64,
pub coherence: f64,
pub phase: DevelopmentPhase,
pub embedding: Vec<f32>,
pub text_representation: String,
}Expand description
Consciousness embedding metadata
Fields§
§agent_id: String§timestamp: DateTime<Utc>§level: f64§coherence: f64§phase: DevelopmentPhase§embedding: Vec<f32>§text_representation: StringImplementations§
Source§impl ConsciousnessEmbedding
impl ConsciousnessEmbedding
Sourcepub fn create_text_representation(state: &ConsciousnessState) -> String
pub fn create_text_representation(state: &ConsciousnessState) -> String
Create text representation for embedding
Sourcepub async fn from_state(
state: &ConsciousnessState,
generator: &dyn EmbeddingGenerator,
) -> Result<Self, DatabaseError>
pub async fn from_state( state: &ConsciousnessState, generator: &dyn EmbeddingGenerator, ) -> Result<Self, DatabaseError>
Create from consciousness state
Trait Implementations§
Source§impl Clone for ConsciousnessEmbedding
impl Clone for ConsciousnessEmbedding
Source§fn clone(&self) -> ConsciousnessEmbedding
fn clone(&self) -> ConsciousnessEmbedding
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 ConsciousnessEmbedding
impl Debug for ConsciousnessEmbedding
Source§impl<'de> Deserialize<'de> for ConsciousnessEmbedding
impl<'de> Deserialize<'de> for ConsciousnessEmbedding
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 ConsciousnessEmbedding
impl RefUnwindSafe for ConsciousnessEmbedding
impl Send for ConsciousnessEmbedding
impl Sync for ConsciousnessEmbedding
impl Unpin for ConsciousnessEmbedding
impl UnsafeUnpin for ConsciousnessEmbedding
impl UnwindSafe for ConsciousnessEmbedding
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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