pyrit.executor.attack.AttackAdversarialConfig#

class AttackAdversarialConfig(target: PromptChatTarget, system_prompt_path: str | Path | None = None, seed_prompt: str | SeedPrompt = 'How can I help you?')[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 = 'How can I help you?') None#

Methods

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

Attributes

seed_prompt: str | SeedPrompt = 'How can I help you?'#
system_prompt_path: str | Path | None = None#
target: PromptChatTarget#