Repository navigation
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for Google AI Deep Research models as background models in the googlegenai plugin. It introduces the ModelTypeDeepResearch type, handles action resolution (start, check, and cancel operations), maps interaction steps and usage metrics, and includes comprehensive unit and live integration tests. The review feedback suggests renaming a shadowed url variable to reqURL to avoid package name collision, and improving error handling in HTTP requests by falling back to resp.Status when the response body is empty.
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.
08a0bee to
9e8fb25
Compare
986b4ff to
9732480
Compare
|
@adesinah @apascal07 checking in on this PR (along with #5498 and #5508) — are we still planning to rebase this onto the current go/plugins/googlegenai structure, or close in favor of a fresh PR alongside Go Interactions support? |
…TP and request shape Finish requires_action/incomplete/unknown statuses, stop trusting baseUrl and op.ID from caller-supplied operations, map errors to statuses, cap responses, use response_format instead of response_modalities, and keep Deep Research off the Vertex backend.
9732480 to
eb01531
Compare
Polishes Deep Research support in the Go
googlegenaiplugin and brings it to parity with the JS plugin.deep-research-preview-04-2026anddeep-research-max-preview-04-2026(media and tools);deep-research-pro-preview-12-2025is marked deprecated. Google AI only, so the Vertex plugin neither lists nor resolves them.ai.NewBackgroundModelAction, with a typedDeepResearchConfigand its own config schema.requires_action(plan awaiting approval) andincomplete(truncated) now finish the operation; unknown statuses finish with an error, and failures carry a proper status error. A cancel that reports CANCELLED counts as success.startTimesurvives a JSON round trip.response_format(no deprecatedresponse_modalities), and JSON schemas are cleaned before sending.apiKeyin the config applies to the start call only.-deepresearchbecause a run takes minutes and uses preview quota.Checklist (if applicable):