Code
cookbook/agent_concepts/other/datetime_instructions.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.models.openai import OpenAIChat
agent = Agent(
model=OpenAIChat(id="gpt-4o"),
add_datetime_to_instructions=True,
timezone_identifier="Etc/UTC",
)
agent.print_response(
"What is the current date and time? What is the current time in NYC?"
)
Was this page helpful?