bstraehle commited on
Commit
62fb5a8
1 Parent(s): 8642b3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -90,6 +90,22 @@ _assistant = triage_agent
90
  _thread = triage_thread
91
  ###
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  def chat(message, history, openai_api_key):
94
  global _client, _assistant, _thread
95
 
 
90
  _thread = triage_thread
91
  ###
92
 
93
+ def transfer_to_sales_agent():
94
+ """Use for anything sales or buying related."""
95
+ _assistant = sales_agent
96
+ show_json("assistant", _assistant)
97
+
98
+ def transfer_to_issues_repairs_agent():
99
+ """Use for issues, repairs, or refunds."""
100
+ _assistant = issues_repairs_agent
101
+ show_json("assistant", _assistant)
102
+
103
+ def transfer_to_triage_agent():
104
+ """Call this if the user brings up a topic outside of your purview,
105
+ including escalating to human."""
106
+ _assistant = triage_agent
107
+ show_json("assistant", _assistant)
108
+
109
  def chat(message, history, openai_api_key):
110
  global _client, _assistant, _thread
111