Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/go-genai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.76.0
Choose a base ref
...
head repository: googleapis/go-genai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.77.0
Choose a head ref
  • 9 commits
  • 26 files changed
  • 5 contributors

Commits on Oct 23, 2026

  1. chore: update Speakeasy OpenAPI generator to v2.950.11 and bump CLI t…

    …o v0.4.4
    
    Sync `third_party/golang/github_com/speakeasy_api/openapi_generation/v/v2` to `https://github.com/speakeasy-api/openapi-generation@d5e7284` (`v2.950.11`), bump the CLI version to `0.4.4`, and regenerate all SDKs (Python, TypeScript, Java, Go, Dotnet, and CLI).
    
    PiperOrigin-RevId: 1005667789
    google-genai-bot authored and copybara-github committed Oct 23, 2026
    Configuration menu
    Copy the full SHA
    9ba857f View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2026

  1. feat: Add support for continuation_token and requires_continuation st…

    …atus
    
    PiperOrigin-RevId: 1008345991
    Annhiluc authored and copybara-github committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    51d761f View commit details
    Browse the repository at this point in the history
  2. chore(cli): update Speakeasy OpenAPI generator to v2.952.4

    Sync `third_party/golang/github_com/speakeasy_api/openapi_generation/v/v2` to `https://github.com/speakeasy-api/openapi-generation@28fa06b` (`v2.952.4`) and regenerate all SDKs (Python, TypeScript, Java, Go, Dotnet, and CLI).
    
    PiperOrigin-RevId: 1008475077
    google-genai-bot authored and copybara-github committed Oct 27, 2026
    Configuration menu
    Copy the full SHA
    d386bce View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2026

  1. 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
    MarkDaoust authored and copybara-github committed Oct 28, 2026
    Configuration menu
    Copy the full SHA
    5b54979 View commit details
    Browse the repository at this point in the history
  2. feat: support video understanding in Gemini Developer API

    PiperOrigin-RevId: 1009083457
    yinghsienwu authored and copybara-github committed Oct 28, 2026
    Configuration menu
    Copy the full SHA
    5407437 View commit details
    Browse the repository at this point in the history
  3. fix(interactions): align SDK User-Agent and x-goog-api-client headers

    Replace the generator's default User-Agent with the parent SDK's `google-genai-sdk/<version> gl-<lang>/<version>` header across all languages while preserving caller-supplied User-Agent overrides.
    
    PiperOrigin-RevId: 1009148467
    MarkDaoust authored and copybara-github committed Oct 28, 2026
    Configuration menu
    Copy the full SHA
    58187ad View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2026

  1. feat(interactions): add AutomaticContinuation to Interactions.Create …

    …in the Go SDK
    
    Foreground `Interactions.Create()` calls are capped per request by the server (32k output tokens unary, 64k streaming) and stop with `status="requires_continuation"` plus a `continuation_token`. `Interactions.Create` now enables automatic continuation by default (configurable per call via `operations.WithAutomaticContinuation(bool)`) and chains continuation hops client-side so a plain `Create()` returns the full decode.
    
    Request chaining:
    - Each hop after the first sends the `continuation_token` from the previous hop. With `Store` enabled (default) it sets `PreviousInteractionID` to the hop that issued the token and omits `Input`; with `Store=false` it resends the original `Input`.
    - Unary foreground model calls default `GenerationConfig.MaxOutputTokens` to 65536 (`DefaultAutomaticContinuationMaxOutputTokens`) when unset without mutating caller structs (streaming uses the server's 64k default). Explicit values are never overridden.
    - Stops on `completed`, `incomplete` (token preserved for manual resumption), `requires_action`, `failed`, `cancelled`, a missing token, or a repeated token. Skipped for agent requests and `Background=true`; `Background=true` with `operations.WithAutomaticContinuation(false)` returns `ErrAutomaticContinuationWithBackground`.
    
    Unary (`Stream=false`) merging:
    - Hops are merged into one `Interaction`: `Steps` concatenated in hop order (leading `user_input` steps dropped on later hops), `Usage` counts and per-modality breakdowns summed across hops with `Usage.InitialInputTokens` taken from hop 1, `ID` / `Status` / `ContinuationToken` / `Updated` from the final hop, and `PreviousInteractionID` / `Created` / `Input` from hop 1.
    - `ContinuationIDs` lists every hop id in order, de-duplicated with any server-provided ids. Derived output properties (`OutputText`, etc.) are recomputed across hop boundaries.
    
    Streaming (`Stream=true`):
    - Events from all hops are yielded verbatim on `stream.EventStream[InteractionSSEEvent]`. Consumers should treat `interaction.completed` with `status="requires_continuation"` as intermediate.
    - Mid-hop transport drops or premature EOF resume from the latest `interaction.status_update` checkpoint token when no content was yielded since that checkpoint (up to `MaxStreamReconnectsWithoutProgress = 3` reconnects). SSE `error` events are terminal; HTTP status retries stay with SDK retry options.
    
    Timeouts and errors:
    - The `ctx` deadline/cancellation passed to `Create(ctx, ...)` bounds the whole call across hops, while `operations.WithOperationTimeout`, `WithTimeout`, and retry configs apply per hop.
    - A failure or `ctx` expiry after progress returns `*apierrors.ContinuationInterruptedError` (`Unwrap()` returning `Cause`) carrying `PartialInteraction`, `ContinuationToken`, `InteractionID`, and `ContinuationIDs` so billed work is preserved for manual resumption. First-hop failures return unchanged.
    
    Opt-out:
    - `operations.WithAutomaticContinuation(false)` returns the single server response untouched (no budget injection, no merging) and logs a one-time warning if it stops at `requires_continuation` without a caller-supplied `continuation_token`.
    
    Tests: `interactions/continuation_conformance_test.go` (52 conformance cases) and `interactions/continuation_test.go` (ctx deadline/cancellation, per-hop timeout, stream close, non-mutation, and option validation).
    PiperOrigin-RevId: 1009385691
    MarkDaoust authored and copybara-github committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    0a6da26 View commit details
    Browse the repository at this point in the history
  2. feat: add video upscale task parameter

    PiperOrigin-RevId: 1009408638
    google-genai-bot authored and copybara-github committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    cab8bf7 View commit details
    Browse the repository at this point in the history
  3. chore(main): release 1.77.0 (#1027)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Oct 29, 2026
    Configuration menu
    Copy the full SHA
    1a33369 View commit details
    Browse the repository at this point in the history
Loading