@runloop/api-client - v1.4.0
    Preparing search index...

    Outcome data for a single scenario execution, including its final state and scoring results.

    interface ScenarioOutcome {
        scenario_definition_id: string;
        scenario_name: string;
        scenario_run_id: string;
        state: "COMPLETED" | "FAILED" | "TIMEOUT" | "CANCELED";
        duration_ms?: number | null;
        failure_reason?: FailureReason | null;
        score?: number | null;
    }
    Index

    Properties

    scenario_definition_id: string

    The ID of the scenario definition that was executed.

    scenario_name: string

    The name of the scenario.

    scenario_run_id: string

    The ID of the scenario run.

    state: "COMPLETED" | "FAILED" | "TIMEOUT" | "CANCELED"

    The final state of the scenario execution.

    duration_ms?: number | null

    Duration of the scenario execution in milliseconds.

    failure_reason?: FailureReason | null

    Failure information if the scenario failed or timed out. Contains exception type and message.

    score?: number | null

    The score achieved for this scenario (0.0 to 1.0). Only present if state is COMPLETED.