Repository navigation
Conversation
There was a problem hiding this comment.
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.
|
/gemini review |
There was a problem hiding this comment.
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.
32cc3ed to
4ed8c05
Compare
|
@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? |
… Go Google GenAI plugin
…eractions endpoint
… steps into typed parts
3325d55 to
c380465
Compare
…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.
This PR adds support for the Antigravity preview model to the Go Google GenAI plugin.
Closes: #5467
Checklist (if applicable):