
    dhw                     N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      r	g)	zTool for the Wolfram Alpha API.    )Optional)CallbackManagerForToolRun)BaseTool)WolframAlphaAPIWrapperc                   b    \ rS rSr% SrSr\\S'   Sr\\S'   \	\S'    SS	\S
\
\   S\4S jjrSrg)WolframAlphaQueryRun   z.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    U R                   R                  U5      $ )zUse the WolframAlpha tool.)r   run)selfr   r   s      d/var/www/html/shao/venv/lib/python3.13/site-packages/langchain_community/tools/wolfram_alpha/tool.py_runWolframAlphaQueryRun._run   s     ##E**     )N)__name__
__module____qualname____firstlineno____doc__r   str__annotations__r   r   r   r   r   __static_attributes__r   r   r   r   r      sZ    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   