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 3931b29
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: google/genai/types.py
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -549,6 +549,8 @@ class FinishReason(_common.CaseInSensitiveEnum):
549
549
"""Image generation stopped because the generated image may be a recitation from a source."""
550
550
IMAGE_OTHER = 'IMAGE_OTHER'
551
551
"""Image generation stopped for a reason not otherwise specified."""
552
+
CONTINUATION = 'CONTINUATION'
553
+
"""Token generation stopped because the response reached the per-request token limit, but generation is not yet complete. The response can be continued by passing the returned `continuation_token` in a subsequent request."""
552
554
553
555
554
556
class HarmProbability(_common.CaseInSensitiveEnum):
@@ -6720,6 +6722,13 @@ class GenerateContentConfig(_common.BaseModel):
6720
6722
description="""Optional. Configuration for audio transcription (speech recognition).
6721
6723
""",
6722
6724
)
6725
+
continuation_token: Optional[bytes] = Field(
6726
+
default=None,
6727
+
description="""An opaque continuation token used to resume generation from a
6728
+
previous response that stopped with `finish_reason` set to
0 commit comments