adk-python/contributing/samples/oauth_calendar_agent
2025-05-29 11:48:01 -07:00
..
__init__.py Create a developer folder and add samples. 2025-05-07 09:26:19 -07:00
agent.py fix: adapt oauth calendar agent and bigquery agent to new Google API toolset interface 2025-05-15 14:21:45 -07:00
README.md Fix typos in README for sample bigquery_agent and oauth_calendar_agent 2025-05-29 11:48:01 -07:00

OAuth Sample

Introduction

This sample tests and demos the OAuth support in ADK via two tools:

    1. list_calendar_events

    This is a customized tool that calls Google Calendar API to list calendar events. It pass in the client id and client secrete to ADK and then get back the access token from ADK. And then it uses the access token to call calendar api.

    1. get_calendar_events

    This is an google calendar tool that calls Google Calendar API to get the details of a specific calendar. This tool is from the ADK built-in Google Calendar ToolSet. Everything is wrapped and the tool user just needs to pass in the client id and client secret.

How to use

Sample prompt

  • List all my today's meeting from 7am to 7pm.
  • Get the details of the first event.