You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/interrupt_models.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ UiPath platform and the Langchain coded agents.
9
9
10
10
### 1. InvokeProcess
11
11
12
-
The `InvokeProcess` model is utilized to invoke a process within UiPath cloud platform. Upon completion of the invoked process, the current agent will automatically resume execution.
12
+
The `InvokeProcess` model is utilized to invoke a process within the UiPath cloud platform.
13
+
This process can be of various types, including API workflows, Agents or RPA automation.
14
+
Upon completion of the invoked process, the current agent will automatically resume execution.
13
15
14
16
#### Attributes:
15
17
-**name** (str): The name of the process to invoke.
@@ -20,6 +22,8 @@ The `InvokeProcess` model is utilized to invoke a process within UiPath cloud pl
For a practical implementation of the `InvokeProcess` model, refer to the sample usage in the [planner.py](../../samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py#L184) file. This example 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.
This repository contains a multi-agent system that breaks down complex tasks into discrete steps and routes them to specialized agents for execution. The system consists of three main components:
3
+
This repository implements a multi-agent system that decomposes complex tasks into discrete steps, routing them to specialized agents for execution. The system comprises three main components:
4
4
5
-
1.**Planner agent**: Orchestrates the workflow by planning task execution and routing subtasks to worker agents
6
-
2.**Researcher Agent**: Finds information, formulas, and reference material without performing calculations
7
-
3.**Coder Agent**: Performs calculations and evaluates formulas with specific values
5
+
1.**Planner Agent**: Orchestrates the workflow by planning task execution and routing subtasks to worker agents.
6
+
2.**Researcher Agent**: Gathers information, formulas, and reference materials without performing calculations.
7
+
3.**Coder Agent**: Executes calculations and evaluates formulas with specific values.
8
8
9
-
Each agent functions as an independent entrypoint and can be deployed as a separate process, while still being packaged together as part of an Orchestrator Agent Package.
9
+
Each agent operates as an independent entry point and can be deployed as a separate process, while still being packaged together as part of an Orchestrator Agent Package.
10
10
11
11
## System Architecture
12
12
13
-
The system uses LangGraph to create a directed graph of agents that can communicate and pass state to each other.
13
+
The system utilizes LangGraph to create a directed graph of agents that can communicate and share state.
14
14
15
-
### Planner Graph
15
+
### Planner Agent Graph
16
16
```mermaid
17
17
---
18
18
config:
@@ -34,7 +34,7 @@ graph TD;
34
34
classDef last fill:#bfb6fc
35
35
```
36
36
37
-
### Researcher Agent
37
+
### Researcher Agent Graph
38
38
```mermaid
39
39
---
40
40
config:
@@ -61,7 +61,7 @@ graph TD;
61
61
classDef last fill:#bfb6fc
62
62
```
63
63
64
-
### Coder Agent
64
+
### Coder Agent Graph
65
65
```mermaid
66
66
---
67
67
config:
@@ -91,20 +91,20 @@ graph TD;
91
91
## Agent Responsibilities
92
92
93
93
-**Planner Agent**:
94
-
- Takes user questions and creates execution plans
95
-
- Routes tasks to appropriate worker agents
96
-
- Manages the execution flow and state tracking
97
-
- Returns final results to the user
94
+
- Takes user questions and formulates execution plans.
95
+
- Routes tasks to appropriate worker agents.
96
+
- Manages execution flow and state tracking.
97
+
- Returns final results to the user.
98
98
99
99
-**Researcher Agent**:
100
-
- Retrieves information using a Tavily search tool
101
-
- Provides factual content, definitions, and formulas
102
-
-Never performs calculations (strictly enforced)
100
+
- Retrieves information using a Tavily search tool.
101
+
- Provides factual content, definitions, and formulas.
102
+
-Does not perform calculations (strictly enforced).
103
103
104
104
-**Coder Agent**:
105
-
-Performs calculations using Python code execution
106
-
- Evaluates formulas with specific input values
107
-
- Returns precise numerical results
105
+
-Executes calculations using Python code.
106
+
- Evaluates formulas with specific input values.
107
+
- Returns precise numerical results.
108
108
109
109
## Usage
110
110
@@ -118,7 +118,7 @@ uipath run planner '{"question": "First, please state the Pythagorean theorem. G
118
118
119
119
### Debugging Individual Agents
120
120
121
-
You can debug individual agents by directly invoking them:
121
+
You can debug individual agents by invoking them directly:
122
122
123
123
#### Researcher Agent
124
124
Run the researcher agent with:
@@ -136,15 +136,100 @@ uipath run coder '{"messages":[{"content":"Let me help you state the Pythagorean
136
136
137
137
## Sample Workflow
138
138
139
-
1. User submits a question about the Pythagorean theorem
139
+
1. User submits a question about the Pythagorean theorem.
140
140
2. Planner creates an execution plan with two steps:
141
-
- Step 1: Researcher agent retrieves the Pythagorean theorem formula
142
-
- Step 2: Coder agent applies the formula to calculate the result for a=2, b=3
143
-
3. Planner executes Step 1 by invoking the researcher agent
144
-
4. Researcher agent returns the formula a² + b² = c²
145
-
5. Planner executes Step 2 by invoking the coder agent
0 commit comments