pyrit.prompt_target.PromptTarget#

class PromptTarget(verbose: bool = False, max_requests_per_minute: int | None = None)[source]#

Bases: ABC, Identifier

__init__(verbose: bool = False, max_requests_per_minute: int | None = None) None[source]#

Methods

__init__([verbose, max_requests_per_minute])

dispose_db_engine()

Dispose DuckDB database engine to release database connections and resources.

get_identifier()

send_prompt_async(*, prompt_request)

Sends a normalized prompt async to the prompt target.

Attributes

dispose_db_engine() None[source]#

Dispose DuckDB database engine to release database connections and resources.

get_identifier()[source]#
abstract async send_prompt_async(*, prompt_request: PromptRequestResponse) PromptRequestResponse[source]#

Sends a normalized prompt async to the prompt target.

supported_converters: list#