Skip to content

Commit c0b4de7

Browse files
committed
docs: move warning from quick start to hitl page
1 parent b4b08b8 commit c0b4de7

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/human_in_the_loop.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ from uipath_llamaindex.models import InvokeProcessEvent
7070
process_output = ctx.write_event_to_stream(InvokeProcessEvent(name="MyProcess", input_arguments={"arg1": "value1"}))
7171
```
7272

73+
/// warning
74+
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.
75+
///
76+
7377
For a practical implementation of the `InvokeProcess` model, refer to the [multi-agent sample](https://github.com/UiPath/uipath-llamaindex-python/tree/main/samples/multi-agent). This sample demonstrates how to invoke a process with dynamic input arguments, showcasing the integration of the interrupt functionality within a multi-agent system or a system where an agent integrates with RPA processes and API workflows.
7478

7579
---

docs/quick_start.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,6 @@ Set the environment variables using the provided link:
294294

295295
Use the provided link to monitor your job and view detailed traces.
296296

297-
/// warning
298-
When using invoke, ensure agents don’t unintentionally invoke themselves in a loop. Use clear process names and implement safeguards like exit conditions to prevent recursion issues.
299-
///
300-
301297
<picture data-light="../quick_start_images/invoke_output_light.png" data-dark="../quick_start_images/invoke_output_dark.png">
302298
<source
303299
media="(prefers-color-scheme: dark)"

samples/multi-agent/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Copy `.env.template` to `.env` and fill in your secrets (API keys, tokens, etc.)
3838
```sh
3939
uipath run agent --file ./input.json
4040
```
41+
42+
> **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.
43+
4144
### 5. Resume
4245

4346
To approve the rules and commit them use:

0 commit comments

Comments
 (0)