ExperimentRunDetails
¶
Source code in docs_src/capo_cloudwatchomni/types/experiment_run_details.py
batch_evaluation
instance-attribute
¶
batch_evaluation: NotRequired[BatchEvaluationProgress]
The progress of the hosted run's batch evaluation. Hosted runs only.
case_records_written
instance-attribute
¶
case_records_written: NotRequired[int]
The number of case records written, across every attempt and revision.
checks
instance-attribute
¶
checks: NotRequired[VerdictCheckList]
The result of checking each of the rule's gates.
control
instance-attribute
¶
control: NotRequired[ControlSource]
What the run is compared against, as given.
control_run_id
instance-attribute
¶
control_run_id: NotRequired[ExperimentRunId]
The ID of the run this run is compared with, resolved when the run starts: either the live control run or the earlier run.
description
instance-attribute
¶
description: NotRequired[Description]
The description of the run, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when none was given.
evaluators
instance-attribute
¶
evaluators: NotRequired[ExperimentEvaluatorList]
The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.
experiment_id
instance-attribute
¶
experiment_id: ExperimentId
The ID of the experiment the run belongs to.
metadata
instance-attribute
¶
metadata: NotRequired[RunMetadataMap]
Key-value facts about what the run tested, as given when the run was created.
metrics
instance-attribute
¶
metrics: NotRequired[EvaluatorMetricList]
Statistics for each of the run's evaluators.
producer
instance-attribute
¶
producer: NotRequired[ExperimentProducer]
The producer that reports the run. Reported runs only.
producer_principal
instance-attribute
¶
producer_principal: str
The IAM principal that started the run, without the session name.
role
instance-attribute
¶
role: RunRole
The role of the run: TARGET, or CONTROL for a live control run.
rule
instance-attribute
¶
rule: NotRequired[ExperimentRule]
The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when the run has no rule, in which case the run has no verdict.
source
instance-attribute
¶
source: ExperimentRunSource
Whether the run is reported by the caller's code or hosted by the service.
started_at
instance-attribute
¶
started_at: NotRequired[datetime]
The time when the run started. For reported runs, the declared run.startedAt, or createdAt if none was declared. For hosted runs, the time when the batch evaluation was created.
status_detail
instance-attribute
¶
status_detail: NotRequired[DetailText]
Additional detail about the status: the StopExperimentRun detail, or for RUNNER_FAILED, the AgentCore error details as one string of up to 1,000 characters.
status_reason
instance-attribute
¶
status_reason: NotRequired[ExperimentRunStatusReason]
Why the run did not finish. Present when status is DID_NOT_FINISH.
summary
instance-attribute
¶
summary: NotRequired[ExperimentCaseSummary]
Case counts and rates for the run. Updated live for reported runs; for hosted runs, filled in when the AgentCore batch evaluation finishes.
target
instance-attribute
¶
target: TargetConfig
The version of the experiment's target that the run tested, as given when the run was started or created.
target_run_id
instance-attribute
¶
target_run_id: NotRequired[ExperimentRunId]
For a CONTROL run, the ID of the run it is the control for.
trace_stats
instance-attribute
¶
trace_stats: NotRequired[RunTraceStats]
Statistics from the agent's spans for the run, read after the run ended. Present once collection has started, which happens for a run that ends while its experiment has collectTraceStats enabled. Absent otherwise, including while the run is open.
verdict
instance-attribute
¶
verdict: NotRequired[Verdict]
The verdict of the run. Present only for runs with a rule, once the run has ended.
verdict_reason
instance-attribute
¶
verdict_reason: NotRequired[str]
A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".
verdict_reason_code
instance-attribute
¶
verdict_reason_code: NotRequired[VerdictReasonCode]
The reason for the run's verdict.