added comments to clarify when the agentController is used
Browse files
app.py
CHANGED
|
@@ -54,16 +54,19 @@ question_text = get_question()
|
|
| 54 |
if question_text and len(question_text) > 1:
|
| 55 |
output=""
|
| 56 |
if option_mode == "Internal-Sales":
|
|
|
|
| 57 |
output = salesAgent(question_text)
|
| 58 |
elif option_mode == "Internal-Merchant":
|
|
|
|
| 59 |
output = chinookAgent(question_text, option_llm)
|
| 60 |
elif option_mode.startswith("Chat"):
|
|
|
|
| 61 |
response = chatAgent(question_text)
|
| 62 |
if response and response.content:
|
| 63 |
output = response.content
|
| 64 |
else:
|
| 65 |
output = response
|
| 66 |
-
else:
|
| 67 |
output = agentController(question_text, option_llm)
|
| 68 |
|
| 69 |
height = min(2*len(output), 280)
|
|
|
|
| 54 |
if question_text and len(question_text) > 1:
|
| 55 |
output=""
|
| 56 |
if option_mode == "Internal-Sales":
|
| 57 |
+
# not going through the agentController
|
| 58 |
output = salesAgent(question_text)
|
| 59 |
elif option_mode == "Internal-Merchant":
|
| 60 |
+
# not going through the agentController
|
| 61 |
output = chinookAgent(question_text, option_llm)
|
| 62 |
elif option_mode.startswith("Chat"):
|
| 63 |
+
# not going through the agentController
|
| 64 |
response = chatAgent(question_text)
|
| 65 |
if response and response.content:
|
| 66 |
output = response.content
|
| 67 |
else:
|
| 68 |
output = response
|
| 69 |
+
else: # DEFAULT DEMO: through agentController
|
| 70 |
output = agentController(question_text, option_llm)
|
| 71 |
|
| 72 |
height = min(2*len(output), 280)
|