@langwatch/scenario
    Preparing search index...

    Class CrescendoStrategy

    Implements

    Index

    Constructors

    Methods

    • Build a turn-aware system prompt for the attacker.

      Score feedback, adaptation hints, and backtrack markers are communicated via the attacker's private conversation history (H_attacker) as system messages — not embedded in this prompt.

      Parameters

      • params: {
            currentTurn: number;
            metapromptPlan: string;
            scenarioDescription: string;
            target: string;
            totalTurns: number;
        }

      Returns string

    • Return phase boundary turn numbers to inject into the metaprompt template.

      Override this to inject strategy-specific template variables. Strategies that don't need extra template vars (e.g. GOAT) can omit this method — the orchestrator treats undefined as "no extra vars".

      Parameters

      • totalTurns: number

      Returns [number, number, number]