pyrit.orchestrator.MultiTurnAttackResult#

class MultiTurnAttackResult(conversation_id: str, achieved_objective: bool, objective: str)[source]#

Bases: object

The result of a multi-turn attack.

__init__(conversation_id: str, achieved_objective: bool, objective: str)[source]#

Methods

__init__(conversation_id, ...)

print_conversation_async()

Prints the conversation between the objective target and the adversarial chat, including the scores.

async print_conversation_async()[source]#

Prints the conversation between the objective target and the adversarial chat, including the scores.

Parameters:

prompt_target_conversation_id (str) – the conversation ID for the prompt target.