Interface BearerTokenProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for supplying per-provider bearer tokens for BYOK
provider requests.
The callback returns the raw token without a Bearer prefix. The SDK
keeps this callback client-side and the runtime requests a token via the
session-scoped providerToken.getToken RPC before each outbound model
request.
Experimental. This managed-identity surface may change or be removed in future SDK or CLI releases.
- Since:
- 1.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetToken(ProviderTokenArgs args) Gets a bearer token for the provider identified byargs.
-
Method Details
-
getToken
Gets a bearer token for the provider identified byargs.- Parameters:
args- the provider token request arguments- Returns:
- a future that completes with the raw token, without a
Bearerprefix
-