pub struct LearnedPattern {
pub id: String,
pub source_trajectories: Vec<String>,
pub strategy: String,
pub domain: String,
pub confidence: f32,
pub support_count: usize,
pub embedding: Option<EmbeddingVector>,
}Expand description
A distilled pattern extracted from successful trajectories.
Fields§
§id: StringUnique ID.
source_trajectories: Vec<String>Source trajectory IDs.
strategy: StringDistilled strategy description.
domain: StringDomain category.
confidence: f32Confidence in this pattern (based on number of supporting trajectories).
support_count: usizeNumber of trajectories this was distilled from.
embedding: Option<EmbeddingVector>Embedding for similarity matching.
Trait Implementations§
Source§impl Clone for LearnedPattern
impl Clone for LearnedPattern
Source§fn clone(&self) -> LearnedPattern
fn clone(&self) -> LearnedPattern
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 LearnedPattern
impl Debug for LearnedPattern
Source§impl<'de> Deserialize<'de> for LearnedPattern
impl<'de> Deserialize<'de> for LearnedPattern
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 LearnedPattern
impl RefUnwindSafe for LearnedPattern
impl Send for LearnedPattern
impl Sync for LearnedPattern
impl Unpin for LearnedPattern
impl UnsafeUnpin for LearnedPattern
impl UnwindSafe for LearnedPattern
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