Skip to content

Commit 31a1254

Browse files
Merge pull request #234 from UiPath/chore/bump-core-version
chore: bump core version
2 parents e3fd206 + ad631d6 commit 31a1254

5 files changed

Lines changed: 135 additions & 108 deletions

File tree

sdk/langchain/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.81"
3+
version = "0.0.82"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.9"
77
dependencies = [
8-
"uipath-sdk==0.0.110",
8+
"uipath-sdk==0.0.112",
99
"langgraph>=0.2.70",
1010
"langchain-core>=0.3.34",
1111
"langgraph-checkpoint-sqlite>=2.0.3",

sdk/langchain/uipath_langchain/_cli/_runtime/_input.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,23 @@ async def process(self) -> Any:
7676
elif type == UiPathResumeTriggerType.JOB.value and key:
7777
job = await self.uipath.jobs.retrieve_async(key)
7878
if (
79-
job.State
80-
and not job.State.lower()
79+
job.state
80+
and not job.state.lower()
8181
== UiPathRuntimeStatus.SUCCESSFUL.value.lower()
8282
):
8383
error_code = "INVOKED_PROCESS_FAILURE"
8484
error_title = "Invoked process did not finish successfully."
85-
error_detail = try_convert_to_json_format(str(job.JobError or job.Info))
85+
error_detail = try_convert_to_json_format(
86+
str(job.job_error or job.info)
87+
)
8688
raise LangGraphRuntimeError(
8789
error_code,
8890
error_title,
8991
error_detail,
9092
UiPathErrorCategory.USER,
9193
)
92-
if job.OutputArguments:
93-
return Command(resume=try_convert_to_json_format(job.OutputArguments))
94+
if job.output_arguments:
95+
return Command(resume=try_convert_to_json_format(job.output_arguments))
9496
return Command(resume=self.context.input_json)
9597

9698
async def _get_latest_trigger(self) -> Optional[tuple[str, str]]:

sdk/langchain/uipath_langchain/_cli/_runtime/_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ async def _save_resume_trigger(self) -> None:
248248
elif isinstance(self.interrupt_value, WaitJob):
249249
self._resume_trigger = UiPathResumeTrigger(
250250
triggerType=UiPathResumeTriggerType.JOB,
251-
itemKey=self.interrupt_value.job.Key,
251+
itemKey=self.interrupt_value.job.key,
252252
)
253253
elif self.interrupt_info.type is UiPathResumeTriggerType.ACTION:
254254
if isinstance(self.interrupt_value, CreateAction):

sdk/langchain/uipath_langchain/retrievers/context_grounding_retriever.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def _get_relevant_documents(
2525

2626
return [
2727
Document(
28-
page_content=x["content"],
28+
page_content=x.content,
2929
metadata={
30-
"source": x["source"],
31-
"page_number": x["page_number"],
30+
"source": x.source,
31+
"page_number": x.page_number,
3232
},
3333
)
3434
for x in results

0 commit comments

Comments
 (0)