pyrit.executor.attack.AttackAdversarialConfig#

class AttackAdversarialConfig(target: PromptChatTarget, system_prompt_path: str | Path | None = None, seed_prompt: str | SeedPrompt = 'Generate your first message to achieve: {{ objective }}')[source]#

Bases: object

Adversarial configuration for attacks that involve adversarial chat targets.

This class defines the configuration for attacks that utilize an adversarial chat target, including the target chat model, system prompt, and seed prompt for the attack.

__init__(target: PromptChatTarget, system_prompt_path: str | Path | None = None, seed_prompt: str | SeedPrompt = 'Generate your first message to achieve: {{ objective }}') None#

Methods

__init__(target[, system_prompt_path, ...])

Attributes

seed_prompt: str | SeedPrompt = 'Generate your first message to achieve: {{ objective }}'#
system_prompt_path: str | Path | None = None#
target: PromptChatTarget#