Hammad712 commited on
Commit
704d7be
Β·
verified Β·
1 Parent(s): 5367e2c

Update app/core/agents.py

Browse files
Files changed (1) hide show
  1. app/core/agents.py +16 -12
app/core/agents.py CHANGED
@@ -1122,7 +1122,21 @@ def llm_judge(original_payload: Dict[str, Any], generated_plan: Dict[str, Any])
1122
  }}
1123
  Do NOT include any extra text.
1124
  """
1125
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1126
  ml_judge_prompt = f"""
1127
  You are the **RiverGen ML Quality Assurance Judge**.
1128
 
@@ -1200,17 +1214,7 @@ SCORING GUIDELINES
1200
  OUTPUT FORMAT (JSON ONLY)
1201
  ────────────────────────────────────────
1202
  Return ONLY:
1203
- {
1204
- "approved": boolean,
1205
- "score": float,
1206
- "feedback": "string",
1207
- "validation": {
1208
- "feature_issues": [],
1209
- "execution_issues": [],
1210
- "ml_best_practice_violations": [],
1211
- "notes": []
1212
- }
1213
- }
1214
 
1215
  NO extra text.
1216
  """
 
1122
  }}
1123
  Do NOT include any extra text.
1124
  """
1125
+
1126
+
1127
+ judge_output_schema = {
1128
+ "approved": "boolean",
1129
+ "score": "float",
1130
+ "feedback": "string",
1131
+ "validation": {
1132
+ "feature_issues": [],
1133
+ "execution_issues": [],
1134
+ "ml_best_practice_violations": [],
1135
+ "notes": []
1136
+ }
1137
+ }
1138
+
1139
+
1140
  ml_judge_prompt = f"""
1141
  You are the **RiverGen ML Quality Assurance Judge**.
1142
 
 
1214
  OUTPUT FORMAT (JSON ONLY)
1215
  ────────────────────────────────────────
1216
  Return ONLY:
1217
+ {json.dumps(judge_output_schema, indent=2)}
 
 
 
 
 
 
 
 
 
 
1218
 
1219
  NO extra text.
1220
  """