summaryrefslogtreecommitdiff
path: root/data/en_us/edututor/2025-07-07/api-docs.php
blob: 4082fd1242ef95882c8c8bdbef799732dfb20f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?php return [
    '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' => [],
    ],
];