Skip to content

Conversation

@ddobrin
Copy link
Contributor

@ddobrin ddobrin commented Nov 19, 2025

NOTES:

  • Please backport to Spring AI 1.1.x in the next minor release
  • this is a clean merge

Add thought signature support for Google GenAI Gemini 3 Pro: this merge introduces comprehensive support for thought signatures in the Google GenAI integration, including:

  • New includeThoughts option in GoogleGenAiChatOptions
  • Automatic thought signature extraction and propagation in multi-turn conversations
  • Support for GEMINI_3_PRO_PREVIEW model
  • Updated GenAI SDK from 1.17.0 to 1.28.0
  • Comprehensive documentation for thought signatures and cached content
  • Test updates for new model and functionality

Thought signatures are required for Gemini 3 Pro with function calling
to maintain conversational context and avoid validation errors

Signed-off-by: ddobrin [email protected]

@markpollack @ilayaperumalg

@markpollack
Copy link
Member

please remove .github additoins.

@markpollack markpollack self-assigned this Nov 24, 2025
@markpollack markpollack modified the milestones: 1.1.1, 2.0.0.M1 Nov 24, 2025
- documented latest change
- documented outstanding chapter on cached content support

Signed-off-by: ddobrin <[email protected]>

var options = GoogleGenAiChatOptions.builder()
.model(GoogleGenAiChatModel.ChatModel.GEMINI_2_0_FLASH.getValue())
.model(GoogleGenAiChatModel.ChatModel.GEMINI_3_PRO_PREVIEW.getValue())
Copy link
Member

Choose a reason for hiding this comment

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

probably better not to change this to a model that is in preview.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted the model in use for these tests. Gemini 3 is the first model in the series which enforces Thought Signatures.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants