abdibrahem commited on
Commit
4ecff1b
·
1 Parent(s): dda2e5f
Files changed (1) hide show
  1. main.py +15 -18
main.py CHANGED
@@ -276,24 +276,21 @@ class HealthcareChatbot:
276
  Provide your comprehensive analysis and decision in this exact JSON structure:
277
 
278
  {{
279
- "reasoning": {{
280
- "user_intent": "Detailed description of what the user wants to accomplish, including primary and secondary goals",
281
- "temporal_analysis": "How dates/times were interpreted and converted with step-by-step calculations",
282
- "context_used": "Any context from conversation history that was applied, including entity persistence and implicit references",
283
- "endpoint_analysis": "Thorough evaluation of why each potential endpoint was considered or rejected, with scoring rationale",
284
- "selected_endpoint": "Detailed explanation of why this specific endpoint was chosen over all others",
285
- "parameter_mapping": "Comprehensive explanation of how user query maps to endpoint parameters, including extraction methods and confidence levels"
286
- }},
287
- "endpoint": "/exact_endpoint_path_from_documentation",
288
- "method": "HTTP_METHOD",
289
- "params": {{
290
- "required_param_1": "extracted_or_converted_value",
291
- "required_param_2": "extracted_or_converted_value",
292
- "optional_param": "value_if_applicable"
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