Skip to content

StartExperimentRunInput

Source code in docs_src/capo_cloudwatchomni/types/start_experiment_run_input.py
class StartExperimentRunInput(TypedDict, closed=True):
    experiment_id: "capo_cloudwatchomni.types.experiment_id.ExperimentId"
    """The ID of the experiment to start the run in."""
    client_token: NotRequired["capo_cloudwatchomni.types.client_token.ClientToken"]
    """Idempotency token for safe retries. Repeated requests with the same token return the original run instead of starting another."""
    rule: NotRequired["capo_cloudwatchomni.types.experiment_rule.ExperimentRule"]
    """An optional rule. When present, the run gets a verdict when it ends."""
    evaluators: (
        "capo_cloudwatchomni.types.experiment_evaluator_list.ExperimentEvaluatorList"
    )
    """The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators."""
    target: "capo_cloudwatchomni.types.target_config.TargetConfig"
    """The version of the experiment's target to run. Hosted runs support only agentCoreRuntime."""
    dataset: "capo_cloudwatchomni.types.experiment_run_dataset.ExperimentRunDataset"
    """The dataset to run, with source AGENTCORE, an id and a published version. Fails with FIELD_REQUIRED without a version, and the version cannot be DRAFT. Omit caseCount and contentHash."""
    control: NotRequired["capo_cloudwatchomni.types.control_source.ControlSource"]
    """An optional control to compare the run with. A target control starts a second run on the same dataset alongside this one, which uses a second AgentCore batch evaluation and counts toward the experiment's run quota. Required by rules that use vsControl or paired metrics (RULE_CONTROL_REQUIRED)."""
    metadata: NotRequired["capo_cloudwatchomni.types.run_metadata_map.RunMetadataMap"]
    """Additional details about what the run tested, beyond the target and dataset versions."""
    description: NotRequired["capo_cloudwatchomni.types.description.Description"]
    """An optional description of the run, up to 1024 characters with no control characters. Cannot be changed after the run starts."""

client_token instance-attribute

client_token: NotRequired[ClientToken]

Idempotency token for safe retries. Repeated requests with the same token return the original run instead of starting another.

control instance-attribute

control: NotRequired[ControlSource]

An optional control to compare the run with. A target control starts a second run on the same dataset alongside this one, which uses a second AgentCore batch evaluation and counts toward the experiment's run quota. Required by rules that use vsControl or paired metrics (RULE_CONTROL_REQUIRED).

dataset instance-attribute

The dataset to run, with source AGENTCORE, an id and a published version. Fails with FIELD_REQUIRED without a version, and the version cannot be DRAFT. Omit caseCount and contentHash.

description instance-attribute

description: NotRequired[Description]

An optional description of the run, up to 1024 characters with no control characters. Cannot be changed after the run starts.

evaluators instance-attribute

The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators.

experiment_id instance-attribute

experiment_id: ExperimentId

The ID of the experiment to start the run in.

metadata instance-attribute

metadata: NotRequired[RunMetadataMap]

Additional details about what the run tested, beyond the target and dataset versions.

rule instance-attribute

rule: NotRequired[ExperimentRule]

An optional rule. When present, the run gets a verdict when it ends.

target instance-attribute

target: TargetConfig

The version of the experiment's target to run. Hosted runs support only agentCoreRuntime.