You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d40ca70
Browse filesBrowse the repository at this point in the historyBrowse files
:param api_version: API version for request routing.
93
94
:param background: Input only. Whether to run the model interaction in the background.
94
95
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
96
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
97
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
98
+
back unchanged in CreateInteraction to continue decoding.
95
99
:param environment: The environment configuration for the interaction. Can be an object
96
100
specifying remote environment sources or a string referencing an existing
:param api_version: API version for request routing.
156
161
:param background: Input only. Whether to run the model interaction in the background.
157
162
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
163
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
164
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
165
+
back unchanged in CreateInteraction to continue decoding.
158
166
:param environment: The environment configuration for the interaction. Can be an object
159
167
specifying remote environment sources or a string referencing an existing
:param agent_config: Configuration parameters for the agent interaction.
281
294
:param background: Input only. Whether to run the model interaction in the background.
295
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
296
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
297
+
back unchanged in CreateInteraction to continue decoding.
282
298
:param environment: The environment configuration for the interaction. Can be an object
283
299
specifying remote environment sources or a string referencing an existing
284
300
environment ID.
@@ -326,6 +342,9 @@ def create(
326
342
:param api_version: API version for request routing.
327
343
:param background: Input only. Whether to run the model interaction in the background.
328
344
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
345
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
346
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
347
+
back unchanged in CreateInteraction to continue decoding.
329
348
:param environment: The environment configuration for the interaction. Can be an object
330
349
specifying remote environment sources or a string referencing an existing
331
350
environment ID.
@@ -376,6 +395,9 @@ def create(
376
395
:param api_version: API version for request routing.
377
396
:param background: Input only. Whether to run the model interaction in the background.
378
397
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
398
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
399
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
400
+
back unchanged in CreateInteraction to continue decoding.
379
401
:param environment: The environment configuration for the interaction. Can be an object
380
402
specifying remote environment sources or a string referencing an existing
:param api_version: API version for request routing.
1340
1363
:param background: Input only. Whether to run the model interaction in the background.
1341
1364
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
1365
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
1366
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
1367
+
back unchanged in CreateInteraction to continue decoding.
1342
1368
:param environment: The environment configuration for the interaction. Can be an object
1343
1369
specifying remote environment sources or a string referencing an existing
:param api_version: API version for request routing.
1403
1430
:param background: Input only. Whether to run the model interaction in the background.
1404
1431
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
1432
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
1433
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
1434
+
back unchanged in CreateInteraction to continue decoding.
1405
1435
:param environment: The environment configuration for the interaction. Can be an object
1406
1436
specifying remote environment sources or a string referencing an existing
:param agent_config: Configuration parameters for the agent interaction.
1528
1563
:param background: Input only. Whether to run the model interaction in the background.
1564
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
1565
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
1566
+
back unchanged in CreateInteraction to continue decoding.
1529
1567
:param environment: The environment configuration for the interaction. Can be an object
1530
1568
specifying remote environment sources or a string referencing an existing
1531
1569
environment ID.
@@ -1573,6 +1611,9 @@ async def create(
1573
1611
:param api_version: API version for request routing.
1574
1612
:param background: Input only. Whether to run the model interaction in the background.
1575
1613
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
1614
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
1615
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
1616
+
back unchanged in CreateInteraction to continue decoding.
1576
1617
:param environment: The environment configuration for the interaction. Can be an object
1577
1618
specifying remote environment sources or a string referencing an existing
1578
1619
environment ID.
@@ -1623,6 +1664,9 @@ async def create(
1623
1664
:param api_version: API version for request routing.
1624
1665
:param background: Input only. Whether to run the model interaction in the background.
1625
1666
:param cached_content: The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}
1667
+
:param continuation_token: Opaque token to resume a long decode. Output: set when status is
1668
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
1669
+
back unchanged in CreateInteraction to continue decoding.
1626
1670
:param environment: The environment configuration for the interaction. Can be an object
1627
1671
specifying remote environment sources or a string referencing an existing
Copy file name to clipboardExpand all lines: google/genai/_gaos/types/interactions/createmodelinteraction.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,11 @@ class CreateModelInteractionParam(TypedDict):
79
79
r"""Input only. Whether to run the model interaction in the background."""
80
80
cached_content: NotRequired[str]
81
81
r"""The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}"""
82
+
continuation_token: NotRequired[str]
83
+
r"""Opaque token to resume a long decode. Output: set when status is
84
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
85
+
back unchanged in CreateInteraction to continue decoding.
r"""The environment configuration for the interaction. Can be an object
84
89
specifying remote environment sources or a string referencing an existing
@@ -138,6 +143,12 @@ class CreateModelInteraction(BaseModel):
138
143
] =None
139
144
r"""The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}"""
140
145
146
+
continuation_token: Optional[str] =None
147
+
r"""Opaque token to resume a long decode. Output: set when status is
148
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
149
+
back unchanged in CreateInteraction to continue decoding.
Copy file name to clipboardExpand all lines: google/genai/_gaos/types/interactions/interaction.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,11 @@ class InteractionTypedDict(TypedDict):
166
166
r"""Configuration parameters for the agent interaction."""
167
167
cached_content: NotRequired[str]
168
168
r"""The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}"""
169
+
continuation_token: NotRequired[str]
170
+
r"""Opaque token to resume a long decode. Output: set when status is
171
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
172
+
back unchanged in CreateInteraction to continue decoding.
173
+
"""
169
174
created: NotRequired[str]
170
175
r"""Required. Output only. The time at which the response was created in ISO 8601 format
171
176
(YYYY-MM-DDThh:mm:ssZ).
@@ -257,6 +262,12 @@ class Interaction(BaseModel):
257
262
] =None
258
263
r"""The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}"""
259
264
265
+
continuation_token: Optional[str] =None
266
+
r"""Opaque token to resume a long decode. Output: set when status is
267
+
INCOMPLETE and decoding can be resumed. Input: pass the latest token
268
+
back unchanged in CreateInteraction to continue decoding.
269
+
"""
270
+
260
271
created: Optional[str] =None
261
272
r"""Required. Output only. The time at which the response was created in ISO 8601 format
0 commit comments