-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added Response Convenience #157
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the other aspects like token usage?
Otherwise lgtm. While I would prefer a bit stronger separation to our generated code, I can't think of a specific scenario where the inheritance will break sonerhing. The main downside of the inheritance IMO is that the most used convenience methods get buried among the generated getters and setters. But currently there are not too many of those on the root response object, so should be fine
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationResponse.java
Outdated
Show resolved
Hide resolved
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationResponse.java
Outdated
Show resolved
Hide resolved
# 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
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationResponse.java
Outdated
Show resolved
Hide resolved
...i/src/main/java/com/sap/ai/sdk/foundationmodels/openai/model/OpenAiChatCompletionOutput.java
Outdated
Show resolved
Hide resolved
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationResponse.java
Outdated
Show resolved
Hide resolved
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationResponse.java
Outdated
Show resolved
Hide resolved
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationResponse.java
Outdated
Show resolved
Hide resolved
# Conflicts: # orchestration/src/test/java/com/sap/ai/sdk/orchestration/OrchestrationUnitTest.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻
…esponse-Convenience#110
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:
OrchestrationResponse
that wrapsCompletionPostResponse
.Definition of Done
Release notes updated