Spaces:
Running
Running
Update agents.py
Browse files
agents.py
CHANGED
@@ -33,9 +33,9 @@ def create_triage_agent(client):
|
|
33 |
"But make your questions subtle and natural."
|
34 |
),
|
35 |
model=MODEL,
|
36 |
-
tools=[{"type": "function",
|
37 |
-
{"type": "function",
|
38 |
-
{"type": "function",
|
39 |
)
|
40 |
|
41 |
def create_sales_agent(client):
|
@@ -54,8 +54,8 @@ def create_sales_agent(client):
|
|
54 |
""
|
55 |
),
|
56 |
model=MODEL,
|
57 |
-
tools=[{"type": "function",
|
58 |
-
{"type": "function",
|
59 |
)
|
60 |
|
61 |
def create_issues_repairs_agent(client):
|
@@ -73,7 +73,7 @@ def create_issues_repairs_agent(client):
|
|
73 |
""
|
74 |
),
|
75 |
model=MODEL,
|
76 |
-
tools=[{"type": "function",
|
77 |
-
{"type": "function",
|
78 |
-
{"type": "function",
|
79 |
)
|
|
|
33 |
"But make your questions subtle and natural."
|
34 |
),
|
35 |
model=MODEL,
|
36 |
+
tools=[{"type": "function", transfer_to_sales_agent_json},
|
37 |
+
{"type": "function", transfer_to_issues_repairs_agent_json},
|
38 |
+
{"type": "function", escalate_to_human_json}],
|
39 |
)
|
40 |
|
41 |
def create_sales_agent(client):
|
|
|
54 |
""
|
55 |
),
|
56 |
model=MODEL,
|
57 |
+
tools=[{"type": "function", execute_order_json},
|
58 |
+
{"type": "function", transfer_to_triage_agent_json}],
|
59 |
)
|
60 |
|
61 |
def create_issues_repairs_agent(client):
|
|
|
73 |
""
|
74 |
),
|
75 |
model=MODEL,
|
76 |
+
tools=[{"type": "function", look_up_item_json},
|
77 |
+
{"type": "function", execute_refund_json},
|
78 |
+
{"type": "function", transfer_to_triage_agent_json}],
|
79 |
)
|