Code

cookbook/agent_concepts/tools/wikipedia_tools.py
from agno.agent import Agent
from agno.tools.wikipedia import WikipediaTools

agent = Agent(
    tools=[WikipediaTools()],
    show_tool_calls=True,
    markdown=True,
)
agent.print_response("Search Wikipedia for information about artificial intelligence")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install -U wikipedia agno
3

Run Agent