Authorization: Bearer ********************{
"resume": false
}curl --location --request POST '/api/cosplay/scripts/1/sessions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"resume": false
}'{
"state": {
"session_id": 1,
"script_id": 1,
"script_title": "初级软件工程师",
"setting": "你是一名刚加入\"星辰科技\"的初级软件工程师,今天是你在一个新项目上的第一个冲刺周期。",
"progress": 0,
"completed": false,
"current_scene_index": 0,
"total_scenes": 4,
"scores": {
"T": 50,
"S": 50,
"P": 50,
"Q": 50
},
"abilities": [
{
"code": "T",
"name": "技术决策",
"description": "衡量代码质量、架构合理性的能力"
},
{
"code": "S",
"name": "沟通协作",
"description": "衡量与团队、产品经理沟通的能力"
},
{
"code": "P",
"name": "项目管理",
"description": "衡量对时间、优先级和风险的把控"
},
{
"code": "Q",
"name": "工匠精神",
"description": "衡量对代码规范、可维护性的追求"
}
],
"current_scene": {
"id": "scene_1",
"title": "模糊的需求",
"text": "产品经理发来一条消息:‘我们需要一个能让用户快速分享内容到社交媒体的功能。’",
"options": [
{
"id": "option_1",
"text": "【好的,我马上开始做。】"
},
{
"id": "option_2",
"text": "【主动约产品经理聊5分钟,明确具体细节。】"
},
{
"id": "option_3",
"text": "【先研究市面上优秀的分享功能,写一份技术方案。】"
}
],
"is_end": false
},
"history": [],
"report": null
}
}