Skip to content

fix(gemini): preserve google search grounding tools#1418

Open
YanzheL wants to merge 4 commits intoWei-Shaw:mainfrom
YanzheL:fix/1161-gemini-google-search-grounding
Open

fix(gemini): preserve google search grounding tools#1418
YanzheL wants to merge 4 commits intoWei-Shaw:mainfrom
YanzheL:fix/1161-gemini-google-search-grounding

Conversation

@YanzheL
Copy link
Copy Markdown
Contributor

@YanzheL YanzheL commented Mar 31, 2026

Summary

  • preserve Google Search / web search tools when the Antigravity Claude→Gemini transformer also forwards normal function tools
  • preserve Google Search / web search tools in the Gemini Claude-messages compatibility transformer and normalize direct AI Studio requests to the REST-facing google_search key
  • add regression coverage for mixed tool payloads, including transform-level assertions and posted-body verification for the AI Studio path

Validation

  • go test ./internal/pkg/antigravity -run 'TestBuildTools_|TestBuildParts_|TestTransformClaudeToGeminiWithOptions_'
  • go test ./internal/service -run 'TestConvertClaudeToolsToGeminiTools_|TestConvertClaudeMessagesToGeminiGenerateContent_|TestEnsureGeminiFunctionCallThoughtSignatures_|TestGeminiMessagesCompatServiceForward_'
  • go test ./...
  • go build ./cmd/server

Closes #1161

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemini API支持Google Search Grounding参数吗?

1 participant