diff options
Diffstat (limited to 'data/en_us/edututor/2025-07-07')
| -rw-r--r-- | data/en_us/edututor/2025-07-07/api-docs.php | 453 |
1 files changed, 451 insertions, 2 deletions
diff --git a/data/en_us/edututor/2025-07-07/api-docs.php b/data/en_us/edututor/2025-07-07/api-docs.php index 19d0733..4082fd1 100644 --- a/data/en_us/edututor/2025-07-07/api-docs.php +++ b/data/en_us/edututor/2025-07-07/api-docs.php @@ -1,4 +1,453 @@ <?php return [ - 'code' => 500, - 'message' => 'server error', + 'version' => '1.0', + 'info' => ['style' => 'ROA', 'product' => 'EduTutor', 'version' => '2025-07-07'], + 'directories' => ['CutQuestions', 'AnswerSSE'], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'AnswerSSE' => [ + 'summary' => 'The streaming question answering API accepts text or an image of a question and returns a detailed solution.', + 'path' => '/service/answerSSE', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/octet-stream'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'], + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the Model Studio workspace for the current request.', 'type' => 'string', 'required' => true, 'example' => 'llm-1ijrzuv3v0ivvls7', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'messages' => [ + 'description' => 'The content of the multi-turn conversation.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'role' => [ + 'description' => 'The role in the current conversation.', + 'type' => 'string', + 'required' => true, + 'enum' => ['user', 'assistant'], + 'example' => 'user', + 'title' => '', + ], + 'content' => [ + 'description' => 'The content of the current conversation.', + 'type' => 'array', + 'items' => [ + 'description' => 'The conversation content. It can be text or an image.', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['description' => 'The text or the URL of the image.', 'type' => 'string', 'example' => '{"image": "image-url"}'."\n" + .'{"text": "回答这个问题"}', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'parameters' => [ + 'description' => 'The parameter settings.', + 'type' => 'object', + 'properties' => [ + 'grade' => ['description' => 'The grade. Enter an integer. Valid values are:<br>0: Preschool<br>1: Grade 1<br>2: Grade 2<br>3: Grade 3<br>4: Grade 4<br>5: Grade 5<br>6: Grade 6<br>7: Grade 7 (First year of junior high)<br>8: Grade 8 (Second year of junior high)<br>9: Grade 9 (Third year of junior high)<br>10: Grade 10 (First year of senior high)<br>11: Grade 11 (Second year of senior high)<br>12: Grade 12 (Third year of senior high)<br>14: First-year university student<br>15: Second-year university student<br>16: Third-year university student<br>17: Fourth-year university student<br>99: Other<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>', 'type' => 'integer', 'format' => 'int32', 'default' => '0', 'required' => false, 'example' => '6', 'title' => ''], + 'stage' => [ + 'description' => 'The educational stage.', + 'type' => 'string', + 'default' => 'other', + 'enum' => ['other', 'pre', 'elementary', 'middle', 'high', 'higher'], + 'required' => false, + 'example' => 'other', + 'title' => '', + ], + 'subject' => [ + 'description' => 'The subject name.', + 'type' => 'string', + 'default' => 'other', + 'enum' => ['other', 'math', 'chinese', 'english', 'physics', 'chemistry', 'biology', 'history', 'geography', 'politics', 'program'], + 'required' => false, + 'example' => 'other', + 'title' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Response schema.', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => 'The unique request ID for troubleshooting.', 'type' => 'string', 'example' => 'CED92479-FFA7-5B8F-AE6F-C8693BB4941C', 'title' => ''], + 'success' => ['description' => 'Indicates whether the API call succeeded.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], + 'code' => ['description' => 'The business code.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''], + 'httpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'data' => ['description' => 'A JSON string that contains the content generated by the model.', 'type' => 'string', 'example' => '\'{"message": {"content": [{"text": "### 【考点分析】:\\\\n本题涉及的核心知识点包括代数表达式的简化和代值计算。题目给出了 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\) 两个条件,要求我们求解表达式 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值。这类题目常见于代数基础部分,考查学生对代数式的基本运算和代入法的掌握。\\\\n\\\\n### 【方法点拨】:\\\\n1. **简化表达式**:首先对给定的表达式进行简化,合并同类项。\\\\n2. **代入已知条件**:将 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\) 代入简化后的表达式中,进行计算。\\\\n3. **逐步求解**:通过逐步代入和计算,得到最终结果。\\\\n\\\\n### 【详细解析】:\\\\n\\\\n#### 第一步:简化表达式\\\\n表达式为 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\)。\\\\n\\\\n先去掉括号并合并同类项:\\\\n\\\\\\\\[\\\\n(4a - 5b - 3ab) - (3a - 6b + ab) = 4a - 5b - 3ab - 3a + 6b - ab\\\\n\\\\\\\\]\\\\n\\\\n合并同类项:\\\\n\\\\\\\\[\\\\n= (4a - 3a) + (-5b + 6b) + (-3ab - ab) = a + b - 4ab\\\\n\\\\\\\\]\\\\n\\\\n#### 第二步:代入已知条件\\\\n根据题目条件 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\),将这些值代入简化后的表达式:\\\\n\\\\\\\\[\\\\na + b - 4ab = -1 - 4 \\\\\\\\times 4 = -1 - 16 = -17\\\\n\\\\\\\\]\\\\n\\\\n#### 第三步:得出最终结果\\\\n因此,表达式的值为 \\\\\\\\(-17\\\\\\\\)。\\\\n\\\\n### 【最终答案】:\\\\n\\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\) \\\\n\\\\n所以,该表达式的值为 \\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\)。"}], "role": "assistant"}}\'', 'title' => ''], + 'finish_reason' => ['description' => 'The reason why the model stopped generating content. A value of "stop" indicates normal completion.', 'type' => 'string', 'example' => 'stop', 'title' => ''], + 'input_tokens' => ['description' => 'The number of input tokens used for this call.', 'type' => 'integer', 'format' => 'int32', 'example' => '654', 'title' => ''], + 'output_tokens' => ['description' => 'The number of output tokens generated for this call.', 'type' => 'integer', 'format' => 'int32', 'example' => '457', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CED92479-FFA7-5B8F-AE6F-C8693BB4941C\\",\\n \\"success\\": true,\\n \\"code\\": \\"SUCCESS\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"data\\": \\"\'{\\\\\\"message\\\\\\": {\\\\\\"content\\\\\\": [{\\\\\\"text\\\\\\": \\\\\\"### 【考点分析】:\\\\\\\\\\\\\\\\n本题涉及的核心知识点包括代数表达式的简化和代值计算。题目给出了 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 和 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 两个条件,要求我们求解表达式 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 的值。这类题目常见于代数基础部分,考查学生对代数式的基本运算和代入法的掌握。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n### 【方法点拨】:\\\\\\\\\\\\\\\\n1. **简化表达式**:首先对给定的表达式进行简化,合并同类项。\\\\\\\\\\\\\\\\n2. **代入已知条件**:将 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 和 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 代入简化后的表达式中,进行计算。\\\\\\\\\\\\\\\\n3. **逐步求解**:通过逐步代入和计算,得到最终结果。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n### 【详细解析】:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n#### 第一步:简化表达式\\\\\\\\\\\\\\\\n表达式为 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n先去掉括号并合并同类项:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\n(4a - 5b - 3ab) - (3a - 6b + ab) = 4a - 5b - 3ab - 3a + 6b - ab\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n合并同类项:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\n= (4a - 3a) + (-5b + 6b) + (-3ab - ab) = a + b - 4ab\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n#### 第二步:代入已知条件\\\\\\\\\\\\\\\\n根据题目条件 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 和 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\),将这些值代入简化后的表达式:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\na + b - 4ab = -1 - 4 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\times 4 = -1 - 16 = -17\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n#### 第三步:得出最终结果\\\\\\\\\\\\\\\\n因此,表达式的值为 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(-17\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n### 【最终答案】:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\boxed{-17}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) \\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n所以,该表达式的值为 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\boxed{-17}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)。\\\\\\"}], \\\\\\"role\\\\\\": \\\\\\"assistant\\\\\\"}}\'\\",\\n \\"finish_reason\\": \\"stop\\",\\n \\"input_tokens\\": 654,\\n \\"output_tokens\\": 457\\n}","type":"json"}]', + 'title' => 'Problem-solving Tutoring', + 'description' => 'Enables the EduTutor service. This service is in public beta, with a limit of 1,000 free calls per account per day.', + 'responseParamsDescription' => '### Algorithm result field: `data`'."\n" + ."\n" + .'- This field contains a serialized JSON string that you must deserialize. The fields of the resulting object are described below:'."\n" + ."\n" + .'| Parameter | Type | Description | Example value |'."\n" + .'| -------------------------- | ------ | ------------------------------------------ | ---------------------------------- |'."\n" + .'| message | array | | |'."\n" + .'| message[0].content | array | | |'."\n" + .'| message[0].content[0].text | string | The solution generated by the large model. | "### 【考点分析】:\\n 本题涉及的核心知识点包括代数表..." |'."\n" + .'| message[0].role | string | The role of the message author. | "assistant" |'."\n" + ."\n" + .'Example:'."\n" + ."\n" + .'```'."\n" + .'{'."\n" + .' "message": {'."\n" + .' "content": ['."\n" + .' {'."\n" + .' "text": "### Key Concepts Analysis:\\\\n The core concepts tested in this problem include simplifying algebraic expressions and substituting values. Given the conditions \\\\\\\\(a + b = -1\\\\\\\\) and \\\\\\\\(ab = 4\\\\\\\\), you are asked to find the value of the expression \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\). This type of problem is common in basic algebra and tests a student\'s mastery of fundamental algebraic operations and substitution methods.\\\\n\\\\n### Solution Strategy:\\\\n1. **Simplify the expression**: First, simplify the given expression by combining like terms.\\\\n2. **Substitute the known conditions**: Substitute \\\\\\\\(a + b = -1\\\\\\\\) and \\\\\\\\(ab = 4\\\\\\\\) into the simplified expression and calculate.\\\\n3. **Solve step-by-step**: Find the final result through gradual substitution and calculation.\\\\n\\\\n### Detailed Solution:\\\\n\\\\n#### Step 1: Simplify the expression\\\\n The expression is \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\).\\\\n\\\\n First, remove the parentheses and combine like terms:\\\\n\\\\\\\\[\\\\n(4a - 5b - 3ab) - (3a - 6b + ab) = 4a - 5b - 3ab - 3a + 6b - ab\\\\n\\\\\\\\]\\\\n\\\\n Combine like terms:\\\\n\\\\\\\\[\\\\n= (4a - 3a) + (-5b + 6b) + (-3ab - ab) = a + b - 4ab\\\\n\\\\\\\\]\\\\n\\\\n#### Step 2: Substitute the known conditions\\\\n Given \\\\\\\\(a + b = -1\\\\\\\\) and \\\\\\\\(ab = 4\\\\\\\\), substitute these values into the simplified expression:\\\\n\\\\\\\\[\\\\na + b - 4ab = -1 - 4 \\\\\\\\times 4 = -1 - 16 = -17\\\\n\\\\\\\\]\\\\n\\\\n#### Step 3: Get the final result\\\\n Therefore, the value of the expression is \\\\\\\\(-17\\\\\\\\).\\\\n\\\\n### Final Answer:\\\\n\\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\) \\\\n\\\\n So, the value of the expression is \\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\)."'."\n" + .' }'."\n" + .' ],'."\n" + .' "role": "assistant"'."\n" + .' }'."\n" + .'}'."\n" + .'```', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'edututor:AnswerSSE', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'EduTutor', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + ], + 'CutQuestions' => [ + 'summary' => 'Segments and structures exam questions. You can input an exam paper or a full-page question image, and the algorithm returns the position information and structured data (question stem, options, answers, etc.) for each question.', + 'path' => '/service/cutApi', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'], + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the Bailian workspace for the current request.', 'type' => 'string', 'required' => true, 'example' => 'llm-1ijrzuv3v0ivvls7', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => 'The request body.', + 'type' => 'object', + 'properties' => [ + 'image' => ['description' => 'The image URL of the exam paper or questions.', 'type' => 'string', 'required' => true, 'example' => 'https://oss.xxx.com/xx.png', 'title' => ''], + 'parameters' => [ + 'description' => 'The parameter settings.', + 'type' => 'object', + 'properties' => [ + 'struct' => ['description' => 'Specifies whether to return structured information.', 'type' => 'boolean', 'required' => true, 'example' => 'true', 'title' => ''], + 'extract_images' => ['description' => 'Specifies whether to return temporary OSS links for sub-question images, which can be directly used for subsequent question answering.', 'type' => 'boolean', 'required' => true, 'example' => 'true', 'title' => ''], + ], + 'required' => true, + 'title' => '', + 'example' => '', + ], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => 'The request ID. Each request has a unique ID for troubleshooting purposes.', 'type' => 'string', 'example' => '1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB', 'title' => ''], + 'success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], + 'code' => ['description' => 'The response status code.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''], + 'httpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'message' => ['description' => 'The return code description.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'data' => ['description' => 'The algorithm result.', 'type' => 'string', 'example' => '\'{'."\n" + .' "questions": ['."\n" + .' {'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 82,'."\n" + .' 21,'."\n" + .' 82'."\n" + .' ]'."\n" + .' ],'."\n" + .' "sub_images": ['."\n" + .' "http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gym****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D"'."\n" + .' ],'."\n" + .' "merged_image": "http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gy****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D",'."\n" + .' "info": {'."\n" + .' "stem": {'."\n" + .' "text": "8. 若 \\\\\\\\(a + b = -1\\\\\\\\), \\\\\\\\(ab = 4\\\\\\\\), 则 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值为 _ 。",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 78,'."\n" + .' 21,'."\n" + .' 78'."\n" + .' ]'."\n" + .' ]'."\n" + .' },'."\n" + .' "option": [],'."\n" + .' "figure": [],'."\n" + .' "answer": ['."\n" + .' {'."\n" + .' "text": "-17",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 225,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 70,'."\n" + .' 225,'."\n" + .' 70'."\n" + .' ]'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "type": "填空题",'."\n" + .' "subquestion": []'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}\'', 'title' => ''], + 'input_tokens' => ['description' => 'The number of input tokens consumed by this call.', 'type' => 'integer', 'format' => 'int32', 'example' => '80', 'title' => ''], + 'output_tokens' => ['description' => 'The number of output tokens consumed by this call.', 'type' => 'integer', 'format' => 'int32', 'example' => '38', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Exam question segmentation', + 'description' => 'Activates the EduTutor service. This operation is in public preview. Each account can call this operation up to 1,000 times per day for free.', + 'responseParamsDescription' => '#### Algorithm result field data '."\n" + .'+ Requires serialization. The fields are described as follows:'."\n" + ."\n" + .'|Field|Type|Description|Example|'."\n" + .'|-----|---|--|--|'."\n" + .'questions | array | The array of questions segmented by the model.| '."\n" + .'questions[i].pos_list | array | The bounding box coordinates of the i-th question (may contain multiple). | [[21,0,364,0,364,82,21,82]] | '."\n" + .'questions[i].sub_images | array | The sub-image URLs extracted based on the bounding box coordinates (valid for 7 days).| |'."\n" + .'questions[i].merged_image | string | The complete question image URL after merging all sub-images (valid for 7 days).| |'."\n" + .'questions[i].info | object | The structured information of the question.| |'."\n" + .'questions[i].info.type | string | The question type: multiple-choice/fill-in-the-blank/true-or-false/short-answer/essay/other. | 填空题 |'."\n" + .'questions[i].info.stem | array | The question stem information.| | '."\n" + .'questions[i].info.stem.text | string | The text of the question stem.| | '."\n" + .'questions[i].info.stem.pos_list | array | The bounding box coordinates of the question stem.| |'."\n" + .'questions[i].info.option | array | The option information.| | '."\n" + .'questions[i].info.option[j].text | string | The text of the option.| |'."\n" + .'questions[i].info.option[j].pos_list | array | The position information of the option. | | '."\n" + .'questions[i].info.figure | array | The figure information.| |'."\n" + .'questions[i].info.figure[k].pos_list | array | The position information of the figure.| |'."\n" + .'questions[i].info.answer | array | The answer information. | |'."\n" + .'questions[i].info.answer[m].pos_list | array | The position information of the answer.| "-17" |'."\n" + .'questions[i].info.answer[m].text | string | The text of the answer.| | '."\n" + .'questions[i].info.subquestion | array | The sub-question information (same structure as info).| |'."\n" + ."\n" + .'Example:'."\n" + .'```'."\n" + .'{'."\n" + .' "questions": ['."\n" + .' {'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 82,'."\n" + .' 21,'."\n" + .' 82'."\n" + .' ]'."\n" + .' ],'."\n" + .' "sub_images": ['."\n" + .' "http://xxxxx/sub_images/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png"'."\n" + .' ],'."\n" + .' "merged_image": "http://xxxxx/sub_images/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB.png",'."\n" + .' "info": {'."\n" + .' "stem": {'."\n" + .' "text": "8. 若 \\\\\\\\(a + b = -1\\\\\\\\), \\\\\\\\(ab = 4\\\\\\\\), 则 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值为 _ 。",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 78,'."\n" + .' 21,'."\n" + .' 78'."\n" + .' ]'."\n" + .' ]'."\n" + .' },'."\n" + .' "option": [],'."\n" + .' "figure": [],'."\n" + .' "answer": ['."\n" + .' {'."\n" + .' "text": "-17",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 225,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 70,'."\n" + .' 225,'."\n" + .' 70'."\n" + .' ]'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "type": "填空题",'."\n" + .' "subquestion": []'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'```.', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'edututor:CutQuestions', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'EduTutor', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB\\",\\n \\"success\\": true,\\n \\"code\\": \\"SUCCESS\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"data\\": \\"\'{\\\\n \\\\\\"questions\\\\\\": [\\\\n {\\\\n \\\\\\"pos_list\\\\\\": [\\\\n [\\\\n 21,\\\\n 0,\\\\n 364,\\\\n 0,\\\\n 364,\\\\n 82,\\\\n 21,\\\\n 82\\\\n ]\\\\n ],\\\\n \\\\\\"sub_images\\\\\\": [\\\\n \\\\\\"http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gym****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D\\\\\\"\\\\n ],\\\\n \\\\\\"merged_image\\\\\\": \\\\\\"http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gy****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D\\\\\\",\\\\n \\\\\\"info\\\\\\": {\\\\n \\\\\\"stem\\\\\\": {\\\\n \\\\\\"text\\\\\\": \\\\\\"8. 若 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\), \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\), 则 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 的值为 _ 。\\\\\\",\\\\n \\\\\\"pos_list\\\\\\": [\\\\n [\\\\n 21,\\\\n 4,\\\\n 364,\\\\n 4,\\\\n 364,\\\\n 78,\\\\n 21,\\\\n 78\\\\n ]\\\\n ]\\\\n },\\\\n \\\\\\"option\\\\\\": [],\\\\n \\\\\\"figure\\\\\\": [],\\\\n \\\\\\"answer\\\\\\": [\\\\n {\\\\n \\\\\\"text\\\\\\": \\\\\\"-17\\\\\\",\\\\n \\\\\\"pos_list\\\\\\": [\\\\n [\\\\n 225,\\\\n 51,\\\\n 262,\\\\n 51,\\\\n 262,\\\\n 70,\\\\n 225,\\\\n 70\\\\n ]\\\\n ]\\\\n }\\\\n ],\\\\n \\\\\\"type\\\\\\": \\\\\\"填空题\\\\\\",\\\\n \\\\\\"subquestion\\\\\\": []\\\\n }\\\\n }\\\\n ]\\\\n}\'\\",\\n \\"input_tokens\\": 80,\\n \\"output_tokens\\": 38\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'edututor.cn-hangzhou.aliyuncs.com', 'endpoint' => 'edututor.cn-hangzhou.aliyuncs.com', 'vpc' => 'edututor-vpc.cn-hangzhou.aliyuncs.com'], + ], + 'errorCodes' => [], + 'changeSet' => [], + 'ram' => [ + 'productCode' => 'EduTutor', + 'productName' => 'Alibaba Cloud Model Studio', + 'ramCodes' => ['edututor'], + 'ramLevel' => 'OPERATION', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'AnswerSSE', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'edututor:AnswerSSE', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'EduTutor', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CutQuestions', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'edututor:CutQuestions', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'EduTutor', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + 'resourceTypes' => [], + ], ]; |
