@@ -18037,6 +18037,33 @@ class ProactivityConfigDict(TypedDict, total=False):
1803718037ProactivityConfigOrDict = Union[ProactivityConfig, ProactivityConfigDict]
1803818038
1803918039
18040+ class HistoryConfig(_common.BaseModel):
18041+ """Configuration for history exchange between client and server."""
18042+
18043+ initial_history_in_client_content: Optional[bool] = Field(
18044+ default=None,
18045+ description="""If true, after sending `setup_complete`, the server will wait
18046+ and at first process `client_content` messages until `turn_complete` is
18047+ `true`. This initial history will not trigger a model call and
18048+ may end with model content. After `turn_complete` is `true`, the client
18049+ can start the realtime conversation via `realtime_input`.""",
18050+ )
18051+
18052+
18053+ class HistoryConfigDict(TypedDict, total=False):
18054+ """Configuration for history exchange between client and server."""
18055+
18056+ initial_history_in_client_content: Optional[bool]
18057+ """If true, after sending `setup_complete`, the server will wait
18058+ and at first process `client_content` messages until `turn_complete` is
18059+ `true`. This initial history will not trigger a model call and
18060+ may end with model content. After `turn_complete` is `true`, the client
18061+ can start the realtime conversation via `realtime_input`."""
18062+
18063+
18064+ HistoryConfigOrDict = Union[HistoryConfig, HistoryConfigDict]
18065+
18066+
1804018067class AutomaticActivityDetection(_common.BaseModel):
1804118068 """Configures automatic detection of activity."""
1804218069
@@ -18184,6 +18211,10 @@ class LiveClientSetup(_common.BaseModel):
1818418211 description="""Configures the proactivity of the model. This allows the model to respond proactively to
1818518212 the input and to ignore irrelevant input.""",
1818618213 )
18214+ history_config: Optional[HistoryConfig] = Field(
18215+ default=None,
18216+ description="""Configures the exchange of history between the client and the server.""",
18217+ )
1818718218 explicit_vad_signal: Optional[bool] = Field(
1818818219 default=None,
1818918220 description="""Configures the explicit VAD signal. If enabled, the client will send
@@ -18241,6 +18272,9 @@ class LiveClientSetupDict(TypedDict, total=False):
1824118272 """Configures the proactivity of the model. This allows the model to respond proactively to
1824218273 the input and to ignore irrelevant input."""
1824318274
18275+ history_config: Optional[HistoryConfigDict]
18276+ """Configures the exchange of history between the client and the server."""
18277+
1824418278 explicit_vad_signal: Optional[bool]
1824518279 """Configures the explicit VAD signal. If enabled, the client will send
1824618280 vad_signal to indicate the start and end of speech. This allows the server
@@ -18730,6 +18764,10 @@ class LiveConnectConfig(_common.BaseModel):
1873018764 description="""Configures the proactivity of the model. This allows the model to respond proactively to
1873118765 the input and to ignore irrelevant input.""",
1873218766 )
18767+ history_config: Optional[HistoryConfig] = Field(
18768+ default=None,
18769+ description="""Configures the exchange of history between the client and the server.""",
18770+ )
1873318771 explicit_vad_signal: Optional[bool] = Field(
1873418772 default=None,
1873518773 description="""Configures the explicit VAD signal. If enabled, the client will send
@@ -18838,6 +18876,9 @@ class LiveConnectConfigDict(TypedDict, total=False):
1883818876 """Configures the proactivity of the model. This allows the model to respond proactively to
1883918877 the input and to ignore irrelevant input."""
1884018878
18879+ history_config: Optional[HistoryConfigDict]
18880+ """Configures the exchange of history between the client and the server."""
18881+
1884118882 explicit_vad_signal: Optional[bool]
1884218883 """Configures the explicit VAD signal. If enabled, the client will send
1884318884 vad_signal to indicate the start and end of speech. This allows the server
0 commit comments