diff --git a/packages/uipath-platform/pyproject.toml b/packages/uipath-platform/pyproject.toml index eec99ca30..cfe85a61e 100644 --- a/packages/uipath-platform/pyproject.toml +++ b/packages/uipath-platform/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-platform" -version = "0.1.75" +version = "0.1.76" description = "HTTP client library for programmatic access to UiPath Platform" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/packages/uipath-platform/src/uipath/platform/guardrails/_guardrails_service.py b/packages/uipath-platform/src/uipath/platform/guardrails/_guardrails_service.py index 424b35dad..86856a6b4 100644 --- a/packages/uipath-platform/src/uipath/platform/guardrails/_guardrails_service.py +++ b/packages/uipath-platform/src/uipath/platform/guardrails/_guardrails_service.py @@ -116,6 +116,7 @@ def evaluate_guardrail( "validator": guardrail.validator_type, "input": input_data if isinstance(input_data, str) else str(input_data), "parameters": parameters, + "guardrailName": guardrail.name, } spec = RequestSpec( method="POST", diff --git a/packages/uipath-platform/tests/services/test_guardrails_service.py b/packages/uipath-platform/tests/services/test_guardrails_service.py index dd20d5646..e9d73a06f 100644 --- a/packages/uipath-platform/tests/services/test_guardrails_service.py +++ b/packages/uipath-platform/tests/services/test_guardrails_service.py @@ -262,15 +262,18 @@ def capture_request(request): # Parse the request payload request_payload = json.loads(captured_request.content) - # Verify the payload structure matches the reverted format: + # Verify the payload structure: # { # "validator": guardrail.validator_type, # "input": input_data, # "parameters": parameters, + # "guardrailName": guardrail.name, # } assert "validator" in request_payload assert "input" in request_payload assert "parameters" in request_payload + assert "guardrailName" in request_payload + assert request_payload["guardrailName"] == "PII detection guardrail" # Verify validator is a string (not an object) assert isinstance(request_payload["validator"], str) diff --git a/packages/uipath-platform/uv.lock b/packages/uipath-platform/uv.lock index a9a4d2abc..2c3e5d025 100644 --- a/packages/uipath-platform/uv.lock +++ b/packages/uipath-platform/uv.lock @@ -1095,7 +1095,7 @@ dev = [ [[package]] name = "uipath-platform" -version = "0.1.75" +version = "0.1.76" source = { editable = "." } dependencies = [ { name = "httpx" }, diff --git a/packages/uipath/pyproject.toml b/packages/uipath/pyproject.toml index fc45cd4be..7acd8465d 100644 --- a/packages/uipath/pyproject.toml +++ b/packages/uipath/pyproject.toml @@ -7,7 +7,7 @@ requires-python = ">=3.11" dependencies = [ "uipath-core>=0.5.21, <0.6.0", "uipath-runtime>=0.11.0, <0.12.0", - "uipath-platform>=0.1.75, <0.2.0", + "uipath-platform>=0.1.76, <0.2.0", "click>=8.3.1", "httpx>=0.28.1", "pyjwt>=2.10.1", diff --git a/packages/uipath/uv.lock b/packages/uipath/uv.lock index b4b11488e..989e4b5ea 100644 --- a/packages/uipath/uv.lock +++ b/packages/uipath/uv.lock @@ -2691,7 +2691,7 @@ dev = [ [[package]] name = "uipath-platform" -version = "0.1.75" +version = "0.1.76" source = { editable = "../uipath-platform" } dependencies = [ { name = "httpx" },