a
    bgp                     @   sH   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 deZ	dS )	z!Tool for the Merriam-Webster API.    )Optional)CallbackManagerForToolRun)BaseTool)MerriamWebsterAPIWrapperc                   @   sJ   e Zd ZU dZdZeed< dZeed< eed< dee	e
 edd	d
ZdS )MerriamWebsterQueryRunz+Tool that searches the Merriam-Webster API.Z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                 C   s   | j |S )zUse the Merriam-Webster tool.)r	   run)selfr
   r    r   |/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/langchain_community/tools/merriam_webster/tool.py_run   s    zMerriamWebsterQueryRun._run)N)__name__
__module____qualname____doc__r   str__annotations__r   r   r   r   r   r   r   r   r   r      s   

 r   N)
r   typingr   Zlangchain_core.callbacksr   Zlangchain_core.toolsr   Z-langchain_community.utilities.merriam_websterr   r   r   r   r   r   <module>   s
   