Create reasoner.py
Browse files- agents/reasoner.py +16 -0
agents/reasoner.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def generate_final_response(user_message, steps, results):
|
| 2 |
+
response = f"### 🧠 AI Warehouse Operator\n\n"
|
| 3 |
+
response += f"**You asked:** {user_message}\n\n"
|
| 4 |
+
response += "### Steps Taken:\n"
|
| 5 |
+
|
| 6 |
+
for step in steps:
|
| 7 |
+
response += f"- {step}\n"
|
| 8 |
+
|
| 9 |
+
response += "\n### Output Summary:\n"
|
| 10 |
+
|
| 11 |
+
for key, value in results.items():
|
| 12 |
+
response += f"- **{key}**: processed successfully\n"
|
| 13 |
+
|
| 14 |
+
response += "\nLet me know if you want deeper analysis or a full warehouse report."
|
| 15 |
+
|
| 16 |
+
return response
|