# /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) | |