
    Ng                     V    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	dS )	zTool for the Wikidata API.    )Optional)CallbackManagerForToolRun)BaseTool)WikidataAPIWrapperc                   ^    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dS )WikidataQueryRunz$Tool that searches the Wikidata API.WikidatanamezA 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                 6    | j                             |          S )zUse the Wikidata tool.)r   run)selfr   r   s      c/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/wikidata/tool.py_runzWikidataQueryRun._run   s     ##E***    )N)__name__
__module____qualname____doc__r
   str__annotations__r   r   r   r   r    r   r   r   r      s         ..D#	     $###
 <@+ ++ 78+ 
	+ + + + + +r   r   N)
r   typingr   langchain_core.callbacksr   langchain_core.toolsr   &langchain_community.utilities.wikidatar   r   r   r   r   <module>r!      s              > > > > > > ) ) ) ) ) ) E E E E E E+ + + + +x + + + + +r   