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/java-genai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.79.0
Choose a base ref
...
head repository: googleapis/java-genai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.80.0
Choose a head ref
  • 10 commits
  • 36 files changed
  • 5 contributors

Commits on Oct 23, 2026

  1. chore(main): release 1.80.0-SNAPSHOT (#1349)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Oct 23, 2026
    Configuration menu
    Copy the full SHA
    a28b875 View commit details
    Browse the repository at this point in the history
  2. 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
    de41371 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
    79097b6 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
    cb44af3 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
    9695964 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
    c6b8380 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
    5a1389f 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 Java 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`, `AsyncInteractions.create`, `CreateInteractionRequest`, and `CreateInteractionRequestBuilder` now support `automaticContinuation` (default `true`) and chain 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 `previous_interaction_id` to the hop that issued the token and omits `input`; with `store=false` it resends the original `input`.
    - Unary foreground model calls default `generation_config.max_output_tokens` to 65536 when unset without mutating caller request objects (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 `CreateAgentInteraction` requests and `background=true`; `background=true` with `automaticContinuation=false` throws `IllegalArgumentException`.
    
    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. Output convenience helpers (`outputText`, etc.) are recomputed across hop boundaries.
    
    Streaming (`stream=true`):
    - Events from all hops are yielded verbatim via `ContinuationEventStream` (sync and async). Consumers should treat `interaction.completed` with `status="requires_continuation"` as intermediate.
    - Mid-hop transport drops (`IOException` / `UncheckedIOException`) or premature EOF resume from the latest `interaction.status_update` checkpoint token when no content was yielded since that checkpoint (up to 3 no-progress reconnects). SSE `error` events are terminal; HTTP status retries stay with `RetryConfig`.
    
    Timeouts and errors:
    - Per-call `timeout(Duration)` on `CreateInteractionRequest` / builders bounds the whole `create()` call across hops via `CallDeadline`, while client-level `HttpOptions.timeout` and `RetryConfig` apply per hop.
    - A failure or timeout after progress throws `ContinuationInterruptedException` (`getCause()` chained) carrying `partialInteraction()`, `continuationToken()`, `interactionId()`, and `continuationIds()` so billed work is preserved for manual resumption. First-hop failures propagate unchanged.
    
    Opt-out:
    - `automaticContinuation=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: `InteractionContinuationConformanceTest` (52 sync + 28 async streaming conformance cases) and `InteractionContinuationTest` (whole-call timeout, builder immutability, and warning tests).
    PiperOrigin-RevId: 1009374839
    MarkDaoust authored and copybara-github committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    5691ac2 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
    ff129dd View commit details
    Browse the repository at this point in the history
  3. chore(main): release 1.80.0 (#1353)

    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
    109b2e9 View commit details
    Browse the repository at this point in the history
Loading