Table of Contents

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

DateTime?

LiveConnectConstraints

Setup (model, generation config, system instruction, tools, ...) that sessions using the token are constrained to.

public LiveClientSetup? LiveConnectConstraints { get; set; }

Property Value

LiveClientSetup

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 temperature are prefixed with generationConfig. automatically.
public IList<string>? LockAdditionalFields { get; set; }

Property Value

IList<string>

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

DateTime?

Uses

How many sessions the token can start. Defaults to 1 on the server.

public int? Uses { get; set; }

Property Value

int?