pyrit.prompt_target.PromptChatTarget#
- class PromptChatTarget(*, max_requests_per_minute: int | None = None)[source]#
Bases:
PromptTarget
Methods
__init__
(*[, max_requests_per_minute])dispose_db_engine
()Dispose DuckDB database engine to release database connections and resources.
get_identifier
()send_chat_prompt_async
(*, prompt, ...[, ...])Sends a text prompt to the target without having to build the prompt request.
send_prompt_async
(*, prompt_request)Sends a normalized prompt async to the prompt target.
set_system_prompt
(*, system_prompt, ...[, ...])Sets the system prompt for the prompt target.
Attributes
supported_converters