-
Notifications
You must be signed in to change notification settings - Fork 21
feat(documents): add support for start ixp extraction from attachment #1239
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
base: main
Are you sure you want to change the base?
feat(documents): add support for start ixp extraction from attachment #1239
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.
Pull request overview
Adds support for starting IXP extraction by digitizing from an existing UiPath job attachment, in addition to the existing file/file_path upload flow.
Changes:
- Extend
DocumentsService.start_ixp_extraction{_async}to accept anattachmentparameter (mutually exclusive withfile/file_path). - Add digitization helpers for the
/digitization/startFromJobAttachmentendpoint (sync + async). - Add unit tests covering the new attachment-based extraction path and update validation error expectations.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/uipath/platform/documents/_documents_service.py |
Adds attachment-based digitization and wires attachment into IXP extraction start APIs. |
tests/sdk/services/test_documents_service.py |
Adds UTs for the attachment-based IXP extraction path and updates invalid-parameter assertion. |
src/uipath/platform/attachments/attachments.py |
Updates the Attachment model docstring. |
Comments suppressed due to low confidence (1)
src/uipath/platform/documents/_documents_service.py:1015
- The
start_ixp_extractiondocstring says it “uploads the file as an attachment”, but the newattachmentparameter allows starting digitization from an existing job attachment without uploading. Please reword the description to reflect both code paths (upload fromfile/file_pathvs using an existingattachment).
attachment: Optional[Attachment] = None,
) -> StartExtractionResponse:
"""Start an IXP extraction process without waiting for results (non-blocking).
This method uploads the file as an attachment and starts the extraction process,
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b6005ea to
262013b
Compare
262013b to
af3231b
Compare
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
add support for start IXP extraction from attachment
Tested locally + added UTs