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

feat: Orchestration, Spring AI and Everything Else #96

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

MatKuhr
Copy link
Member

@MatKuhr MatKuhr commented Oct 15, 2024

Context

Yes, context.

Feature scope:

Yes.

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

@MatKuhr MatKuhr marked this pull request as draft October 16, 2024 06:19
Copy link
Contributor

@CharlesDuboisSAP CharlesDuboisSAP left a comment

Choose a reason for hiding this comment

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

Please split this PR in 2: first Orchestration Client and then Spring AI.
I did my best to review this but it's very early.

@RequiredArgsConstructor
class OrchestrationResponseHandler<T> implements HttpClientResponseHandler<T> {
// TODO reduce code duplication with OpenAI
@Nonnull private final Class<T> responseType;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is 99% code duplication with OpenAIResponseHandler

Comment on lines 46 to 56
@Test
void looseFilter() {
assertThat(new OrchestrationController().filter("4")).isNotNull();
}

@Test
void strictFilter() {
assertThatThrownBy(() -> new OrchestrationController().filter("0"))
.isInstanceOf(HttpClientErrorException.class)
.hasMessageContaining("400 Bad Request");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove my tests?

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.

2 participants