Class LiveServerMessage
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Represents a bidirectional response payload containing various types of server responses in a multimodal live session.
public class LiveServerMessage
- Inheritance
-
LiveServerMessage
- Inherited Members
- Extension Methods
Properties
GoAway
Gets or sets a notification that server will disconnect soon.
[JsonPropertyName("goAway")]
public LiveServerGoAway? GoAway { get; set; }
Property Value
ServerContent
Gets or sets an incremental server update generated by the model in response to client messages.
[JsonPropertyName("serverContent")]
public LiveServerContent? ServerContent { get; set; }
Property Value
SessionResumptionUpdate
Gets or sets an update of the session resumption state.
[JsonPropertyName("sessionResumptionUpdate")]
public LiveServerSessionResumptionUpdate? SessionResumptionUpdate { get; set; }
Property Value
SetupComplete
Gets or sets a message sent in response to a LiveClientSetup message from the client.
[JsonPropertyName("setupComplete")]
public LiveServerSetupComplete? SetupComplete { get; set; }
Property Value
ToolCall
Gets or sets a request for the client to execute the FunctionCall and return the responses with the matching Id.
[JsonPropertyName("toolCall")]
public LiveServerToolCall? ToolCall { get; set; }
Property Value
ToolCallCancellation
Gets or sets a notification for the client that a previously issued LiveServerToolCall with the specified ID should have been not executed and should be cancelled.
[JsonPropertyName("toolCallCancellation")]
public LiveServerToolCallCancellation? ToolCallCancellation { get; set; }
Property Value
UsageMetadata
Gets or sets metadata about token usage for the current session.
[JsonPropertyName("usageMetadata")]
public UsageMetadata? UsageMetadata { get; set; }
Property Value
VoiceActivity
Gets or sets a voice activity signal.
[JsonPropertyName("voiceActivity")]
public VoiceActivity? VoiceActivity { get; set; }
Property Value
VoiceActivityDetectionSignal
Gets or sets a voice activity detection signal. Allowlisted only.
[JsonPropertyName("voiceActivityDetectionSignal")]
public VoiceActivityDetectionSignal? VoiceActivityDetectionSignal { get; set; }