Chinez-dev commited on
Commit
00c6d83
·
verified ·
1 Parent(s): 6358add

Update app.py

Browse files

Morrreeeeeeeee

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -24,7 +24,7 @@ def __init__(self):
24
  self.patient_data = {}
25
 
26
  @tool
27
- def collect_symptoms(self: Self, patient_id: str, symptoms: str) -> str:
28
  """
29
  Nurse tool to collect symptoms and ask follow-up questions.
30
 
@@ -60,7 +60,7 @@ def collect_symptoms(self: Self, patient_id: str, symptoms: str) -> str:
60
  return f"Unexpected Error: {str(e)}"
61
 
62
  @tool
63
- def diagnose_patient(self: Self, patient_id: str) -> str:
64
  """
65
  Doctor tool to diagnose the patient based on symptoms.
66
 
@@ -90,7 +90,7 @@ def diagnose_patient(self: Self, patient_id: str) -> str:
90
  return f"Unexpected Error: {str(e)}"
91
 
92
  @tool
93
- def fetch_diagnosis(self: Self, symptoms: str) -> str:
94
  """
95
  AI tool to retrieve a diagnosis based on symptoms.
96
 
@@ -114,7 +114,7 @@ def fetch_diagnosis(self: Self, symptoms: str) -> str:
114
  return f"Unexpected Error: {str(e)}"
115
 
116
  @tool
117
- def fetch_medication(self: Self, symptoms: str) -> str:
118
  """
119
  AI tool to suggest medications based on symptoms.
120
 
@@ -138,7 +138,7 @@ def fetch_medication(self: Self, symptoms: str) -> str:
138
  return f"Unexpected Error: {str(e)}"
139
 
140
  @tool
141
- def fetch_treatment_advice(self: Self, symptoms: str) -> str:
142
  """
143
  AI tool to provide treatment recommendations.
144
 
 
24
  self.patient_data = {}
25
 
26
  @tool
27
+ def collect_symptoms(self: CodeAgent, patient_id: str, symptoms: str) -> str:
28
  """
29
  Nurse tool to collect symptoms and ask follow-up questions.
30
 
 
60
  return f"Unexpected Error: {str(e)}"
61
 
62
  @tool
63
+ def diagnose_patient(self: CodeAgent, patient_id: str) -> str:
64
  """
65
  Doctor tool to diagnose the patient based on symptoms.
66
 
 
90
  return f"Unexpected Error: {str(e)}"
91
 
92
  @tool
93
+ def fetch_diagnosis(self: CodeAgent, symptoms: str) -> str:
94
  """
95
  AI tool to retrieve a diagnosis based on symptoms.
96
 
 
114
  return f"Unexpected Error: {str(e)}"
115
 
116
  @tool
117
+ def fetch_medication(self: CodeAgent, symptoms: str) -> str:
118
  """
119
  AI tool to suggest medications based on symptoms.
120
 
 
138
  return f"Unexpected Error: {str(e)}"
139
 
140
  @tool
141
+ def fetch_treatment_advice(self: CodeAgent, symptoms: str) -> str:
142
  """
143
  AI tool to provide treatment recommendations.
144