cookbook/90_models/google/gemini_interactions/tool_use.py
import asyncio
from agno.agent import Agent
from agno.models.google import GeminiInteractions
from agno.tools.websearch import WebSearchTools
agent = Agent(
model=GeminiInteractions(id="gemini-3-flash-preview"),
tools=[WebSearchTools()],
markdown=True,
)
if __name__ == "__main__":
agent.print_response("Whats happening in France?")
agent.print_response("Whats happening in France?", stream=True)
asyncio.run(agent.aprint_response("Whats happening in France?", stream=True))