Skip to content

Conversation

@ddobrin
Copy link
Contributor

@ddobrin ddobrin commented Nov 27, 2025

Notes: @markpollack @ilayaperumalg

  • this PR is sent to complement the thought signature in Google GenAI PR with support for thinking levels

  • if its too late to be included in the upcoming milestones, it can be added to the subsequent one

    Add support for ThinkingLevel (LOW, HIGH, THINKING_LEVEL_UNSPECIFIED)
    to control the depth of reasoning tokens generated by Gemini models.

    • Create GoogleGenAiThinkingLevel enum for type-safe thinking level values
    • Add thinkingLevel field to GoogleGenAiChatOptions with builder support
    • Add mapping method to convert Spring AI enum to SDK ThinkingLevel.Known
    • Update createGeminiRequest() to include thinkingLevel in ThinkingConfig
    • Add comprehensive unit tests for options and request building
    • Add integration tests for thinkingLevel with Gemini 3 Pro Preview
    • Document changes

…nfig

  Add support for ThinkingLevel (LOW, HIGH, THINKING_LEVEL_UNSPECIFIED)
  to control the depth of reasoning tokens generated by Gemini models.

  - Create GoogleGenAiThinkingLevel enum for type-safe thinking level values
  - Add thinkingLevel field to GoogleGenAiChatOptions with builder support
  - Add mapping method to convert Spring AI enum to SDK ThinkingLevel.Known
  - Update createGeminiRequest() to include thinkingLevel in ThinkingConfig
  - Add comprehensive unit tests for options and request building
  - Add integration tests for thinkingLevel with Gemini 3 Pro Preview
  - Document changes

Signed-off-by: ddobrin <ddobrin@google.com>
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