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 daac53e
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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
98
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
165
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
297
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
347
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
400
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
1367
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
1434
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
1566
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
1616
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
1669
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
85
+
token 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
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
149
+
token back unchanged in CreateInteraction to continue decoding.
Copy file name to clipboardExpand all lines: google/genai/_gaos/types/interactions/interaction.py
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,7 @@ class UnknownInteractionAgentConfig(BaseModel):
149
149
"incomplete",
150
150
"budget_exceeded",
151
151
"queued",
152
+
"requires_continuation",
152
153
],
153
154
UnrecognizedStr,
154
155
]
@@ -166,6 +167,11 @@ class InteractionTypedDict(TypedDict):
166
167
r"""Configuration parameters for the agent interaction."""
167
168
cached_content: NotRequired[str]
168
169
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}"""
170
+
continuation_token: NotRequired[str]
171
+
r"""Opaque token to resume a long decode. Output: set when status is
172
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
173
+
token back unchanged in CreateInteraction to continue decoding.
174
+
"""
169
175
created: NotRequired[str]
170
176
r"""Required. Output only. The time at which the response was created in ISO 8601 format
171
177
(YYYY-MM-DDThh:mm:ssZ).
@@ -257,6 +263,12 @@ class Interaction(BaseModel):
257
263
] =None
258
264
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
265
266
+
continuation_token: Optional[str] =None
267
+
r"""Opaque token to resume a long decode. Output: set when status is
268
+
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
269
+
token back unchanged in CreateInteraction to continue decoding.
270
+
"""
271
+
260
272
created: Optional[str] =None
261
273
r"""Required. Output only. The time at which the response was created in ISO 8601 format
0 commit comments