Skip to content

feat(platform): add guardrailName to guardrails validation payload#1746

Merged
ctiliescuuipath merged 3 commits into
mainfrom
feat/guardrails-add-guardrail-name
Jun 24, 2026
Merged

feat(platform): add guardrailName to guardrails validation payload#1746
ctiliescuuipath merged 3 commits into
mainfrom
feat/guardrails-add-guardrail-name

Conversation

@ctiliescuuipath

Copy link
Copy Markdown
Contributor

Summary

  • Adds guardrailName field to the guardrails validation request payload so the server can identify which guardrail is being evaluated
  • Bumps uipath-platform version to 0.1.74
  • Updates tests to verify the new field is present and correct

Test plan

  • Updated test_guardrails_service.py to assert guardrailName is included in the payload
  • Run full test suite: cd packages/uipath-platform && pytest

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 24, 2026 09:25
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Jun 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds the guardrailName field to the guardrails validation request payload so the backend can identify which guardrail is being evaluated, and bumps uipath-platform to 0.1.74 with lockfile updates.

Changes:

  • Include guardrailName in GuardrailsService.evaluate_guardrail() payload.
  • Update guardrails service tests to assert guardrailName is present in the outgoing request.
  • Bump uipath-platform version to 0.1.74 and update uv.lock files accordingly.

Reviewed changes

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

Show a summary per file
File Description
packages/uipath/uv.lock Updates locked uipath-platform version and lock options metadata.
packages/uipath-platform/uv.lock Updates locked uipath-platform version.
packages/uipath-platform/tests/services/test_guardrails_service.py Adds assertions that guardrailName is present in the request payload.
packages/uipath-platform/src/uipath/platform/guardrails/_guardrails_service.py Adds guardrailName to the validation request payload.
packages/uipath-platform/pyproject.toml Bumps package version to 0.1.74.

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

assert "input" in request_payload
assert "parameters" in request_payload
assert "guardrailName" in request_payload
assert request_payload["guardrailName"] == "PII detection guardrail"
Comment thread packages/uipath/uv.lock Outdated

[options]
exclude-newer = "2026-06-21T14:10:18.2328398Z"
exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this needed?

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.

was produced on uv sync i see this line exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values. in multiple py projects agents core

@ctiliescuuipath ctiliescuuipath force-pushed the feat/guardrails-add-guardrail-name branch from efa9c6e to 3346e43 Compare June 24, 2026 14:17
Include the guardrail name in the request payload sent to the
validation endpoint so the server can identify which guardrail
is being evaluated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ctiliescuuipath ctiliescuuipath force-pushed the feat/guardrails-add-guardrail-name branch from 3346e43 to 9994beb Compare June 24, 2026 14:20
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚨 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 →

@ctiliescuuipath ctiliescuuipath merged commit ab8b772 into main Jun 24, 2026
164 checks passed
@ctiliescuuipath ctiliescuuipath deleted the feat/guardrails-add-guardrail-name branch June 24, 2026 15:41
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