Skip to content

Conversation

@alexandrujircan
Copy link
Collaborator

@alexandrujircan alexandrujircan commented Jan 29, 2026

add support for start IXP extraction from attachment

Tested locally + added UTs

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Jan 29, 2026
Copy link

Copilot AI left a 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 an attachment parameter (mutually exclusive with file/file_path).
  • Add digitization helpers for the /digitization/startFromJobAttachment endpoint (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_extraction docstring says it “uploads the file as an attachment”, but the new attachment parameter allows starting digitization from an existing job attachment without uploading. Please reword the description to reflect both code paths (upload from file/file_path vs using an existing attachment).
        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.

@alexandrujircan alexandrujircan force-pushed the feat/documents/add-support-for-start-extraction-from-attachment branch from b6005ea to 262013b Compare January 29, 2026 14:02
@alexandrujircan alexandrujircan force-pushed the feat/documents/add-support-for-start-extraction-from-attachment branch from 262013b to af3231b Compare January 29, 2026 14:03
Copy link

Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants