Ë
    tPêjH  ã                   ó@   — d dl mZ d dlmZ erd dlmZ  G d„ d«      Zy)é    )ÚTYPE_CHECKING©Úget_last_user_message)ÚAllMessageValuesc                   ó,   — e Zd ZdZded   dedz  fd„Zy)ÚOpenAIGuardrailBasez+
    Base class for OpenAI guardrails.
    Úmessagesr   ÚreturnNc                 ó   — t        |«      S )a‘  
        Get the last consecutive block of messages from the user.

        Example:
        messages = [
            {"role": "user", "content": "Hello, how are you?"},
            {"role": "assistant", "content": "I'm good, thank you!"},
            {"role": "user", "content": "What is the weather in Tokyo?"},
        ]
        get_user_prompt(messages) -> "What is the weather in Tokyo?"
        r   )Úselfr	   s     úy/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/guardrails/guardrail_hooks/openai/base.pyÚget_user_promptz#OpenAIGuardrailBase.get_user_prompt   s   € ô % XÓ.Ð.ó    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚlistÚstrr   © r   r   r   r      s$   „ ñð/¨Ð-?Ñ(@ð /ÀSÈ4ÁZô /r   r   N)Útypingr   Ú8litellm.litellm_core_utils.prompt_templates.common_utilsr   Úlitellm.types.llms.openair   r   r   r   r   ú<module>r      s   ðÝ  õñ Ý:÷/ò /r   