Skip to content

Interface: ScmCounterfactualRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ScmCounterfactualRequest

Defined in: src/types/causal.ts:1324

Request to answer a counterfactual over a fully declared SCM (level-3 structure supplied by the caller — the hierarchy’s price).

assignments: StructuralAssignmentDto[]

Defined in: src/types/causal.ts:1326

Deterministic structural assignments.


evidence: Record<string, number>

Defined in: src/types/causal.ts:1328

The FACTUAL evidence (what was actually observed).


exogenous: ExogenousNoiseDto[]

Defined in: src/types/causal.ts:1330

Exogenous noise variables with their distributions.


interventions: Record<string, number>

Defined in: src/types/causal.ts:1332

The hypothetical interventions do(V = v).


query: string

Defined in: src/types/causal.ts:1334

The variable whose counterfactual distribution is queried.