Skip to content

Commit 49dee91

Browse files
committed
docs
1 parent d8cd0c7 commit 49dee91

4 files changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: demo/langchain-stream/triage_agent
3+
group: demo/langchain-stream
4+
---
5+
6+
# triage_agent
7+
8+
> This agent functions as a pharmaceutical seller within the HuggingFace Inference demo project, providing real-time consultations on pharma products using the HfCompletion powered by OpenAI's gpt-oss-120b model through HuggingFace's cost-effective inference cloud, and it employs the AddToCartTool only when necessary to facilitate purchases.
9+
10+
**Completion:** `hf_completion`
11+
12+
*Operator:* [ ]
13+
14+
15+
![schema](../image/agent_schema_triage_agent.svg)
16+
17+
## Main prompt
18+
19+
```
20+
You are the pharma seller agent.
21+
Provide me the consultation about the pharma product
22+
```
23+
24+
## System prompt
25+
26+
1. `To add the pharma product to the cart call the next tool: add_to_cart_tool`
27+
28+
2. `Call the tools only when nessesary, if not required, just speek with users`
29+
30+
## Depends on
31+
32+
## Used tools
33+
34+
### 1. add_to_cart_tool
35+
36+
#### Name for model
37+
38+
`add_to_cart_tool`
39+
40+
#### Description for model
41+
42+
`Add the pharma product to cart`
43+
44+
#### Parameters for model
45+
46+
> **1. title**
47+
48+
*Type:* `string`
49+
50+
*Description:* `Name of pharma product to be appended to cart`
51+
52+
*Required:* [ ]
53+
54+
#### Note for developer
55+
56+
*This tool enables adding a pharmaceutical product to the cart in the HuggingFace Inference demo project by accepting a product title, logging the action for debugging, confirming the addition through a tool output, flushing the commit for consistency, and notifying the user via an emitted message, supporting real-time interactions within a system powered by OpenAI's gpt-oss-120b model through HuggingFace's cost-effective inference cloud.*
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: demo/langchain-stream/root_swarm
3+
group: demo/langchain-stream
4+
---
5+
6+
# root_swarm
7+
8+
> This swarm serves as the root structure for the HuggingFace Inference demo project, managing a single TriageAgent as both the sole member and default agent to handle pharmaceutical sales interactions, utilizing the HfCompletion powered by OpenAI's gpt-oss-120b model through HuggingFace's cost-effective inference cloud for efficient, responsive user consultations and cart operations.
9+
10+
![schema](./image/swarm_schema_root_swarm.svg)
11+
12+
## Default agent
13+
14+
- [triage_agent](./agent/triage_agent.md)
15+
16+
This agent functions as a pharmaceutical seller within the HuggingFace Inference demo project, providing real-time consultations on pharma products using the HfCompletion powered by OpenAI's gpt-oss-120b model through HuggingFace's cost-effective inference cloud, and it employs the AddToCartTool only when necessary to facilitate purchases.
17+
18+
## Used agents
19+
20+
1. [triage_agent](./agent/triage_agent.md)
21+
22+
This agent functions as a pharmaceutical seller within the HuggingFace Inference demo project, providing real-time consultations on pharma products using the HfCompletion powered by OpenAI's gpt-oss-120b model through HuggingFace's cost-effective inference cloud, and it employs the AddToCartTool only when necessary to facilitate purchases.

0 commit comments

Comments
 (0)