pub struct DriftInput<'a> {
pub agent_a: AgentId,
pub agent_b: AgentId,
pub events_a: &'a [Event<Value>],
pub events_b: &'a [Event<Value>],
pub context_items_a: &'a [Uuid],
pub context_items_b: &'a [Uuid],
pub decay: &'a DecayParams,
pub weights: &'a DriftWeights,
pub threshold: f64,
}Expand description
Input parameters for computing drift between two agents.
Fields§
§agent_a: AgentIdFirst agent ID.
agent_b: AgentIdSecond agent ID.
events_a: &'a [Event<Value>]Event stream for agent A.
events_b: &'a [Event<Value>]Event stream for agent B.
context_items_a: &'a [Uuid]Entity IDs scored into agent A’s L1 context.
Uses raw uuid::Uuid because context items are heterogeneous (notes,
artifacts, trajectories, etc.). Type checking happens at insertion time
via the EntityIdType trait on each concrete ID type. When Phase 2
populates these from the database, consider migrating to a typed
ContextEntity enum if cross-type confusion becomes a risk.
context_items_b: &'a [Uuid]Entity IDs scored into agent B’s L1 context. See context_items_a docs.
decay: &'a DecayParamsTemporal decay parameters (Weibull).
weights: &'a DriftWeightsDivergence signal weights.
threshold: f64Alignment threshold (from IntentDef).
Trait Implementations§
Source§impl<'a> Clone for DriftInput<'a>
impl<'a> Clone for DriftInput<'a>
Source§fn clone(&self) -> DriftInput<'a>
fn clone(&self) -> DriftInput<'a>
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<'a> Freeze for DriftInput<'a>
impl<'a> RefUnwindSafe for DriftInput<'a>
impl<'a> Send for DriftInput<'a>
impl<'a> Sync for DriftInput<'a>
impl<'a> Unpin for DriftInput<'a>
impl<'a> UnwindSafe for DriftInput<'a>
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