ContextualCausalFn

Type Alias ContextualCausalFn 

Source
pub type ContextualCausalFn<I, O, S, C> = fn(EffectValue<I>, S, Option<C>) -> PropagatingProcess<O, S, C>;
Expand description

The unified function signature for all singleton causaloids that require access to a shared, external context.

It evaluates runtime evidence against its own static configuration and the shared context to produce a causal effect.

§Arguments

  • effect - A reference to the PropagatingEffect flowing through the graph during reasoning.
  • context - A reference to the shared Context object.

§Returns

A PropagatingEffect.