@langwatch/scenario
    Preparing search index...

    Interface RedTeamStrategy

    interface RedTeamStrategy {
        buildSystemPrompt(
            params: {
                currentTurn: number;
                metapromptPlan: string;
                scenarioDescription: string;
                target: string;
                totalTurns: number;
            },
        ): string;
        getPhaseName(currentTurn: number, totalTurns: number): string;
    }

    Implemented by

    Index

    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