Skip to content

Commit 19d5957

Browse files
authored
fix: bump runtime version (#553)
1 parent c1a1635 commit 19d5957

4 files changed

Lines changed: 38 additions & 22 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.5.38"
3+
version = "0.5.39"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath>=2.8.6,<2.9.0",
9-
"uipath-runtime>=0.7.0, <0.8.0",
8+
"uipath>=2.8.10,<2.9.0",
9+
"uipath-runtime>=0.7.1, <0.8.0",
1010
"langgraph>=1.0.0, <2.0.0",
1111
"langchain-core>=1.2.5, <2.0.0",
1212
"langgraph-checkpoint-sqlite>=3.0.3, <4.0.0",

tests/hitl/mocks/job_trigger_hitl.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ def wait_job_node(state: GraphState) -> Output:
4242
print("Process output: {}".format(state.process_output))
4343

4444
response = interrupt(
45-
WaitJob(job=Job(key="487d9dc7-30fe-4926-b5f0-35a956914042", Id=123))
45+
WaitJob(
46+
job=Job(
47+
key="487d9dc7-30fe-4926-b5f0-35a956914042",
48+
id=123,
49+
folder_key="test-folder-key",
50+
)
51+
)
4652
)
4753
return Output(message=response["output_arg_2"])
4854

tests/hitl/test_hitl_job_trigger.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ async def test_agent_job_trigger(
5555
# Mock UiPath API response for job creation
5656
httpx_mock.add_response(
5757
url=f"{base_url}/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs",
58-
json={"value": [{"key": f"{job_key}", "Id": "123"}]},
58+
json={
59+
"value": [
60+
{
61+
"Key": f"{job_key}",
62+
"Id": 123,
63+
"FolderKey": "test-folder-key",
64+
}
65+
]
66+
},
5967
)
6068

6169
# First execution: creates job trigger and stores it in database
@@ -125,10 +133,11 @@ async def test_agent_job_trigger(
125133
httpx_mock.add_response(
126134
url=f"{base_url}/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier={trigger_data['item_key']})",
127135
json={
128-
"key": f"{job_key}",
129-
"id": 123,
130-
"state": "successful",
131-
"output_arguments": json.dumps(output_args_dict),
136+
"Key": f"{job_key}",
137+
"Id": 123,
138+
"FolderKey": "test-folder-key",
139+
"State": "successful",
140+
"OutputArguments": json.dumps(output_args_dict),
132141
},
133142
)
134143

@@ -200,10 +209,11 @@ async def test_agent_job_trigger(
200209
httpx_mock.add_response(
201210
url=f"{base_url}/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier={trigger_data['item_key']})",
202211
json={
203-
"key": f"{job_key}",
204-
"id": 123,
205-
"state": "successful",
206-
"output_arguments": json.dumps(output_args_dict),
212+
"Key": f"{job_key}",
213+
"Id": 123,
214+
"FolderKey": "test-folder-key",
215+
"State": "successful",
216+
"OutputArguments": json.dumps(output_args_dict),
207217
},
208218
)
209219

uv.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)