@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

    • Parameters

      • currentTurn: number
      • totalTurns: number

      Returns { instructions: string; name: string }