create_code_question
Create a programming question with customizable title, description, test cases, and code answer. Configure language, memory, time limits, and answer settings for automated grading.
Instructions
创建编程题
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"paper_id": "<paper_id>",
"question": "<question>"
},
"name": "create_code_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper_id | Yes | 试卷ID(通过 query_group_tasks 获取) | |
| question | Yes | 编程题。各字段说明: title_raw 题干富文本,建议分行写:题目说明 / 输入格式 / 输出格式 / 样例 description 解析或补充说明,不能放参考代码 program_setting 配置语言、code_answer 参考代码、in_cases 测试输入列表、内存/时间限制 | |
| need_parse | No | true 返回纯文本(plain),false 返回原始富文本结构(raw) | |
| need_detail | No | 是否在返回中包含完整题目内容(选项、答案等),仅需确认成功时设为 false |