Ë
    uPêjÌ  ã            %       óô  — d Z ddlmZmZmZ ddlmZ ddlmZ	 ddlm
Z ddlmZ 	 	 	 	 	 	 	 	 	 	 	 dded	ee   d
ededz  dee   dz  dedz  dedz  dedz  dedz  dedz  dee   dz  dedz  dedz  dedz  deez  fd„Z	 	 	 	 	 	 	 	 	 	 	 dded	ee   d
ededz  dee   dz  dedz  dedz  dedz  dedz  dedz  dee   dz  dedz  dedz  dedz  deee   z  ee   z  eeeeee   z  ee   z  f   z  fd„Zy)zã
Interface for Anthropic's messages API

Use this to call LLMs in Anthropic /messages Request/Response format

This is an __init__.py file to allow the following interface

- litellm.messages.acreate
- litellm.messages.create

é    )ÚAsyncIteratorÚ	CoroutineÚIterator)ÚAny)Úanthropic_messages)Úanthropic_messages_handler)ÚAnthropicMessagesResponseNÚ
max_tokensÚmessagesÚmodelÚmetadataÚstop_sequencesÚstreamÚsystemÚtemperatureÚthinkingÚtool_choiceÚtoolsÚtop_kÚtop_pÚ	containerÚreturnc              ‹   óR   K  — t        d| |||||||||	|
|||dœ|¤Žƒ d{  –—† S 7 Œ­w)a  
    Async wrapper for Anthropic's messages API

    Args:
        max_tokens (int): Maximum tokens to generate (required)
        messages (List[Dict]): List of message objects with role and content (required)
        model (str): Model name to use (required)
        metadata (Dict, optional): Request metadata
        stop_sequences (List[str], optional): Custom stop sequences
        stream (bool, optional): Whether to stream the response
        system (str, optional): System prompt
        temperature (float, optional): Sampling temperature (0.0 to 1.0)
        thinking (Dict, optional): Extended thinking configuration
        tool_choice (Dict, optional): Tool choice configuration
        tools (List[Dict], optional): List of tool definitions
        top_k (int, optional): Top K sampling parameter
        top_p (float, optional): Nucleus sampling parameter
        container (Dict, optional): Container config with skills for code execution
        **kwargs: Additional arguments

    Returns:
        Dict: Response from the API
    ©r
   r   r   r   r   r   r   r   r   r   r   r   r   r   N© )Ú_async_anthropic_messages©r
   r   r   r   r   r   r   r   r   r   r   r   r   r   Úkwargss                  úr/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/anthropic_interface/messages/__init__.pyÚacreater       sY   è ø€ ôP +ð ØØØØØ%ØØØØØØØØØñð ñ÷ ð ð ús   ‚' %¡'c                 ó6   — t        d| |||||||||	|
|||dœ|¤ŽS )aÇ  
    Async wrapper for Anthropic's messages API

    Args:
        max_tokens (int): Maximum tokens to generate (required)
        messages (List[Dict]): List of message objects with role and content (required)
        model (str): Model name to use (required)
        metadata (Dict, optional): Request metadata
        stop_sequences (List[str], optional): Custom stop sequences
        stream (bool, optional): Whether to stream the response
        system (str, optional): System prompt
        temperature (float, optional): Sampling temperature (0.0 to 1.0)
        thinking (Dict, optional): Extended thinking configuration
        tool_choice (Dict, optional): Tool choice configuration
        tools (List[Dict], optional): List of tool definitions
        top_k (int, optional): Top K sampling parameter
        top_p (float, optional): Nucleus sampling parameter
        **kwargs: Additional arguments

    Returns:
        Dict: Response from the API
    r   r   )Ú_sync_anthropic_messagesr   s                  r   Úcreater#   V   sK   € ôX $ð ØØØØØ%ØØØØØØØØØñð ñð ó    )NNFNNNNNNNN)Ú__doc__Úcollections.abcr   r   r   Útypingr   ÚAlitellm.llms.anthropic.experimental_pass_through.messages.handlerr   r   r   r"   Ú8litellm.types.llms.anthropic_messages.anthropic_responser	   ÚintÚlistÚdictÚstrÚboolÚfloatr    Úbytesr#   r   r$   r   ú<module>r1      sW  ðñ
÷ ?Ñ >Ý õõõð !Ø'+ØØØ $Ø Ø#Ø#ØØØ!ñ8Øð8à�4‰jð8ð ð8ð �T‰kð	8ð
 ˜‘I Ñ$ð8ð �4‰Kð8ð �$‰Jð8ð ˜‘ð8ð �T‰kð8ð ˜‘ð8ð �‰:˜Ñð8ð �‰:ð8ð �4‰<ð8ð �d‰{ð8ð   Ñ.ó!8ð~ !Ø'+ØØØ $Ø Ø#Ø#ØØØ!ñ<Øð<à�4‰jð<ð ð<ð �T‰kð	<ð
 ˜‘I Ñ$ð<ð �4‰Kð<ð �$‰Jð<ð ˜‘ð<ð �T‰kð<ð ˜‘ð<ð �‰:˜Ñð<ð �‰:ð<ð �4‰<ð<ð �d‰{ð<ð" Øˆu�oñà�CÑñð ��SÐ3°mÀCÑ6HÑHÈ8ÐTYÉ?ÑZÐZÑ[ñ\ô#<r$   