Ë
    µŒjÓ  ã            	       óÄ   — d dl mZmZmZmZ d dlmZ d dlmZ  G d„ de«      Z	 G d„ de«      Z
ddd	œd
ee   dee   dee   de	fd„Zddd	œd
ee   dee   dee   de
fd„Zy)é    )ÚLiteralÚOptionalÚTypeÚ	TypedDict)Údereference_refs)Ú	BaseModelc                   ó4   — e Zd ZU dZeed<   	 eed<   	 eed<   y)ÚFunctionDescriptionú7Representation of a callable function to the Ernie API.ÚnameÚdescriptionÚ
parametersN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚstrÚ__annotations__Údict© ó    ús/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/langchain_community/utils/ernie_functions.pyr
   r
      s   … ÙAà
ƒIØ#ØÓØ(ØÓØ)r   r
   c                   ó,   — e Zd ZU dZed   ed<   eed<   y)ÚToolDescriptionr   ÚfunctionÚtypeN)r   r   r   r   r   r   r
   r   r   r   r   r      s   … ÙAà
�*Ñ
ÓØ!Ô!r   r   N©r   r   Úmodelr   r   Úreturnc                ó€   — t        | j                  «       «      }|j                  dd«       |xs |d   |xs |d   |dœS )úEConvert a Pydantic model to a function description for the Ernie API.ÚdefinitionsNÚtitler   )r   r   r   )r   ÚschemaÚpop)r   r   r   r$   s       r   Ú"convert_pydantic_to_ernie_functionr&      sH   € ô ˜eŸl™l›nÓ-€FØ
‡J�Jˆ}˜dÔ#àÒ'˜˜w™Ø"Ò; f¨]Ñ&;Øñð r   c                ó(   — t        | ||¬«      }d|dœS )r!   r   r   )r   r   )r&   )r   r   r   r   s       r   Úconvert_pydantic_to_ernie_toolr(   )   s"   € ô 2Ø�D kô€Hð ¨HÑ5Ð5r   )Útypingr   r   r   r   Ú langchain_core.utils.json_schemar   Úpydanticr   r
   r   r   r&   r(   r   r   r   Ú<module>r,      s§   ðß 5Ó 5å =Ý ô*˜)ô *ô"�iô "ð Ø!%ò	Ø�	‰?ðð �3‰-ðð ˜#‘ð	ð
 óð& Ø!%ò	
6Ø�	‰?ð
6ð �3‰-ð
6ð ˜#‘ð	
6ð
 ô
6r   