Documentation Index
Fetch the complete documentation index at: https://spacesail.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Code
cookbook/tools/google_calendar_tools.py
from agno.agent import Agent
from agno.tools.googlecalendar import GoogleCalendarTools
agent = Agent(
tools=[GoogleCalendarTools()],
markdown=True,
)
agent.print_response("What events do I have today?")
agent.print_response("Schedule a meeting with John tomorrow at 2pm")
Usage
Create a virtual environment
Open the 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