Skip to content

Commit 41a6b5f

Browse files
committed
refine: process flows
added context_based_handoff.png , groupchat_manager.png, llm_based_handoff.png. also refined process flows images for sequential pattern , starpattern example , triage_tasks_example. i am keeping the process_notebook line commented as a choice of how i want to build the documentation, so ignore the commented line. I guess now we can approve with 5 star rating
1 parent 1f7f11c commit 41a6b5f

File tree

12 files changed

+28
-56
lines changed

12 files changed

+28
-56
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

website/docs/user-guide/advanced-concepts/orchestration/group-chat/handoffs.mdx

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -372,17 +372,8 @@ tech_agent.handoffs.add_llm_conditions([
372372

373373
With these LLM-based handoffs, the tech agent analyzes the user's message to identify if they're discussing a computer or smartphone issue, then routes accordingly. The LLM evaluates the prompt against the conversation content to make this decision.
374374

375-
```mermaid
376-
flowchart TD
377-
Tech[Tech Agent] -->|"LLM analyzes: Computer issue?"| Computer[Computer Agent]
378-
Tech -->|"LLM analyzes: Smartphone issue?"| Smartphone[Smartphone Agent]
379-
Tech -->|"Neither condition met"| User([User])
380-
381-
style Tech fill:#e8f5e9,stroke:#4caf50
382-
style Computer fill:#d1c4e9,stroke:#673ab7
383-
style Smartphone fill:#bbdefb,stroke:#2196f3
384-
style User fill:#f9f9f9,stroke:#333
385-
```
375+
![llm_based_handoff](../assets/llm_based_handoff.png)
376+
386377

387378
### Configuring Context-Based Handoffs
388379

@@ -412,18 +403,8 @@ smartphone_agent.handoffs.add_context_conditions([
412403

413404
These context-based handoffs check if `repeat_issue` is set to `True` in the context variables. When a user says their issue wasn't solved, the `check_repeat_issue` tool sets this flag, and the handoff condition triggers a transfer to advanced troubleshooting.
414405

415-
```mermaid
416-
flowchart TD
417-
Computer[Computer Agent] -->|"Context check: repeat_issue == True"| Advanced[Advanced Troubleshooting]
418-
Computer ---->|"First-time issue"| User([User])
419-
Smartphone[Smartphone Agent] ---->|"Context check: repeat_issue == True"| Advanced
420-
Smartphone ---->|"First-time issue"| User
421-
422-
style Computer fill:#d1c4e9,stroke:#673ab7
423-
style Smartphone fill:#bbdefb,stroke:#2196f3
424-
style Advanced fill:#ffccbc,stroke:#e64a19
425-
style User fill:#f9f9f9,stroke:#333
426-
```
406+
![context_based_handoff](../assets/context_based_handoff.png)
407+
427408

428409
### Setting Default After-Work Behavior
429410

website/docs/user-guide/advanced-concepts/orchestration/group-chat/introduction.mdx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,8 @@ The following diagram illustrates how the triage example unfolds. The user submi
116116

117117
We are using the `AutoPattern` in this example, where the next speaker is automatically selected for based on the context of the conversation.
118118

119-
```mermaid
120-
flowchart TD
121-
User([User]) --> GroupManager[Group Manager]
119+
![groupchat_manager](../assets/groupchat_manager.png)
122120

123-
GroupManager --> Triage[Triage Agent]
124-
Triage --> GroupManager
125-
126-
GroupManager --> Tech[Tech Agent]
127-
Tech --> GroupManager
128-
129-
GroupManager --> General[General Agent]
130-
General --> GroupManager
131-
132-
GroupManager --> User
133-
134-
style GroupManager fill:#ffebee,stroke:#f44336
135-
style Triage fill:#e1f5fe,stroke:#0288d1
136-
style Tech fill:#f1f8e9,stroke:#689f38
137-
style General fill:#fce4ec,stroke:#d81b60
138-
```
139121

140122
### Complete Code Example
141123

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)