
    hV                     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 Merriam-Webster API.    )Optional)CallbackManagerForToolRun)BaseTool)MerriamWebsterAPIWrapperc                   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)MerriamWebsterQueryRunz+Tool that searches the Merriam-Webster API.merriam_websternamezA wrapper around Merriam-Webster. Useful for when you need to get the definition of a word.Input should be the word you want the definition of.descriptionapi_wrapperNqueryrun_managerreturnc                 8    | j                   j                  |      S )zUse the Merriam-Webster tool.)r   run)selfr   r   s      l/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/langchain_community/tools/merriam_webster/tool.py_runzMerriamWebsterQueryRun._run   s     ##E**    )N)__name__
__module____qualname____doc__r
   str__annotations__r   r   r   r   r    r   r   r   r      sU    5!D#!	?  
 *)
 <@++ 78+ 
	+r   r   N)
r   typingr   langchain_core.callbacksr   langchain_core.toolsr   -langchain_community.utilities.merriam_websterr   r   r   r   r   <module>r!      s     '  > ) R+X +r   