bodhi-realtime-agent / GeminiCredential
Interface: GeminiCredential
Defined in: src/transport/gemini-live-transport.ts:222
What a GeminiCredentialProvider returns: the credential for one connection.
Properties
apiKey
apiKey:
string
Defined in: src/transport/gemini-live-transport.ts:224
An API key or an ephemeral token (auth_tokens/…), used for this one connection.
apiVersion?
optionalapiVersion?:string
Defined in: src/transport/gemini-live-transport.ts:227
Gemini API version for this connection (the SDK's ephemeral-token support expects v1alpha). Omitted, the SDK's default applies.
expiresAtMs
expiresAtMs:
number
Defined in: src/transport/gemini-live-transport.ts:237
Epoch ms when the transport closes this connection and reconnects with a new credential, whether or not the server sent GoAway. Must be finite and, when the provider returns, at least connectTimeoutMs plus minCredentialLifetimeMs away (90 s with the defaults): a credential closer to its expiry is refused, so a provider serving a nearly expired cached token fails the connect instead of reconnecting the session every few seconds. A provider that caches credentials must replace one with less than that left: a session's retries come within seconds and would get the same refused credential.
meta?
optionalmeta?:unknown
Defined in: src/transport/gemini-live-transport.ts:239
Opaque to the transport: carried on this connection's lifecycle events.