Ë
    ý{™h«  ã                   óV   — d dl Z d dlZd dlmZ d dlmZmZmZ ddee   dee   defd„Z	y)	é    N)Ú	BaseModel)ÚDictÚOptionalÚTypeÚ	tool_callÚtool_idÚreturnc                 óÀ   — |€t        t        j                  «       «      }|d| j                  j                  t        j                  | j                  «       d¬«      dœdœS )a^  
    Formats a message for a tool call.

    Args:
        tool_call (Type[BaseModel]): The Pydantic model instance representing the tool call.
        tool_id (str, optional): The unique identifier for the tool call. If not provided, a random UUID will be generated.

    Returns:
        Dict: A formatted message dictionary for the tool call.
    Úfunction)z, z: )Ú
separators)ÚnameÚ	arguments)ÚidÚtyper   )ÚstrÚuuidÚuuid4Ú	__class__Ú__name__ÚjsonÚdumpsÚ
model_dump)r   r   s     úh/var/www/html/hubwallet-dev/venv/lib/python3.12/site-packages/atomic_agents/utils/format_tool_message.pyÚformat_tool_messager      sV   € ð €Ü”d—j‘j“lÓ#ˆð Øà×'Ñ'×0Ñ0ÜŸ™ I×$8Ñ$8Ó$:À|ÔTñ
ñð ó    )N)
r   r   Úpydanticr   Útypingr   r   r   r   r   © r   r   ú<module>r      s7   ðÛ Û Ý ß 'Ñ 'ñ 4¨	¡?ð ¸XÀc¹]ð ÐVZô r   