pyrit.chat_message_normalizer.ChatMessageNop#
- class ChatMessageNop[source]#
Bases:
ChatMessageNormalizer[list[ChatMessage]]A no-op chat message normalizer that does not modify the input messages.
- __init__()#
Methods
__init__()normalize(messages)Return the same list as was passed in.
squash_system_message(messages, squash_function)Combine the system message into the first user request.
- normalize(messages: list[ChatMessage]) list[ChatMessage][source]#
Return the same list as was passed in.
- Parameters:
messages (list[ChatMessage]) – The list of messages to normalize.
- Returns:
The normalized list of messages.
- Return type: