
    dhe                     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 Wikipedia API.    )Optional)CallbackManagerForToolRun)BaseTool)StackExchangeAPIWrapperc                   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)StackExchangeTool   zTool that uses StackExchangestack_exchangenamezA wrapper around StackExchange. Useful for when you need to answer specific programming questionscode excerpts, code examples and solutionsInput should be a fully formed question.descriptionapi_wrapperNqueryrun_managerreturnc                 8    U R                   R                  U5      $ )zUse the Stack Exchange tool.)r   run)selfr   r   s      d/var/www/html/shao/venv/lib/python3.13/site-packages/langchain_community/tools/stackexchange/tool.py_runStackExchangeTool._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    & D# 	3   )(
 <@++ 78+ 
	+ +r   r   N)
r   typingr   langchain_core.callbacksr   langchain_core.toolsr   +langchain_community.utilities.stackexchanger   r   r   r   r   <module>r%      s     !  > ) O+ +r   