a
    bŠÝg¸  ã                   @   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 Wikidata API.é    )ÚOptional)ÚCallbackManagerForToolRun)ÚBaseTool)ÚWikidataAPIWrapperc                   @   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 )ÚWikidataQueryRunz$Tool that searches the Wikidata API.ZWikidataÚnamezöA wrapper around Wikidata. Useful for when you need to answer general questions about people, places, companies, facts, historical events, or other subjects. Input should be the exact name of the item you want information about or a Wikidata QID.ÚdescriptionÚapi_wrapperN)ÚqueryÚrun_managerÚreturnc                 C   s   | j  |¡S )zUse the Wikidata tool.)r	   Úrun)Úselfr
   r   © r   úu/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/langchain_community/tools/wikidata/tool.pyÚ_run   s    zWikidataQueryRun._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.wikidatar   r   r   r   r   r   Ú<module>   s
   