Class LiveClientSetup
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Message to be sent in the first and only first client message. Contains configuration that will apply for the duration of the streaming session. Clients should wait for a LiveServerSetupComplete message before sending any additional messages.
public class LiveClientSetup
- Inheritance
-
LiveClientSetup
- Inherited Members
- Extension Methods
Properties
AvatarConfig
Configures the avatar model behavior.
[JsonPropertyName("avatarConfig")]
public AvatarConfig? AvatarConfig { get; set; }
Property Value
ContextWindowCompression
Configures context window compression mechanism. If included, server will compress context window to fit into given length.
[JsonPropertyName("contextWindowCompression")]
public ContextWindowCompressionConfig? ContextWindowCompression { get; set; }
Property Value
ExplicitVadSignal
Configures the explicit VAD signal. If enabled, the client will send VAD signals to indicate the start and end of speech. This allows the server to process the audio more efficiently. Vertex AI only; not supported by the Gemini Developer API.
[JsonPropertyName("explicitVadSignal")]
public bool? ExplicitVadSignal { get; set; }
Property Value
- bool?
GenerationConfig
Generation config. The following fields are not supported:
responseLogprobsresponseMimeTypelogprobsresponseSchemastopSequenceroutingConfigaudioTimestamp
[JsonPropertyName("generationConfig")]
public GenerationConfig? GenerationConfig { get; set; }
Property Value
HistoryConfig
Configures the exchange of history between the client and the server.
[JsonPropertyName("historyConfig")]
public HistoryConfig? HistoryConfig { get; set; }
Property Value
InputAudioTranscription
Configures input audio transcription settings.
[JsonPropertyName("inputAudioTranscription")]
public AudioTranscriptionConfig? InputAudioTranscription { get; set; }
Property Value
Labels
Optional. Labels with user-defined metadata for the request. Label keys must start with a letter;
keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric
characters, underscores, and dashes. Use the key safety_identifier for safety identifiers from aggregators.
Gemini Developer API only; not supported by Vertex AI.
[JsonPropertyName("labels")]
public Dictionary<string, string>? Labels { get; set; }
Property Value
Model
Required. The model's resource name. This serves as an ID for the Model to use.
Format: models/{model}
[JsonPropertyName("model")]
public string? Model { get; set; }
Property Value
OutputAudioTranscription
Configures output audio transcription settings.
[JsonPropertyName("outputAudioTranscription")]
public AudioTranscriptionConfig? OutputAudioTranscription { get; set; }
Property Value
Proactivity
Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
[JsonPropertyName("proactivity")]
public ProactivityConfig? Proactivity { get; set; }
Property Value
RealtimeInputConfig
Configures the realtime input behavior, such as automatic activity (voice) detection, what effect user activity has and which input is included in the user's turn.
[JsonPropertyName("realtimeInputConfig")]
public RealtimeInputConfig? RealtimeInputConfig { get; set; }
Property Value
SafetySettings
Safety settings in the request to block unsafe content in the response.
[JsonPropertyName("safetySettings")]
public List<SafetySetting>? SafetySettings { get; set; }
Property Value
SessionResumption
Configures session resumption mechanism. If included server will send SessionResumptionUpdate messages.
[JsonPropertyName("sessionResumption")]
public SessionResumptionConfig? SessionResumption { get; set; }
Property Value
SystemInstruction
The user provided system instructions for the model. Note: Only text should be used in parts. Content in each part will be in a separate paragraph.
[JsonPropertyName("systemInstruction")]
public Content? SystemInstruction { get; set; }
Property Value
Tools
A list of Tool the model may use to generate the next response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
[JsonPropertyName("tools")]
public Tool[]? Tools { get; set; }
Property Value
- Tool[]