fromlangchain_community.toolsimportWikipediaQueryRunfromlangchain_community.utilitiesimportWikipediaAPIWrapperfromlangchain_core.pydantic_v1importBaseModel, FieldclassWikiInputs(BaseModel):"""Inputs to the wikipedia tool."""query: str = Field(description="query to look up in Wikipedia, should be 3 or less words" )api_wrapper = WikipediaAPIWrapper(api_key="Enter your key here")tool = WikipediaQueryRun(name="wiki-tool",description="look up things in wikipedia",args_schema=WikiInputs,api_wrapper=api_wrapper,return_direct=True,)print(tool.run("Who is Dwayne Johnson?"))