Skip to content

feat: [Orchestration] reasoning content #939

Merged
CharlesDuboisSAP merged 38 commits into
mainfrom
reasoning-content
Jul 24, 2026
Merged

feat: [Orchestration] reasoning content #939
CharlesDuboisSAP merged 38 commits into
mainfrom
reasoning-content

Conversation

@n-o-u-r-h-a-n

@n-o-u-r-h-a-n n-o-u-r-h-a-n commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Context

AI/ai-sdk-java-backlog#412.

As a user, I would like to see the thinking processes when using the reasoning models, in addition to the final outcome. This is relevant for synchronous and streaming use-cases.

The harmonized API of orchestration supports this feature (see link above), so the SDK should also follow.

Feature scope:

  • supported reasoning content using model classes code
  • added sample code as well as updated controller and index page
  • added e2e and unit tests

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Aligned changes with the JavaScript SDK
  • Documentation updated
  • Release notes updated

Comment thread orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java Outdated
Comment thread orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationClient.java Outdated

@ZhongpinWang ZhongpinWang left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@CharlesDuboisSAP Regarding the signature, it does not need a convenience to get it out. It only needs to be as part of the message history and be sent back together in the next LLM call for verification reasons. So IMO providing a convenience to access reasoning content text would be enough.

Comment thread orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java Outdated
Comment thread orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java Outdated
Comment thread orchestration/src/main/java/com/sap/ai/sdk/orchestration/AssistantMessage.java Outdated
Comment thread orchestration/src/test/resources/reasoningRequest.json
n-o-u-r-h-a-n and others added 7 commits July 14, 2026 13:11
…llers/OrchestrationTest.java

Co-authored-by: Jonas-Isr <jonas.israel@sap.com>
…llers/OrchestrationTest.java

Co-authored-by: Jonas-Isr <jonas.israel@sap.com>
…llers/OrchestrationTest.java

Co-authored-by: Jonas-Isr <jonas.israel@sap.com>
Comment thread sample-code/spring-app/src/main/resources/static/index.html Outdated
Comment thread sample-code/spring-app/src/main/resources/static/index.html Outdated
Comment thread orchestration/src/main/java/com/sap/ai/sdk/orchestration/ReasoningEffort.java Outdated
…llers/OrchestrationController.java

Co-authored-by: Charles Dubois <103174266+CharlesDuboisSAP@users.noreply.github.com>
n-o-u-r-h-a-n and others added 3 commits July 16, 2026 13:01
Co-authored-by: Charles Dubois <103174266+CharlesDuboisSAP@users.noreply.github.com>
Co-authored-by: Charles Dubois <103174266+CharlesDuboisSAP@users.noreply.github.com>

@CharlesDuboisSAP CharlesDuboisSAP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor comments, looks good

@CharlesDuboisSAP
CharlesDuboisSAP merged commit a21386b into main Jul 24, 2026
6 checks passed
@CharlesDuboisSAP
CharlesDuboisSAP deleted the reasoning-content branch July 24, 2026 13:06
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.

5 participants