potential fix to return news object type
Browse files
crew.py
CHANGED
|
@@ -726,8 +726,7 @@ def run_crewai_news_patient(count: int = 5) -> dict:
|
|
| 726 |
return result
|
| 727 |
else:
|
| 728 |
try:
|
| 729 |
-
|
| 730 |
-
return json.loads(str(result))
|
| 731 |
except:
|
| 732 |
return {"status": "error", "message": "Failed to parse crew output", "raw": str(result), "resulttype": type(result)}
|
| 733 |
|
|
|
|
| 726 |
return result
|
| 727 |
else:
|
| 728 |
try:
|
| 729 |
+
return result.json_dict
|
|
|
|
| 730 |
except:
|
| 731 |
return {"status": "error", "message": "Failed to parse crew output", "raw": str(result), "resulttype": type(result)}
|
| 732 |
|