added sales & chinook exception log
Browse files
agents.py
CHANGED
|
@@ -91,7 +91,7 @@ def instructAgent(question_text, model_name):
|
|
| 91 |
logger.info(f"🔹 Steps: {response['intermediate_steps']}")
|
| 92 |
except Exception as e:
|
| 93 |
output = "Please rephrase and try again ..."
|
| 94 |
-
|
| 95 |
|
| 96 |
return output
|
| 97 |
|
|
@@ -104,7 +104,7 @@ def salesAgent(instruction):
|
|
| 104 |
print("panda> " + output)
|
| 105 |
except Exception as e:
|
| 106 |
logger.error(e)
|
| 107 |
-
output = "Please rephrase and try again for company sales data"
|
| 108 |
return output
|
| 109 |
|
| 110 |
def chinookAgent(instruction, model_name):
|
|
|
|
| 91 |
logger.info(f"🔹 Steps: {response['intermediate_steps']}")
|
| 92 |
except Exception as e:
|
| 93 |
output = "Please rephrase and try again ..."
|
| 94 |
+
logger.error(e)
|
| 95 |
|
| 96 |
return output
|
| 97 |
|
|
|
|
| 104 |
print("panda> " + output)
|
| 105 |
except Exception as e:
|
| 106 |
logger.error(e)
|
| 107 |
+
output = f"Please rephrase and try again for company sales data {e}"
|
| 108 |
return output
|
| 109 |
|
| 110 |
def chinookAgent(instruction, model_name):
|