Wikipedia
FreeSearch and retrieve Wikipedia articles. Build AI agents that use Wikipediawith Agno Builder's visual drag-and-drop interface — no code required to prototype.
What is the Wikipedia tool?
The Wikipedia tool is a built-in capability in the Agno framework that allows AI agents to search and retrieve wikipedia articles. When added to an agent in Agno Builder, the agent can autonomously decide when to invoke this tool based on the user's request.
This is a free tool — no API key or external account is needed. It works out of the box when you add it to any agent.
How to use Wikipedia in Agno Builder
- 1
Create an agent
Drag an Agent node onto the canvas in Agno Builder, or use one of the built-in templates.
- 2
Enable Wikipedia
Click the agent, go to the Tools tab, and toggle on "Wikipedia" from the search category.
- 3
Test in chat
Open the chat panel and send a message. The agent will automatically use Wikipedia when relevant.
- 4
Export Python code
Click File > Export Python to get clean, runnable code with the correct imports for Wikipedia.
Python code example
This is the code Agno Builder exports when you use Wikipedia:
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.wikipedia import WikipediaTools
agent = Agent(
name="Wikipedia Agent",
model=OpenAIChat(id="gpt-4o"),
tools=[WikipediaTools()],
instructions=["Use the wikipedia tool to help the user."],
markdown=True,
)
agent.print_response("Tell me about the history of neural networks")Install with: pip install agno