summaryrefslogtreecommitdiff
path: root/data/en_us/aimath/2024-11-14/api-docs.php
blob: 8ba1fec95a379d19ff1c8345453edc11ed4fb0c9 (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
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'RPC', 'product' => 'AIMath', 'version' => '2024-11-14'],
    'directories' => ['ChatMessage', 'CreateConversation', 'CreateRelatedConversation', 'GenAnalysis', 'GenStep', 'GlobalConfirm', 'UpdateAnalysis', 'UpdateStep'],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'ChatMessage' => [
            'summary' => 'Streams conversation messages in a math conversation. The caller sends the user\'s question as input, and the service returns the model\'s assistant response to the caller through streaming output.',
            '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' => '', 'description' => 'The conversation ID.', 'type' => 'string', 'required' => true, 'example' => '723b7f0f-c28a-4123-86e7-094d3d3863f8'],
                ],
                [
                    'name' => 'Content',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The conversation content.', 'type' => 'string', 'required' => true, 'example' => 'hello world!'],
                ],
                [
                    'name' => 'UserId',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The user ID, which is used for conversation isolation. This value is defined by the caller and must be the same as the userId used when the conversation was created.', 'type' => 'string', 'required' => true, 'example' => 'c28a-4123-86e7'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5'],
                            'EventType' => ['description' => 'The event type.', 'type' => 'string', 'title' => '', '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' => 'The conversation response.', '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' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'ErrMsg' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The specified parameter is not valid.', 'title' => ''],
                            'ErrCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Param.Invalid', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Conversation message',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChatMessage'],
                ],
            ],
        ],
        'CreateConversation' => [
            'summary' => 'Creates a conversation for a specified exercise.',
            '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' => 'The content of the exercise.', 'type' => 'string', 'required' => true, 'example' => '试题内容xxx'],
                ],
                [
                    'name' => 'ExerciseAnswer',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The answer to the exercise.', 'type' => 'string', 'required' => false, 'example' => '试题答案xxx'],
                ],
                [
                    'name' => 'ExerciseAnalysis',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The analysis of the exercise.', 'type' => 'string', 'required' => false, 'example' => '试题解析xxx'],
                ],
                [
                    'name' => 'ExerciseType',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The type of the exercise. Valid values: single-choice, multiple-choice, application, true-or-false, and other.', 'type' => 'string', 'required' => false, 'example' => '选择题'],
                ],
                [
                    'name' => 'OuterBizId',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The external business code that identifies an external service. This parameter is used for idempotence checks.', 'type' => 'string', 'required' => true, 'example' => '2r560eHAbsknrfHXVZO4L'],
                ],
                [
                    'name' => 'UserId',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The user ID or another ID that identifies the ownership of an isolated conversation. This parameter is defined by the caller.', 'type' => 'string', 'required' => true, 'example' => 'wx-xx-yy'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '89C27D03-4C85-5420-9752-989130878F4D'],
                            'ConversationId' => ['title' => '', 'description' => 'The conversation ID.', 'type' => 'string', 'example' => 'a499fef7-fef7-453c-a6b2-6a34089613e8'],
                            'ErrCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'InternalError', 'title' => ''],
                            'ErrMsg' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Create conversation',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateConversation'],
                ],
            ],
        ],
        'CreateRelatedConversation' => [
            'summary' => 'Creates an associated conversation. You can start a conversation by specifying an exercise code. This operation must be used together with the B-end production API.',
            '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' => '', 'description' => 'The exercise code.', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'],
                ],
                [
                    'name' => 'UserId',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The user ID or another ID used to isolate session ownership, defined by the caller.', 'type' => 'string', 'required' => true, 'example' => 'pop_1731848070815'],
                ],
                [
                    'name' => 'OuterBizId',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The external business order number. This is a unique identifier used for idempotence control and similar scenarios.', 'type' => 'string', 'required' => true, 'example' => '725e5550-8f81-42e0-a4db-d2de1be52afc'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '1d31b11b-4b82-4db1-b3c0-001529fc78eb'],
                            'ConversationId' => ['title' => '', 'description' => 'The session ID.', 'type' => 'string', 'example' => '96d36ed0-ebde-11ee-806f-f35ee6682ec5'],
                            'ErrCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'InternalError', 'title' => ''],
                            'ErrMsg' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'The request processing has failed due to some unknown error.', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Create a session based on an exercise',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRelatedConversation'],
                ],
            ],
        ],
        'GenAnalysis' => [
            'summary' => 'Generates an analysis for solving a problem.',
            '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' => 'The exercise content in JSON format. </br>'."\n"
                        .'Format description: </br>'."\n"
                        ."\n"
                        .'```'."\n"
                        .'{'."\n"
                        .'    "answer": "等腰直角", // The answer to the exercise'."\n"
                        .'    "content":'."\n"
                        .'    {'."\n"
                        .'        "description": "xxx"  // The exercise stem'."\n"
                        .'    },'."\n"
                        .'    "solution":'."\n"
                        .'    {'."\n"
                        .'        "description": "xxx"  // The solution steps for the exercise'."\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' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '1d31b11b-4b82-4db1-b3c0-001529fc78eb'],
                            'EventType' => ['title' => '', 'description' => 'The event type.', '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' => 'The content.', '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' => 'The error code.', 'type' => 'string', 'example' => '40020503'],
                            'ErrMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => 'Parameter value validation failed'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Generate problem-solving analysis',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenAnalysis'],
                ],
            ],
        ],
        'GenStep' => [
            'summary' => 'Generates mathematical problem-solving steps.',
            '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' => 'The exercise code.', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5'],
                            'EventType' => ['title' => '', 'description' => 'The event type.', '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' => 'The content.', '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' => 'The error code.', 'type' => 'string', 'example' => '40020503'],
                            'ErrMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => 'Parameter value validation failed'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Generate problem-solving steps',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenStep'],
                ],
            ],
        ],
        'GlobalConfirm' => [
            'summary' => 'Confirms that the global revision is complete. After all content has been revised, call this operation to confirm the final version. A custom label provided by the caller is applied to the latest revision, or a timestamp-based label is automatically generated.',
            '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' => 'The exercise content.', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'],
                ],
                [
                    'name' => 'Tag',
                    'in' => 'formData',
                    'schema' => ['description' => 'The label value.', 'type' => 'string', 'required' => false, 'example' => '2024-11-18', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '696acaa9-eb29-4c1f-b48a-1f901579acc5'],
                            'Success' => ['description' => 'Indicates whether the rule is deleted. Valid values:'."\n"
                                .'- true: The rule is deleted.'."\n"
                                .'- false: The rule failed to be deleted.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'ErrCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => '40020503', 'title' => ''],
                            'ErrMsg' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Parameter value validation failed', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Confirm global revision',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GlobalConfirm'],
                ],
            ],
        ],
        'UpdateAnalysis' => [
            'summary' => 'Revises the solution analysis for an exercise.',
            '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' => 'The exercise code.', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'],
                ],
                [
                    'name' => 'ContentCode',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The content code.', 'type' => 'string', 'required' => true, 'example' => '1549d636-b102-4fee-8a99-fcc552aa9aa9'],
                ],
                [
                    'name' => 'Content',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The new solution analysis.', 'type' => 'string', 'required' => true, 'example' => '通过三角函数可知...'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '89C27D03-4C85-5420-9752-989130878F4D'],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'ErrCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => '9901100002', 'title' => ''],
                            'ErrMsg' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Parameter value validation failed', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            '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' => 'Revise solution analysis',
            'changeSet' => [
                ['createdAt' => '2024-12-25T10:58:10.000Z', 'description' => 'Error codes changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAnalysis'],
                ],
            ],
        ],
        'UpdateStep' => [
            'summary' => 'Revise solution steps.',
            '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' => 'Exercise code.', 'type' => 'string', 'required' => true, 'example' => 'Ex_pop_1731848070815_funI'],
                ],
                [
                    'name' => 'ContentCode',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'Content code.', 'type' => 'string', 'required' => true, 'example' => '1549d636-b102-4fee-8a99-fcc552aa9aa9'],
                ],
                [
                    'name' => 'Content',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'New solution steps.', 'type' => 'string', 'required' => true, 'example' => '先进行因式分解...'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '15486286-243F-51E6-8DD3-B2D2365E5136'],
                            'Success' => ['description' => 'Indicates whether the call was successful. true: the call was successful. false: the call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'ErrCode' => ['description' => 'Error code.', 'type' => 'string', 'example' => '9901100002', 'title' => ''],
                            'ErrMsg' => ['description' => 'Error message.', 'type' => 'string', 'example' => 'Parameter value validation failed', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                200 => [
                    ['errorCode' => 'UserError', 'errorMessage' => '%s.', 'description' => '%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' => 'Revise Solution Steps',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateStep'],
                ],
            ],
        ],
    ],
    'endpoints' => [
        ['regionId' => 'public', 'regionName' => 'Public network', 'areaId' => 'other', 'areaName' => 'Other', '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'],
        ],
    ],
];