File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " uipath-langchain"
3- version = " 0.0.81 "
3+ version = " 0.0.82 "
44description = " UiPath Langchain"
55readme = { file = " README.md" , content-type = " text/markdown" }
66requires-python = " >=3.9"
77dependencies = [
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" ,
Original file line number Diff line number Diff 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 ]]:
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments