Package com.google.genai.types
Class LiveServerMessage
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveServerMessage
Response message for API call.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LiveServerMessage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveServerMessage.Builder
builder()
Instantiates a builder for LiveServerMessage.static LiveServerMessage
Deserializes a JSON string to a LiveServerMessage object.abstract Optional<LiveServerGoAway>
goAway()
Server will disconnect soon.abstract Optional<LiveServerContent>
Content generated by the model in response to client messages.abstract Optional<LiveServerSessionResumptionUpdate>
Update of the session resumption state.abstract Optional<LiveServerSetupComplete>
Sent in response to a `LiveClientSetup` message from the client.abstract LiveServerMessage.Builder
Creates a builder with the same values as this instance.abstract Optional<LiveServerToolCall>
toolCall()
Request for the client to execute the `function_calls` and return the responses with the matching `id`s.abstract Optional<LiveServerToolCallCancellation>
Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled.abstract Optional<UsageMetadata>
Usage metadata about model response(s).Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
LiveServerMessage
public LiveServerMessage()
-
-
Method Details
-
setupComplete
Sent in response to a `LiveClientSetup` message from the client. -
serverContent
Content generated by the model in response to client messages. -
toolCall
Request for the client to execute the `function_calls` and return the responses with the matching `id`s. -
toolCallCancellation
Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled. -
usageMetadata
Usage metadata about model response(s). -
goAway
Server will disconnect soon. -
sessionResumptionUpdate
Update of the session resumption state. -
builder
Instantiates a builder for LiveServerMessage. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveServerMessage object.
-