@langwatch/scenario
    Preparing search index...

    Interface ScenarioResult

    Represents the result of a scenario execution.

    interface ScenarioResult {
        agentTime?: number;
        audio?: VoiceRecording;
        error?: string;
        latency?: LatencyMetrics;
        messages: ModelMessage[];
        metCriteria: string[];
        reasoning?: string;
        runId: string;
        success: boolean;
        timeline?: VoiceEvent[];
        totalTime?: number;
        unmetCriteria: string[];
    }
    Index

    Properties

    agentTime?: number

    The time the agent spent processing during the scenario in seconds.

    Voice-only: the full audio record of the conversation, segmented by speaker. Populated by the executor at end-of-scenario when a voice adapter participated; absent for text-only runs (back-compat).

    error?: string

    An optional error message if the scenario failed due to an error.

    latency?: LatencyMetrics

    Voice-only: aggregate response-time statistics across the agent's turns. Absent for text-only runs (back-compat).

    messages: ModelMessage[]

    The sequence of messages exchanged during the scenario.

    metCriteria: string[]

    A list of criteria that were successfully met.

    reasoning?: string

    The reasoning behind the scenario's outcome.

    runId: string

    Unique identifier for this scenario run.

    success: boolean

    Indicates whether the scenario was successful.

    timeline?: VoiceEvent[]

    Voice-only: timestamped events on the voice conversation timeline (user_start_speaking, agent_start_speaking, user_interrupt, etc.). Absent for text-only runs (back-compat).

    totalTime?: number

    The total time taken for the scenario execution in seconds.

    unmetCriteria: string[]

    A list of criteria that were not met.