Code

cookbook/agent_concepts/tools/google_calendar_tools.py
from agno.agent import Agent
from agno.tools.google_calendar 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")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Set up Google Calendar credentials

export GOOGLE_CALENDAR_CREDENTIALS=path/to/credentials.json
3

Install libraries

pip install -U google-auth-oauthlib google-auth-httplib2 google-api-python-client agno
4

Run Agent