@langwatch/scenario
    Preparing search index...

    Interface ScenarioResult

    Represents the result of a scenario execution.

    interface ScenarioResult {
        agentTime?: number;
        error?: string;
        messages: CoreMessage[];
        metCriteria: string[];
        reasoning?: string;
        success: boolean;
        totalTime?: number;
        unmetCriteria: string[];
    }
    Index

    Properties

    agentTime?: number

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

    error?: string

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

    messages: CoreMessage[]

    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.

    success: boolean

    Indicates whether the scenario was successful.

    totalTime?: number

    The total time taken for the scenario execution in seconds.

    unmetCriteria: string[]

    A list of criteria that were not met.