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 4bdde3a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(interactions): declare continuation_ids on Interaction
Declare continuation_ids (continuationIds / ContinuationIds) on the Interaction model across the Interactions SDKs so callers receive None / null / nil / undefined when automatic continuation is not active instead of missing-attribute errors, with full static type-checking support.
PiperOrigin-RevId: 1008986075
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
@@ -167,6 +167,11 @@ class InteractionTypedDict(TypedDict):
167
167
r"""Configuration parameters for the agent interaction."""
168
168
cached_content: NotRequired[str]
169
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_ids: NotRequired[List[str]]
171
+
r"""The IDs of all server interactions merged into this response when automatic continuation is enabled, in order (ending with the final hop's ID).
172
+
173
+
Note: this is added by the SDK.
174
+
"""
170
175
continuation_token: NotRequired[str]
171
176
r"""Opaque token to resume a long decode. Output: set when status is
172
177
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
@@ -263,6 +268,12 @@ class Interaction(BaseModel):
263
268
] =None
264
269
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}"""
265
270
271
+
continuation_ids: Optional[List[str]] =None
272
+
r"""The IDs of all server interactions merged into this response when automatic continuation is enabled, in order (ending with the final hop's ID).
273
+
274
+
Note: this is added by the SDK.
275
+
"""
276
+
266
277
continuation_token: Optional[str] =None
267
278
r"""Opaque token to resume a long decode. Output: set when status is
268
279
REQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest
0 commit comments