Skip to content

feat: [Orchestration] support the file uploading feature#818

Open
n-o-u-r-h-a-n wants to merge 9 commits intomainfrom
file-uploading-feature
Open

feat: [Orchestration] support the file uploading feature#818
n-o-u-r-h-a-n wants to merge 9 commits intomainfrom
file-uploading-feature

Conversation

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

@n-o-u-r-h-a-n n-o-u-r-h-a-n commented Apr 7, 2026

Context

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

Orchestration service releases a new service for file uploading(PDF), so the feature is now supported.

Feature scope:

  • Supported feature by path locally.
  • Supported feature base64 encoded file as a string.
  • Added unit tests and end to end tests.
  • Coverage checks have slightly risen.

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

* @param filename name of the file
* @since 1.18.0
*/
public record FileItem(@Nonnull String fileData, @Nonnull String filename) implements ContentItem {}
Copy link
Copy Markdown
Contributor

@newtork newtork Apr 8, 2026

Choose a reason for hiding this comment

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

(Question)

The specification assumes Base64 encoded file content or file URL for fileData.
But your implementation only assumes local file content, right? Can your API still support remote files? Or is it out-of-scope?

Maybe we need a LocalFileItem and RemoteFileItem 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, my implementation assumed only local file content, but because I understood that remote files support is out-of-scope.

I searched now and found this information on SAP Help Portal, but I'm a bit confused. Does that mean remote files should be supported as well?

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.

3 participants