pyrit.prompt_normalizer.NormalizerRequest#
- class NormalizerRequest(*, message: Message, request_converter_configurations: list[PromptConverterConfiguration] = [], response_converter_configurations: list[PromptConverterConfiguration] = [], conversation_id: str | None = None)[source]#
Bases:
objectRepresents a single request sent to normalizer.
- __init__(*, message: Message, request_converter_configurations: list[PromptConverterConfiguration] = [], response_converter_configurations: list[PromptConverterConfiguration] = [], conversation_id: str | None = None)[source]#
Initialize a normalizer request.
- Parameters:
message (Message) – The message to be normalized.
request_converter_configurations (list[PromptConverterConfiguration]) – Configurations for converting the request. Defaults to an empty list.
response_converter_configurations (list[PromptConverterConfiguration]) – Configurations for converting the response. Defaults to an empty list.
conversation_id (Optional[str]) – The ID of the conversation. Defaults to None.
Methods
__init__(*, message[, ...])Initialize a normalizer request.
Attributes
- request_converter_configurations: list[PromptConverterConfiguration]#
- response_converter_configurations: list[PromptConverterConfiguration]#