Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Code
cookbook/models/google/gemini/grounding.py
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
from agno.agent import Agent
from agno.models.google import Gemini
agent = Agent(
model=Gemini(
id="gemini-2.0-flash",
grounding=True,
grounding_dynamic_threshold=0.7, # Optional: set threshold for grounding
),
add_datetime_to_instructions=True,
)
agent.print_response(
"What are the current market trends in renewable energy?",
stream=True,
markdown=True
)
Was this page helpful?