Skip to content

ExperimentRunDetails

Source code in docs_src/capo_cloudwatchomni/types/experiment_run_details.py
class ExperimentRunDetails(TypedDict, closed=True):
    experiment_id: "capo_cloudwatchomni.types.experiment_id.ExperimentId"
    """The ID of the experiment the run belongs to."""
    run_id: "capo_cloudwatchomni.types.experiment_run_id.ExperimentRunId"
    """The ID of the run."""
    source: "capo_cloudwatchomni.types.experiment_run_source.ExperimentRunSource"
    """Whether the run is reported by the caller's code or hosted by the service."""
    status: "capo_cloudwatchomni.types.experiment_run_status.ExperimentRunStatus"
    """The status of the run."""
    status_reason: NotRequired[
        "capo_cloudwatchomni.types.experiment_run_status_reason.ExperimentRunStatusReason"
    ]
    """Why the run did not finish. Present when status is DID_NOT_FINISH."""
    status_detail: NotRequired["capo_cloudwatchomni.types.detail_text.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."""
    producer: NotRequired[
        "capo_cloudwatchomni.types.experiment_producer.ExperimentProducer"
    ]
    """The producer that reports the run. Reported runs only."""
    producer_principal: "str"
    """The IAM principal that started the run, without the session name."""
    target: "capo_cloudwatchomni.types.target_config.TargetConfig"
    """The version of the experiment's target that the run tested, as given when the run was started or created."""
    control: NotRequired["capo_cloudwatchomni.types.control_source.ControlSource"]
    """What the run is compared against, as given."""
    control_run_id: NotRequired[
        "capo_cloudwatchomni.types.experiment_run_id.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."""
    role: "capo_cloudwatchomni.types.run_role.RunRole"
    """The role of the run: TARGET, or CONTROL for a live control run."""
    target_run_id: NotRequired[
        "capo_cloudwatchomni.types.experiment_run_id.ExperimentRunId"
    ]
    """For a CONTROL run, the ID of the run it is the control for."""
    dataset: NotRequired[
        "capo_cloudwatchomni.types.experiment_run_dataset.ExperimentRunDataset"
    ]
    """The dataset the run tested."""
    evaluators: NotRequired[
        "capo_cloudwatchomni.types.experiment_evaluator_list.ExperimentEvaluatorList"
    ]
    """The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs."""
    rule: NotRequired["capo_cloudwatchomni.types.experiment_rule.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."""
    metadata: NotRequired["capo_cloudwatchomni.types.run_metadata_map.RunMetadataMap"]
    """Key-value facts about what the run tested, as given when the run was created."""
    description: NotRequired["capo_cloudwatchomni.types.description.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."""
    trace_stats: NotRequired["capo_cloudwatchomni.types.run_trace_stats.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."""
    batch_evaluation: NotRequired[
        "capo_cloudwatchomni.types.batch_evaluation_progress.BatchEvaluationProgress"
    ]
    """The progress of the hosted run's batch evaluation. Hosted runs only."""
    summary: NotRequired[
        "capo_cloudwatchomni.types.experiment_case_summary.ExperimentCaseSummary"
    ]
    """Case counts and rates for the run. Updated live for reported runs; for hosted runs, filled in when the AgentCore batch evaluation finishes."""
    metrics: NotRequired[
        "capo_cloudwatchomni.types.evaluator_metric_list.EvaluatorMetricList"
    ]
    """Statistics for each of the run's evaluators."""
    case_records_written: NotRequired["int"]
    """The number of case records written, across every attempt and revision."""
    verdict: NotRequired["capo_cloudwatchomni.types.verdict.Verdict"]
    """The verdict of the run. Present only for runs with a rule, once the run has ended."""
    verdict_reason_code: NotRequired[
        "capo_cloudwatchomni.types.verdict_reason_code.VerdictReasonCode"
    ]
    """The reason for the run's verdict."""
    verdict_reason: NotRequired["str"]
    """A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)"."""
    checks: NotRequired["capo_cloudwatchomni.types.verdict_check_list.VerdictCheckList"]
    """The result of checking each of the rule's gates."""
    created_at: "datetime.datetime"
    """The time when the run was created."""
    started_at: NotRequired["datetime.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."""
    completed_at: NotRequired["datetime.datetime"]
    """The time when the run ended."""
    updated_at: "datetime.datetime"
    """The time when the run was last updated."""

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.

completed_at instance-attribute

completed_at: NotRequired[datetime]

The time when the run ended.

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.

created_at instance-attribute

created_at: datetime

The time when the run was created.

dataset instance-attribute

dataset: NotRequired[ExperimentRunDataset]

The dataset the run tested.

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.

run_id instance-attribute

The ID of the run.

source instance-attribute

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 instance-attribute

The status of the run.

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.

updated_at instance-attribute

updated_at: datetime

The time when the run was last updated.

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.