
    7|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 Wikipedia API.    )Optional)CallbackManagerForToolRun)BaseTool)StackExchangeAPIWrapperc                   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)StackExchangeToolz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    | j                   j                  |      S )zUse the Stack Exchange tool.)r   run)selfr   r   s      k/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/tools/stackexchange/tool.py_runzStackExchangeTool._run   s     ##E**    )N)__name__
__module____qualname____doc__r
   str__annotations__r   r   r   r   r    r   r   r   r      sU    & 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   