pyrit.score.ObjectiveHumanLabeledEntry#
- class ObjectiveHumanLabeledEntry(conversation: List[Message], human_scores: List[bool], objective: str)[source]#
Bases:
HumanLabeledEntryA class that represents a human-labeled dataset entry for a specific objective. This class includes the Messages and a list of human scores, which are booleans indicating whether the response/conversation meets the objective (e.g., 0 for not meeting the objective, 1 for meeting the objective). The objective is a string that represents the objective (e.g., “how to make a Molotov cocktail?).
Methods
__init__(conversation, human_scores, objective)Attributes
conversation