
    {h                     N    d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d de      Z	y)	zTool for the Wolfram Alpha API.    )Optional)CallbackManagerForToolRun)BaseTool)WolframAlphaAPIWrapperc                   V    e Zd ZU dZdZeed<   dZeed<   eed<   	 dded	e	e
   d
efdZy)WolframAlphaQueryRunz.Tool that queries using the Wolfram Alpha SDK.wolfram_alphanamezA wrapper around Wolfram Alpha. Useful for when you need to answer questions about Math, Science, Technology, Culture, Society and Everyday Life. Input should be a search query.descriptionapi_wrapperNqueryrun_managerreturnc                 8    | j                   j                  |      S )zUse the WolframAlpha tool.)r   run)selfr   r   s      f/var/www/html/engine/venv/lib/python3.12/site-packages/langchain_community/tools/wolfram_alpha/tool.py_runzWolframAlphaQueryRun._run   s     ##E**    )N)__name__
__module____qualname____doc__r
   str__annotations__r   r   r   r   r    r   r   r   r      sU    8D#	*   ('
 <@++ 78+ 
	+r   r   N)
r   typingr   langchain_core.callbacksr   langchain_core.toolsr   +langchain_community.utilities.wolfram_alphar   r   r   r   r   <module>r!      s     %  > ) N+8 +r   