bstraehle commited on
Commit
0ceb8f1
1 Parent(s): f088048

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +8 -8
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", "function": transfer_to_sales_agent_json},
37
- {"type": "function", "function": transfer_to_issues_repairs_agent_json},
38
- {"type": "function", "function": escalate_to_human_json}],
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", "function": execute_order_json},
58
- {"type": "function", "function": transfer_to_triage_agent_json}],
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", "function": look_up_item_json},
77
- {"type": "function", "function": execute_refund_json},
78
- {"type": "function", "function": transfer_to_triage_agent_json}],
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
  )