LiveContentResponse

@PublicPreviewAPI
public final 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

value public final class LiveContentResponse.Status

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

Public fields

final Content

The main content data of the response.

final List<@NonNull FunctionCallPart>

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

final @NonNull LiveContentResponse.Status

The status of the live content response.

final String

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

Public fields

data

public final Content data

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

functionCalls

public final List<@NonNull FunctionCallPartfunctionCalls

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

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

status

public final @NonNull LiveContentResponse.Status status

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

text

public final String text

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