Class CreateAuthTokenConfig
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Options for creating an ephemeral Live API auth token.
public class CreateAuthTokenConfig
- Inheritance
-
CreateAuthTokenConfig
- Inherited Members
- Extension Methods
Properties
ExpireTime
When the token expires. Defaults to 30 minutes from now on the server.
public DateTime? ExpireTime { get; set; }
Property Value
LiveConnectConstraints
Setup (model, generation config, system instruction, tools, ...) that sessions using the token are constrained to.
public LiveClientSetup? LiveConnectConstraints { get; set; }
Property Value
LockAdditionalFields
Controls which setup fields are locked, following the official SDKs:
- null (default): with LiveConnectConstraints, every setup field is locked.
- Empty: only the fields set in LiveConnectConstraints are locked.
- Non-empty: the fields set in LiveConnectConstraints plus these fields are locked.
Use wire names; generation config fields such as
temperatureare prefixed withgenerationConfig.automatically.
public IList<string>? LockAdditionalFields { get; set; }
Property Value
NewSessionExpireTime
The latest time the token can start a new session. Defaults to 1 minute from now on the server.
public DateTime? NewSessionExpireTime { get; set; }
Property Value
Uses
How many sessions the token can start. Defaults to 1 on the server.
public int? Uses { get; set; }
Property Value
- int?