diff options
| author | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
| commit | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch) | |
| tree | 0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/en_us/aimath/2024-11-14/api-docs.php | |
| download | acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/en_us/aimath/2024-11-14/api-docs.php')
| -rw-r--r-- | data/en_us/aimath/2024-11-14/api-docs.php | 834 |
1 files changed, 834 insertions, 0 deletions
diff --git a/data/en_us/aimath/2024-11-14/api-docs.php b/data/en_us/aimath/2024-11-14/api-docs.php new file mode 100644 index 0000000..2a0a7d3 --- /dev/null +++ b/data/en_us/aimath/2024-11-14/api-docs.php @@ -0,0 +1,834 @@ +<?php return [ + 'version' => '1.0', + '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', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREeduplatformOY2M94', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ExerciseContent', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题内容', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + ], + 'Content' => [ + 'title' => '内容', + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + '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\\": \\"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"}]', + ], + 'GenStep' => [ + 'summary' => '生成数学解题步骤', + 'path' => '/genStep', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + 'sse', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREeduplatformOY2M94', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ExerciseCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题编码', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Ex_pop_1731848070815_funI', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + ], + 'Content' => [ + 'title' => '内容', + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'ErrCode' => [ + 'title' => '错误码', + 'description' => '', + 'type' => 'string', + 'example' => '40020503', + ], + 'ErrMsg' => [ + 'title' => '错误信息', + 'description' => '', + 'type' => 'string', + 'example' => 'Parameter value validation failed', + ], + ], + ], + ], + ], + '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"}]', + ], + 'GlobalConfirm' => [ + 'summary' => '全局确认修订完成', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREeduplatformOY2M94', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ExerciseCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题内容', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Ex_pop_1731848070815_funI', + ], + ], + [ + 'name' => 'Tag', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2024-11-18', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + '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 \\"Success\\": true,\\n \\"ErrCode\\": \\"40020503\\",\\n \\"ErrMsg\\": \\"Parameter value validation failed\\"\\n}","type":"json"}]', + ], + 'UpdateAnalysis' => [ + 'summary' => '修订解题分析', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + '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' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrCode' => [ + 'description' => '', + 'type' => 'string', + 'example' => '9901100002', + ], + 'ErrMsg' => [ + '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"}]', + ], + 'UpdateStep' => [ + 'summary' => '修订解题步骤', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + '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' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrCode' => [ + 'description' => '', + 'type' => 'string', + 'example' => '9901100002', + ], + 'ErrMsg' => [ + '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"}]', + ], + 'ChatMessage' => [ + 'summary' => '聊天消息API', + 'path' => '/conversation/message', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + 'sse', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREeduplatformOY2M94', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ConversationId', + 'in' => 'formData', + 'schema' => [ + 'title' => '会话ID', + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'c28a-4123-86e7', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + ], + 'Content' => [ + 'title' => '对话回复', + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Success' => [ + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'ErrMsg' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'The specified parameter is not valid.', + ], + 'ErrCode' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Param.Invalid', + ], + ], + ], + ], + ], + '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"}]', + ], + 'CreateConversation' => [ + 'summary' => '创建试题相应的对话。', + 'path' => '', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREeduplatformOY2M94', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ExerciseContent', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题内容', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '', + ], + ], + [ + 'name' => 'ExerciseAnswer', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题答案', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + [ + 'name' => 'ExerciseAnalysis', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题解析', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + [ + 'name' => 'ExerciseType', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题类型:单选题|多选题|应用题 |判断题|其他'."\n", + 'description' => '', + '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' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'wx-xx-yy', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + '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' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + '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"}]', + ], + 'CreateRelatedConversation' => [ + 'summary' => '创建关联的对话,输入试题code即可开启对话', + 'path' => '', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREeduplatformOY2M94', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ExerciseCode', + 'in' => 'formData', + 'schema' => [ + 'title' => '试题code', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Ex_pop_1731848070815_funI', + ], + ], + [ + 'name' => 'UserId', + 'in' => 'formData', + 'schema' => [ + 'title' => '用户id,或者其他用于隔离对话归属的id,调用方定义'."\n", + 'description' => '', + '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' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + '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' => '', + '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' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + ], + ], + ], + ], + '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"}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'public', + 'endpoint' => 'aimath.aliyuncs.com', + ], + ], +]; |
