
    dh;                     t    S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	  SSK
Jr   " S S\5      r " S	 S
\5      rg)zTool for the SceneXplain API.    )Optional)CallbackManagerForToolRun)BaseTool)	BaseModelField)SceneXplainAPIWrapperc                   2    \ rS rSr% Sr\" SSS9r\\S'   Sr	g)	SceneXplainInput   zInput for SceneXplain..z The link to the image to explain)descriptionquery N)
__name__
__module____qualname____firstlineno____doc__r   r   str__annotations____static_attributes__r       b/var/www/html/shao/venv/lib/python3.13/site-packages/langchain_community/tools/scenexplain/tool.pyr
   r
      s     s(JKE3Kr   r
   c                   n    \ rS rSr% SrSr\\S'   Sr\\S'   \	" \
S9r\
\S'    SS
\S\\   S\4S jjrSrg	)SceneXplainTool   z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    U R                   R                  U5      $ )zUse the tool.)r   run)selfr   r    s      r   _runSceneXplainTool._run   s     ##E**r   r   )N)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r%   r   r   r   r   r   r      sc    $!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   