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

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", 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,8 +54,8 @@ 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,7 +73,7 @@ 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
  )
 
33
  "But make your questions subtle and natural."
34
  ),
35
  model=MODEL,
36
+ tools=[{transfer_to_sales_agent_json},
37
+ {transfer_to_issues_repairs_agent_json},
38
+ {escalate_to_human_json}],
39
  )
40
 
41
  def create_sales_agent(client):
 
54
  ""
55
  ),
56
  model=MODEL,
57
+ tools=[{execute_order_json},
58
+ {transfer_to_triage_agent_json}],
59
  )
60
 
61
  def create_issues_repairs_agent(client):
 
73
  ""
74
  ),
75
  model=MODEL,
76
+ tools=[{look_up_item_json},
77
+ {execute_refund_json},
78
+ {transfer_to_triage_agent_json}],
79
  )