Package com.google.genai.types
Class LiveClientContent
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveClientContent
Incremental update of the current conversation delivered from the client.
All the content here will unconditionally be appended to the conversation history and used as part of the prompt to the model to generate content.
A message here will interrupt any current model generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LiveClientContent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveClientContent.Builder
builder()
Instantiates a builder for LiveClientContent.static LiveClientContent
Deserializes a JSON string to a LiveClientContent object.abstract LiveClientContent.Builder
Creates a builder with the same values as this instance.If true, indicates that the server content generation should start with the currently accumulated prompt.turns()
The content appended to the current conversation with the model.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
LiveClientContent
public LiveClientContent()
-
-
Method Details
-
turns
The content appended to the current conversation with the model.For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.
-
turnComplete
If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation. -
builder
Instantiates a builder for LiveClientContent. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveClientContent object.
-