from agno.agent import Agent
from agno.tools.googlecalendar import GoogleCalendarTools
agent = Agent(
tools=[GoogleCalendarTools()],
show_tool_calls=True,
markdown=True,
)
agent.print_response("What events do I have today?")
agent.print_response("Schedule a meeting with John tomorrow at 2pm")
Create a virtual environment
Terminal
and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Set your API key
export OPENAI_API_KEY=xxx
Set up Google Calendar credentials
export GOOGLE_CALENDAR_CREDENTIALS=path/to/credentials.json
Install libraries
pip install -U google-auth-oauthlib google-auth-httplib2 google-api-python-client openai agno
Run Agent
python cookbook/tools/google_calendar_tools.py
Was this page helpful?