Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Response Convenience #173

Merged
merged 19 commits into from
Nov 21, 2024
Merged

Add Response Convenience #173

merged 19 commits into from
Nov 21, 2024

Conversation

Jonas-Isr
Copy link
Member

Context

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

As an orchestration user, I want to have a convenient way of accessing the LLM result and further related information.

Feature scope:

  • Added methods getTokenUsage() and getAllMessages() to OrchestrationChatResponse

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

Jonas Israel and others added 13 commits November 13, 2024 15:21
# Conflicts:
#	orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationClient.java
#	orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationUnitTest.java
#	pom.xml
#	sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java
#	sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java
# Conflicts:
#	orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationUnitTest.java
# Conflicts:
#	orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationChatResponse.java
#	orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationUnitTest.java
#	sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java
#	sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/OrchestrationTest.java
@Jonas-Isr Jonas-Isr added the please-review Request to review a pull-request label Nov 20, 2024
Copy link
Member

@MatKuhr MatKuhr left a comment

Choose a reason for hiding this comment

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

otherwise lgtm

@Jonas-Isr Jonas-Isr mentioned this pull request Nov 21, 2024
7 tasks
@MatKuhr MatKuhr merged commit c971173 into main Nov 21, 2024
5 checks passed
@MatKuhr MatKuhr deleted the Response-Convenience#110 branch November 21, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please-review Request to review a pull-request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants