Google Search (Interactions)
Ground GeminiInteractions responses in live web results with the built-in search tool.
Code
import asyncio
from agno.agent import Agent
from agno.models.google import GeminiInteractions
agent = Agent(
model=GeminiInteractions(
id="gemini-3.5-flash",
search=True,
),
markdown=True,
)
if __name__ == "__main__":
agent.print_response("What are the latest developments in quantum computing?")
asyncio.run(
agent.aprint_response("What are the top news stories today?", stream=True)
)Usage
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activateSet your API key
export GOOGLE_API_KEY=xxxInstall dependencies
uv pip install -U "google-genai>=2.3" agnoRun Agent
Save the code above as interactions_search.py, then run:
python interactions_search.py