pyrit.executor.promptgen.AnecdoctorContext#

class AnecdoctorContext(evaluation_data: ~typing.List[str], language: str, content_type: str, conversation_id: str = <factory>, memory_labels: ~typing.Dict[str, str] = <factory>)[source]#

Bases: PromptGeneratorStrategyContext

Context specific to Anecdoctor prompt generation.

Contains all parameters needed for executing Anecdoctor prompt generation, including the evaluation data, language settings, and conversation ID.

__init__(evaluation_data: ~typing.List[str], language: str, content_type: str, conversation_id: str = <factory>, memory_labels: ~typing.Dict[str, str] = <factory>) None#

Methods

__init__(evaluation_data, language, content_type)

duplicate()

Create a deep copy of the context.

Attributes

content_type: str#
conversation_id: str#
evaluation_data: List[str]#
language: str#
memory_labels: Dict[str, str]#