Files
adk-python/contributing/samples/oauth_calendar_agent
Josh SorefandCopybara-Service aa1233608a chore: Fix spelling
Merge https://github.com/google/adk-python/pull/2447

This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling)

The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/16840838898/attempts/1#summary-47711379253

The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/16840839269/attempts/1#summary-47711380479

Note: while I use tooling to identify errors, the tooling doesn't _actually_ provide the corrections, I'm picking them on my own. I'm a human, and I may make mistakes.

I've included a couple of changes to make CI happy. Personally, I object to CI being in a state of "random drive by person who adds a blank line in the middle of a file must fix all the preexisting bugs in the file", but that appears to be the state for this repository.

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2447 from jsoref:spelling d85398e7fd154d124d477c6af6181481a01f34e0
PiperOrigin-RevId: 827629615
2025-11-03 13:33:53 -08:00
..
2025-11-03 13:33:53 -08:00
2025-11-03 13:33:53 -08: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 a 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.