Setup
Get an API key from Serper Console.Examples
cookbook/tools/serper_tools.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from agno.agent import Agent
from agno.tools.serper import SerperTools
agent = Agent(
tools=[SerperTools()],
show_tool_calls=True,
)
agent.print_response(
"Search for the latest news about artificial intelligence developments",
markdown=True,
)
Create a virtual environment
Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
agent.print_response(
"Find recent academic papers about large language model safety",
markdown=True,
)
agent.print_response(
"Analyze reviews for this Google Place ID: ChIJ_Yjh6Za1j4AR8IgGUZGDDTs",
markdown=True
)
agent.print_response(
"Scrape and summarize content from https://openai.com/index/gpt-4/",
markdown=True
)
Was this page helpful?