feat:完善了智能体的框架以及使用方式

这个提交包含在:
2026-04-02 14:12:22 +08:00
父节点 2b415a75fe
当前提交 639412ad03
共有 11 个文件被更改,包括 583 次插入 和 0 次删除

查看文件

@ -0,0 +1,125 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "答题/数据评估统一反馈模板",
"type": "object",
"description": "物理竞赛声速测量智能体要求输出的结构化 JSON 格式,必须严格包含本结构定义的所有必备字段",
"properties": {
"evaluation_metadata": {
"type": "object",
"properties": {
"evaluated_at": {
"type": "string",
"format": "date-time",
"description": "评估生成的ISO8601时间戳"
},
"evaluation_type": {
"type": "string",
"enum": ["answer_grading", "data_evaluation"],
"description": "区分是卷面答题批改,还是实测数据质量评价"
}
},
"required": ["evaluated_at", "evaluation_type"]
},
"score_and_metrics": {
"type": "object",
"properties": {
"correctness": {
"type": "string",
"enum": ["true", "false", "partial", "not_applicable"],
"description": "针对答题:是否正确;针对纯数据:not_applicable"
},
"score_percentage": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "得记分数百分比(无论答题还是数据评级对应的相对分)"
},
"grade": {
"type": "string",
"enum": ["A", "B", "C", "D", "E"],
"description": "针对数据的 5 级质量评定等级"
},
"relative_error_percent": {
"type": "number",
"description": "针对数据的相对误差数值(保留一位小数)"
}
},
"required": ["score_percentage"]
},
"error_diagnosis": {
"type": "object",
"properties": {
"has_error": {
"type": "boolean",
"description": "是否含有错误或测量系统偏差"
},
"primary_error_type": {
"type": "string",
"enum": [
"concept_error",
"formula_error",
"calculation_error",
"reading_error",
"logic_error",
"systematic_error",
"operational_error",
"none"
],
"description": "主要错误类型划分"
},
"severity": {
"type": "string",
"enum": ["none", "low", "medium", "high"],
"description": "错误的严重程度"
},
"error_details": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "具体错误和偏差事实描述"
}
}
}
}
},
"required": ["has_error", "primary_error_type", "severity"]
},
"feedback": {
"type": "object",
"properties": {
"feedback_depth": {
"type": "string",
"enum": ["low", "standard", "high"],
"description": "根据 severity 自适应决定的反馈讲解深度模式"
},
"diagnosis": {
"type": "string",
"description": "对于答题错误或数据偏差的根本物理原因做出一针见血的诊断总结"
},
"explanation": {
"type": "string",
"description": "针对性物理原理讲解补课环节(必须为纯文字,可带 Markdown 数学符号)"
},
"improvement_suggestions": {
"type": "array",
"items": {
"type": "string"
},
"description": "2-3条具体可执行的操作或重算改进建议"
},
"extension_questions": {
"type": "array",
"items": {
"type": "string"
},
"description": "引导学生进一步思考的扩展问题(严重犯错时必须提供)"
}
},
"required": ["feedback_depth", "diagnosis", "explanation", "improvement_suggestions"]
}
},
"required": ["evaluation_metadata", "score_and_metrics", "error_diagnosis", "feedback"]
}