srivatsavdamaraju's picture
Upload 3 files
7974397 verified
raw
history blame contribute delete
272 Bytes
# /skills/wikipedia_tool.py
from langchain.tools import WikipediaQueryRun
from langchain_community.utilities import WikipediaAPIWrapper
wikipedia = WikipediaQueryRun(api_wrapper=WikipediaAPIWrapper())
def wikipedia_tool(query):
return wikipedia.run(query)