Skip to content

Commit 4e23314

Browse files
authored
Merge pull request #317 from UiPath/fix/docs
fix: interrupt models docs
2 parents 0bfba3f + d32548e commit 4e23314

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docs/human_in_the_loop.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@ Upon completion of the invoked process, the current agent will automatically res
6868
#### Example:
6969

7070
```python
71-
from uipath.models import InvokeProcess
71+
from uipath.platform.common import InvokeProcess
7272
process_output = interrupt(InvokeProcess(name="MyProcess", process_folder_path="MyFolderPath", input_arguments={"arg1": "value1"}))
7373
```
7474

75+
/// info
76+
The return value of the interrupt is the job output. If the job did not produce any output, the return value will be the job state, e.g., `{"state": "successful"}`.
77+
///
78+
7579
/// warning
7680
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.
7781
///
@@ -93,6 +97,10 @@ the job has already been created.
9397
#### Example:
9498

9599
```python
96-
from uipath.models import WaitJob
100+
from uipath.platform.common import WaitJob
97101
job_output = interrupt(WaitJob(job=my_job_instance, process_folder_path="MyFolderPath"))
98102
```
103+
104+
/// info
105+
The return value of the interrupt is the job output. If the job did not produce any output, the return value will be the job state, e.g., `{"state": "successful"}`.
106+
///

0 commit comments

Comments
 (0)