Package-level declarations

Types

Link copied to clipboard
data class AuthConfig @ExperimentalAuthApi @JvmOverloads constructor(val authScheme: AuthScheme, val rawAuthCredential: AuthCredential? = null, val exchangedAuthCredential: AuthCredential? = null, val credentialKey: CredentialKey = deriveCredentialKey(authScheme, rawAuthCredential))

What a tool needs to authenticate to a service: the scheme the service expects, and the tool's credentials. Creating a config or reading its properties requires @OptIn(ExperimentalAuthApi::class); holding one, as EventActions does, does not.

Link copied to clipboard

A credential that a tool uses to call a service: an ApiKey, an Http credential, an OAuth2 or OpenID Connect credential, or a ServiceAccount.

Link copied to clipboard

How a service expects a tool to authenticate, such as with an API key, an HTTP credential or OAuth2. Most schemes match OpenAPI security schemes; OpenIdConnect gives a provider's endpoints directly.

Link copied to clipboard

The key under which ADK stores and looks up the credential an AuthConfig describes; configs with the same key share it. toString redacts it, because a derived key is a digest of the raw credential: build storage keys from value.

Link copied to clipboard

Stores the credentials tools obtain, such as a user's OAuth2 tokens, so that later invocations can reuse them instead of asking the user to sign in again. A failure of the underlying store propagates as an exception.

Link copied to clipboard

A CredentialService that keeps credentials in memory per app, user and credential key, so every session of a user shares them. It keeps each credential as saved, client secret included, and loses them all when the process exits.

Link copied to clipboard

A secret string, such as a token or a client secret, that prints as a placeholder.

Link copied to clipboard

A request from ADK for a credential one of the agent's tools needs, as Event.signInRequests finds it. Send the user to authUri when there is one, then answer with createResponse.