diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
| commit | 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch) | |
| tree | 5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/aimath | |
| parent | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff) | |
| download | afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip | |
update APIs 20260712
Diffstat (limited to 'data/zh_cn/aimath')
| -rw-r--r-- | data/zh_cn/aimath/2024-11-14/api-docs.php | 882 |
1 files changed, 260 insertions, 622 deletions
diff --git a/data/zh_cn/aimath/2024-11-14/api-docs.php b/data/zh_cn/aimath/2024-11-14/api-docs.php index 3d8a9ae..7280d3c 100644 --- a/data/zh_cn/aimath/2024-11-14/api-docs.php +++ b/data/zh_cn/aimath/2024-11-14/api-docs.php @@ -1,34 +1,16 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'AIMath', - 'version' => '2024-11-14', - ], - 'directories' => [ - 'GenAnalysis', - 'GenStep', - 'GlobalConfirm', - 'UpdateAnalysis', - 'UpdateStep', - 'ChatMessage', - 'CreateConversation', - 'CreateRelatedConversation', - ], + 'info' => ['style' => 'RPC', 'product' => 'AIMath', 'version' => '2024-11-14'], + 'directories' => ['GenAnalysis', 'GenStep', 'GlobalConfirm', 'UpdateAnalysis', 'UpdateStep', 'ChatMessage', 'CreateConversation', 'CreateRelatedConversation'], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'GenAnalysis' => [ - 'summary' => '生成解题分析。', - 'path' => '/genAnalysis', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - 'sse', - ], + 'ChatMessage' => [ + 'summary' => '数学对话中,对话消息流式输出。 调用方将user的提问输入进来,服务方将模型的assistant通过流式输出给到调用方。', + 'path' => '/conversation/message', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], 'security' => [ [ 'AK' => [], @@ -40,37 +22,24 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ExerciseContent', + 'name' => 'ConversationId', 'in' => 'formData', - 'schema' => [ - 'title' => '试题内容', - 'description' => '试题内容(json格式) </br>'."\n" - .'格式说明: </br>'."\n" - ."\n" - .'```'."\n" - .'{'."\n" - .' "answer": "等腰直角", // 试题答案'."\n" - .' "content":'."\n" - .' {'."\n" - .' "description": "xxx" // 试题题干'."\n" - .' },'."\n" - .' "solution":'."\n" - .' {'."\n" - .' "description": "xxx" // 试题解题步骤'."\n" - .' }'."\n" - .'}'."\n" - .'```', - 'type' => 'string', - 'required' => true, - 'example' => '{"answer":"等腰直角","content":{"description":"已知$|m-\\\\sqrt{2}|+\\\\sqrt{n-2}+(p-\\\\sqrt{2})^{2}=0$,则以m、n、p为三边长的三角形是()三角形"},"solution":{"description":"解:根据题意得,$m-\\\\sqrt{2}=0, n-2=0, p-\\\\sqrt{2}=0$,\\n解得,$m=\\\\sqrt{2}, n=2, p=\\\\sqrt{2}$, \\n$\\\\therefore m=p$,\\n 又$\\\\because \\\\sqrt{2}^{2}+\\\\sqrt{2}^{2}=2^{2}=4$, \\n 即 $m^{2}+p^{2}=n^{2}$,\\n$\\\\therefore 以m、n、p为三边长的三角形是等腰直角三角形$.\\n故答案为:等腰直角."}}', - ], + 'schema' => ['title' => '会话ID', 'description' => '会话ID', 'type' => 'string', 'required' => true, 'example' => '723b7f0f-c28a-4123-86e7-094d3d3863f8'], + ], + [ + 'name' => 'Content', + 'in' => 'formData', + 'schema' => ['title' => '对话内容', 'description' => '对话内容', 'type' => 'string', 'required' => true, 'example' => 'hello world!'], + ], + [ + 'name' => 'UserId', + 'in' => 'formData', + 'schema' => ['title' => '用户id,获取其他用于隔离的对话归属的id,调用方定义,与创建对话的userId保持一致', 'description' => '用户id,获取其他用于隔离的对话归属的id,调用方定义,与创建对话的userId保持一致', 'type' => 'string', 'required' => true, 'example' => 'c28a-4123-86e7'], ], ], 'responses' => [ @@ -80,68 +49,43 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '1d31b11b-4b82-4db1-b3c0-001529fc78eb', - ], - 'EventType' => [ - 'title' => '事件类型', - 'description' => '事件类型', - 'type' => 'string', - 'example' => 'EXERCISE_INFO-试题信息;'."\n" - .'ANALYSIS_REPLY-分析的reply;'."\n" - .'ANALYSIS_REPLY_DONE-分析的reply回复完成'."\n" - .'ANALYSIS_SUMMARY-分析的reply总结信息;'."\n" - .'ERROR_INTERRUPT-错误中断;'."\n" - .'ALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;', - ], - 'Content' => [ - 'title' => '内容', - 'description' => '内容', - 'type' => 'string', - 'example' => 'EventType不同时, 该字段返回内容不同.'."\n" - .'EventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;'."\n" - .'EventType==ANALYSIS_REPLY时: 字段内容为解题分析的流式输出, 接入方需要按序将结果拼接;'."\n" - .'EventType==ANALYSIS_REPLY_DONE时: 字段内容为空;'."\n" - .'EventType==ANALYSIS_SUMMARY时: 字段内容为解题分析的输出总结, 并给出内容编码(用于修订接口使用);'."\n" - .'EventType==ERROR_INTERRUPT时: 字段内容为空;'."\n" - .'EventType==ALL_DONE时: 字段内容为空;', - ], - 'ErrCode' => [ - 'title' => '错误码', - 'description' => '错误码', - 'type' => 'string', - 'example' => '40020503', - ], - 'ErrMsg' => [ - 'title' => '错误信息', - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'Parameter value validation failed', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5'], + 'EventType' => ['title' => '', 'description' => '事件类型', 'type' => 'string', 'example' => 'EventType说明:'."\n" + .'CONVERSATION_MESSAGE_REPLY:对话消息流式输出。'."\n" + .'CONVERSATION_MESSAGE_DONE:对话消息正常回复完成。'."\n" + .'CONVERSATION_MESSAGE_SUMMARY:对话消息汇总。'."\n" + .'ALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;'."\n" + .'ERROR_INTERRUPT:返回错误信息,会有errCode和errMsg返回;'."\n" + ."\n" + .'流式回推内容JSON样例:'."\n" + .'{'."\n" + .' "eventType": "CONVERSATION_MESSAGE_REPLY",'."\n" + .' "requestId": "ljflsjfsd",'."\n" + .' "msgId": "Msg_GI6r_1735176995696_v0sI",'."\n" + .' "content": "看起来"'."\n" + .'}'], + 'Content' => ['title' => '对话回复', 'description' => '对话回复', 'type' => 'string', 'example' => 'EventType不同,content内容有所不同'."\n" + .'CONVERSATION_MESSAGE_REPLY : content中对话消息流式输出内容,增量式回推。'."\n" + .'CONVERSATION_MESSAGE_DONE:content为null,对话消息回复完成。'."\n" + .'CONVERSATION_MESSAGE_SUMMARY:content为汇总的数据。'."\n" + .'ALL_DONE:content不存在'], + 'Success' => ['description' => '是否调用成功。true:调用成功。false:调用失败。', 'type' => 'boolean', 'example' => 'true'], + 'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'The specified parameter is not valid.'], + 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'Param.Invalid'], ], ], ], ], - 'errorCodes' => [], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1d31b11b-4b82-4db1-b3c0-001529fc78eb\\",\\n \\"EventType\\": \\"EXERCISE_INFO-试题信息;\\\\nANALYSIS_REPLY-分析的reply;\\\\nANALYSIS_REPLY_DONE-分析的reply回复完成\\\\nANALYSIS_SUMMARY-分析的reply总结信息;\\\\nERROR_INTERRUPT-错误中断;\\\\nALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;\\",\\n \\"Content\\": \\"EventType不同时, 该字段返回内容不同.\\\\nEventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;\\\\nEventType==ANALYSIS_REPLY时: 字段内容为解题分析的流式输出, 接入方需要按序将结果拼接;\\\\nEventType==ANALYSIS_REPLY_DONE时: 字段内容为空;\\\\nEventType==ANALYSIS_SUMMARY时: 字段内容为解题分析的输出总结, 并给出内容编码(用于修订接口使用);\\\\nEventType==ERROR_INTERRUPT时: 字段内容为空;\\\\nEventType==ALL_DONE时: 字段内容为空;\\",\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', - 'title' => '生成解题分析', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"696acaa9-eb29-4c1f-b48a-1f901579acc5\\",\\n \\"EventType\\": \\"EventType说明:\\\\nCONVERSATION_MESSAGE_REPLY:对话消息流式输出。\\\\nCONVERSATION_MESSAGE_DONE:对话消息正常回复完成。\\\\nCONVERSATION_MESSAGE_SUMMARY:对话消息汇总。\\\\nALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;\\\\nERROR_INTERRUPT:返回错误信息,会有errCode和errMsg返回;\\\\n\\\\n流式回推内容JSON样例:\\\\n{\\\\n \\\\\\"eventType\\\\\\": \\\\\\"CONVERSATION_MESSAGE_REPLY\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"ljflsjfsd\\\\\\",\\\\n \\\\\\"msgId\\\\\\": \\\\\\"Msg_GI6r_1735176995696_v0sI\\\\\\",\\\\n \\\\\\"content\\\\\\": \\\\\\"看起来\\\\\\"\\\\n}\\",\\n \\"Content\\": \\"EventType不同,content内容有所不同\\\\nCONVERSATION_MESSAGE_REPLY : content中对话消息流式输出内容,增量式回推。\\\\nCONVERSATION_MESSAGE_DONE:content为null,对话消息回复完成。\\\\nCONVERSATION_MESSAGE_SUMMARY:content为汇总的数据。\\\\nALL_DONE:content不存在\\",\\n \\"Success\\": true,\\n \\"ErrMsg\\": \\"The specified parameter is not valid.\\",\\n \\"ErrCode\\": \\"Param.Invalid\\"\\n}","type":"json"}]', + 'title' => '对话消息', + 'changeSet' => [], ], - 'GenStep' => [ - 'summary' => '生成数学解题步骤。', - 'path' => '/genStep', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - 'sse', - ], + 'CreateConversation' => [ + 'summary' => '创建试题相应的对话。', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -153,22 +97,39 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ExerciseCode', + 'name' => 'ExerciseContent', 'in' => 'formData', - 'schema' => [ - 'title' => '试题编码', - 'description' => '试题编码', - 'type' => 'string', - 'required' => true, - 'example' => 'Ex_pop_1731848070815_funI', - ], + 'schema' => ['title' => '试题内容', 'description' => '试题内容', 'type' => 'string', 'required' => true, 'example' => '试题内容xxx'], + ], + [ + 'name' => 'ExerciseAnswer', + 'in' => 'formData', + 'schema' => ['title' => '试题答案', 'description' => '试题答案', 'type' => 'string', 'required' => false, 'example' => '试题答案xxx'], + ], + [ + 'name' => 'ExerciseAnalysis', + 'in' => 'formData', + 'schema' => ['title' => '试题解析', 'description' => '试题解析', 'type' => 'string', 'required' => false, 'example' => '试题解析xxx'], + ], + [ + 'name' => 'ExerciseType', + 'in' => 'formData', + 'schema' => ['title' => '试题类型:单选题|多选题|应用题 |判断题|其他'."\n", 'description' => '试题类型:单选题|多选题|应用题 |判断题|其他'."\n", 'type' => 'string', 'required' => false, 'example' => '选择题'], + ], + [ + 'name' => 'OuterBizId', + 'in' => 'formData', + 'schema' => ['title' => '外部业务编码,标识外部服务,做幂等判断等', 'description' => '外部业务编码,标识外部服务,做幂等判断等', 'type' => 'string', 'required' => true, 'example' => '2r560eHAbsknrfHXVZO4L'], + ], + [ + 'name' => 'UserId', + 'in' => 'formData', + 'schema' => ['title' => '用户id,或者其他标识隔离对话归属的id,调用方定义', 'description' => '用户id,或者其他标识隔离对话归属的id,调用方定义', 'type' => 'string', 'required' => true, 'example' => 'wx-xx-yy'], ], ], 'responses' => [ @@ -178,65 +139,25 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5', - ], - 'EventType' => [ - 'title' => '事件类型', - 'description' => '事件类型', - 'type' => 'string', - 'example' => 'EXERCISE_INFO-试题信息;'."\n" - .'STEP_REPLY-解题步骤的reply;'."\n" - .'STEP_REPLY_DONE-解题步骤的reply回复完成'."\n" - .'STEP_SUMMARY-解题步骤的reply总结信息;'."\n" - .'ERROR_INTERRUPT-错误中断;'."\n" - .'ALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;', - ], - 'Content' => [ - 'title' => '内容', - 'description' => '内容', - 'type' => 'string', - 'example' => 'EventType不同时, 该字段返回内容不同.'."\n" - .'EventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;'."\n" - .'EventType==STEP_REPLY时: 字段内容为解题步骤的流式输出, 接入方需要按序将结果拼接;'."\n" - .'EventType==STEP_REPLY_DONE时: 字段内容为空;'."\n" - .'EventType==STEP_SUMMARY时: 字段内容为解题步骤的输出总结, 内容将进行智能拆分, 并给出每个步骤的内容编码(用于修订接口使用);'."\n" - .'EventType==ERROR_INTERRUPT时: 字段内容为空;'."\n" - .'EventType==ALL_DONE时: 字段内容为空;', - ], - 'ErrCode' => [ - 'title' => '错误码', - 'description' => '错误码', - 'type' => 'string', - 'example' => '40020503', - ], - 'ErrMsg' => [ - 'title' => '错误信息', - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'Parameter value validation failed', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '89C27D03-4C85-5420-9752-989130878F4D'], + 'ConversationId' => ['title' => '会话聊天Id'."\n", 'description' => '会话聊天Id'."\n", 'type' => 'string', 'example' => 'a499fef7-fef7-453c-a6b2-6a34089613e8'], + 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalError'], + 'ErrMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.'], + 'Success' => ['description' => '是否调用成功。true:调用成功。false:调用失败。', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"696acaa9-eb29-4c1f-b48a-1f901579acc5\\",\\n \\"EventType\\": \\"EXERCISE_INFO-试题信息;\\\\nSTEP_REPLY-解题步骤的reply;\\\\nSTEP_REPLY_DONE-解题步骤的reply回复完成\\\\nSTEP_SUMMARY-解题步骤的reply总结信息;\\\\nERROR_INTERRUPT-错误中断;\\\\nALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;\\",\\n \\"Content\\": \\"EventType不同时, 该字段返回内容不同.\\\\nEventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;\\\\nEventType==STEP_REPLY时: 字段内容为解题步骤的流式输出, 接入方需要按序将结果拼接;\\\\nEventType==STEP_REPLY_DONE时: 字段内容为空;\\\\nEventType==STEP_SUMMARY时: 字段内容为解题步骤的输出总结, 内容将进行智能拆分, 并给出每个步骤的内容编码(用于修订接口使用);\\\\nEventType==ERROR_INTERRUPT时: 字段内容为空;\\\\nEventType==ALL_DONE时: 字段内容为空;\\",\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', - 'title' => '生成解题步骤', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89C27D03-4C85-5420-9752-989130878F4D\\",\\n \\"ConversationId\\": \\"a499fef7-fef7-453c-a6b2-6a34089613e8\\",\\n \\"ErrCode\\": \\"InternalError\\",\\n \\"ErrMsg\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '创建对话', + 'changeSet' => [], ], - 'GlobalConfirm' => [ - 'summary' => '全局确认修订完成. 在完成所有内容的修订后, 用于确认最终版本, 将在最新修订版本打上调用方的自定义标签, 或自动生成以时间戳为标记的标签。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateRelatedConversation' => [ + 'summary' => '创建关联的对话,输入试题code即可开启对话,需要与B端生产接口配合使用。', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -248,32 +169,24 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'ExerciseCode', 'in' => 'formData', - 'schema' => [ - 'title' => '试题内容', - 'description' => '试题内容', - 'type' => 'string', - 'required' => true, - 'example' => 'Ex_pop_1731848070815_funI', - ], + 'schema' => ['title' => '试题code', 'description' => '试题code', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'], ], [ - 'name' => 'Tag', + 'name' => 'UserId', 'in' => 'formData', - 'schema' => [ - 'description' => '标签值', - 'type' => 'string', - 'required' => false, - 'example' => '2024-11-18', - ], + 'schema' => ['title' => '用户id,或者其他用于隔离对话归属的id,调用方定义'."\n", 'description' => '用户id,或者其他用于隔离对话归属的id,调用方定义'."\n", 'type' => 'string', 'required' => true, 'example' => 'pop_1731848070815'], + ], + [ + 'name' => 'OuterBizId', + 'in' => 'formData', + 'schema' => ['title' => '外部业务单号,唯一标识,用于幂等控制等场景', 'description' => '外部业务单号,唯一标识,用于幂等控制等场景', 'type' => 'string', 'required' => true, 'example' => '725e5550-8f81-42e0-a4db-d2de1be52afc'], ], ], 'responses' => [ @@ -283,45 +196,25 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5', - ], - 'Success' => [ - 'description' => '删除规则是否成功。取值:true:成功false: 失败', - 'type' => 'boolean', - 'example' => 'true', - ], - 'ErrCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '40020503', - ], - 'ErrMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'Parameter value validation failed', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '1d31b11b-4b82-4db1-b3c0-001529fc78eb'], + 'ConversationId' => ['title' => '会话id', 'description' => '会话id', 'type' => 'string', 'example' => '96d36ed0-ebde-11ee-806f-f35ee6682ec5'], + 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalError'], + 'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.'], + 'Success' => ['description' => '是否调用成功。true:调用成功。false:调用失败。', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"696acaa9-eb29-4c1f-b48a-1f901579acc5\\",\\n \\"Success\\": true,\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', - 'title' => '全局修订确认', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1d31b11b-4b82-4db1-b3c0-001529fc78eb\\",\\n \\"ConversationId\\": \\"96d36ed0-ebde-11ee-806f-f35ee6682ec5\\",\\n \\"ErrCode\\": \\"InternalError\\",\\n \\"ErrMsg\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '根据试题创建会话', + 'changeSet' => [], ], - 'UpdateAnalysis' => [ - 'summary' => '修订解题分析。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GenAnalysis' => [ + 'summary' => '生成解题分析。', + 'path' => '/genAnalysis', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], 'security' => [ [ 'AK' => [], @@ -333,44 +226,29 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ExerciseCode', - 'in' => 'formData', - 'schema' => [ - 'title' => '试题编码', - 'description' => '试题编码', - 'type' => 'string', - 'required' => true, - 'example' => 'Ex_pop_1731848070815_funI', - ], - ], - [ - 'name' => 'ContentCode', - 'in' => 'formData', - 'schema' => [ - 'title' => '内容编码', - 'description' => '内容编码', - 'type' => 'string', - 'required' => true, - 'example' => '1549d636-b102-4fee-8a99-fcc552aa9aa9', - ], - ], - [ - 'name' => 'Content', + 'name' => 'ExerciseContent', 'in' => 'formData', - 'schema' => [ - 'title' => '新的解题分析', - 'description' => '新的解题分析', - 'type' => 'string', - 'required' => true, - 'example' => '通过三角函数可知...', - ], + 'schema' => ['title' => '试题内容', 'description' => '试题内容(json格式) </br>'."\n" + .'格式说明: </br>'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "answer": "等腰直角", // 试题答案'."\n" + .' "content":'."\n" + .' {'."\n" + .' "description": "xxx" // 试题题干'."\n" + .' },'."\n" + .' "solution":'."\n" + .' {'."\n" + .' "description": "xxx" // 试题解题步骤'."\n" + .' }'."\n" + .'}'."\n" + .'```', 'type' => 'string', 'required' => true, 'example' => '{"answer":"等腰直角","content":{"description":"已知$|m-\\\\sqrt{2}|+\\\\sqrt{n-2}+(p-\\\\sqrt{2})^{2}=0$,则以m、n、p为三边长的三角形是()三角形"},"solution":{"description":"解:根据题意得,$m-\\\\sqrt{2}=0, n-2=0, p-\\\\sqrt{2}=0$,\\n解得,$m=\\\\sqrt{2}, n=2, p=\\\\sqrt{2}$, \\n$\\\\therefore m=p$,\\n 又$\\\\because \\\\sqrt{2}^{2}+\\\\sqrt{2}^{2}=2^{2}=4$, \\n 即 $m^{2}+p^{2}=n^{2}$,\\n$\\\\therefore 以m、n、p为三边长的三角形是等腰直角三角形$.\\n故答案为:等腰直角."}}'], ], ], 'responses' => [ @@ -380,46 +258,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '89C27D03-4C85-5420-9752-989130878F4D', - ], - 'Success' => [ - 'description' => '是否调用成功。true:调用成功。false:调用失败。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'ErrCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '9901100002', - ], - 'ErrMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'Parameter value validation failed', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '1d31b11b-4b82-4db1-b3c0-001529fc78eb'], + 'EventType' => ['title' => '事件类型', 'description' => '事件类型', 'type' => 'string', 'example' => 'EXERCISE_INFO-试题信息;'."\n" + .'ANALYSIS_REPLY-分析的reply;'."\n" + .'ANALYSIS_REPLY_DONE-分析的reply回复完成'."\n" + .'ANALYSIS_SUMMARY-分析的reply总结信息;'."\n" + .'ERROR_INTERRUPT-错误中断;'."\n" + .'ALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;'], + 'Content' => ['title' => '内容', 'description' => '内容', 'type' => 'string', 'example' => 'EventType不同时, 该字段返回内容不同.'."\n" + .'EventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;'."\n" + .'EventType==ANALYSIS_REPLY时: 字段内容为解题分析的流式输出, 接入方需要按序将结果拼接;'."\n" + .'EventType==ANALYSIS_REPLY_DONE时: 字段内容为空;'."\n" + .'EventType==ANALYSIS_SUMMARY时: 字段内容为解题分析的输出总结, 并给出内容编码(用于修订接口使用);'."\n" + .'EventType==ERROR_INTERRUPT时: 字段内容为空;'."\n" + .'EventType==ALL_DONE时: 字段内容为空;'], + 'ErrCode' => ['title' => '错误码', 'description' => '错误码', 'type' => 'string', 'example' => '40020503'], + 'ErrMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => 'Parameter value validation failed'], ], ], ], ], 'errorCodes' => [], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89C27D03-4C85-5420-9752-989130878F4D\\",\\n \\"Success\\": true,\\n \\"ErrCode\\": \\"9901100002\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', - 'title' => '修订解题分析', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1d31b11b-4b82-4db1-b3c0-001529fc78eb\\",\\n \\"EventType\\": \\"EXERCISE_INFO-试题信息;\\\\nANALYSIS_REPLY-分析的reply;\\\\nANALYSIS_REPLY_DONE-分析的reply回复完成\\\\nANALYSIS_SUMMARY-分析的reply总结信息;\\\\nERROR_INTERRUPT-错误中断;\\\\nALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;\\",\\n \\"Content\\": \\"EventType不同时, 该字段返回内容不同.\\\\nEventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;\\\\nEventType==ANALYSIS_REPLY时: 字段内容为解题分析的流式输出, 接入方需要按序将结果拼接;\\\\nEventType==ANALYSIS_REPLY_DONE时: 字段内容为空;\\\\nEventType==ANALYSIS_SUMMARY时: 字段内容为解题分析的输出总结, 并给出内容编码(用于修订接口使用);\\\\nEventType==ERROR_INTERRUPT时: 字段内容为空;\\\\nEventType==ALL_DONE时: 字段内容为空;\\",\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', + 'title' => '生成解题分析', + 'changeSet' => [], ], - 'UpdateStep' => [ - 'summary' => '修订解题步骤。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GenStep' => [ + 'summary' => '生成数学解题步骤。', + 'path' => '/genStep', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], 'security' => [ [ 'AK' => [], @@ -431,44 +300,14 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'ExerciseCode', 'in' => 'formData', - 'schema' => [ - 'title' => '试题编码', - 'description' => '试题编码', - 'type' => 'string', - 'required' => true, - 'example' => 'Ex_pop_1731848070815_funI', - ], - ], - [ - 'name' => 'ContentCode', - 'in' => 'formData', - 'schema' => [ - 'title' => '内容编码', - 'description' => '内容编码', - 'type' => 'string', - 'required' => true, - 'example' => '1549d636-b102-4fee-8a99-fcc552aa9aa9', - ], - ], - [ - 'name' => 'Content', - 'in' => 'formData', - 'schema' => [ - 'title' => '新的解题步骤', - 'description' => '新的解题步骤', - 'type' => 'string', - 'required' => true, - 'example' => '先进行因式分解...', - ], + 'schema' => ['title' => '试题编码', 'description' => '试题编码', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'], ], ], 'responses' => [ @@ -478,55 +317,35 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '15486286-243F-51E6-8DD3-B2D2365E5136', - ], - 'Success' => [ - 'description' => '是否调用成功。true:调用成功。false:调用失败。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'ErrCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '9901100002', - ], - 'ErrMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'Parameter value validation failed', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5'], + 'EventType' => ['title' => '事件类型', 'description' => '事件类型', 'type' => 'string', 'example' => 'EXERCISE_INFO-试题信息;'."\n" + .'STEP_REPLY-解题步骤的reply;'."\n" + .'STEP_REPLY_DONE-解题步骤的reply回复完成'."\n" + .'STEP_SUMMARY-解题步骤的reply总结信息;'."\n" + .'ERROR_INTERRUPT-错误中断;'."\n" + .'ALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;'], + 'Content' => ['title' => '内容', 'description' => '内容', 'type' => 'string', 'example' => 'EventType不同时, 该字段返回内容不同.'."\n" + .'EventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;'."\n" + .'EventType==STEP_REPLY时: 字段内容为解题步骤的流式输出, 接入方需要按序将结果拼接;'."\n" + .'EventType==STEP_REPLY_DONE时: 字段内容为空;'."\n" + .'EventType==STEP_SUMMARY时: 字段内容为解题步骤的输出总结, 内容将进行智能拆分, 并给出每个步骤的内容编码(用于修订接口使用);'."\n" + .'EventType==ERROR_INTERRUPT时: 字段内容为空;'."\n" + .'EventType==ALL_DONE时: 字段内容为空;'], + 'ErrCode' => ['title' => '错误码', 'description' => '错误码', 'type' => 'string', 'example' => '40020503'], + 'ErrMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => 'Parameter value validation failed'], ], ], ], ], - 'errorCodes' => [ - 200 => [ - [ - 'errorCode' => 'UserError', - 'errorMessage' => '%s.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"15486286-243F-51E6-8DD3-B2D2365E5136\\",\\n \\"Success\\": true,\\n \\"ErrCode\\": \\"9901100002\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', - 'title' => '修订解题步骤', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"696acaa9-eb29-4c1f-b48a-1f901579acc5\\",\\n \\"EventType\\": \\"EXERCISE_INFO-试题信息;\\\\nSTEP_REPLY-解题步骤的reply;\\\\nSTEP_REPLY_DONE-解题步骤的reply回复完成\\\\nSTEP_SUMMARY-解题步骤的reply总结信息;\\\\nERROR_INTERRUPT-错误中断;\\\\nALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;\\",\\n \\"Content\\": \\"EventType不同时, 该字段返回内容不同.\\\\nEventType==EXERCISE_INFO时: 字段内容为试题编码, 用于后续接口的入参使用;\\\\nEventType==STEP_REPLY时: 字段内容为解题步骤的流式输出, 接入方需要按序将结果拼接;\\\\nEventType==STEP_REPLY_DONE时: 字段内容为空;\\\\nEventType==STEP_SUMMARY时: 字段内容为解题步骤的输出总结, 内容将进行智能拆分, 并给出每个步骤的内容编码(用于修订接口使用);\\\\nEventType==ERROR_INTERRUPT时: 字段内容为空;\\\\nEventType==ALL_DONE时: 字段内容为空;\\",\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', + 'title' => '生成解题步骤', + 'changeSet' => [], ], - 'ChatMessage' => [ - 'summary' => '数学对话中,对话消息流式输出。 调用方将user的提问输入进来,服务方将模型的assistant通过流式输出给到调用方。', - 'path' => '/conversation/message', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - 'sse', - ], + 'GlobalConfirm' => [ + 'summary' => '全局确认修订完成. 在完成所有内容的修订后, 用于确认最终版本, 将在最新修订版本打上调用方的自定义标签, 或自动生成以时间戳为标记的标签。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -538,44 +357,19 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ConversationId', + 'name' => 'ExerciseCode', 'in' => 'formData', - 'schema' => [ - 'title' => '会话ID', - 'description' => '会话ID', - 'type' => 'string', - 'required' => true, - 'example' => '723b7f0f-c28a-4123-86e7-094d3d3863f8', - ], + 'schema' => ['title' => '试题内容', 'description' => '试题内容', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'], ], [ - 'name' => 'Content', + 'name' => 'Tag', 'in' => 'formData', - 'schema' => [ - 'title' => '对话内容', - 'description' => '对话内容', - 'type' => 'string', - 'required' => true, - 'example' => 'hello world!', - ], - ], - [ - 'name' => 'UserId', - 'in' => 'formData', - 'schema' => [ - 'title' => '用户id,获取其他用于隔离的对话归属的id,调用方定义,与创建对话的userId保持一致', - 'description' => '用户id,获取其他用于隔离的对话归属的id,调用方定义,与创建对话的userId保持一致', - 'type' => 'string', - 'required' => true, - 'example' => 'c28a-4123-86e7', - ], + 'schema' => ['description' => '标签值', 'type' => 'string', 'required' => false, 'example' => '2024-11-18'], ], ], 'responses' => [ @@ -585,75 +379,23 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5', - ], - 'EventType' => [ - 'title' => '', - 'description' => '事件类型', - 'type' => 'string', - 'example' => 'EventType说明:'."\n" - .'CONVERSATION_MESSAGE_REPLY:对话消息流式输出。'."\n" - .'CONVERSATION_MESSAGE_DONE:对话消息正常回复完成。'."\n" - .'CONVERSATION_MESSAGE_SUMMARY:对话消息汇总。'."\n" - .'ALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;'."\n" - .'ERROR_INTERRUPT:返回错误信息,会有errCode和errMsg返回;'."\n" - ."\n" - .'流式回推内容JSON样例:'."\n" - .'{'."\n" - .' "eventType": "CONVERSATION_MESSAGE_REPLY",'."\n" - .' "requestId": "ljflsjfsd",'."\n" - .' "msgId": "Msg_GI6r_1735176995696_v0sI",'."\n" - .' "content": "看起来"'."\n" - .'}', - ], - 'Content' => [ - 'title' => '对话回复', - 'description' => '对话回复', - 'type' => 'string', - 'example' => 'EventType不同,content内容有所不同'."\n" - .'CONVERSATION_MESSAGE_REPLY : content中对话消息流式输出内容,增量式回推。'."\n" - .'CONVERSATION_MESSAGE_DONE:content为null,对话消息回复完成。'."\n" - .'CONVERSATION_MESSAGE_SUMMARY:content为汇总的数据。'."\n" - .'ALL_DONE:content不存在', - ], - 'Success' => [ - 'description' => '是否调用成功。true:调用成功。false:调用失败。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'ErrMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'The specified parameter is not valid.', - ], - 'ErrCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'Param.Invalid', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5'], + 'Success' => ['description' => '删除规则是否成功。取值:true:成功false: 失败', 'type' => 'boolean', 'example' => 'true'], + 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '40020503'], + 'ErrMsg' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'Parameter value validation failed'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"696acaa9-eb29-4c1f-b48a-1f901579acc5\\",\\n \\"EventType\\": \\"EventType说明:\\\\nCONVERSATION_MESSAGE_REPLY:对话消息流式输出。\\\\nCONVERSATION_MESSAGE_DONE:对话消息正常回复完成。\\\\nCONVERSATION_MESSAGE_SUMMARY:对话消息汇总。\\\\nALL_DONE-全部成功完成, 后面不会有任何数据, 即将断开长连接;\\\\nERROR_INTERRUPT:返回错误信息,会有errCode和errMsg返回;\\\\n\\\\n流式回推内容JSON样例:\\\\n{\\\\n \\\\\\"eventType\\\\\\": \\\\\\"CONVERSATION_MESSAGE_REPLY\\\\\\",\\\\n \\\\\\"requestId\\\\\\": \\\\\\"ljflsjfsd\\\\\\",\\\\n \\\\\\"msgId\\\\\\": \\\\\\"Msg_GI6r_1735176995696_v0sI\\\\\\",\\\\n \\\\\\"content\\\\\\": \\\\\\"看起来\\\\\\"\\\\n}\\",\\n \\"Content\\": \\"EventType不同,content内容有所不同\\\\nCONVERSATION_MESSAGE_REPLY : content中对话消息流式输出内容,增量式回推。\\\\nCONVERSATION_MESSAGE_DONE:content为null,对话消息回复完成。\\\\nCONVERSATION_MESSAGE_SUMMARY:content为汇总的数据。\\\\nALL_DONE:content不存在\\",\\n \\"Success\\": true,\\n \\"ErrMsg\\": \\"The specified parameter is not valid.\\",\\n \\"ErrCode\\": \\"Param.Invalid\\"\\n}","type":"json"}]', - 'title' => '对话消息', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"696acaa9-eb29-4c1f-b48a-1f901579acc5\\",\\n \\"Success\\": true,\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', + 'title' => '全局修订确认', + 'changeSet' => [], ], - 'CreateConversation' => [ - 'summary' => '创建试题相应的对话。', - 'path' => '', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateAnalysis' => [ + 'summary' => '修订解题分析。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -665,77 +407,24 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ExerciseContent', - 'in' => 'formData', - 'schema' => [ - 'title' => '试题内容', - 'description' => '试题内容', - 'type' => 'string', - 'required' => true, - 'example' => '试题内容xxx', - ], - ], - [ - 'name' => 'ExerciseAnswer', - 'in' => 'formData', - 'schema' => [ - 'title' => '试题答案', - 'description' => '试题答案', - 'type' => 'string', - 'required' => false, - 'example' => '试题答案xxx', - ], - ], - [ - 'name' => 'ExerciseAnalysis', - 'in' => 'formData', - 'schema' => [ - 'title' => '试题解析', - 'description' => '试题解析', - 'type' => 'string', - 'required' => false, - 'example' => '试题解析xxx', - ], - ], - [ - 'name' => 'ExerciseType', + 'name' => 'ExerciseCode', 'in' => 'formData', - 'schema' => [ - 'title' => '试题类型:单选题|多选题|应用题 |判断题|其他'."\n", - 'description' => '试题类型:单选题|多选题|应用题 |判断题|其他'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '选择题', - ], + 'schema' => ['title' => '试题编码', 'description' => '试题编码', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'], ], [ - 'name' => 'OuterBizId', + 'name' => 'ContentCode', 'in' => 'formData', - 'schema' => [ - 'title' => '外部业务编码,标识外部服务,做幂等判断等', - 'description' => '外部业务编码,标识外部服务,做幂等判断等', - 'type' => 'string', - 'required' => true, - 'example' => '2r560eHAbsknrfHXVZO4L', - ], + 'schema' => ['title' => '内容编码', 'description' => '内容编码', 'type' => 'string', 'required' => true, 'example' => '1549d636-b102-4fee-8a99-fcc552aa9aa9'], ], [ - 'name' => 'UserId', + 'name' => 'Content', 'in' => 'formData', - 'schema' => [ - 'title' => '用户id,或者其他标识隔离对话归属的id,调用方定义', - 'description' => '用户id,或者其他标识隔离对话归属的id,调用方定义', - 'type' => 'string', - 'required' => true, - 'example' => 'wx-xx-yy', - ], + 'schema' => ['title' => '新的解题分析', 'description' => '新的解题分析', 'type' => 'string', 'required' => true, 'example' => '通过三角函数可知...'], ], ], 'responses' => [ @@ -745,52 +434,24 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '89C27D03-4C85-5420-9752-989130878F4D', - ], - 'ConversationId' => [ - 'title' => '会话聊天Id'."\n", - 'description' => '会话聊天Id'."\n", - 'type' => 'string', - 'example' => 'a499fef7-fef7-453c-a6b2-6a34089613e8', - ], - 'ErrCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalError', - ], - 'ErrMsg' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'The request processing has failed due to some unknown error.', - ], - 'Success' => [ - 'description' => '是否调用成功。true:调用成功。false:调用失败。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '89C27D03-4C85-5420-9752-989130878F4D'], + 'Success' => ['description' => '是否调用成功。true:调用成功。false:调用失败。', 'type' => 'boolean', 'example' => 'true'], + 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '9901100002'], + 'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'Parameter value validation failed'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89C27D03-4C85-5420-9752-989130878F4D\\",\\n \\"ConversationId\\": \\"a499fef7-fef7-453c-a6b2-6a34089613e8\\",\\n \\"ErrCode\\": \\"InternalError\\",\\n \\"ErrMsg\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '创建对话', + 'errorCodes' => [], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89C27D03-4C85-5420-9752-989130878F4D\\",\\n \\"Success\\": true,\\n \\"ErrCode\\": \\"9901100002\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', + 'title' => '修订解题分析', + 'changeSet' => [], ], - 'CreateRelatedConversation' => [ - 'summary' => '创建关联的对话,输入试题code即可开启对话,需要与B端生产接口配合使用。', - 'path' => '', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateStep' => [ + 'summary' => '修订解题步骤。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -802,44 +463,24 @@ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeduplatformOY2M94', - ], + 'abilityTreeNodes' => ['FEATUREeduplatformOY2M94'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'ExerciseCode', 'in' => 'formData', - 'schema' => [ - 'title' => '试题code', - 'description' => '试题code', - 'type' => 'string', - 'required' => true, - 'example' => 'Ex_pop_1731848070815_funI', - ], + 'schema' => ['title' => '试题编码', 'description' => '试题编码', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'], ], [ - 'name' => 'UserId', + 'name' => 'ContentCode', 'in' => 'formData', - 'schema' => [ - 'title' => '用户id,或者其他用于隔离对话归属的id,调用方定义'."\n", - 'description' => '用户id,或者其他用于隔离对话归属的id,调用方定义'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pop_1731848070815', - ], + 'schema' => ['title' => '内容编码', 'description' => '内容编码', 'type' => 'string', 'required' => true, 'example' => '1549d636-b102-4fee-8a99-fcc552aa9aa9'], ], [ - 'name' => 'OuterBizId', + 'name' => 'Content', 'in' => 'formData', - 'schema' => [ - 'title' => '外部业务单号,唯一标识,用于幂等控制等场景', - 'description' => '外部业务单号,唯一标识,用于幂等控制等场景', - 'type' => 'string', - 'required' => true, - 'example' => '725e5550-8f81-42e0-a4db-d2de1be52afc', - ], + 'schema' => ['title' => '新的解题步骤', 'description' => '新的解题步骤', 'type' => 'string', 'required' => true, 'example' => '先进行因式分解...'], ], ], 'responses' => [ @@ -849,48 +490,45 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '1d31b11b-4b82-4db1-b3c0-001529fc78eb', - ], - 'ConversationId' => [ - 'title' => '会话id', - 'description' => '会话id', - 'type' => 'string', - 'example' => '96d36ed0-ebde-11ee-806f-f35ee6682ec5', - ], - 'ErrCode' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalError', - ], - 'ErrMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'The request processing has failed due to some unknown error.', - ], - 'Success' => [ - 'description' => '是否调用成功。true:调用成功。false:调用失败。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '15486286-243F-51E6-8DD3-B2D2365E5136'], + 'Success' => ['description' => '是否调用成功。true:调用成功。false:调用失败。', 'type' => 'boolean', 'example' => 'true'], + 'ErrCode' => ['description' => '错误码。', 'type' => 'string', 'example' => '9901100002'], + 'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'Parameter value validation failed'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'errorCodes' => [ + 200 => [ + ['errorCode' => 'UserError', 'errorMessage' => '%s.', 'description' => ''], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1d31b11b-4b82-4db1-b3c0-001529fc78eb\\",\\n \\"ConversationId\\": \\"96d36ed0-ebde-11ee-806f-f35ee6682ec5\\",\\n \\"ErrCode\\": \\"InternalError\\",\\n \\"ErrMsg\\": \\"The request processing has failed due to some unknown error.\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '根据试题创建会话', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"15486286-243F-51E6-8DD3-B2D2365E5136\\",\\n \\"Success\\": true,\\n \\"ErrCode\\": \\"9901100002\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', + 'title' => '修订解题步骤', + 'changeSet' => [], ], ], 'endpoints' => [ - [ - 'regionId' => 'public', - 'endpoint' => 'aimath.aliyuncs.com', + ['regionId' => 'public', 'regionName' => '公网', 'areaId' => 'other', 'areaName' => '其它', 'public' => 'aimath.aliyuncs.com', 'endpoint' => 'aimath.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => 'A%s.', 'message' => '%s.', 'http_code' => 200, 'description' => '%s.'], + ['code' => 'ErrCode-%s', 'message' => '%s.', 'http_code' => 200, 'description' => '%s'], + ['code' => 'InnerError', 'message' => '%s.', 'http_code' => 200, 'description' => '%s.'], + ['code' => 'UserError', 'message' => '%s.', 'http_code' => 200, 'description' => '%s.'], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAnalysis'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRelatedConversation'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateConversation'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChatMessage'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenAnalysis'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenStep'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GlobalConfirm'], + ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateStep'], ], ], ]; |
