Skip to main content

Crate google_tool

Crate google_tool 

Source
Expand description

Google integrations for the agent platform.

This crate groups tools for Google services. Calendar tools are available today; Gmail tools can be added here without introducing another crate.

Re-exports§

pub use oauth::CalendarScope;
pub use oauth::GoogleOAuthConfig;
pub use oauth::GoogleOAuthError;
pub use oauth::GoogleTokenSet;
pub use oauth::GoogleUserInfo;
pub use oauth::PendingAuthorization;
pub use oauth::authorization_request;
pub use oauth::exchange_code;
pub use oauth::fetch_user_info;
pub use oauth::refresh_access_token;
pub use oauth::revoke_token;

Modules§

oauth
Google OAuth 2.0 Authorization Code flow helpers.

Structs§

GoogleCalendarRuntimeConfig
Server-composed configuration for Google Calendar tool execution.
GoogleCalendarSummary
GoogleOAuthTokenManager

Functions§

list_calendars
Fetch every calendar visible to the connected Google account.
list_calendars_with_access_token
Fetch calendars using an already-refreshed access token. The caller must coordinate refreshes through GoogleOAuthTokenManager.
register_tools
Register all Google tools.