Skip to content

feat(go/plugins/googlegenai): Add Antigravity preview model family - #5498

Open
adesinah wants to merge 5 commits into
mainfrom
feat/antigravity-preview-model-family
Open

adesinah wants to merge 5 commits into
mainfrom
feat/antigravity-preview-model-family

Conversation

@adesinah

@adesinah adesinah commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for the Antigravity preview model to the Go Google GenAI plugin.
Closes: #5467

Checklist (if applicable):

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the new ModelTypeAntigravity model type (specifically antigravity-preview-05-2026) in the Google GenAI plugin. It adds classification logic, capability configurations, default options, and unit tests to verify the integration. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@adesinah

adesinah commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the new Antigravity model type in the Google GenAI plugin. It defines the ModelTypeAntigravity constant, implements model classification, configures default capabilities and options for Antigravity models, and registers the antigravity-preview-05-2026 model. Additionally, comprehensive unit tests have been added to verify the classification, default options, and model listing behavior. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@MichaelDoyle

Copy link
Copy Markdown
Contributor

@adesinah @apascal07 checking in on this PR — are we still planning to rebase this onto current go/plugins/googlegenai (and update the model version from 05-2026 to 09-2026 to match #7004), or close in favor of a fresh PR with Go Interactions support?

@adesinah
adesinah force-pushed the feat/antigravity-preview-model-family branch from 3325d55 to c380465 Compare November 18, 2026 16:18
…odels

- Register Antigravity with a typed AntigravityConfig and a passthrough
  schema (additionalProperties allowed), so undeclared keys (tools,
  temperature, apiKey, ...) reach the request as in JS .passthrough();
  declared keys are type-checked. Drops the untyped-config conversion.
- Wire multi-turn: continue from the last model message carrying
  interactionId, send only newer messages, reuse its environmentId, and
  honour an explicit previousInteractionId without replaying history.
- Usage follows the #6614 token convention; per-modality token counts go
  in Custom, not the character/media-count fields.
- Handle incomplete (length), failed (server error code/message, content
  blocks as blocked, JS code->status table), cancelled (aborted, no
  synthetic text) and non-terminal statuses.
- Raw HTTP: context cancellation/deadline keep their cause and status,
  errors go through wrapAPIError (incl. RetryInfo), response size cap,
  configured HTTPClient/Timeout/Headers, body excerpt on bad JSON.
- Scope Antigravity to Google AI: Vertex does not resolve, define or list
  it, and the handler refuses it.
- Align capabilities with JS (tools true, systemRole false via
  simulateSystemPrompt); distinguish pending client function calls from
  server-run ones and preserve call signatures.
- toInteractionSteps keeps part order, parses data-URL MIME types, errors
  on unsupported parts/media, and uses the http(s) media download
  middleware like generateContent.
- Use antigravity-preview-09-2026 (the JS/Python ID; 05-2026 still
  resolves), response_format instead of response_modalities, and the
  {"type":"remote"} default environment (required by the API).
- Rework unit and live tests; document the model in the README.
@github-actions github-actions Bot added the docs Improvements or additions to documentation label Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation go

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(go/plugins/googlegenai): add Antigravity preview model family

2 participants