spring-projects / spring-projects/spring-ai

Reasoning options documented in docs

Open
#3,725 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

reasoning status: to-discuss
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Expected Behavior
I would expect that it would be easy to add reasoning_effort (or similar) to the models that support it.

Current Behavior
Not defined in the documentation. At least for claude sonnet 4 trough bedrock. After a lot of searching, since anthrophic doesnt use the nomenclature reasoning_effort (whyyyyyy), I found a ThinkingConfig within the https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatOptions.java

I would expect all of the different options to be well documented in the documentation, such that I do not have to go into the code.

Context
We are considering / experimenting using SpringAI in our org for our agent efforts, but this requires good and up to date documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with models/spring-ai-anthropic/src/main/java/org/springframework/ai/anthropic/AnthropicChatOptions.java and inspect the ThinkingConfig options referenced in the issue. Update the relevant documentation to explain the supported reasoning settings, including the Claude Sonnet 4 and Bedrock context, and verify that the available options are discoverable without reading source code.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java, spring
Domain
ai, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.