pyrit.score.TrueFalseQuestion#
- class TrueFalseQuestion(*, true_description: str, false_description: str = '', category: str = '', metadata: str = '')[source]#
Bases:
objectA class that represents a true/false question.
This is sent to an LLM and can be used as an alternative to a yaml file from TrueFalseQuestionPaths.
- __init__(*, true_description: str, false_description: str = '', category: str = '', metadata: str = '')[source]#
Methods
__init__(*, true_description[, ...])