Spaces:
Sleeping
Sleeping
Commit
·
4ecff1b
1
Parent(s):
dda2e5f
Udate
Browse files
main.py
CHANGED
@@ -276,24 +276,21 @@ class HealthcareChatbot:
|
|
276 |
Provide your comprehensive analysis and decision in this exact JSON structure:
|
277 |
|
278 |
{{
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
"missing_required": ["list", "of", "missing", "required", "parameters"],
|
295 |
-
"confidence": 0.95
|
296 |
-
}}
|
297 |
|
298 |
=== CRITICAL EXCELLENCE STANDARDS ===
|
299 |
1. **ACCURACY FIRST**: Only route to endpoints that exist in the documentation
|
|
|
276 |
Provide your comprehensive analysis and decision in this exact JSON structure:
|
277 |
|
278 |
{{
|
279 |
+
"reasoning": {{
|
280 |
+
"user_intent": "Brief description of what the user wants to accomplish",
|
281 |
+
"selected_endpoint": "Why this endpoint was chosen over others",
|
282 |
+
"parameter_mapping": "How user query maps to endpoint parameters"
|
283 |
+
}},
|
284 |
+
"endpoint": "/exact_endpoint_path_from_documentation",
|
285 |
+
"method": "HTTP_METHOD",
|
286 |
+
"params": {{
|
287 |
+
"required_param_1": "extracted_or_converted_value",
|
288 |
+
"required_param_2": "extracted_or_converted_value",
|
289 |
+
"optional_param": "value_if_applicable"
|
290 |
+
}},
|
291 |
+
"missing_required": ["list", "of", "missing", "required", "parameters"],
|
292 |
+
"confidence": 0.95
|
293 |
+
}}
|
|
|
|
|
|
|
294 |
|
295 |
=== CRITICAL EXCELLENCE STANDARDS ===
|
296 |
1. **ACCURACY FIRST**: Only route to endpoints that exist in the documentation
|