Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/uipath-platform/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath-platform/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/uipath/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading