o
    ®©Zhi  ã                   @   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 Google Scholaré    )ÚOptional)ÚCallbackManagerForToolRun)ÚBaseTool)ÚGoogleScholarAPIWrapperc                   @   sP   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d„ZdS )ÚGoogleScholarQueryRunz(Tool that queries the Google search API.Zgoogle_scholarÚnamez›A wrapper around Google Scholar Search. Useful for when you need to get information aboutresearch papers from Google ScholarInput should be a search query.ÚdescriptionÚapi_wrapperNÚqueryÚrun_managerÚreturnc                 C   s   | j  |¡S )zUse the tool.)r	   Úrun)Úselfr
   r   © r   úd/var/www/html/lang_env/lib/python3.10/site-packages/langchain_community/tools/google_scholar/tool.pyÚ_run   s   zGoogleScholarQueryRun._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.google_scholarr   r   r   r   r   r   Ú<module>   s    