Expand description
Credential management for AgentZero.
Handles API key storage and authentication profiles for multiple LLM providers. Credentials are persisted in an encrypted JSON store.
Structs§
- Auth
Manager - Auth
Profile - Auth
Profile Summary - Auth
Status - GeminiO
Auth Config - Google Gemini OAuth configuration.
- PendingO
Auth Login - Profile
Health - Per-profile health report returned by
token_health. - Refresh
Result - Resolved
Credential - The result of credential resolution from auth profiles.
Enums§
- Credential
Source - Describes which resolution path produced the credential.
- Refresh
Status - Token
Health - Token health status for display and pre-call validation.
Functions§
- extract_
oauth_ code_ from_ input - extract_
oauth_ state - gemini_
authorize_ url - Build the Google OAuth2 authorization URL for Gemini API access.
- gemini_
exchange_ code - Exchange a Google OAuth authorization code for tokens.
Returns
(access_token, refresh_token, expires_in_secs). - gemini_
refresh_ token - Refresh a Google OAuth access token using a refresh token.
Returns
(new_access_token, expires_in_secs).