From 820ac527914df2d9fda59e6e0ba5193ab8fd2980 Mon Sep 17 00:00:00 2001 From: radu-mocanu Date: Fri, 5 Dec 2025 13:38:16 +0200 Subject: [PATCH] chore: add info panel for empty job output --- docs/human_in_the_loop.md | 6 ++++++ src/uipath_llamaindex/models/events.py | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/human_in_the_loop.md b/docs/human_in_the_loop.md index d634b36..09641f5 100644 --- a/docs/human_in_the_loop.md +++ b/docs/human_in_the_loop.md @@ -74,6 +74,9 @@ from uipath_llamaindex.models import InvokeProcessEvent ctx.write_event_to_stream(InvokeProcessEvent(name="MyProcess", process_folder_path="MyFolderPath", input_arguments={"arg1": "value1"})) job_data = await ctx.wait_for_event(HumanResponseEvent) ``` +/// info +The return value of the event is the job output. If the job did not produce any output, the return value will be the job state, e.g., `{"state": "successful"}`. +/// /// warning An agent can invoke itself if needed, but this must be done with caution. Be mindful that using the same name for invocation may lead to unintentional loops. To prevent recursion issues, implement safeguards like exit conditions. @@ -100,3 +103,6 @@ from uipath_llamaindex.models import WaitJobEvent ctx.write_event_to_stream(WaitJobEvent(job=my_job_instance, process_folder_path="MyFolderPath")) job_data = await ctx.wait_for_event(HumanResponseEvent) ``` +/// info +The return value of the event is the job output. If the job did not produce any output, the return value will be the job state, e.g., `{"state": "successful"}`. +/// diff --git a/src/uipath_llamaindex/models/events.py b/src/uipath_llamaindex/models/events.py index f7ca105..7784883 100644 --- a/src/uipath_llamaindex/models/events.py +++ b/src/uipath_llamaindex/models/events.py @@ -1,4 +1,4 @@ -from uipath.platform.common import CreateTask, InvokeProcess, WaitJob, WaitTask +from uipath.platform.common import CreateTask, InvokeProcess, WaitJob, WaitTask, WaitEscalation, CreateEscalation from workflows.events import InputRequiredEvent @@ -16,3 +16,9 @@ class CreateTaskEvent(CreateTask, InputRequiredEvent): class WaitTaskEvent(WaitTask, InputRequiredEvent): pass + +class WaitEscalationEvent(WaitEscalation, InputRequiredEvent): + pass + +class CreateEscalationEvent(CreateEscalation, InputRequiredEvent): + pass