Skip to content

Conversation

@n-o-u-r-h-a-n
Copy link
Contributor

@n-o-u-r-h-a-n n-o-u-r-h-a-n commented Nov 6, 2025

Context

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

Adding convenience methods for both input and output translation configs respectively.

Feature scope:

  • Added a builder class and convenience method in SAPDocumentTranslationInput class.
  • Added a builder class and convenience method in SAPDocumentTranslationOutput class.
  • Updated Translation method in OrchestrationService class accordingly.
  • Updated release notes.

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

@n-o-u-r-h-a-n n-o-u-r-h-a-n removed the request for review from CharlesDuboisSAP November 7, 2025 13:24
@n-o-u-r-h-a-n n-o-u-r-h-a-n added the please-review Request to review a pull-request label Nov 7, 2025
.config(
SAPDocumentTranslationOutputConfig.create()
.targetLanguage(SAPDocumentTranslationOutputTargetLanguage.create("de-DE"))
.sourceLanguage("en-US"));
Copy link
Contributor

Choose a reason for hiding this comment

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

(Major)

These arguments need to be configurable fully for the convenience layer.

SAPDocumentTranslationInputConfig.create()
.targetLanguage("en-US")
.applyTo(null)))
TranslationConfig.inputTranslation().getInputTranslationConfig())
Copy link
Contributor

Choose a reason for hiding this comment

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

(Minor)

I would expect an overload for .withInputTranslationConfig(..) that expects a convenience class as argument, in parallel to existing generated class SAPDocumentTranslationOutput.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please compare to the other with- methods in OrchestrationModuleConfig, they translate a convenience argument to generated class.

@newtork newtork removed the please-review Request to review a pull-request label Nov 17, 2025
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.

7 participants