Package com.google.genai.types
Class HistoryConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.HistoryConfig
Configuration for history exchange between client and server.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HistoryConfig.Builderbuilder()Instantiates a builder for HistoryConfig.static HistoryConfigDeserializes a JSON string to a HistoryConfig object.If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`.abstract HistoryConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
HistoryConfig
public HistoryConfig()
-
-
Method Details
-
initialHistoryInClientContent
If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with model content. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`. -
builder
Instantiates a builder for HistoryConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a HistoryConfig object.
-