Skip to content

Commit 5aebbfe

Browse files
committed
fix(RemoveStrictSchema): remove strict schema check
Strict schema does not work with optional args.
1 parent ef8cdb7 commit 5aebbfe

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.4.0"
3+
version = "2.4.1"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/_cli/_evals/mocks/input_mocker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async def generate_llm_input(
8989
"type": "json_schema",
9090
"json_schema": {
9191
"name": "agent_input",
92-
"strict": True,
92+
"strict": False,
9393
"schema": input_schema,
9494
},
9595
}

src/uipath/_cli/_evals/mocks/llm_mocker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def response(
113113
"type": "json_schema",
114114
"json_schema": {
115115
"name": "OutputSchema",
116-
"strict": True,
116+
"strict": False,
117117
"schema": _cleanup_schema(output_schema),
118118
},
119119
}

tests/cli/eval/mocks/test_mocks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def foofoo(*args, **kwargs):
216216
"type": "json_schema",
217217
"json_schema": {
218218
"name": "OutputSchema",
219-
"strict": True,
219+
"strict": False,
220220
"schema": {"type": "string"},
221221
},
222222
}
@@ -317,7 +317,7 @@ async def foofoo(*args, **kwargs):
317317
"type": "json_schema",
318318
"json_schema": {
319319
"name": "OutputSchema",
320-
"strict": True,
320+
"strict": False,
321321
"schema": {"type": "string"},
322322
},
323323
}
@@ -416,7 +416,7 @@ def foo(*args, **kwargs) -> dict[str, Any]:
416416
"type": "json_schema",
417417
"json_schema": {
418418
"name": "OutputSchema",
419-
"strict": True,
419+
"strict": False,
420420
"schema": {
421421
"required": ["content"],
422422
"type": "object",
@@ -509,7 +509,7 @@ async def foo(*args, **kwargs) -> dict[str, Any]:
509509
"type": "json_schema",
510510
"json_schema": {
511511
"name": "OutputSchema",
512-
"strict": True,
512+
"strict": False,
513513
"schema": {
514514
"required": ["content"],
515515
"type": "object",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)