
    7|ho                     t    d Z ddl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 SceneXplain API.    )Optional)CallbackManagerForToolRun)BaseTool)	BaseModelField)SceneXplainAPIWrapperc                   0    e Zd ZU dZ edd      Zeed<   y)SceneXplainInputzInput for SceneXplain..z The link to the image to explain)descriptionqueryN)__name__
__module____qualname____doc__r   r   str__annotations__     i/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/tools/scenexplain/tool.pyr
   r
      s     s(JKE3Kr   r
   c                   h    e Zd ZU dZdZeed<   dZeed<    ee	      Z
e	ed<   	 dd	ed
ee   defdZy)SceneXplainToolzTool that explains images.image_explainernamezAn Image Captioning Tool: Use this tool to generate a detailed caption for an image. The input can be an image file of any format, and the output will be a text description that covers every detail of the image.r   )default_factoryapi_wrapperNr   run_managerreturnc                 8    | j                   j                  |      S )zUse the tool.)r   run)selfr   r   s      r   _runzSceneXplainTool._run   s     ##E**r   )N)r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r   r   r   r   r      s^    $!D#!	W  
 */?T)UK&U NR++'/0I'J+	+r   r   N)r   typingr   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   r   )langchain_community.utilities.scenexplainr   r
   r   r   r   r   <module>r'      s1    #  > ) % KLy L+h +r   