pyrit.models.SeedPromptGroup#

class SeedPromptGroup(*, prompts: List[SeedPrompt] | List[Dict[str, Any]])[source]#

Bases: YamlLoadable

A group of prompts that need to be sent together.

This class is useful when a target requires multiple (multimodal) prompt pieces to be grouped and sent together. All prompts in the group should share the same prompt_group_id.

__init__(*, prompts: List[SeedPrompt] | List[Dict[str, Any]])[source]#

Methods

__init__(*, prompts)

from_yaml_file(file)

Creates a new object from a YAML file.

Attributes

prompts: List[SeedPrompt]#