feat: standardizing agents to strict JSON schema architecture
这个提交包含在:
83
json-schemas/assess-schema.json
普通文件
83
json-schemas/assess-schema.json
普通文件
@ -0,0 +1,83 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"evaluation_metadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"evaluated_at": { "type": "string" },
|
||||
"question_id": { "type": "string" },
|
||||
"question_type": { "type": "string" },
|
||||
"evaluation_mode": { "type": "string" }
|
||||
},
|
||||
"required": ["evaluated_at", "question_id", "question_type", "evaluation_mode"]
|
||||
},
|
||||
"question_info": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"question_text": { "type": "string" },
|
||||
"standard_answer": { "type": "string" }
|
||||
},
|
||||
"required": ["question_text", "standard_answer"]
|
||||
},
|
||||
"student_response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"student_answer": { "type": "string" },
|
||||
"correctness": { "type": ["boolean", "string"] },
|
||||
"score_percentage": { "type": "number" }
|
||||
},
|
||||
"required": ["student_answer", "correctness", "score_percentage"]
|
||||
},
|
||||
"error_diagnosis": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"has_error": { "type": "boolean" },
|
||||
"error_count": { "type": "number" },
|
||||
"primary_error_type": { "type": ["string", "null"] },
|
||||
"severity": { "type": "string" },
|
||||
"error_details": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error_type": { "type": "string" },
|
||||
"description": { "type": "string" },
|
||||
"severity": { "type": "string" }
|
||||
},
|
||||
"required": ["error_type", "description", "severity"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["has_error", "error_count", "severity", "error_details"]
|
||||
},
|
||||
"feedback": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"correctness_feedback": { "type": "string" },
|
||||
"feedback_depth": { "type": "string" },
|
||||
"feedback_content": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"diagnosis": { "type": "string" },
|
||||
"error_explanation": { "type": ["string", "object", "null"] },
|
||||
"knowledge_points_evaluated": { "type": "array", "items": { "type": "string" } },
|
||||
"explanation": { "type": "string" },
|
||||
"improvement_suggestions": { "type": "array", "items": { "type": "string" } },
|
||||
"extension_questions": { "type": "array", "items": { "type": "string" } }
|
||||
},
|
||||
"required": ["diagnosis", "knowledge_points_evaluated", "explanation", "improvement_suggestions", "extension_questions"]
|
||||
}
|
||||
},
|
||||
"required": ["correctness_feedback", "feedback_depth", "feedback_content"]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"evaluation_metadata",
|
||||
"question_info",
|
||||
"student_response",
|
||||
"error_diagnosis",
|
||||
"feedback"
|
||||
],
|
||||
"additionalProperties": true
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"student_id": { "type": "string" },
|
||||
"student_name": { "type": "string" },
|
||||
"evaluation_date": { "type": "string" },
|
||||
"grade": { "type": "string", "enum": ["A", "B", "C", "D", "E"] },
|
||||
"grade_description": { "type": "string" },
|
||||
"metrics": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"relative_error_percent": { "type": "number" },
|
||||
"data_quality_assessment": { "type": "string" },
|
||||
"operation_compliance": { "type": "string" }
|
||||
},
|
||||
"required": ["relative_error_percent", "data_quality_assessment", "operation_compliance"]
|
||||
},
|
||||
"error_analysis": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"primary_error_source": { "type": "string" },
|
||||
"systematic_error": { "type": "string" },
|
||||
"operational_issues": { "type": "string" }
|
||||
},
|
||||
"required": ["primary_error_source", "systematic_error", "operational_issues"]
|
||||
},
|
||||
"detailed_feedback": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"strengths": { "type": "array", "items": { "type": "string" } },
|
||||
"weaknesses": { "type": "array", "items": { "type": "string" } },
|
||||
"root_cause_analysis": { "type": "string" }
|
||||
},
|
||||
"required": ["strengths", "weaknesses", "root_cause_analysis"]
|
||||
},
|
||||
"improvement_suggestions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"priority": { "type": "number" },
|
||||
"issue": { "type": "string" },
|
||||
"suggestion": { "type": "string" },
|
||||
"expected_impact": { "type": "string" }
|
||||
},
|
||||
"required": ["priority", "issue", "suggestion", "expected_impact"]
|
||||
}
|
||||
},
|
||||
"teacher_comments": { "type": "string" }
|
||||
},
|
||||
"required": [
|
||||
"student_id",
|
||||
"student_name",
|
||||
"evaluation_date",
|
||||
"grade",
|
||||
"grade_description",
|
||||
"metrics",
|
||||
"error_analysis",
|
||||
"detailed_feedback",
|
||||
"improvement_suggestions",
|
||||
"teacher_comments"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
31
json-schemas/qa-schema.json
普通文件
31
json-schemas/qa-schema.json
普通文件
@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"understanding": { "type": "string" },
|
||||
"core_concept": { "type": "string" },
|
||||
"direct_answer": { "type": "string" },
|
||||
"deep_dive": { "type": ["string", "null"] },
|
||||
"practical_tips": { "type": "array", "items": { "type": "string" } },
|
||||
"self_check_questions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"question": { "type": "string" },
|
||||
"hint": { "type": "string" }
|
||||
},
|
||||
"required": ["question", "hint"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"understanding",
|
||||
"core_concept",
|
||||
"direct_answer",
|
||||
"deep_dive",
|
||||
"practical_tips",
|
||||
"self_check_questions"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户