Source code for pyrit.chat_message_normalizer.chat_message_nop

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from pyrit.models import ChatMessage
from pyrit.chat_message_normalizer import ChatMessageNormalizer


[docs] class ChatMessageNop(ChatMessageNormalizer[list[ChatMessage]]):
[docs] def normalize(self, messages: list[ChatMessage]) -> list[ChatMessage]: """ returns the same list as was passed in """ return messages