pyrit.prompt_target.GandalfTarget#

class GandalfTarget(*, level: GandalfLevel, max_requests_per_minute: int | None = None)[source]#

Bases: PromptTarget

__init__(*, level: GandalfLevel, max_requests_per_minute: int | None = None) None[source]#

Methods

__init__(*, level[, max_requests_per_minute])

check_password(password)

Checks if the password is correct

dispose_db_engine()

Dispose DuckDB database engine to release database connections and resources.

get_identifier()

send_prompt_async(**kwargs)

Sends a normalized prompt async to the prompt target.

Attributes

supported_converters

async check_password(password: str) bool[source]#

Checks if the password is correct

True means the password is correct, False means it is not

async send_prompt_async(**kwargs)#

Sends a normalized prompt async to the prompt target.