Copy
Ask AI
"""
Web Tools
=============================
Demonstrates web tools.
"""
from agno.agent import Agent
from agno.tools.webtools import WebTools
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(tools=[WebTools()])
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
agent.print_response("Tell me about https://tinyurl.com/57bmajz4")
Run the Example
Copy
Ask AI
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/91_tools
# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate
python web_tools.py