LiveContentResponse

@PublicPreviewAPI
class LiveContentResponse


Represents the response from the model for live content updates.

This class encapsulates the content data, the status of the response, and any function calls included in the response.

Summary

Nested types

Represents the status of a LiveContentResponse, within a single interaction.

Public properties

Content?

The main content data of the response.

List<FunctionCallPart>?

A list of FunctionCallPart included in the response, if any.

LiveContentResponse.Status

The status of the live content response.

String?

Convenience field representing all the text parts in the response as a single string, if they exists.

Public properties

data

val dataContent?

The main content data of the response. This can be null if there is no content.

functionCalls

val functionCallsList<FunctionCallPart>?

A list of FunctionCallPart included in the response, if any.

This list can be null or empty if no function calls are present.

status

val statusLiveContentResponse.Status

The status of the live content response. Indicates whether the response is normal, was interrupted, or signifies the completion of a turn.

text

val textString?

Convenience field representing all the text parts in the response as a single string, if they exists.