Skip to content

CaseEvaluatorResult

Source code in docs_src/capo_cloudwatchomni/types/case_evaluator_result.py
class CaseEvaluatorResult(TypedDict, closed=True):
    evaluator_id: "capo_cloudwatchomni.types.evaluator_identifier.EvaluatorIdentifier"
    """The ID of the evaluator that produced this result. Must be one of the run's evaluators."""
    score: NotRequired["float"]
    """The numeric score, a finite number from -1e9 to 1e9. The service keeps up to 12 decimal places."""
    label: NotRequired["capo_cloudwatchomni.types.evaluator_label.EvaluatorLabel"]
    """The categorical label the evaluator assigned to the case."""
    explanation: NotRequired["capo_cloudwatchomni.types.case_text.CaseText"]
    """The evaluator's explanation of the result. Truncated above 4 KB, in which case explanationTruncated is true."""
    explanation_truncated: NotRequired["bool"]
    """Whether explanation was truncated."""
    error: NotRequired["capo_cloudwatchomni.types.scoring_error.ScoringError"]
    """The error, when the evaluator produced no result for the case. Cannot be set together with score or label."""

error instance-attribute

error: NotRequired[ScoringError]

The error, when the evaluator produced no result for the case. Cannot be set together with score or label.

evaluator_id instance-attribute

evaluator_id: EvaluatorIdentifier

The ID of the evaluator that produced this result. Must be one of the run's evaluators.

explanation instance-attribute

explanation: NotRequired[CaseText]

The evaluator's explanation of the result. Truncated above 4 KB, in which case explanationTruncated is true.

explanation_truncated instance-attribute

explanation_truncated: NotRequired[bool]

Whether explanation was truncated.

label instance-attribute

label: NotRequired[EvaluatorLabel]

The categorical label the evaluator assigned to the case.

score instance-attribute

score: NotRequired[float]

The numeric score, a finite number from -1e9 to 1e9. The service keeps up to 12 decimal places.