pyrit.score.TrueFalseQuestion

pyrit.score.TrueFalseQuestion#

class TrueFalseQuestion(*, true_description: str, false_description: str = '', category: str = '', metadata: str | None = '')[source]#

Bases: object

A 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 | None = '')[source]#

Methods

__init__(*, true_description[, ...])