Skip to content

IRunErrorClassifier

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Converts a raw run error into a class and a clustering fingerprint.

public interface IRunErrorClassifier

Called only on the error path; it never triggers on a successful run and must not allocate on the hot path.

AgentPrism’s taxonomy is its own opinion; a consumer may want their own class or clustering rule. Registered with TryAddSingleton, so the consumer’s registration wins.

Classifies the error. Returns RunErrorClass.Unknown if no rule matches — it does not guess.

RunErrorClassification Classify(RunError runError)

runError RunError

The raw error to classify.

RunErrorClassification

The class and clustering fingerprint.