plutoa386 commited on
Commit
f81db3a
·
1 Parent(s): 27df780
Files changed (1) hide show
  1. crew.py +5 -3
crew.py CHANGED
@@ -299,7 +299,7 @@ def explain_dementia_risk_lifestyle(docID: str) -> str:
299
  return f"SHAP explanation failed: {str(e)}"
300
 
301
  @tool("gather_news_patient")
302
- def gather_news_patient(count: int = 5) -> dict: # ← Change return type to dict
303
  """
304
  Gathers recent dementia news articles which are relevant patients. Returns structured dict.
305
  """
@@ -693,7 +693,8 @@ def run_crewai_news_patient(count: int = 5) -> dict:
693
  crew = Crew(
694
  agents=[patient_news],
695
  tasks=[get_news_task_patient],
696
- verbose=True
 
697
  )
698
  raw = str(crew.kickoff()).strip()
699
 
@@ -725,7 +726,8 @@ def run_crewai_news_doctor(count: int = 5) -> dict:
725
  crew = Crew(
726
  agents=[doctor_news],
727
  tasks=[get_news_task_doctor],
728
- verbose=True
 
729
  )
730
  raw_output = str(crew.kickoff()).strip()
731
 
 
299
  return f"SHAP explanation failed: {str(e)}"
300
 
301
  @tool("gather_news_patient")
302
+ def gather_news_patient(count: int = 5) -> dict:
303
  """
304
  Gathers recent dementia news articles which are relevant patients. Returns structured dict.
305
  """
 
693
  crew = Crew(
694
  agents=[patient_news],
695
  tasks=[get_news_task_patient],
696
+ verbose=True,
697
+ function_calling=False
698
  )
699
  raw = str(crew.kickoff()).strip()
700
 
 
726
  crew = Crew(
727
  agents=[doctor_news],
728
  tasks=[get_news_task_doctor],
729
+ verbose=True,
730
+ function_calling=False
731
  )
732
  raw_output = str(crew.kickoff()).strip()
733