SignInRequest

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.

Properties

Link copied to clipboard

What the tool needs: the scheme, and for OAuth2 and OpenID Connect the authorization URL.

Link copied to clipboard

Where to send the user to sign in, from the request's OAuth2 authUri, or null if none.

Link copied to clipboard
val id: String

The id of the adk_request_credential call; the response carries it.

Functions

Link copied to clipboard

Returns the message that answers this request with credential, the one the user signed in for; an OAuth2 credential's tokens, code, expiry and any redirect URI fill in the request's own credential. Pass the message to the runner as is, not through JSON, which leaves the credential's secrets out. Answer all pending requests in one message by combining their parts, since a resumable app can end the agent after the first answer.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String