Skip to content

move pii masking service to llmops#1701

Merged
yashwagle1 merged 2 commits into
mainfrom
feat/movePIIMaskingToLLMops
Jun 5, 2026
Merged

move pii masking service to llmops#1701
yashwagle1 merged 2 commits into
mainfrom
feat/movePIIMaskingToLLMops

Conversation

@yashwagle1
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 22:56
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Jun 4, 2026
Copy link
Copy Markdown

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

This PR removes the legacy SemanticProxy client surface and relocates the PII masking/detection functionality under the pii_detection package, updating the service endpoint to the LLMOps tenant route.

Changes:

  • Renamed the client/service from SemanticProxyService to PiiDetectionService and updated imports/tests accordingly.
  • Updated the PII detection endpoint path from semanticproxy_ to llmopstenant_.
  • Added an explicit per-request timeout override for PII detection calls.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/uipath-platform/tests/services/test_pii_utilities.py Updates test imports to the new pii_detection public API surface.
packages/uipath-platform/tests/services/test_pii_detection_service.py Renames tests and updates mocked URLs/imports for the new PII detection service + endpoint path.
packages/uipath-platform/src/uipath/platform/pii_detection/pii_utilities.py Updates internal model imports to point at pii_detection models.
packages/uipath-platform/src/uipath/platform/pii_detection/pii_detection.py Updates module docstring to reflect the new service naming.
packages/uipath-platform/src/uipath/platform/pii_detection/_pii_detection_service.py Renames the service, changes the endpoint prefix to LLMOps tenant, and adds a longer request timeout.
packages/uipath-platform/src/uipath/platform/pii_detection/init.py Re-exports the renamed service and reorganizes exports under the new package.
packages/uipath-platform/src/uipath/platform/_uipath.py Replaces the semantic_proxy accessor with pii_detection on the main UiPath entry point.
Comments suppressed due to low confidence (1)

packages/uipath-platform/src/uipath/platform/pii_detection/_pii_detection_service.py:18

  • _PII_DETECTION_TIMEOUT = 290.0 is an unexplained magic number. Since this value is in seconds, it would be clearer and more maintainable to express it in terms of minutes/seconds while keeping the same effective timeout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/uipath-platform/src/uipath/platform/_uipath.py
@yashwagle1 yashwagle1 force-pushed the feat/movePIIMaskingToLLMops branch from 517b903 to a5a7e66 Compare June 4, 2026 23:04
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@yashwagle1 yashwagle1 force-pushed the feat/movePIIMaskingToLLMops branch 4 times, most recently from 93e5b7f to 5f810e9 Compare June 5, 2026 20:10
Comment thread packages/uipath-platform/src/uipath/platform/pii_detection/pii_utilities.py Outdated
@saksharthakkar
Copy link
Copy Markdown
Contributor

nit: title is misleading ...

@yashwagle1 yashwagle1 changed the title Remove semanticproxy and move pii masking service to llmops move pii masking service to llmops Jun 5, 2026
Copy link
Copy Markdown
Contributor

@saksharthakkar saksharthakkar left a comment

Choose a reason for hiding this comment

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

approved with couple of nit comments

yashwagle1 and others added 2 commits June 5, 2026 14:10
Adds PiiDetectionService (uipath.platform.pii_detection / sdk.pii_detection)
pointing at llmopstenant_/api/pii-detection with a 290s request timeout. The
existing SemanticProxyService (semanticproxy_/api/pii-detection) is kept
unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drops the JSON-escaping helper (_add_escape_characters) from both pii_detection and
semantic_proxy rehydration. Rehydration runs on plain LLM text, so JSON-escaping
corrupted values containing quotes, newlines or backslashes; ordinary PII was
unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yashwagle1 yashwagle1 force-pushed the feat/movePIIMaskingToLLMops branch from 50471d3 to ce5f012 Compare June 5, 2026 21:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

🚨 Heads up: uipath-integrations cross-tests are FAILING 🚨

Your changes may break one or more integrations in uipath-integrations-python:

  • uipath-openai-agents
  • uipath-google-adk
  • uipath-agent-framework
  • uipath-llamaindex
  • uipath-pydantic-ai

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
30.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@yashwagle1 yashwagle1 merged commit 9a5d2bb into main Jun 5, 2026
133 of 164 checks passed
@yashwagle1 yashwagle1 deleted the feat/movePIIMaskingToLLMops branch June 5, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants