Skip to main content

diagnose_pipeline()

The turnkey on-ramp. Runs your pipeline under a Witness tracer, scores the captured trace with your judge, and invokes the attribution engine — all in one call.

Signature

Parameters

Example


Origin

The attribution engine. Use directly when you already have a captured AgentTrace and a score.

Constructor

runner and judge must be provided together — having one without the other raises ValueError.

Origin.diagnose()

Example

Origin.ablation_available

boolTrue when both runner and judge are set.

judge_from_verdict()

Adapts any Verdict Metric to Origin’s Callable[[AgentTrace], float] contract. Duck-typed — no hard Verdict dependency at import time.

Signature

Example

Using any callable as a judge

judge= accepts any Callable[[AgentTrace], float] — you don’t need Verdict: