Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -179,6 +179,8 @@ class BasicAgent:
|
|
| 179 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 180 |
result = self.agent.run(question)
|
| 181 |
|
|
|
|
|
|
|
| 182 |
if isinstance(result, dict) and "output" in result:
|
| 183 |
final_str = str(result["output"]).strip()
|
| 184 |
elif hasattr(result, "output"):
|
|
|
|
| 179 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 180 |
result = self.agent.run(question)
|
| 181 |
|
| 182 |
+
print("Raw result:", result)
|
| 183 |
+
|
| 184 |
if isinstance(result, dict) and "output" in result:
|
| 185 |
final_str = str(result["output"]).strip()
|
| 186 |
elif hasattr(result, "output"):
|