§
    ¦ìNgÒ  ã                   ó†   — d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	m
Z
 ddlmZ  G d„ de	¦  «        Z G d	„ d
e¦  «        ZdS )z!Tool for the SemanticScholar API.é    )ÚOptionalÚType)ÚCallbackManagerForToolRun)ÚBaseTool)Ú	BaseModelÚField)ÚSemanticScholarAPIWrapperc                   ó6   — e Zd ZU dZ ed¬¦  «        Zeed<   dS )ÚSemantscholarInputz#Input for the SemanticScholar tool.zsearch query to look up)ÚdescriptionÚqueryN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__© ó    új/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/semanticscholar/tool.pyr   r      s6   € € € € € € Ø-Ð-àÐ#<Ð=Ñ=Ô=€Eˆ3Ð=Ð=Ñ=Ð=Ð=r   r   c                   ó   — e Zd ZU dZdZeed<   dZeed<    ee	¬¦  «        Z
e	ed<   eZee         ed<   	 dd
edee         defd„Zd	S )ÚSemanticScholarQueryRunz+Tool that searches the semanticscholar API.ÚsemanticscholarÚnamez‡A wrapper around semantischolar.org Useful for when you need to answer to questionsfrom research papers.Input should be a search query.r   )Údefault_factoryÚapi_wrapperÚargs_schemaNr   Úrun_managerÚreturnc                 ó6   — | j                              |¦  «        S )zUse the Semantic Scholar tool.)r   Úrun)Úselfr   r   s      r   Ú_runzSemanticScholarQueryRun._run!   s   € ð Ô×#Ò# EÑ*Ô*Ð*r   )N)r   r   r   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r#   r   r   r   r   r      sË   € € € € € € Ø5Ð5à!€Dˆ#Ð!Ð!Ñ!ð	*ð ð ð ñ ð .3¨UØ1ð.ñ .ô .€KÐ*ð ð ñ ð $6€Ki”Ð5Ð5Ñ5ð
 <@ð+ð +àð+ð Ð7Ô8ð+ð 
ð	+ð +ð +ð +ð +ð +r   r   N)r   Útypingr   r   Úlangchain_core.callbacksr   Úlangchain_core.toolsr   Úpydanticr   r   Ú-langchain_community.utilities.semanticscholarr	   r   r   r   r   r   ú<module>r)      sÏ   ðØ 'Ð 'à !Ð !Ð !Ð !Ð !Ð !Ð !Ð !à >Ð >Ð >Ð >Ð >Ð >Ø )Ð )Ð )Ð )Ð )Ð )Ø %Ð %Ð %Ð %Ð %Ð %Ð %Ð %à SÐ SÐ SÐ SÐ SÐ Sð>ð >ð >ð >ð >˜ñ >ô >ð >ð+ð +ð +ð +ð +˜hñ +ô +ð +ð +ð +r   