
    3fie                     |    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
mZ ddlmZ  G d de
      Z G d	 d
e      Zy)z%Tool for the Passio Nutrition AI API.    )DictOptionalType)CallbackManagerForToolRun)BaseTool)	BaseModelField)NutritionAIAPIc                   .    e Zd ZU dZ ed      Zeed<   y)NutritionAIInputsz'Inputs to the Passio Nutrition AI tool.zBA query to look up using Passio Nutrition AI, usually a few words.)descriptionqueryN)__name__
__module____qualname____doc__r	   r   str__annotations__     p/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/langchain_community/tools/passio_nutrition_ai/tool.pyr   r      s    1XE3 r   r   c                   p    e Zd ZU dZdZeed<   dZeed<   eed<   e	Z
ee   ed<   	 dd	ed
ee   dee   fdZy)NutritionAIz.Tool that queries the Passio Nutrition AI API.nutritionai_advanced_searchnameztA wrapper around the Passio Nutrition AI. Useful to retrieve nutrition facts. Input should be a search query string.r   api_wrapperargs_schemaNr   run_managerreturnc                 8    | j                   j                  |      S )zUse the tool.)r   run)selfr   r   s      r   _runzNutritionAI._run    s     ##E**r   )N)r   r   r   r   r   r   r   r   r
   r   r   r   r   r   r   r   r#   r   r   r   r   r      sg    8-D#-	1  
  #4Ki4
 <@++ 78+ 
$	+r   r   N)r   typingr   r   r   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   r	   1langchain_community.utilities.passio_nutrition_air
   r   r   r   r   r   <module>r)      s2    + ' ' > ) % L	 +( +r   