Repository navigation
Conversation
PG-Thomas
force-pushed
the
feat/documents-folder-models
branch
from
October 8, 2026 17:22
eb96c02 to
c259b8a
Compare
…older - add start_model_extraction_validation, which writes the validation data for an extraction to a storage bucket through extraction-validation/artifacts - add create_model_validation_task, which opens an Action Center DocumentValidationTask over that data and returns the Task, so agents can wait on it - add retrieve_model_extraction_validation_result, which reads the reviewer's submitted extraction result - keep the taxonomy and the content validation data PascalCase, as the artifacts and task endpoints expect them
PG-Thomas
force-pushed
the
feat/documents-folder-model-validation
branch
from
October 8, 2026 17:24
4533c08 to
b215c4e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacks on #1933 (folder extraction), which stacks on #1929.
What
Models deployed to a folder can't use the project and tag validation route (
.../validation/start). Their validation is a separate artifacts flow, and the caller opens the Action Center task. This PR adds:start_model_extraction_validation(extraction_response, storage_bucket_name, storage_bucket_folder_path, storage_bucket_directory_path=None, folder_key=None):models/{name}.extraction-validation/artifacts/start, then waits forcontent-validation-data.operation_idand thecontent_validation_data.create_model_validation_task(title, content_validation_data, priority=None, folder_key | folder_path): it opens aDocumentValidationTaskthroughGenericTasks/CreateTaskand returns theTask, so an agent can suspend onWaitTask.retrieve_model_extraction_validation_result(operation_id): it readsextraction-validation/artifacts/validation-result/{id}. Until the reviewer submits, DU returns{"Result": {}}, and the method then raisesOperationNotCompleteException.The taxonomy and the content validation data are passed through unchanged (PascalCase), because the artifacts and task endpoints receive them back as-is.
Taskis imported inside the two task methods. A module-level import creates an import cycle (action_center→common.interrupt_models→documents).How it was tested
content-validation-data.uipath-platformsuite, ruff and mypy all pass.DocumentValidationTaskwas created with priority Low. Read back, it showed the right type, priority and data. It was then deleted.OperationNotCompleteException ... Current status: Pending.Version bumped to 0.2.37.