@redonvn/redai-openapi-router 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4225 @@
1
+ {
2
+ "id": "models",
3
+ "pluginId": "redai-openapi-models",
4
+ "pluginName": "RedAI User API Export - Models",
5
+ "title": "Models",
6
+ "summary": "Datasets fine-tuning, conversations, jobs va user models.",
7
+ "purpose": "Xu ly nghiep vu fine-tuning model va quan ly datasets/models.",
8
+ "whenToUse": [
9
+ "Khi user muon tao dataset, them conversations, validate va chay fine-tuning.",
10
+ "Khi user muon xem jobs, timeline va models da train."
11
+ ],
12
+ "whenNotToUse": [
13
+ "Khong dung cho campaign marketing.",
14
+ "Khong dung cho account settings.",
15
+ "Khong dung cho workflow editing."
16
+ ],
17
+ "keywords": [
18
+ "models",
19
+ "fine-tuning",
20
+ "dataset",
21
+ "conversation",
22
+ "training",
23
+ "job",
24
+ "provider"
25
+ ],
26
+ "commonTasks": [
27
+ {
28
+ "id": "models.tao-moi-dataset-fine-tune",
29
+ "title": "Tạo mới dataset fine tune.",
30
+ "operationIds": [
31
+ "models:userdatafinetunecontroller_create_v1"
32
+ ]
33
+ },
34
+ {
35
+ "id": "models.tao-hoac-cap-nhat-nhieu-conversations",
36
+ "title": "Tạo hoặc cập nhật nhiều conversations.",
37
+ "operationIds": [
38
+ "models:userdatafinetunecontroller_createconversations_v1"
39
+ ]
40
+ },
41
+ {
42
+ "id": "models.tao-template-tu-dataset",
43
+ "title": "Tạo template từ dataset.",
44
+ "operationIds": [
45
+ "models:userdatafinetunecontroller_createtemplate_v1"
46
+ ]
47
+ },
48
+ {
49
+ "id": "models.execute-fine-tuning-job",
50
+ "title": "Execute fine-tuning job.",
51
+ "operationIds": [
52
+ "models:userdatafinetunecontroller_executefinetuning_v1"
53
+ ]
54
+ },
55
+ {
56
+ "id": "models.lay-danh-sach-dataset-fine-tune-cua-user-co-phan-trang",
57
+ "title": "Lấy danh sách dataset fine tune của user có phân trang.",
58
+ "operationIds": [
59
+ "models:userdatafinetunecontroller_findall_v1"
60
+ ]
61
+ },
62
+ {
63
+ "id": "models.lay-chi-tiet-dataset-fine-tune",
64
+ "title": "Lấy chi tiết dataset fine tune",
65
+ "operationIds": [
66
+ "models:userdatafinetunecontroller_findone_v1"
67
+ ]
68
+ },
69
+ {
70
+ "id": "models.lay-mot-conversation",
71
+ "title": "Lấy một conversation.",
72
+ "operationIds": [
73
+ "models:userdatafinetunecontroller_getconversation_v1"
74
+ ]
75
+ },
76
+ {
77
+ "id": "models.tim-conversation-theo-so-thu-tu",
78
+ "title": "Tìm conversation theo số thứ tự.",
79
+ "operationIds": [
80
+ "models:userdatafinetunecontroller_getconversationbylinenumber_v1"
81
+ ]
82
+ }
83
+ ],
84
+ "featureGroups": [
85
+ {
86
+ "id": "models.user-finetuning-data",
87
+ "title": "User - Finetuning Data",
88
+ "summary": "Cac operation thuoc nhom User - Finetuning Data.",
89
+ "keywords": [
90
+ "models",
91
+ "fine-tuning",
92
+ "dataset",
93
+ "conversation",
94
+ "training",
95
+ "job",
96
+ "provider",
97
+ "finetuning",
98
+ "data",
99
+ "userdatafinetunecontroller",
100
+ "bulkremove",
101
+ "nhi",
102
+ "fine",
103
+ "tune",
104
+ "ng",
105
+ "create",
106
+ "createconversations",
107
+ "ho",
108
+ "nh",
109
+ "conversations",
110
+ "createtemplate",
111
+ "template",
112
+ "deleteconversations",
113
+ "executefinetuning"
114
+ ],
115
+ "operationIds": [
116
+ "models:userdatafinetunecontroller_bulkremove_v1",
117
+ "models:userdatafinetunecontroller_create_v1",
118
+ "models:userdatafinetunecontroller_createconversations_v1",
119
+ "models:userdatafinetunecontroller_createtemplate_v1",
120
+ "models:userdatafinetunecontroller_deleteconversations_v1",
121
+ "models:userdatafinetunecontroller_executefinetuning_v1",
122
+ "models:userdatafinetunecontroller_findall_v1",
123
+ "models:userdatafinetunecontroller_findone_v1",
124
+ "models:userdatafinetunecontroller_generatefiles_v1",
125
+ "models:userdatafinetunecontroller_getconversation_v1",
126
+ "models:userdatafinetunecontroller_getconversationbylinenumber_v1",
127
+ "models:userdatafinetunecontroller_getconversations_v1",
128
+ "models:userdatafinetunecontroller_getdatasets_v1",
129
+ "models:userdatafinetunecontroller_getdownloaddisplayurl_v1",
130
+ "models:userdatafinetunecontroller_handlefinetunewebhook_v1",
131
+ "models:userdatafinetunecontroller_remove_v1",
132
+ "models:userdatafinetunecontroller_update_v1",
133
+ "models:userdatafinetunecontroller_updateconversation_v1",
134
+ "models:userdatafinetunecontroller_urlupload_v1",
135
+ "models:userdatafinetunecontroller_usetemplate_v1",
136
+ "models:userdatafinetunecontroller_validatedataset_v1"
137
+ ]
138
+ },
139
+ {
140
+ "id": "models.user-finetuning-data-history",
141
+ "title": "User - Finetuning Data History",
142
+ "summary": "Cac operation thuoc nhom User - Finetuning Data History.",
143
+ "keywords": [
144
+ "models",
145
+ "fine-tuning",
146
+ "dataset",
147
+ "conversation",
148
+ "training",
149
+ "job",
150
+ "provider",
151
+ "finetuning",
152
+ "data",
153
+ "history",
154
+ "userfinetuninghistorycontroller",
155
+ "deletemodel",
156
+ "model",
157
+ "fine",
158
+ "tuned",
159
+ "getallusermodels",
160
+ "danh",
161
+ "ch",
162
+ "getmodeldetail",
163
+ "chi",
164
+ "ti",
165
+ "theo",
166
+ "id"
167
+ ],
168
+ "operationIds": [
169
+ "models:userfinetuninghistorycontroller_deletemodel_v1",
170
+ "models:userfinetuninghistorycontroller_getallusermodels_v1",
171
+ "models:userfinetuninghistorycontroller_getmodeldetail_v1"
172
+ ]
173
+ },
174
+ {
175
+ "id": "models.user-finetuning-jobs",
176
+ "title": "User - Finetuning Jobs",
177
+ "summary": "Cac operation thuoc nhom User - Finetuning Jobs.",
178
+ "keywords": [
179
+ "models",
180
+ "fine-tuning",
181
+ "dataset",
182
+ "conversation",
183
+ "training",
184
+ "job",
185
+ "provider",
186
+ "finetuning",
187
+ "jobs",
188
+ "userfinetuningjobscontroller",
189
+ "cancelfinetuningjob",
190
+ "cancel",
191
+ "fine",
192
+ "tuning",
193
+ "getfinetuningjobdetail",
194
+ "chi",
195
+ "ti",
196
+ "getfinetuningjobs",
197
+ "danh",
198
+ "ch",
199
+ "getjobtimeline",
200
+ "timeline",
201
+ "getstatushistory",
202
+ "tr"
203
+ ],
204
+ "operationIds": [
205
+ "models:userfinetuningjobscontroller_cancelfinetuningjob_v1",
206
+ "models:userfinetuningjobscontroller_getfinetuningjobdetail_v1",
207
+ "models:userfinetuningjobscontroller_getfinetuningjobs_v1",
208
+ "models:userfinetuningjobscontroller_getjobtimeline_v1",
209
+ "models:userfinetuningjobscontroller_getstatushistory_v1",
210
+ "models:userfinetuningjobscontroller_streamjobprogress_v1"
211
+ ]
212
+ },
213
+ {
214
+ "id": "models.user-models",
215
+ "title": "User - Models",
216
+ "summary": "Cac operation thuoc nhom User - Models.",
217
+ "keywords": [
218
+ "models",
219
+ "fine-tuning",
220
+ "dataset",
221
+ "conversation",
222
+ "training",
223
+ "job",
224
+ "provider",
225
+ "usermodelscontroller",
226
+ "getfinetunedmodels",
227
+ "danh",
228
+ "ch",
229
+ "fine",
230
+ "tuned",
231
+ "getfinetunesupportedmodels",
232
+ "tr",
233
+ "tuning",
234
+ "getmodeldetail",
235
+ "chi",
236
+ "ti",
237
+ "model",
238
+ "theo",
239
+ "id",
240
+ "getproviders",
241
+ "llm"
242
+ ],
243
+ "operationIds": [
244
+ "models:usermodelscontroller_getfinetunedmodels_v1",
245
+ "models:usermodelscontroller_getfinetunesupportedmodels_v1",
246
+ "models:usermodelscontroller_getmodeldetail_v1",
247
+ "models:usermodelscontroller_getproviders_v1",
248
+ "models:usermodelscontroller_getuserfinetunesupportedmodels_v1",
249
+ "models:usermodelscontroller_getusermodelsbykeys_v1"
250
+ ]
251
+ }
252
+ ],
253
+ "operations": [
254
+ {
255
+ "id": "models:userdatafinetunecontroller_bulkremove_v1",
256
+ "moduleId": "models",
257
+ "featureGroupId": "models.user-finetuning-data",
258
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_bulkremove_v1",
259
+ "operationId": "userdatafinetunecontroller_bulkremove_v1",
260
+ "title": "Xóa nhiều dataset fine tune cùng lúc",
261
+ "summary": "Xóa nhiều dataset fine tune cùng lúc",
262
+ "businessMeaning": "Xóa nhiều dataset fine tune cùng lúc",
263
+ "method": "DELETE",
264
+ "path": "/v1/user/data-fine-tune/bulk",
265
+ "tags": [
266
+ "User - Finetuning Data"
267
+ ],
268
+ "keywords": [
269
+ "models",
270
+ "fine-tuning",
271
+ "dataset",
272
+ "conversation",
273
+ "training",
274
+ "job",
275
+ "provider",
276
+ "finetuning",
277
+ "data",
278
+ "userdatafinetunecontroller",
279
+ "bulkremove",
280
+ "nhi",
281
+ "fine",
282
+ "tune",
283
+ "ng"
284
+ ],
285
+ "whenToUse": [
286
+ "Xóa nhiều dataset fine tune cùng lúc"
287
+ ],
288
+ "whenNotToUse": [
289
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
290
+ ],
291
+ "riskLevel": "destructive",
292
+ "confirmationRequired": true,
293
+ "requiresAuth": true,
294
+ "parameterSummary": {
295
+ "requiredFields": [
296
+ "body.ids"
297
+ ],
298
+ "topLevelRequired": [
299
+ "headers",
300
+ "body"
301
+ ]
302
+ },
303
+ "parameterSchema": {
304
+ "type": "object",
305
+ "properties": {
306
+ "headers": {
307
+ "type": "object",
308
+ "properties": {
309
+ "x-workspace-id": {
310
+ "type": "string",
311
+ "description": "Workspace ID của tenant hiện tại (UUID)"
312
+ },
313
+ "x-base-id": {
314
+ "type": "string",
315
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
316
+ }
317
+ },
318
+ "required": [
319
+ "x-workspace-id"
320
+ ],
321
+ "additionalProperties": false
322
+ },
323
+ "body": {
324
+ "type": "object",
325
+ "properties": {
326
+ "ids": {
327
+ "type": "array",
328
+ "description": "Danh sách ID của các dataset cần xóa",
329
+ "items": {
330
+ "type": "string"
331
+ }
332
+ }
333
+ },
334
+ "required": [
335
+ "ids"
336
+ ]
337
+ }
338
+ },
339
+ "required": [
340
+ "headers",
341
+ "body"
342
+ ],
343
+ "additionalProperties": false,
344
+ "description": "Xóa nhiều dataset fine tune cùng lúc tool arguments"
345
+ }
346
+ },
347
+ {
348
+ "id": "models:userdatafinetunecontroller_create_v1",
349
+ "moduleId": "models",
350
+ "featureGroupId": "models.user-finetuning-data",
351
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_create_v1",
352
+ "operationId": "userdatafinetunecontroller_create_v1",
353
+ "title": "Tạo mới dataset fine tune.",
354
+ "summary": "Tạo mới dataset fine tune.",
355
+ "businessMeaning": "Tạo mới dataset fine tune.",
356
+ "method": "POST",
357
+ "path": "/v1/user/data-fine-tune",
358
+ "tags": [
359
+ "User - Finetuning Data"
360
+ ],
361
+ "keywords": [
362
+ "models",
363
+ "fine-tuning",
364
+ "dataset",
365
+ "conversation",
366
+ "training",
367
+ "job",
368
+ "provider",
369
+ "finetuning",
370
+ "data",
371
+ "userdatafinetunecontroller",
372
+ "create",
373
+ "fine",
374
+ "tune"
375
+ ],
376
+ "whenToUse": [
377
+ "Tạo mới dataset fine tune."
378
+ ],
379
+ "whenNotToUse": [
380
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
381
+ ],
382
+ "riskLevel": "confirm_required",
383
+ "confirmationRequired": true,
384
+ "requiresAuth": true,
385
+ "parameterSummary": {
386
+ "requiredFields": [
387
+ "body.name",
388
+ "body.provider"
389
+ ],
390
+ "topLevelRequired": [
391
+ "headers",
392
+ "body"
393
+ ]
394
+ },
395
+ "parameterSchema": {
396
+ "type": "object",
397
+ "properties": {
398
+ "headers": {
399
+ "type": "object",
400
+ "properties": {
401
+ "x-workspace-id": {
402
+ "type": "string",
403
+ "description": "Workspace ID của tenant hiện tại (UUID)"
404
+ },
405
+ "x-base-id": {
406
+ "type": "string",
407
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
408
+ }
409
+ },
410
+ "required": [
411
+ "x-workspace-id"
412
+ ],
413
+ "additionalProperties": false
414
+ },
415
+ "body": {
416
+ "type": "object",
417
+ "properties": {
418
+ "name": {
419
+ "type": "string",
420
+ "description": "Tên của bộ dữ liệu fine-tune"
421
+ },
422
+ "description": {
423
+ "type": "string",
424
+ "description": "Mô tả nội dung bộ dữ liệu"
425
+ },
426
+ "provider": {
427
+ "type": "string",
428
+ "description": "Nhà cung cấp AI",
429
+ "enum": [
430
+ "OPENAI",
431
+ "VERTEX_AI"
432
+ ]
433
+ },
434
+ "types": {
435
+ "type": "string",
436
+ "description": "Loại dữ liệu trong dataset (MESSAGE, IMAGE, VIDEO, AUDIO). Mặc định là MESSAGE",
437
+ "default": "MESSAGE",
438
+ "enum": [
439
+ "MESSAGE",
440
+ "IMAGE",
441
+ "VIDEO",
442
+ "AUDIO"
443
+ ]
444
+ },
445
+ "trainDataset": {
446
+ "type": "string",
447
+ "description": "Tập dữ liệu huấn luyện, định dạng JSON. Có thể để trống khi tạo dataset mới"
448
+ },
449
+ "validDataset": {
450
+ "type": "string",
451
+ "description": "Tập dữ liệu validation, định dạng JSON (nếu có)"
452
+ },
453
+ "agentId": {
454
+ "type": "string",
455
+ "description": "ID của agent sử dụng dataset này (UUID)"
456
+ }
457
+ },
458
+ "required": [
459
+ "name",
460
+ "provider"
461
+ ]
462
+ }
463
+ },
464
+ "required": [
465
+ "headers",
466
+ "body"
467
+ ],
468
+ "additionalProperties": false,
469
+ "description": "Tạo mới dataset fine tune tool arguments"
470
+ }
471
+ },
472
+ {
473
+ "id": "models:userdatafinetunecontroller_createconversations_v1",
474
+ "moduleId": "models",
475
+ "featureGroupId": "models.user-finetuning-data",
476
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_createconversations_v1",
477
+ "operationId": "userdatafinetunecontroller_createconversations_v1",
478
+ "title": "Tạo hoặc cập nhật nhiều conversations.",
479
+ "summary": "Tạo hoặc cập nhật nhiều conversations.",
480
+ "businessMeaning": "Tạo hoặc cập nhật nhiều conversations.",
481
+ "method": "POST",
482
+ "path": "/v1/user/data-fine-tune/{id}/conversations",
483
+ "tags": [
484
+ "User - Finetuning Data"
485
+ ],
486
+ "keywords": [
487
+ "models",
488
+ "fine-tuning",
489
+ "dataset",
490
+ "conversation",
491
+ "training",
492
+ "job",
493
+ "provider",
494
+ "finetuning",
495
+ "data",
496
+ "userdatafinetunecontroller",
497
+ "createconversations",
498
+ "ho",
499
+ "nh",
500
+ "nhi",
501
+ "conversations"
502
+ ],
503
+ "whenToUse": [
504
+ "Tạo hoặc cập nhật nhiều conversations."
505
+ ],
506
+ "whenNotToUse": [
507
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
508
+ ],
509
+ "riskLevel": "confirm_required",
510
+ "confirmationRequired": true,
511
+ "requiresAuth": true,
512
+ "parameterSummary": {
513
+ "requiredFields": [
514
+ "path.id",
515
+ "body.conversations"
516
+ ],
517
+ "topLevelRequired": [
518
+ "path",
519
+ "headers",
520
+ "body"
521
+ ]
522
+ },
523
+ "parameterSchema": {
524
+ "type": "object",
525
+ "properties": {
526
+ "path": {
527
+ "type": "object",
528
+ "properties": {
529
+ "id": {
530
+ "type": "string",
531
+ "description": "ID của dataset"
532
+ }
533
+ },
534
+ "required": [
535
+ "id"
536
+ ],
537
+ "additionalProperties": false
538
+ },
539
+ "headers": {
540
+ "type": "object",
541
+ "properties": {
542
+ "x-workspace-id": {
543
+ "type": "string",
544
+ "description": "Workspace ID của tenant hiện tại (UUID)"
545
+ },
546
+ "x-base-id": {
547
+ "type": "string",
548
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
549
+ }
550
+ },
551
+ "required": [
552
+ "x-workspace-id"
553
+ ],
554
+ "additionalProperties": false
555
+ },
556
+ "body": {
557
+ "type": "object",
558
+ "properties": {
559
+ "conversations": {
560
+ "type": "array",
561
+ "description": "Danh sách conversations để tạo",
562
+ "items": {
563
+ "type": "object",
564
+ "properties": {
565
+ "id": {
566
+ "type": "string",
567
+ "description": "ID của conversation (nếu đã tồn tại - dùng để update). Có thể là UUID hoặc ID tạm thời từ frontend"
568
+ },
569
+ "system_prompt": {
570
+ "type": "string",
571
+ "description": "System prompt cho conversation"
572
+ },
573
+ "messages": {
574
+ "type": "array",
575
+ "description": "Danh sách messages trong conversation",
576
+ "items": {
577
+ "type": "object",
578
+ "properties": {
579
+ "role": {
580
+ "type": "string",
581
+ "description": "Role của message",
582
+ "enum": [
583
+ "user",
584
+ "assistant",
585
+ "tool_sequence"
586
+ ]
587
+ },
588
+ "content": {
589
+ "type": "string",
590
+ "description": "Nội dung message (bắt buộc cho user và assistant)"
591
+ },
592
+ "calls": {
593
+ "type": "array",
594
+ "description": "Tool calls data (chỉ cho role tool_sequence)",
595
+ "items": {
596
+ "type": "object",
597
+ "properties": {
598
+ "name": {
599
+ "type": "string",
600
+ "description": "Tên function được gọi"
601
+ },
602
+ "arguments": {
603
+ "type": "string",
604
+ "description": "Arguments của function dưới dạng JSON string"
605
+ },
606
+ "result": {
607
+ "type": "string",
608
+ "description": "Kết quả trả về từ function"
609
+ }
610
+ },
611
+ "required": [
612
+ "name",
613
+ "arguments",
614
+ "result"
615
+ ]
616
+ }
617
+ }
618
+ },
619
+ "required": [
620
+ "role"
621
+ ]
622
+ }
623
+ },
624
+ "tool_ids": {
625
+ "type": "array",
626
+ "description": "Danh sách tool IDs được sử dụng (UUIDs from user_tools or admin_tools)",
627
+ "items": {
628
+ "type": "string"
629
+ }
630
+ }
631
+ },
632
+ "required": [
633
+ "system_prompt",
634
+ "messages"
635
+ ]
636
+ }
637
+ }
638
+ },
639
+ "required": [
640
+ "conversations"
641
+ ]
642
+ }
643
+ },
644
+ "required": [
645
+ "path",
646
+ "headers",
647
+ "body"
648
+ ],
649
+ "additionalProperties": false,
650
+ "description": "Tạo hoặc cập nhật nhiều conversations tool arguments"
651
+ }
652
+ },
653
+ {
654
+ "id": "models:userdatafinetunecontroller_createtemplate_v1",
655
+ "moduleId": "models",
656
+ "featureGroupId": "models.user-finetuning-data",
657
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_createtemplate_v1",
658
+ "operationId": "userdatafinetunecontroller_createtemplate_v1",
659
+ "title": "Tạo template từ dataset.",
660
+ "summary": "Tạo template từ dataset.",
661
+ "businessMeaning": "Tạo template từ dataset.",
662
+ "method": "POST",
663
+ "path": "/v1/user/data-fine-tune/{id}/create-template",
664
+ "tags": [
665
+ "User - Finetuning Data"
666
+ ],
667
+ "keywords": [
668
+ "models",
669
+ "fine-tuning",
670
+ "dataset",
671
+ "conversation",
672
+ "training",
673
+ "job",
674
+ "provider",
675
+ "finetuning",
676
+ "data",
677
+ "userdatafinetunecontroller",
678
+ "createtemplate",
679
+ "template"
680
+ ],
681
+ "whenToUse": [
682
+ "Tạo template từ dataset."
683
+ ],
684
+ "whenNotToUse": [
685
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
686
+ ],
687
+ "riskLevel": "confirm_required",
688
+ "confirmationRequired": true,
689
+ "requiresAuth": true,
690
+ "parameterSummary": {
691
+ "requiredFields": [
692
+ "path.id"
693
+ ],
694
+ "topLevelRequired": [
695
+ "path",
696
+ "headers",
697
+ "body"
698
+ ]
699
+ },
700
+ "parameterSchema": {
701
+ "type": "object",
702
+ "properties": {
703
+ "path": {
704
+ "type": "object",
705
+ "properties": {
706
+ "id": {
707
+ "type": "string",
708
+ "description": "ID của dataset nguồn (phải là ACTIVE)"
709
+ }
710
+ },
711
+ "required": [
712
+ "id"
713
+ ],
714
+ "additionalProperties": false
715
+ },
716
+ "headers": {
717
+ "type": "object",
718
+ "properties": {
719
+ "x-workspace-id": {
720
+ "type": "string",
721
+ "description": "Workspace ID của tenant hiện tại (UUID)"
722
+ },
723
+ "x-base-id": {
724
+ "type": "string",
725
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
726
+ }
727
+ },
728
+ "required": [
729
+ "x-workspace-id"
730
+ ],
731
+ "additionalProperties": false
732
+ },
733
+ "body": {
734
+ "type": "object",
735
+ "properties": {
736
+ "name": {
737
+ "type": "string",
738
+ "description": "Tên cho template (nếu không cung cấp, sẽ dùng tên gốc + \" Template\")"
739
+ },
740
+ "description": {
741
+ "type": "string",
742
+ "description": "Mô tả cho template"
743
+ }
744
+ }
745
+ }
746
+ },
747
+ "required": [
748
+ "path",
749
+ "headers",
750
+ "body"
751
+ ],
752
+ "additionalProperties": false,
753
+ "description": "Tạo template từ dataset tool arguments"
754
+ }
755
+ },
756
+ {
757
+ "id": "models:userdatafinetunecontroller_deleteconversations_v1",
758
+ "moduleId": "models",
759
+ "featureGroupId": "models.user-finetuning-data",
760
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_deleteconversations_v1",
761
+ "operationId": "userdatafinetunecontroller_deleteconversations_v1",
762
+ "title": "Xóa nhiều conversations.",
763
+ "summary": "Xóa nhiều conversations.",
764
+ "businessMeaning": "Xóa nhiều conversations.",
765
+ "method": "DELETE",
766
+ "path": "/v1/user/data-fine-tune/{id}/conversations",
767
+ "tags": [
768
+ "User - Finetuning Data"
769
+ ],
770
+ "keywords": [
771
+ "models",
772
+ "fine-tuning",
773
+ "dataset",
774
+ "conversation",
775
+ "training",
776
+ "job",
777
+ "provider",
778
+ "finetuning",
779
+ "data",
780
+ "userdatafinetunecontroller",
781
+ "deleteconversations",
782
+ "nhi",
783
+ "conversations"
784
+ ],
785
+ "whenToUse": [
786
+ "Xóa nhiều conversations."
787
+ ],
788
+ "whenNotToUse": [
789
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
790
+ ],
791
+ "riskLevel": "destructive",
792
+ "confirmationRequired": true,
793
+ "requiresAuth": true,
794
+ "parameterSummary": {
795
+ "requiredFields": [
796
+ "path.id",
797
+ "body.conversationIds"
798
+ ],
799
+ "topLevelRequired": [
800
+ "path",
801
+ "headers",
802
+ "body"
803
+ ]
804
+ },
805
+ "parameterSchema": {
806
+ "type": "object",
807
+ "properties": {
808
+ "path": {
809
+ "type": "object",
810
+ "properties": {
811
+ "id": {
812
+ "type": "string",
813
+ "description": "ID của dataset"
814
+ }
815
+ },
816
+ "required": [
817
+ "id"
818
+ ],
819
+ "additionalProperties": false
820
+ },
821
+ "headers": {
822
+ "type": "object",
823
+ "properties": {
824
+ "x-workspace-id": {
825
+ "type": "string",
826
+ "description": "Workspace ID của tenant hiện tại (UUID)"
827
+ },
828
+ "x-base-id": {
829
+ "type": "string",
830
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
831
+ }
832
+ },
833
+ "required": [
834
+ "x-workspace-id"
835
+ ],
836
+ "additionalProperties": false
837
+ },
838
+ "body": {
839
+ "type": "object",
840
+ "properties": {
841
+ "conversationIds": {
842
+ "type": "array",
843
+ "description": "Danh sách ID của conversations cần xóa",
844
+ "items": {
845
+ "type": "string"
846
+ }
847
+ }
848
+ },
849
+ "required": [
850
+ "conversationIds"
851
+ ]
852
+ }
853
+ },
854
+ "required": [
855
+ "path",
856
+ "headers",
857
+ "body"
858
+ ],
859
+ "additionalProperties": false,
860
+ "description": "Xóa nhiều conversations tool arguments"
861
+ }
862
+ },
863
+ {
864
+ "id": "models:userdatafinetunecontroller_executefinetuning_v1",
865
+ "moduleId": "models",
866
+ "featureGroupId": "models.user-finetuning-data",
867
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_executefinetuning_v1",
868
+ "operationId": "userdatafinetunecontroller_executefinetuning_v1",
869
+ "title": "Execute fine-tuning job.",
870
+ "summary": "Execute fine-tuning job.",
871
+ "businessMeaning": "Execute fine-tuning job.",
872
+ "method": "POST",
873
+ "path": "/v1/user/data-fine-tune/execute",
874
+ "tags": [
875
+ "User - Finetuning Data"
876
+ ],
877
+ "keywords": [
878
+ "models",
879
+ "fine-tuning",
880
+ "dataset",
881
+ "conversation",
882
+ "training",
883
+ "job",
884
+ "provider",
885
+ "finetuning",
886
+ "data",
887
+ "userdatafinetunecontroller",
888
+ "executefinetuning",
889
+ "execute",
890
+ "fine",
891
+ "tuning"
892
+ ],
893
+ "whenToUse": [
894
+ "Execute fine-tuning job."
895
+ ],
896
+ "whenNotToUse": [
897
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
898
+ ],
899
+ "riskLevel": "costly",
900
+ "confirmationRequired": true,
901
+ "requiresAuth": true,
902
+ "parameterSummary": {
903
+ "requiredFields": [
904
+ "body.datasetId",
905
+ "body.modelId",
906
+ "body.provider"
907
+ ],
908
+ "topLevelRequired": [
909
+ "headers",
910
+ "body"
911
+ ]
912
+ },
913
+ "parameterSchema": {
914
+ "type": "object",
915
+ "properties": {
916
+ "headers": {
917
+ "type": "object",
918
+ "properties": {
919
+ "x-workspace-id": {
920
+ "type": "string",
921
+ "description": "Workspace ID của tenant hiện tại (UUID)"
922
+ },
923
+ "x-base-id": {
924
+ "type": "string",
925
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
926
+ }
927
+ },
928
+ "required": [
929
+ "x-workspace-id"
930
+ ],
931
+ "additionalProperties": false
932
+ },
933
+ "body": {
934
+ "type": "object",
935
+ "properties": {
936
+ "datasetId": {
937
+ "type": "string",
938
+ "description": "ID của dataset để fine-tune"
939
+ },
940
+ "modelId": {
941
+ "type": "string",
942
+ "description": "ID của model để fine-tune"
943
+ },
944
+ "provider": {
945
+ "type": "string",
946
+ "description": "Nhà cung cấp AI",
947
+ "enum": [
948
+ "OPENAI",
949
+ "VERTEX_AI"
950
+ ]
951
+ },
952
+ "suffix": {
953
+ "type": "string",
954
+ "description": "Suffix cho tên model (chỉ cho OpenAI)"
955
+ },
956
+ "hyperparameters": {
957
+ "description": "Siêu tham số cho quá trình fine-tuning",
958
+ "allOf": [
959
+ {
960
+ "type": "object",
961
+ "properties": {
962
+ "epochs": {
963
+ "type": "number",
964
+ "description": "Số epoch để huấn luyện. OpenAI: 1-50, Vertex AI: 1-100",
965
+ "default": 3
966
+ },
967
+ "batchSize": {
968
+ "type": "object",
969
+ "description": "Kích thước batch. Có thể là số hoặc \"auto\"",
970
+ "default": "auto"
971
+ },
972
+ "learningRate": {
973
+ "type": "object",
974
+ "description": "Tốc độ học. Có thể là số hoặc \"auto\"",
975
+ "default": "auto"
976
+ }
977
+ }
978
+ }
979
+ ]
980
+ },
981
+ "integrationId": {
982
+ "type": "string",
983
+ "description": "ID của integration (user key) để sử dụng cho fine-tuning. Nếu không cung cấp, hệ thống sẽ tự động chọn system key"
984
+ }
985
+ },
986
+ "required": [
987
+ "datasetId",
988
+ "modelId",
989
+ "provider"
990
+ ]
991
+ }
992
+ },
993
+ "required": [
994
+ "headers",
995
+ "body"
996
+ ],
997
+ "additionalProperties": false,
998
+ "description": "Execute fine-tuning job tool arguments"
999
+ }
1000
+ },
1001
+ {
1002
+ "id": "models:userdatafinetunecontroller_findall_v1",
1003
+ "moduleId": "models",
1004
+ "featureGroupId": "models.user-finetuning-data",
1005
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_findall_v1",
1006
+ "operationId": "userdatafinetunecontroller_findall_v1",
1007
+ "title": "Lấy danh sách dataset fine tune của user có phân trang.",
1008
+ "summary": "Lấy danh sách dataset fine tune của user có phân trang.",
1009
+ "businessMeaning": "Lấy danh sách dataset fine tune của user có phân trang.",
1010
+ "method": "GET",
1011
+ "path": "/v1/user/data-fine-tune",
1012
+ "tags": [
1013
+ "User - Finetuning Data"
1014
+ ],
1015
+ "keywords": [
1016
+ "models",
1017
+ "fine-tuning",
1018
+ "dataset",
1019
+ "conversation",
1020
+ "training",
1021
+ "job",
1022
+ "provider",
1023
+ "finetuning",
1024
+ "data",
1025
+ "userdatafinetunecontroller",
1026
+ "findall",
1027
+ "danh",
1028
+ "ch",
1029
+ "fine",
1030
+ "tune",
1031
+ "ph",
1032
+ "trang"
1033
+ ],
1034
+ "whenToUse": [
1035
+ "Lấy danh sách dataset fine tune của user có phân trang."
1036
+ ],
1037
+ "whenNotToUse": [],
1038
+ "riskLevel": "safe",
1039
+ "confirmationRequired": false,
1040
+ "requiresAuth": true,
1041
+ "parameterSummary": {
1042
+ "requiredFields": [],
1043
+ "topLevelRequired": [
1044
+ "headers"
1045
+ ]
1046
+ },
1047
+ "parameterSchema": {
1048
+ "type": "object",
1049
+ "properties": {
1050
+ "query": {
1051
+ "type": "object",
1052
+ "properties": {
1053
+ "page": {
1054
+ "type": "number",
1055
+ "default": 1,
1056
+ "description": "Số trang hiện tại (bắt đầu từ 1)"
1057
+ },
1058
+ "limit": {
1059
+ "type": "number",
1060
+ "default": 10,
1061
+ "description": "Số lượng bản ghi trên mỗi trang"
1062
+ },
1063
+ "search": {
1064
+ "type": "string",
1065
+ "description": "Từ khóa tìm kiếm (tìm kiếm theo họ tên, email, hoặc số điện thoại - không phân biệt chữ hoa/thường)"
1066
+ },
1067
+ "searchBy": {
1068
+ "type": "string",
1069
+ "description": "Trường cần tìm kiếm (có thể chỉ định một hoặc nhiều trường, phân cách bằng dấu phẩy)"
1070
+ },
1071
+ "sortBy": {
1072
+ "type": "string",
1073
+ "enum": [
1074
+ "createdAt",
1075
+ "name"
1076
+ ],
1077
+ "description": "Trường sắp xếp"
1078
+ },
1079
+ "sortDirection": {
1080
+ "type": "string",
1081
+ "default": "DESC",
1082
+ "enum": [
1083
+ "ASC",
1084
+ "DESC"
1085
+ ],
1086
+ "description": "Hướng sắp xếp"
1087
+ },
1088
+ "isOwner": {
1089
+ "type": "boolean",
1090
+ "description": "Lọc theo trạng thái sở hữu (true: chủ sở hữu, false: đã mua)"
1091
+ },
1092
+ "isForSale": {
1093
+ "type": "boolean",
1094
+ "description": "Lọc theo trạng thái đăng bán (true: đang bán, false: không bán)"
1095
+ },
1096
+ "type": {
1097
+ "type": "string",
1098
+ "enum": [
1099
+ "ACTIVE",
1100
+ "SNAPSHOT"
1101
+ ],
1102
+ "description": "Lọc theo loại dataset (ACTIVE: đang sử dụng, SNAPSHOT: template để bán)"
1103
+ },
1104
+ "marketplaceReady": {
1105
+ "type": "boolean",
1106
+ "description": "Lọc tài nguyên sẵn sàng tạo sản phẩm marketplace (tự động áp dụng: type=SNAPSHOT, isOwner=true, deletedAt=null). Chỉ dataset SNAPSHOT mới có thể bán trên marketplace."
1107
+ }
1108
+ },
1109
+ "additionalProperties": false
1110
+ },
1111
+ "headers": {
1112
+ "type": "object",
1113
+ "properties": {
1114
+ "x-workspace-id": {
1115
+ "type": "string",
1116
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1117
+ },
1118
+ "x-base-id": {
1119
+ "type": "string",
1120
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1121
+ }
1122
+ },
1123
+ "required": [
1124
+ "x-workspace-id"
1125
+ ],
1126
+ "additionalProperties": false
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "headers"
1131
+ ],
1132
+ "additionalProperties": false,
1133
+ "description": "Lấy danh sách dataset fine tune của user có phân trang tool arguments"
1134
+ }
1135
+ },
1136
+ {
1137
+ "id": "models:userdatafinetunecontroller_findone_v1",
1138
+ "moduleId": "models",
1139
+ "featureGroupId": "models.user-finetuning-data",
1140
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_findone_v1",
1141
+ "operationId": "userdatafinetunecontroller_findone_v1",
1142
+ "title": "Lấy chi tiết dataset fine tune",
1143
+ "summary": "Lấy chi tiết dataset fine tune",
1144
+ "businessMeaning": "Lấy chi tiết dataset fine tune",
1145
+ "method": "GET",
1146
+ "path": "/v1/user/data-fine-tune/{id}",
1147
+ "tags": [
1148
+ "User - Finetuning Data"
1149
+ ],
1150
+ "keywords": [
1151
+ "models",
1152
+ "fine-tuning",
1153
+ "dataset",
1154
+ "conversation",
1155
+ "training",
1156
+ "job",
1157
+ "provider",
1158
+ "finetuning",
1159
+ "data",
1160
+ "userdatafinetunecontroller",
1161
+ "findone",
1162
+ "chi",
1163
+ "ti",
1164
+ "fine",
1165
+ "tune"
1166
+ ],
1167
+ "whenToUse": [
1168
+ "Lấy chi tiết dataset fine tune"
1169
+ ],
1170
+ "whenNotToUse": [],
1171
+ "riskLevel": "safe",
1172
+ "confirmationRequired": false,
1173
+ "requiresAuth": true,
1174
+ "parameterSummary": {
1175
+ "requiredFields": [
1176
+ "path.id"
1177
+ ],
1178
+ "topLevelRequired": [
1179
+ "path",
1180
+ "headers"
1181
+ ]
1182
+ },
1183
+ "parameterSchema": {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "path": {
1187
+ "type": "object",
1188
+ "properties": {
1189
+ "id": {
1190
+ "type": "string"
1191
+ }
1192
+ },
1193
+ "required": [
1194
+ "id"
1195
+ ],
1196
+ "additionalProperties": false
1197
+ },
1198
+ "headers": {
1199
+ "type": "object",
1200
+ "properties": {
1201
+ "x-workspace-id": {
1202
+ "type": "string",
1203
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1204
+ },
1205
+ "x-base-id": {
1206
+ "type": "string",
1207
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "x-workspace-id"
1212
+ ],
1213
+ "additionalProperties": false
1214
+ }
1215
+ },
1216
+ "required": [
1217
+ "path",
1218
+ "headers"
1219
+ ],
1220
+ "additionalProperties": false,
1221
+ "description": "Lấy chi tiết dataset fine tune tool arguments"
1222
+ }
1223
+ },
1224
+ {
1225
+ "id": "models:userdatafinetunecontroller_generatefiles_v1",
1226
+ "moduleId": "models",
1227
+ "featureGroupId": "models.user-finetuning-data",
1228
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_generatefiles_v1",
1229
+ "operationId": "userdatafinetunecontroller_generatefiles_v1",
1230
+ "title": "Generate files JSONL và JSON display.",
1231
+ "summary": "Generate files JSONL và JSON display.",
1232
+ "businessMeaning": "Generate files JSONL và JSON display.",
1233
+ "method": "POST",
1234
+ "path": "/v1/user/data-fine-tune/{id}/generate-files",
1235
+ "tags": [
1236
+ "User - Finetuning Data"
1237
+ ],
1238
+ "keywords": [
1239
+ "models",
1240
+ "fine-tuning",
1241
+ "dataset",
1242
+ "conversation",
1243
+ "training",
1244
+ "job",
1245
+ "provider",
1246
+ "finetuning",
1247
+ "data",
1248
+ "userdatafinetunecontroller",
1249
+ "generatefiles",
1250
+ "generate",
1251
+ "files",
1252
+ "jsonl",
1253
+ "json",
1254
+ "display"
1255
+ ],
1256
+ "whenToUse": [
1257
+ "Generate files JSONL và JSON display."
1258
+ ],
1259
+ "whenNotToUse": [
1260
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
1261
+ ],
1262
+ "riskLevel": "confirm_required",
1263
+ "confirmationRequired": true,
1264
+ "requiresAuth": true,
1265
+ "parameterSummary": {
1266
+ "requiredFields": [
1267
+ "path.id"
1268
+ ],
1269
+ "topLevelRequired": [
1270
+ "path",
1271
+ "headers",
1272
+ "body"
1273
+ ]
1274
+ },
1275
+ "parameterSchema": {
1276
+ "type": "object",
1277
+ "properties": {
1278
+ "path": {
1279
+ "type": "object",
1280
+ "properties": {
1281
+ "id": {
1282
+ "type": "string",
1283
+ "description": "ID của dataset"
1284
+ }
1285
+ },
1286
+ "required": [
1287
+ "id"
1288
+ ],
1289
+ "additionalProperties": false
1290
+ },
1291
+ "headers": {
1292
+ "type": "object",
1293
+ "properties": {
1294
+ "x-workspace-id": {
1295
+ "type": "string",
1296
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1297
+ },
1298
+ "x-base-id": {
1299
+ "type": "string",
1300
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1301
+ }
1302
+ },
1303
+ "required": [
1304
+ "x-workspace-id"
1305
+ ],
1306
+ "additionalProperties": false
1307
+ },
1308
+ "body": {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "forceRegenerate": {
1312
+ "type": "boolean",
1313
+ "description": "Có force regenerate file không (mặc định: false)",
1314
+ "default": false
1315
+ }
1316
+ }
1317
+ }
1318
+ },
1319
+ "required": [
1320
+ "path",
1321
+ "headers",
1322
+ "body"
1323
+ ],
1324
+ "additionalProperties": false,
1325
+ "description": "Generate files JSONL và JSON display tool arguments"
1326
+ }
1327
+ },
1328
+ {
1329
+ "id": "models:userdatafinetunecontroller_getconversation_v1",
1330
+ "moduleId": "models",
1331
+ "featureGroupId": "models.user-finetuning-data",
1332
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_getconversation_v1",
1333
+ "operationId": "userdatafinetunecontroller_getconversation_v1",
1334
+ "title": "Lấy một conversation.",
1335
+ "summary": "Lấy một conversation.",
1336
+ "businessMeaning": "Lấy một conversation.",
1337
+ "method": "GET",
1338
+ "path": "/v1/user/data-fine-tune/{id}/conversations/{convId}",
1339
+ "tags": [
1340
+ "User - Finetuning Data"
1341
+ ],
1342
+ "keywords": [
1343
+ "models",
1344
+ "fine-tuning",
1345
+ "dataset",
1346
+ "conversation",
1347
+ "training",
1348
+ "job",
1349
+ "provider",
1350
+ "finetuning",
1351
+ "data",
1352
+ "userdatafinetunecontroller",
1353
+ "getconversation"
1354
+ ],
1355
+ "whenToUse": [
1356
+ "Lấy một conversation."
1357
+ ],
1358
+ "whenNotToUse": [],
1359
+ "riskLevel": "safe",
1360
+ "confirmationRequired": false,
1361
+ "requiresAuth": true,
1362
+ "parameterSummary": {
1363
+ "requiredFields": [
1364
+ "path.id",
1365
+ "path.convId"
1366
+ ],
1367
+ "topLevelRequired": [
1368
+ "path",
1369
+ "headers"
1370
+ ]
1371
+ },
1372
+ "parameterSchema": {
1373
+ "type": "object",
1374
+ "properties": {
1375
+ "path": {
1376
+ "type": "object",
1377
+ "properties": {
1378
+ "id": {
1379
+ "type": "string",
1380
+ "description": "ID của dataset"
1381
+ },
1382
+ "convId": {
1383
+ "type": "string",
1384
+ "description": "ID của conversation"
1385
+ }
1386
+ },
1387
+ "required": [
1388
+ "id",
1389
+ "convId"
1390
+ ],
1391
+ "additionalProperties": false
1392
+ },
1393
+ "headers": {
1394
+ "type": "object",
1395
+ "properties": {
1396
+ "x-workspace-id": {
1397
+ "type": "string",
1398
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1399
+ },
1400
+ "x-base-id": {
1401
+ "type": "string",
1402
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "x-workspace-id"
1407
+ ],
1408
+ "additionalProperties": false
1409
+ }
1410
+ },
1411
+ "required": [
1412
+ "path",
1413
+ "headers"
1414
+ ],
1415
+ "additionalProperties": false,
1416
+ "description": "Lấy một conversation tool arguments"
1417
+ }
1418
+ },
1419
+ {
1420
+ "id": "models:userdatafinetunecontroller_getconversationbylinenumber_v1",
1421
+ "moduleId": "models",
1422
+ "featureGroupId": "models.user-finetuning-data",
1423
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_getconversationbylinenumber_v1",
1424
+ "operationId": "userdatafinetunecontroller_getconversationbylinenumber_v1",
1425
+ "title": "Tìm conversation theo số thứ tự.",
1426
+ "summary": "Tìm conversation theo số thứ tự.",
1427
+ "businessMeaning": "Tìm conversation theo số thứ tự.",
1428
+ "method": "GET",
1429
+ "path": "/v1/user/data-fine-tune/{id}/conversations/search/by-line/{lineNumber}",
1430
+ "tags": [
1431
+ "User - Finetuning Data"
1432
+ ],
1433
+ "keywords": [
1434
+ "models",
1435
+ "fine-tuning",
1436
+ "dataset",
1437
+ "conversation",
1438
+ "training",
1439
+ "job",
1440
+ "provider",
1441
+ "finetuning",
1442
+ "data",
1443
+ "userdatafinetunecontroller",
1444
+ "getconversationbylinenumber",
1445
+ "theo",
1446
+ "th"
1447
+ ],
1448
+ "whenToUse": [
1449
+ "Tìm conversation theo số thứ tự."
1450
+ ],
1451
+ "whenNotToUse": [],
1452
+ "riskLevel": "safe",
1453
+ "confirmationRequired": false,
1454
+ "requiresAuth": true,
1455
+ "parameterSummary": {
1456
+ "requiredFields": [
1457
+ "path.id",
1458
+ "path.lineNumber"
1459
+ ],
1460
+ "topLevelRequired": [
1461
+ "path",
1462
+ "headers"
1463
+ ]
1464
+ },
1465
+ "parameterSchema": {
1466
+ "type": "object",
1467
+ "properties": {
1468
+ "path": {
1469
+ "type": "object",
1470
+ "properties": {
1471
+ "id": {
1472
+ "type": "string",
1473
+ "description": "ID của dataset"
1474
+ },
1475
+ "lineNumber": {
1476
+ "type": "string",
1477
+ "description": "Số thứ tự của conversation"
1478
+ }
1479
+ },
1480
+ "required": [
1481
+ "id",
1482
+ "lineNumber"
1483
+ ],
1484
+ "additionalProperties": false
1485
+ },
1486
+ "headers": {
1487
+ "type": "object",
1488
+ "properties": {
1489
+ "x-workspace-id": {
1490
+ "type": "string",
1491
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1492
+ },
1493
+ "x-base-id": {
1494
+ "type": "string",
1495
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1496
+ }
1497
+ },
1498
+ "required": [
1499
+ "x-workspace-id"
1500
+ ],
1501
+ "additionalProperties": false
1502
+ }
1503
+ },
1504
+ "required": [
1505
+ "path",
1506
+ "headers"
1507
+ ],
1508
+ "additionalProperties": false,
1509
+ "description": "Tìm conversation theo số thứ tự tool arguments"
1510
+ }
1511
+ },
1512
+ {
1513
+ "id": "models:userdatafinetunecontroller_getconversations_v1",
1514
+ "moduleId": "models",
1515
+ "featureGroupId": "models.user-finetuning-data",
1516
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_getconversations_v1",
1517
+ "operationId": "userdatafinetunecontroller_getconversations_v1",
1518
+ "title": "Lấy danh sách conversations.",
1519
+ "summary": "Lấy danh sách conversations.",
1520
+ "businessMeaning": "Lấy danh sách conversations.",
1521
+ "method": "GET",
1522
+ "path": "/v1/user/data-fine-tune/{id}/conversations",
1523
+ "tags": [
1524
+ "User - Finetuning Data"
1525
+ ],
1526
+ "keywords": [
1527
+ "models",
1528
+ "fine-tuning",
1529
+ "dataset",
1530
+ "conversation",
1531
+ "training",
1532
+ "job",
1533
+ "provider",
1534
+ "finetuning",
1535
+ "data",
1536
+ "userdatafinetunecontroller",
1537
+ "getconversations",
1538
+ "danh",
1539
+ "ch",
1540
+ "conversations"
1541
+ ],
1542
+ "whenToUse": [
1543
+ "Lấy danh sách conversations."
1544
+ ],
1545
+ "whenNotToUse": [],
1546
+ "riskLevel": "safe",
1547
+ "confirmationRequired": false,
1548
+ "requiresAuth": true,
1549
+ "parameterSummary": {
1550
+ "requiredFields": [
1551
+ "path.id"
1552
+ ],
1553
+ "topLevelRequired": [
1554
+ "path",
1555
+ "headers"
1556
+ ]
1557
+ },
1558
+ "parameterSchema": {
1559
+ "type": "object",
1560
+ "properties": {
1561
+ "path": {
1562
+ "type": "object",
1563
+ "properties": {
1564
+ "id": {
1565
+ "type": "string",
1566
+ "description": "ID của dataset"
1567
+ }
1568
+ },
1569
+ "required": [
1570
+ "id"
1571
+ ],
1572
+ "additionalProperties": false
1573
+ },
1574
+ "query": {
1575
+ "type": "object",
1576
+ "properties": {
1577
+ "page": {
1578
+ "type": "number",
1579
+ "default": 1,
1580
+ "description": "Số trang (bắt đầu từ 1)"
1581
+ },
1582
+ "limit": {
1583
+ "type": "number",
1584
+ "default": 20,
1585
+ "description": "Số lượng items mỗi trang (tối đa 500 để hỗ trợ virtual scrolling)"
1586
+ },
1587
+ "search": {
1588
+ "type": "string",
1589
+ "description": "Tìm kiếm trong system_prompt"
1590
+ }
1591
+ },
1592
+ "additionalProperties": false
1593
+ },
1594
+ "headers": {
1595
+ "type": "object",
1596
+ "properties": {
1597
+ "x-workspace-id": {
1598
+ "type": "string",
1599
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1600
+ },
1601
+ "x-base-id": {
1602
+ "type": "string",
1603
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "x-workspace-id"
1608
+ ],
1609
+ "additionalProperties": false
1610
+ }
1611
+ },
1612
+ "required": [
1613
+ "path",
1614
+ "headers"
1615
+ ],
1616
+ "additionalProperties": false,
1617
+ "description": "Lấy danh sách conversations tool arguments"
1618
+ }
1619
+ },
1620
+ {
1621
+ "id": "models:userdatafinetunecontroller_getdatasets_v1",
1622
+ "moduleId": "models",
1623
+ "featureGroupId": "models.user-finetuning-data",
1624
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_getdatasets_v1",
1625
+ "operationId": "userdatafinetunecontroller_getdatasets_v1",
1626
+ "title": "Lấy danh sách datasets.",
1627
+ "summary": "Lấy danh sách datasets.",
1628
+ "businessMeaning": "Lấy danh sách datasets.",
1629
+ "method": "GET",
1630
+ "path": "/v1/user/data-fine-tune/datasets",
1631
+ "tags": [
1632
+ "User - Finetuning Data"
1633
+ ],
1634
+ "keywords": [
1635
+ "models",
1636
+ "fine-tuning",
1637
+ "dataset",
1638
+ "conversation",
1639
+ "training",
1640
+ "job",
1641
+ "provider",
1642
+ "finetuning",
1643
+ "data",
1644
+ "userdatafinetunecontroller",
1645
+ "getdatasets",
1646
+ "danh",
1647
+ "ch",
1648
+ "datasets"
1649
+ ],
1650
+ "whenToUse": [
1651
+ "Lấy danh sách datasets."
1652
+ ],
1653
+ "whenNotToUse": [],
1654
+ "riskLevel": "safe",
1655
+ "confirmationRequired": false,
1656
+ "requiresAuth": true,
1657
+ "parameterSummary": {
1658
+ "requiredFields": [],
1659
+ "topLevelRequired": [
1660
+ "headers"
1661
+ ]
1662
+ },
1663
+ "parameterSchema": {
1664
+ "type": "object",
1665
+ "properties": {
1666
+ "query": {
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "page": {
1670
+ "type": "number",
1671
+ "description": "Trang hiện tại"
1672
+ },
1673
+ "limit": {
1674
+ "type": "number",
1675
+ "description": "Số items per page"
1676
+ },
1677
+ "provider": {
1678
+ "type": "string",
1679
+ "enum": [
1680
+ "openai",
1681
+ "vertex_ai"
1682
+ ],
1683
+ "description": "Lọc theo provider"
1684
+ },
1685
+ "status": {
1686
+ "type": "string",
1687
+ "enum": [
1688
+ "ready",
1689
+ "not_ready",
1690
+ "all"
1691
+ ],
1692
+ "description": "Lọc theo trạng thái"
1693
+ },
1694
+ "search": {
1695
+ "type": "string",
1696
+ "description": "Tìm kiếm theo tên dataset"
1697
+ }
1698
+ },
1699
+ "additionalProperties": false
1700
+ },
1701
+ "headers": {
1702
+ "type": "object",
1703
+ "properties": {
1704
+ "x-workspace-id": {
1705
+ "type": "string",
1706
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1707
+ },
1708
+ "x-base-id": {
1709
+ "type": "string",
1710
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1711
+ }
1712
+ },
1713
+ "required": [
1714
+ "x-workspace-id"
1715
+ ],
1716
+ "additionalProperties": false
1717
+ }
1718
+ },
1719
+ "required": [
1720
+ "headers"
1721
+ ],
1722
+ "additionalProperties": false,
1723
+ "description": "Lấy danh sách datasets tool arguments"
1724
+ }
1725
+ },
1726
+ {
1727
+ "id": "models:userdatafinetunecontroller_getdownloaddisplayurl_v1",
1728
+ "moduleId": "models",
1729
+ "featureGroupId": "models.user-finetuning-data",
1730
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_getdownloaddisplayurl_v1",
1731
+ "operationId": "userdatafinetunecontroller_getdownloaddisplayurl_v1",
1732
+ "title": "Download file JSON display.",
1733
+ "summary": "Download file JSON display.",
1734
+ "businessMeaning": "Download file JSON display.",
1735
+ "method": "GET",
1736
+ "path": "/v1/user/data-fine-tune/{id}/download-display",
1737
+ "tags": [
1738
+ "User - Finetuning Data"
1739
+ ],
1740
+ "keywords": [
1741
+ "models",
1742
+ "fine-tuning",
1743
+ "dataset",
1744
+ "conversation",
1745
+ "training",
1746
+ "job",
1747
+ "provider",
1748
+ "finetuning",
1749
+ "data",
1750
+ "userdatafinetunecontroller",
1751
+ "getdownloaddisplayurl",
1752
+ "download",
1753
+ "file",
1754
+ "json",
1755
+ "display"
1756
+ ],
1757
+ "whenToUse": [
1758
+ "Download file JSON display."
1759
+ ],
1760
+ "whenNotToUse": [],
1761
+ "riskLevel": "safe",
1762
+ "confirmationRequired": false,
1763
+ "requiresAuth": true,
1764
+ "parameterSummary": {
1765
+ "requiredFields": [
1766
+ "path.id"
1767
+ ],
1768
+ "topLevelRequired": [
1769
+ "path",
1770
+ "headers"
1771
+ ]
1772
+ },
1773
+ "parameterSchema": {
1774
+ "type": "object",
1775
+ "properties": {
1776
+ "path": {
1777
+ "type": "object",
1778
+ "properties": {
1779
+ "id": {
1780
+ "type": "string",
1781
+ "description": "ID của dataset"
1782
+ }
1783
+ },
1784
+ "required": [
1785
+ "id"
1786
+ ],
1787
+ "additionalProperties": false
1788
+ },
1789
+ "headers": {
1790
+ "type": "object",
1791
+ "properties": {
1792
+ "x-workspace-id": {
1793
+ "type": "string",
1794
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1795
+ },
1796
+ "x-base-id": {
1797
+ "type": "string",
1798
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1799
+ }
1800
+ },
1801
+ "required": [
1802
+ "x-workspace-id"
1803
+ ],
1804
+ "additionalProperties": false
1805
+ }
1806
+ },
1807
+ "required": [
1808
+ "path",
1809
+ "headers"
1810
+ ],
1811
+ "additionalProperties": false,
1812
+ "description": "Download file JSON display tool arguments"
1813
+ }
1814
+ },
1815
+ {
1816
+ "id": "models:userdatafinetunecontroller_handlefinetunewebhook_v1",
1817
+ "moduleId": "models",
1818
+ "featureGroupId": "models.user-finetuning-data",
1819
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_handlefinetunewebhook_v1",
1820
+ "operationId": "userdatafinetunecontroller_handlefinetunewebhook_v1",
1821
+ "title": "Webhook nhận status updates từ fine-tuning providers.",
1822
+ "summary": "Webhook nhận status updates từ fine-tuning providers.",
1823
+ "businessMeaning": "Webhook nhận status updates từ fine-tuning providers.",
1824
+ "method": "POST",
1825
+ "path": "/v1/user/data-fine-tune/{id}/webhook/status-update",
1826
+ "tags": [
1827
+ "User - Finetuning Data"
1828
+ ],
1829
+ "keywords": [
1830
+ "models",
1831
+ "fine-tuning",
1832
+ "dataset",
1833
+ "conversation",
1834
+ "training",
1835
+ "job",
1836
+ "provider",
1837
+ "finetuning",
1838
+ "data",
1839
+ "userdatafinetunecontroller",
1840
+ "handlefinetunewebhook",
1841
+ "webhook",
1842
+ "nh",
1843
+ "status",
1844
+ "updates",
1845
+ "fine",
1846
+ "tuning",
1847
+ "providers"
1848
+ ],
1849
+ "whenToUse": [
1850
+ "Webhook nhận status updates từ fine-tuning providers."
1851
+ ],
1852
+ "whenNotToUse": [
1853
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
1854
+ ],
1855
+ "riskLevel": "costly",
1856
+ "confirmationRequired": true,
1857
+ "requiresAuth": true,
1858
+ "parameterSummary": {
1859
+ "requiredFields": [
1860
+ "path.id",
1861
+ "body.type",
1862
+ "body.data"
1863
+ ],
1864
+ "topLevelRequired": [
1865
+ "path",
1866
+ "headers",
1867
+ "body"
1868
+ ]
1869
+ },
1870
+ "parameterSchema": {
1871
+ "type": "object",
1872
+ "properties": {
1873
+ "path": {
1874
+ "type": "object",
1875
+ "properties": {
1876
+ "id": {
1877
+ "type": "string",
1878
+ "description": "ID của dataset"
1879
+ }
1880
+ },
1881
+ "required": [
1882
+ "id"
1883
+ ],
1884
+ "additionalProperties": false
1885
+ },
1886
+ "headers": {
1887
+ "type": "object",
1888
+ "properties": {
1889
+ "x-workspace-id": {
1890
+ "type": "string",
1891
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1892
+ },
1893
+ "x-base-id": {
1894
+ "type": "string",
1895
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
1896
+ }
1897
+ },
1898
+ "required": [
1899
+ "x-workspace-id"
1900
+ ],
1901
+ "additionalProperties": false
1902
+ },
1903
+ "body": {
1904
+ "type": "object",
1905
+ "properties": {
1906
+ "type": {
1907
+ "type": "string",
1908
+ "description": "Event type từ OpenAI"
1909
+ },
1910
+ "data": {
1911
+ "type": "object",
1912
+ "description": "Data object chứa thông tin fine-tuning job"
1913
+ }
1914
+ },
1915
+ "required": [
1916
+ "type",
1917
+ "data"
1918
+ ]
1919
+ }
1920
+ },
1921
+ "required": [
1922
+ "path",
1923
+ "headers",
1924
+ "body"
1925
+ ],
1926
+ "additionalProperties": false,
1927
+ "description": "Webhook nhận status updates từ fine-tuning providers tool arguments"
1928
+ }
1929
+ },
1930
+ {
1931
+ "id": "models:userdatafinetunecontroller_remove_v1",
1932
+ "moduleId": "models",
1933
+ "featureGroupId": "models.user-finetuning-data",
1934
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_remove_v1",
1935
+ "operationId": "userdatafinetunecontroller_remove_v1",
1936
+ "title": "Xóa dataset fine tune",
1937
+ "summary": "Xóa dataset fine tune",
1938
+ "businessMeaning": "Xóa dataset fine tune",
1939
+ "method": "DELETE",
1940
+ "path": "/v1/user/data-fine-tune/{id}",
1941
+ "tags": [
1942
+ "User - Finetuning Data"
1943
+ ],
1944
+ "keywords": [
1945
+ "models",
1946
+ "fine-tuning",
1947
+ "dataset",
1948
+ "conversation",
1949
+ "training",
1950
+ "job",
1951
+ "provider",
1952
+ "finetuning",
1953
+ "data",
1954
+ "userdatafinetunecontroller",
1955
+ "remove",
1956
+ "fine",
1957
+ "tune"
1958
+ ],
1959
+ "whenToUse": [
1960
+ "Xóa dataset fine tune"
1961
+ ],
1962
+ "whenNotToUse": [
1963
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
1964
+ ],
1965
+ "riskLevel": "destructive",
1966
+ "confirmationRequired": true,
1967
+ "requiresAuth": true,
1968
+ "parameterSummary": {
1969
+ "requiredFields": [
1970
+ "path.id"
1971
+ ],
1972
+ "topLevelRequired": [
1973
+ "path",
1974
+ "headers"
1975
+ ]
1976
+ },
1977
+ "parameterSchema": {
1978
+ "type": "object",
1979
+ "properties": {
1980
+ "path": {
1981
+ "type": "object",
1982
+ "properties": {
1983
+ "id": {
1984
+ "type": "string"
1985
+ }
1986
+ },
1987
+ "required": [
1988
+ "id"
1989
+ ],
1990
+ "additionalProperties": false
1991
+ },
1992
+ "headers": {
1993
+ "type": "object",
1994
+ "properties": {
1995
+ "x-workspace-id": {
1996
+ "type": "string",
1997
+ "description": "Workspace ID của tenant hiện tại (UUID)"
1998
+ },
1999
+ "x-base-id": {
2000
+ "type": "string",
2001
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2002
+ }
2003
+ },
2004
+ "required": [
2005
+ "x-workspace-id"
2006
+ ],
2007
+ "additionalProperties": false
2008
+ }
2009
+ },
2010
+ "required": [
2011
+ "path",
2012
+ "headers"
2013
+ ],
2014
+ "additionalProperties": false,
2015
+ "description": "Xóa dataset fine tune tool arguments"
2016
+ }
2017
+ },
2018
+ {
2019
+ "id": "models:userdatafinetunecontroller_update_v1",
2020
+ "moduleId": "models",
2021
+ "featureGroupId": "models.user-finetuning-data",
2022
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_update_v1",
2023
+ "operationId": "userdatafinetunecontroller_update_v1",
2024
+ "title": "Cập nhật dataset fine tune.",
2025
+ "summary": "Cập nhật dataset fine tune.",
2026
+ "businessMeaning": "Cập nhật dataset fine tune.",
2027
+ "method": "PATCH",
2028
+ "path": "/v1/user/data-fine-tune/{id}",
2029
+ "tags": [
2030
+ "User - Finetuning Data"
2031
+ ],
2032
+ "keywords": [
2033
+ "models",
2034
+ "fine-tuning",
2035
+ "dataset",
2036
+ "conversation",
2037
+ "training",
2038
+ "job",
2039
+ "provider",
2040
+ "finetuning",
2041
+ "data",
2042
+ "userdatafinetunecontroller",
2043
+ "update",
2044
+ "nh",
2045
+ "fine",
2046
+ "tune"
2047
+ ],
2048
+ "whenToUse": [
2049
+ "Cập nhật dataset fine tune."
2050
+ ],
2051
+ "whenNotToUse": [
2052
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2053
+ ],
2054
+ "riskLevel": "confirm_required",
2055
+ "confirmationRequired": true,
2056
+ "requiresAuth": true,
2057
+ "parameterSummary": {
2058
+ "requiredFields": [
2059
+ "path.id"
2060
+ ],
2061
+ "topLevelRequired": [
2062
+ "path",
2063
+ "headers",
2064
+ "body"
2065
+ ]
2066
+ },
2067
+ "parameterSchema": {
2068
+ "type": "object",
2069
+ "properties": {
2070
+ "path": {
2071
+ "type": "object",
2072
+ "properties": {
2073
+ "id": {
2074
+ "type": "string"
2075
+ }
2076
+ },
2077
+ "required": [
2078
+ "id"
2079
+ ],
2080
+ "additionalProperties": false
2081
+ },
2082
+ "headers": {
2083
+ "type": "object",
2084
+ "properties": {
2085
+ "x-workspace-id": {
2086
+ "type": "string",
2087
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2088
+ },
2089
+ "x-base-id": {
2090
+ "type": "string",
2091
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2092
+ }
2093
+ },
2094
+ "required": [
2095
+ "x-workspace-id"
2096
+ ],
2097
+ "additionalProperties": false
2098
+ },
2099
+ "body": {
2100
+ "type": "object",
2101
+ "properties": {
2102
+ "name": {
2103
+ "type": "string",
2104
+ "description": "Tên của bộ dữ liệu fine-tune"
2105
+ },
2106
+ "description": {
2107
+ "type": "string",
2108
+ "description": "Mô tả nội dung bộ dữ liệu"
2109
+ },
2110
+ "types": {
2111
+ "type": "string",
2112
+ "description": "Loại dữ liệu trong dataset (MESSAGE, IMAGE, VIDEO, AUDIO)",
2113
+ "enum": [
2114
+ "MESSAGE",
2115
+ "IMAGE",
2116
+ "VIDEO",
2117
+ "AUDIO"
2118
+ ]
2119
+ },
2120
+ "trainDataset": {
2121
+ "type": "string",
2122
+ "description": "Tập dữ liệu huấn luyện, định dạng JSON"
2123
+ },
2124
+ "validDataset": {
2125
+ "type": "string",
2126
+ "description": "MIME type của tập dữ liệu validation (chỉ cho OpenAI khi hasValid=true)"
2127
+ },
2128
+ "provider": {
2129
+ "type": "string",
2130
+ "description": "Provider cho fine-tuning",
2131
+ "enum": [
2132
+ "OPENAI",
2133
+ "VERTEX_AI"
2134
+ ]
2135
+ },
2136
+ "hasValid": {
2137
+ "type": "boolean",
2138
+ "description": "Có sử dụng file validation không (chỉ áp dụng cho OpenAI, Google luôn là false)",
2139
+ "default": false
2140
+ },
2141
+ "agentId": {
2142
+ "type": "string",
2143
+ "description": "ID của agent sử dụng dataset này (UUID)"
2144
+ }
2145
+ }
2146
+ }
2147
+ },
2148
+ "required": [
2149
+ "path",
2150
+ "headers",
2151
+ "body"
2152
+ ],
2153
+ "additionalProperties": false,
2154
+ "description": "Cập nhật dataset fine tune tool arguments"
2155
+ }
2156
+ },
2157
+ {
2158
+ "id": "models:userdatafinetunecontroller_updateconversation_v1",
2159
+ "moduleId": "models",
2160
+ "featureGroupId": "models.user-finetuning-data",
2161
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_updateconversation_v1",
2162
+ "operationId": "userdatafinetunecontroller_updateconversation_v1",
2163
+ "title": "Cập nhật một conversation.",
2164
+ "summary": "Cập nhật một conversation.",
2165
+ "businessMeaning": "Cập nhật một conversation.",
2166
+ "method": "PATCH",
2167
+ "path": "/v1/user/data-fine-tune/{id}/conversations/{convId}",
2168
+ "tags": [
2169
+ "User - Finetuning Data"
2170
+ ],
2171
+ "keywords": [
2172
+ "models",
2173
+ "fine-tuning",
2174
+ "dataset",
2175
+ "conversation",
2176
+ "training",
2177
+ "job",
2178
+ "provider",
2179
+ "finetuning",
2180
+ "data",
2181
+ "userdatafinetunecontroller",
2182
+ "updateconversation",
2183
+ "nh"
2184
+ ],
2185
+ "whenToUse": [
2186
+ "Cập nhật một conversation."
2187
+ ],
2188
+ "whenNotToUse": [
2189
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2190
+ ],
2191
+ "riskLevel": "confirm_required",
2192
+ "confirmationRequired": true,
2193
+ "requiresAuth": true,
2194
+ "parameterSummary": {
2195
+ "requiredFields": [
2196
+ "path.id",
2197
+ "path.convId"
2198
+ ],
2199
+ "topLevelRequired": [
2200
+ "path",
2201
+ "headers",
2202
+ "body"
2203
+ ]
2204
+ },
2205
+ "parameterSchema": {
2206
+ "type": "object",
2207
+ "properties": {
2208
+ "path": {
2209
+ "type": "object",
2210
+ "properties": {
2211
+ "id": {
2212
+ "type": "string",
2213
+ "description": "ID của dataset"
2214
+ },
2215
+ "convId": {
2216
+ "type": "string",
2217
+ "description": "ID của conversation"
2218
+ }
2219
+ },
2220
+ "required": [
2221
+ "id",
2222
+ "convId"
2223
+ ],
2224
+ "additionalProperties": false
2225
+ },
2226
+ "headers": {
2227
+ "type": "object",
2228
+ "properties": {
2229
+ "x-workspace-id": {
2230
+ "type": "string",
2231
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2232
+ },
2233
+ "x-base-id": {
2234
+ "type": "string",
2235
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2236
+ }
2237
+ },
2238
+ "required": [
2239
+ "x-workspace-id"
2240
+ ],
2241
+ "additionalProperties": false
2242
+ },
2243
+ "body": {
2244
+ "type": "object",
2245
+ "properties": {
2246
+ "system_prompt": {
2247
+ "type": "string",
2248
+ "description": "System prompt cho conversation"
2249
+ },
2250
+ "messages": {
2251
+ "type": "array",
2252
+ "description": "Danh sách messages trong conversation"
2253
+ },
2254
+ "tool_ids": {
2255
+ "type": "array",
2256
+ "description": "Danh sách tool IDs được sử dụng (UUIDs from user_tools or admin_tools)"
2257
+ }
2258
+ }
2259
+ }
2260
+ },
2261
+ "required": [
2262
+ "path",
2263
+ "headers",
2264
+ "body"
2265
+ ],
2266
+ "additionalProperties": false,
2267
+ "description": "Cập nhật một conversation tool arguments"
2268
+ }
2269
+ },
2270
+ {
2271
+ "id": "models:userdatafinetunecontroller_urlupload_v1",
2272
+ "moduleId": "models",
2273
+ "featureGroupId": "models.user-finetuning-data",
2274
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_urlupload_v1",
2275
+ "operationId": "userdatafinetunecontroller_urlupload_v1",
2276
+ "title": "Lấy URL upload dataset",
2277
+ "summary": "Lấy URL upload dataset",
2278
+ "businessMeaning": "Lấy URL upload dataset",
2279
+ "method": "GET",
2280
+ "path": "/v1/user/data-fine-tune/upload-url",
2281
+ "tags": [
2282
+ "User - Finetuning Data"
2283
+ ],
2284
+ "keywords": [
2285
+ "models",
2286
+ "fine-tuning",
2287
+ "dataset",
2288
+ "conversation",
2289
+ "training",
2290
+ "job",
2291
+ "provider",
2292
+ "finetuning",
2293
+ "data",
2294
+ "userdatafinetunecontroller",
2295
+ "urlupload",
2296
+ "url",
2297
+ "upload"
2298
+ ],
2299
+ "whenToUse": [
2300
+ "Lấy URL upload dataset"
2301
+ ],
2302
+ "whenNotToUse": [
2303
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2304
+ ],
2305
+ "riskLevel": "costly",
2306
+ "confirmationRequired": true,
2307
+ "requiresAuth": true,
2308
+ "parameterSummary": {
2309
+ "requiredFields": [
2310
+ "query.mime"
2311
+ ],
2312
+ "topLevelRequired": [
2313
+ "query",
2314
+ "headers"
2315
+ ]
2316
+ },
2317
+ "parameterSchema": {
2318
+ "type": "object",
2319
+ "properties": {
2320
+ "query": {
2321
+ "type": "object",
2322
+ "properties": {
2323
+ "mime": {
2324
+ "type": "string"
2325
+ }
2326
+ },
2327
+ "required": [
2328
+ "mime"
2329
+ ],
2330
+ "additionalProperties": false
2331
+ },
2332
+ "headers": {
2333
+ "type": "object",
2334
+ "properties": {
2335
+ "x-workspace-id": {
2336
+ "type": "string",
2337
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2338
+ },
2339
+ "x-base-id": {
2340
+ "type": "string",
2341
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2342
+ }
2343
+ },
2344
+ "required": [
2345
+ "x-workspace-id"
2346
+ ],
2347
+ "additionalProperties": false
2348
+ }
2349
+ },
2350
+ "required": [
2351
+ "query",
2352
+ "headers"
2353
+ ],
2354
+ "additionalProperties": false,
2355
+ "description": "Lấy URL upload dataset tool arguments"
2356
+ }
2357
+ },
2358
+ {
2359
+ "id": "models:userdatafinetunecontroller_usetemplate_v1",
2360
+ "moduleId": "models",
2361
+ "featureGroupId": "models.user-finetuning-data",
2362
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_usetemplate_v1",
2363
+ "operationId": "userdatafinetunecontroller_usetemplate_v1",
2364
+ "title": "Sử dụng template để tạo dataset mới.",
2365
+ "summary": "Sử dụng template để tạo dataset mới.",
2366
+ "businessMeaning": "Sử dụng template để tạo dataset mới.",
2367
+ "method": "POST",
2368
+ "path": "/v1/user/data-fine-tune/{id}/use-template",
2369
+ "tags": [
2370
+ "User - Finetuning Data"
2371
+ ],
2372
+ "keywords": [
2373
+ "models",
2374
+ "fine-tuning",
2375
+ "dataset",
2376
+ "conversation",
2377
+ "training",
2378
+ "job",
2379
+ "provider",
2380
+ "finetuning",
2381
+ "data",
2382
+ "userdatafinetunecontroller",
2383
+ "usetemplate",
2384
+ "ng",
2385
+ "template"
2386
+ ],
2387
+ "whenToUse": [
2388
+ "Sử dụng template để tạo dataset mới."
2389
+ ],
2390
+ "whenNotToUse": [
2391
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2392
+ ],
2393
+ "riskLevel": "confirm_required",
2394
+ "confirmationRequired": true,
2395
+ "requiresAuth": true,
2396
+ "parameterSummary": {
2397
+ "requiredFields": [
2398
+ "path.id",
2399
+ "body.name"
2400
+ ],
2401
+ "topLevelRequired": [
2402
+ "path",
2403
+ "headers",
2404
+ "body"
2405
+ ]
2406
+ },
2407
+ "parameterSchema": {
2408
+ "type": "object",
2409
+ "properties": {
2410
+ "path": {
2411
+ "type": "object",
2412
+ "properties": {
2413
+ "id": {
2414
+ "type": "string",
2415
+ "description": "ID của dataset template (SNAPSHOT)"
2416
+ }
2417
+ },
2418
+ "required": [
2419
+ "id"
2420
+ ],
2421
+ "additionalProperties": false
2422
+ },
2423
+ "headers": {
2424
+ "type": "object",
2425
+ "properties": {
2426
+ "x-workspace-id": {
2427
+ "type": "string",
2428
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2429
+ },
2430
+ "x-base-id": {
2431
+ "type": "string",
2432
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2433
+ }
2434
+ },
2435
+ "required": [
2436
+ "x-workspace-id"
2437
+ ],
2438
+ "additionalProperties": false
2439
+ },
2440
+ "body": {
2441
+ "type": "object",
2442
+ "properties": {
2443
+ "name": {
2444
+ "type": "string",
2445
+ "description": "Tên cho dataset mới"
2446
+ },
2447
+ "description": {
2448
+ "type": "string",
2449
+ "description": "Mô tả cho dataset mới"
2450
+ }
2451
+ },
2452
+ "required": [
2453
+ "name"
2454
+ ]
2455
+ }
2456
+ },
2457
+ "required": [
2458
+ "path",
2459
+ "headers",
2460
+ "body"
2461
+ ],
2462
+ "additionalProperties": false,
2463
+ "description": "Sử dụng template để tạo dataset mới tool arguments"
2464
+ }
2465
+ },
2466
+ {
2467
+ "id": "models:userdatafinetunecontroller_validatedataset_v1",
2468
+ "moduleId": "models",
2469
+ "featureGroupId": "models.user-finetuning-data",
2470
+ "toolName": "redai_openapi_models_userdatafinetunecontroller_validatedataset_v1",
2471
+ "operationId": "userdatafinetunecontroller_validatedataset_v1",
2472
+ "title": "Validate dữ liệu file train và validation.",
2473
+ "summary": "Validate dữ liệu file train và validation.",
2474
+ "businessMeaning": "Validate dữ liệu file train và validation.",
2475
+ "method": "POST",
2476
+ "path": "/v1/user/data-fine-tune/{id}/validate",
2477
+ "tags": [
2478
+ "User - Finetuning Data"
2479
+ ],
2480
+ "keywords": [
2481
+ "models",
2482
+ "fine-tuning",
2483
+ "dataset",
2484
+ "conversation",
2485
+ "training",
2486
+ "job",
2487
+ "provider",
2488
+ "finetuning",
2489
+ "data",
2490
+ "userdatafinetunecontroller",
2491
+ "validatedataset",
2492
+ "validate",
2493
+ "li",
2494
+ "file",
2495
+ "train",
2496
+ "validation"
2497
+ ],
2498
+ "whenToUse": [
2499
+ "Validate dữ liệu file train và validation."
2500
+ ],
2501
+ "whenNotToUse": [
2502
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2503
+ ],
2504
+ "riskLevel": "confirm_required",
2505
+ "confirmationRequired": true,
2506
+ "requiresAuth": true,
2507
+ "parameterSummary": {
2508
+ "requiredFields": [
2509
+ "path.id",
2510
+ "body.modelId"
2511
+ ],
2512
+ "topLevelRequired": [
2513
+ "path",
2514
+ "headers",
2515
+ "body"
2516
+ ]
2517
+ },
2518
+ "parameterSchema": {
2519
+ "type": "object",
2520
+ "properties": {
2521
+ "path": {
2522
+ "type": "object",
2523
+ "properties": {
2524
+ "id": {
2525
+ "type": "string"
2526
+ }
2527
+ },
2528
+ "required": [
2529
+ "id"
2530
+ ],
2531
+ "additionalProperties": false
2532
+ },
2533
+ "headers": {
2534
+ "type": "object",
2535
+ "properties": {
2536
+ "x-workspace-id": {
2537
+ "type": "string",
2538
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2539
+ },
2540
+ "x-base-id": {
2541
+ "type": "string",
2542
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2543
+ }
2544
+ },
2545
+ "required": [
2546
+ "x-workspace-id"
2547
+ ],
2548
+ "additionalProperties": false
2549
+ },
2550
+ "body": {
2551
+ "type": "object",
2552
+ "properties": {
2553
+ "modelId": {
2554
+ "type": "string",
2555
+ "description": "ID của model để validate"
2556
+ },
2557
+ "epochs": {
2558
+ "type": "number",
2559
+ "description": "Số epoch để huấn luyện. Dùng để tính ước lượng chi phí fine-tuning. OpenAI: 1-50, Vertex AI: 1-100",
2560
+ "default": 3
2561
+ },
2562
+ "batchSize": {
2563
+ "type": "object",
2564
+ "description": "Kích thước batch. Dùng để tính ước lượng chi phí. Có thể là số hoặc \"auto\"",
2565
+ "default": "auto"
2566
+ },
2567
+ "learningRateMultiplier": {
2568
+ "type": "object",
2569
+ "description": "Hệ số tốc độ học. Dùng để tính ước lượng chi phí. Có thể là số hoặc \"auto\"",
2570
+ "default": "auto"
2571
+ },
2572
+ "calculateCostEstimate": {
2573
+ "type": "boolean",
2574
+ "description": "Có tính toán ước lượng chi phí fine-tuning không",
2575
+ "default": true
2576
+ },
2577
+ "integrationId": {
2578
+ "type": "string",
2579
+ "description": "ID của integration (User Key). Nếu không có = dùng System Key"
2580
+ }
2581
+ },
2582
+ "required": [
2583
+ "modelId"
2584
+ ]
2585
+ }
2586
+ },
2587
+ "required": [
2588
+ "path",
2589
+ "headers",
2590
+ "body"
2591
+ ],
2592
+ "additionalProperties": false,
2593
+ "description": "Validate dữ liệu file train và validation tool arguments"
2594
+ }
2595
+ },
2596
+ {
2597
+ "id": "models:userfinetuninghistorycontroller_deletemodel_v1",
2598
+ "moduleId": "models",
2599
+ "featureGroupId": "models.user-finetuning-data-history",
2600
+ "toolName": "redai_openapi_models_userfinetuninghistorycontroller_deletemodel_v1",
2601
+ "operationId": "userfinetuninghistorycontroller_deletemodel_v1",
2602
+ "title": "Xóa model đã fine-tuned.",
2603
+ "summary": "Xóa model đã fine-tuned.",
2604
+ "businessMeaning": "Xóa model đã fine-tuned.",
2605
+ "method": "DELETE",
2606
+ "path": "/v1/user/fine-tuning-history/models/{modelId}",
2607
+ "tags": [
2608
+ "User - Finetuning Data History"
2609
+ ],
2610
+ "keywords": [
2611
+ "models",
2612
+ "fine-tuning",
2613
+ "dataset",
2614
+ "conversation",
2615
+ "training",
2616
+ "job",
2617
+ "provider",
2618
+ "finetuning",
2619
+ "data",
2620
+ "history",
2621
+ "userfinetuninghistorycontroller",
2622
+ "deletemodel",
2623
+ "model",
2624
+ "fine",
2625
+ "tuned"
2626
+ ],
2627
+ "whenToUse": [
2628
+ "Xóa model đã fine-tuned."
2629
+ ],
2630
+ "whenNotToUse": [
2631
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2632
+ ],
2633
+ "riskLevel": "destructive",
2634
+ "confirmationRequired": true,
2635
+ "requiresAuth": true,
2636
+ "parameterSummary": {
2637
+ "requiredFields": [
2638
+ "path.modelId"
2639
+ ],
2640
+ "topLevelRequired": [
2641
+ "path",
2642
+ "headers"
2643
+ ]
2644
+ },
2645
+ "parameterSchema": {
2646
+ "type": "object",
2647
+ "properties": {
2648
+ "path": {
2649
+ "type": "object",
2650
+ "properties": {
2651
+ "modelId": {
2652
+ "type": "string",
2653
+ "description": "Model ID (UUID)"
2654
+ }
2655
+ },
2656
+ "required": [
2657
+ "modelId"
2658
+ ],
2659
+ "additionalProperties": false
2660
+ },
2661
+ "headers": {
2662
+ "type": "object",
2663
+ "properties": {
2664
+ "x-workspace-id": {
2665
+ "type": "string",
2666
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2667
+ },
2668
+ "x-base-id": {
2669
+ "type": "string",
2670
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2671
+ }
2672
+ },
2673
+ "required": [
2674
+ "x-workspace-id"
2675
+ ],
2676
+ "additionalProperties": false
2677
+ }
2678
+ },
2679
+ "required": [
2680
+ "path",
2681
+ "headers"
2682
+ ],
2683
+ "additionalProperties": false,
2684
+ "description": "Xóa model đã fine-tuned tool arguments"
2685
+ }
2686
+ },
2687
+ {
2688
+ "id": "models:userfinetuninghistorycontroller_getallusermodels_v1",
2689
+ "moduleId": "models",
2690
+ "featureGroupId": "models.user-finetuning-data-history",
2691
+ "toolName": "redai_openapi_models_userfinetuninghistorycontroller_getallusermodels_v1",
2692
+ "operationId": "userfinetuninghistorycontroller_getallusermodels_v1",
2693
+ "title": "Lấy danh sách tất cả models đã fine-tuned của user.",
2694
+ "summary": "Lấy danh sách tất cả models đã fine-tuned của user.",
2695
+ "businessMeaning": "Lấy danh sách tất cả models đã fine-tuned của user.",
2696
+ "method": "GET",
2697
+ "path": "/v1/user/fine-tuning-history/models",
2698
+ "tags": [
2699
+ "User - Finetuning Data History"
2700
+ ],
2701
+ "keywords": [
2702
+ "models",
2703
+ "fine-tuning",
2704
+ "dataset",
2705
+ "conversation",
2706
+ "training",
2707
+ "job",
2708
+ "provider",
2709
+ "finetuning",
2710
+ "data",
2711
+ "history",
2712
+ "userfinetuninghistorycontroller",
2713
+ "getallusermodels",
2714
+ "danh",
2715
+ "ch",
2716
+ "fine",
2717
+ "tuned"
2718
+ ],
2719
+ "whenToUse": [
2720
+ "Lấy danh sách tất cả models đã fine-tuned của user."
2721
+ ],
2722
+ "whenNotToUse": [
2723
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2724
+ ],
2725
+ "riskLevel": "costly",
2726
+ "confirmationRequired": true,
2727
+ "requiresAuth": true,
2728
+ "parameterSummary": {
2729
+ "requiredFields": [],
2730
+ "topLevelRequired": [
2731
+ "headers"
2732
+ ]
2733
+ },
2734
+ "parameterSchema": {
2735
+ "type": "object",
2736
+ "properties": {
2737
+ "query": {
2738
+ "type": "object",
2739
+ "properties": {
2740
+ "page": {
2741
+ "type": "number",
2742
+ "default": 1,
2743
+ "description": "Page number (bắt đầu từ 1)"
2744
+ },
2745
+ "limit": {
2746
+ "type": "number",
2747
+ "default": 10,
2748
+ "description": "Số items per page (max: 100)"
2749
+ },
2750
+ "search": {
2751
+ "type": "string",
2752
+ "description": "Tìm kiếm theo tên model hoặc model ID"
2753
+ },
2754
+ "status": {
2755
+ "type": "string",
2756
+ "enum": [
2757
+ "queued",
2758
+ "validating_files",
2759
+ "running",
2760
+ "succeeded",
2761
+ "failed",
2762
+ "cancelled"
2763
+ ],
2764
+ "description": "Lọc theo trạng thái fine-tuning"
2765
+ },
2766
+ "provider": {
2767
+ "type": "string",
2768
+ "description": "Lọc theo provider (OPENAI, VERTEX_AI)"
2769
+ },
2770
+ "baseModel": {
2771
+ "type": "string",
2772
+ "description": "Lọc theo base model"
2773
+ },
2774
+ "active": {
2775
+ "type": "boolean",
2776
+ "description": "Lọc theo trạng thái active của model"
2777
+ },
2778
+ "sortBy": {
2779
+ "type": "string",
2780
+ "default": "createdAt",
2781
+ "description": "Sắp xếp theo trường (createdAt, finishedAt, trainedTokens)"
2782
+ },
2783
+ "sortOrder": {
2784
+ "type": "string",
2785
+ "default": "DESC",
2786
+ "description": "Thứ tự sắp xếp (ASC, DESC)"
2787
+ }
2788
+ },
2789
+ "additionalProperties": false
2790
+ },
2791
+ "headers": {
2792
+ "type": "object",
2793
+ "properties": {
2794
+ "x-workspace-id": {
2795
+ "type": "string",
2796
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2797
+ },
2798
+ "x-base-id": {
2799
+ "type": "string",
2800
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2801
+ }
2802
+ },
2803
+ "required": [
2804
+ "x-workspace-id"
2805
+ ],
2806
+ "additionalProperties": false
2807
+ }
2808
+ },
2809
+ "required": [
2810
+ "headers"
2811
+ ],
2812
+ "additionalProperties": false,
2813
+ "description": "Lấy danh sách tất cả models đã fine-tuned của user tool arguments"
2814
+ }
2815
+ },
2816
+ {
2817
+ "id": "models:userfinetuninghistorycontroller_getmodeldetail_v1",
2818
+ "moduleId": "models",
2819
+ "featureGroupId": "models.user-finetuning-data-history",
2820
+ "toolName": "redai_openapi_models_userfinetuninghistorycontroller_getmodeldetail_v1",
2821
+ "operationId": "userfinetuninghistorycontroller_getmodeldetail_v1",
2822
+ "title": "Lấy chi tiết model theo modelId.",
2823
+ "summary": "Lấy chi tiết model theo modelId.",
2824
+ "businessMeaning": "Lấy chi tiết model theo modelId.",
2825
+ "method": "GET",
2826
+ "path": "/v1/user/fine-tuning-history/models/{modelId}",
2827
+ "tags": [
2828
+ "User - Finetuning Data History"
2829
+ ],
2830
+ "keywords": [
2831
+ "models",
2832
+ "fine-tuning",
2833
+ "dataset",
2834
+ "conversation",
2835
+ "training",
2836
+ "job",
2837
+ "provider",
2838
+ "finetuning",
2839
+ "data",
2840
+ "history",
2841
+ "userfinetuninghistorycontroller",
2842
+ "getmodeldetail",
2843
+ "chi",
2844
+ "ti",
2845
+ "model",
2846
+ "theo",
2847
+ "id"
2848
+ ],
2849
+ "whenToUse": [
2850
+ "Lấy chi tiết model theo modelId."
2851
+ ],
2852
+ "whenNotToUse": [
2853
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2854
+ ],
2855
+ "riskLevel": "costly",
2856
+ "confirmationRequired": true,
2857
+ "requiresAuth": true,
2858
+ "parameterSummary": {
2859
+ "requiredFields": [
2860
+ "path.modelId"
2861
+ ],
2862
+ "topLevelRequired": [
2863
+ "path",
2864
+ "headers"
2865
+ ]
2866
+ },
2867
+ "parameterSchema": {
2868
+ "type": "object",
2869
+ "properties": {
2870
+ "path": {
2871
+ "type": "object",
2872
+ "properties": {
2873
+ "modelId": {
2874
+ "type": "string",
2875
+ "description": "Model ID (UUID)"
2876
+ }
2877
+ },
2878
+ "required": [
2879
+ "modelId"
2880
+ ],
2881
+ "additionalProperties": false
2882
+ },
2883
+ "headers": {
2884
+ "type": "object",
2885
+ "properties": {
2886
+ "x-workspace-id": {
2887
+ "type": "string",
2888
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2889
+ },
2890
+ "x-base-id": {
2891
+ "type": "string",
2892
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2893
+ }
2894
+ },
2895
+ "required": [
2896
+ "x-workspace-id"
2897
+ ],
2898
+ "additionalProperties": false
2899
+ }
2900
+ },
2901
+ "required": [
2902
+ "path",
2903
+ "headers"
2904
+ ],
2905
+ "additionalProperties": false,
2906
+ "description": "Lấy chi tiết model theo modelId tool arguments"
2907
+ }
2908
+ },
2909
+ {
2910
+ "id": "models:userfinetuningjobscontroller_cancelfinetuningjob_v1",
2911
+ "moduleId": "models",
2912
+ "featureGroupId": "models.user-finetuning-jobs",
2913
+ "toolName": "redai_openapi_models_userfinetuningjobscontroller_cancelfinetuningjob_v1",
2914
+ "operationId": "userfinetuningjobscontroller_cancelfinetuningjob_v1",
2915
+ "title": "Cancel fine-tuning job.",
2916
+ "summary": "Cancel fine-tuning job.",
2917
+ "businessMeaning": "Cancel fine-tuning job.",
2918
+ "method": "POST",
2919
+ "path": "/v1/user/fine-tuning-jobs/{jobId}/cancel",
2920
+ "tags": [
2921
+ "User - Finetuning Jobs"
2922
+ ],
2923
+ "keywords": [
2924
+ "models",
2925
+ "fine-tuning",
2926
+ "dataset",
2927
+ "conversation",
2928
+ "training",
2929
+ "job",
2930
+ "provider",
2931
+ "finetuning",
2932
+ "jobs",
2933
+ "userfinetuningjobscontroller",
2934
+ "cancelfinetuningjob",
2935
+ "cancel",
2936
+ "fine",
2937
+ "tuning"
2938
+ ],
2939
+ "whenToUse": [
2940
+ "Cancel fine-tuning job."
2941
+ ],
2942
+ "whenNotToUse": [
2943
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
2944
+ ],
2945
+ "riskLevel": "costly",
2946
+ "confirmationRequired": true,
2947
+ "requiresAuth": true,
2948
+ "parameterSummary": {
2949
+ "requiredFields": [
2950
+ "path.jobId"
2951
+ ],
2952
+ "topLevelRequired": [
2953
+ "path",
2954
+ "headers"
2955
+ ]
2956
+ },
2957
+ "parameterSchema": {
2958
+ "type": "object",
2959
+ "properties": {
2960
+ "path": {
2961
+ "type": "object",
2962
+ "properties": {
2963
+ "jobId": {
2964
+ "type": "string",
2965
+ "description": "Job ID từ provider"
2966
+ }
2967
+ },
2968
+ "required": [
2969
+ "jobId"
2970
+ ],
2971
+ "additionalProperties": false
2972
+ },
2973
+ "headers": {
2974
+ "type": "object",
2975
+ "properties": {
2976
+ "x-workspace-id": {
2977
+ "type": "string",
2978
+ "description": "Workspace ID của tenant hiện tại (UUID)"
2979
+ },
2980
+ "x-base-id": {
2981
+ "type": "string",
2982
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
2983
+ }
2984
+ },
2985
+ "required": [
2986
+ "x-workspace-id"
2987
+ ],
2988
+ "additionalProperties": false
2989
+ }
2990
+ },
2991
+ "required": [
2992
+ "path",
2993
+ "headers"
2994
+ ],
2995
+ "additionalProperties": false,
2996
+ "description": "Cancel fine-tuning job tool arguments"
2997
+ }
2998
+ },
2999
+ {
3000
+ "id": "models:userfinetuningjobscontroller_getfinetuningjobdetail_v1",
3001
+ "moduleId": "models",
3002
+ "featureGroupId": "models.user-finetuning-jobs",
3003
+ "toolName": "redai_openapi_models_userfinetuningjobscontroller_getfinetuningjobdetail_v1",
3004
+ "operationId": "userfinetuningjobscontroller_getfinetuningjobdetail_v1",
3005
+ "title": "Lấy chi tiết fine-tuning job.",
3006
+ "summary": "Lấy chi tiết fine-tuning job.",
3007
+ "businessMeaning": "Lấy chi tiết fine-tuning job.",
3008
+ "method": "GET",
3009
+ "path": "/v1/user/fine-tuning-jobs/{jobId}",
3010
+ "tags": [
3011
+ "User - Finetuning Jobs"
3012
+ ],
3013
+ "keywords": [
3014
+ "models",
3015
+ "fine-tuning",
3016
+ "dataset",
3017
+ "conversation",
3018
+ "training",
3019
+ "job",
3020
+ "provider",
3021
+ "finetuning",
3022
+ "jobs",
3023
+ "userfinetuningjobscontroller",
3024
+ "getfinetuningjobdetail",
3025
+ "chi",
3026
+ "ti",
3027
+ "fine",
3028
+ "tuning"
3029
+ ],
3030
+ "whenToUse": [
3031
+ "Lấy chi tiết fine-tuning job."
3032
+ ],
3033
+ "whenNotToUse": [
3034
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3035
+ ],
3036
+ "riskLevel": "costly",
3037
+ "confirmationRequired": true,
3038
+ "requiresAuth": true,
3039
+ "parameterSummary": {
3040
+ "requiredFields": [
3041
+ "path.jobId"
3042
+ ],
3043
+ "topLevelRequired": [
3044
+ "path",
3045
+ "headers"
3046
+ ]
3047
+ },
3048
+ "parameterSchema": {
3049
+ "type": "object",
3050
+ "properties": {
3051
+ "path": {
3052
+ "type": "object",
3053
+ "properties": {
3054
+ "jobId": {
3055
+ "type": "string",
3056
+ "description": "Job ID từ provider"
3057
+ }
3058
+ },
3059
+ "required": [
3060
+ "jobId"
3061
+ ],
3062
+ "additionalProperties": false
3063
+ },
3064
+ "headers": {
3065
+ "type": "object",
3066
+ "properties": {
3067
+ "x-workspace-id": {
3068
+ "type": "string",
3069
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3070
+ },
3071
+ "x-base-id": {
3072
+ "type": "string",
3073
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3074
+ }
3075
+ },
3076
+ "required": [
3077
+ "x-workspace-id"
3078
+ ],
3079
+ "additionalProperties": false
3080
+ }
3081
+ },
3082
+ "required": [
3083
+ "path",
3084
+ "headers"
3085
+ ],
3086
+ "additionalProperties": false,
3087
+ "description": "Lấy chi tiết fine-tuning job tool arguments"
3088
+ }
3089
+ },
3090
+ {
3091
+ "id": "models:userfinetuningjobscontroller_getfinetuningjobs_v1",
3092
+ "moduleId": "models",
3093
+ "featureGroupId": "models.user-finetuning-jobs",
3094
+ "toolName": "redai_openapi_models_userfinetuningjobscontroller_getfinetuningjobs_v1",
3095
+ "operationId": "userfinetuningjobscontroller_getfinetuningjobs_v1",
3096
+ "title": "Lấy danh sách fine-tuning jobs.",
3097
+ "summary": "Lấy danh sách fine-tuning jobs.",
3098
+ "businessMeaning": "Lấy danh sách fine-tuning jobs.",
3099
+ "method": "GET",
3100
+ "path": "/v1/user/fine-tuning-jobs",
3101
+ "tags": [
3102
+ "User - Finetuning Jobs"
3103
+ ],
3104
+ "keywords": [
3105
+ "models",
3106
+ "fine-tuning",
3107
+ "dataset",
3108
+ "conversation",
3109
+ "training",
3110
+ "job",
3111
+ "provider",
3112
+ "finetuning",
3113
+ "jobs",
3114
+ "userfinetuningjobscontroller",
3115
+ "getfinetuningjobs",
3116
+ "danh",
3117
+ "ch",
3118
+ "fine",
3119
+ "tuning"
3120
+ ],
3121
+ "whenToUse": [
3122
+ "Lấy danh sách fine-tuning jobs."
3123
+ ],
3124
+ "whenNotToUse": [
3125
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3126
+ ],
3127
+ "riskLevel": "costly",
3128
+ "confirmationRequired": true,
3129
+ "requiresAuth": true,
3130
+ "parameterSummary": {
3131
+ "requiredFields": [],
3132
+ "topLevelRequired": [
3133
+ "headers"
3134
+ ]
3135
+ },
3136
+ "parameterSchema": {
3137
+ "type": "object",
3138
+ "properties": {
3139
+ "query": {
3140
+ "type": "object",
3141
+ "properties": {
3142
+ "page": {
3143
+ "type": "number",
3144
+ "default": 1,
3145
+ "description": "Số trang"
3146
+ },
3147
+ "limit": {
3148
+ "type": "number",
3149
+ "default": 10,
3150
+ "description": "Số items per page"
3151
+ },
3152
+ "search": {
3153
+ "type": "string",
3154
+ "description": "Tìm kiếm theo job ID hoặc dataset name"
3155
+ },
3156
+ "searchBy": {
3157
+ "type": "string",
3158
+ "description": "Trường cần tìm kiếm (có thể chỉ định một hoặc nhiều trường, phân cách bằng dấu phẩy)"
3159
+ },
3160
+ "sortBy": {
3161
+ "type": "string",
3162
+ "description": "Trường cần sắp xếp"
3163
+ },
3164
+ "sortDirection": {
3165
+ "type": "string",
3166
+ "default": "DESC",
3167
+ "enum": [
3168
+ "ASC",
3169
+ "DESC"
3170
+ ],
3171
+ "description": "Hướng sắp xếp"
3172
+ },
3173
+ "provider": {
3174
+ "type": "string",
3175
+ "enum": [
3176
+ "OPENAI",
3177
+ "VERTEX_AI"
3178
+ ],
3179
+ "description": "Filter theo provider"
3180
+ },
3181
+ "status": {
3182
+ "type": "string",
3183
+ "enum": [
3184
+ "queued",
3185
+ "validating_files",
3186
+ "running",
3187
+ "succeeded",
3188
+ "failed",
3189
+ "cancelled"
3190
+ ],
3191
+ "description": "Filter theo status"
3192
+ }
3193
+ },
3194
+ "additionalProperties": false
3195
+ },
3196
+ "headers": {
3197
+ "type": "object",
3198
+ "properties": {
3199
+ "x-workspace-id": {
3200
+ "type": "string",
3201
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3202
+ },
3203
+ "x-base-id": {
3204
+ "type": "string",
3205
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3206
+ }
3207
+ },
3208
+ "required": [
3209
+ "x-workspace-id"
3210
+ ],
3211
+ "additionalProperties": false
3212
+ }
3213
+ },
3214
+ "required": [
3215
+ "headers"
3216
+ ],
3217
+ "additionalProperties": false,
3218
+ "description": "Lấy danh sách fine-tuning jobs tool arguments"
3219
+ }
3220
+ },
3221
+ {
3222
+ "id": "models:userfinetuningjobscontroller_getjobtimeline_v1",
3223
+ "moduleId": "models",
3224
+ "featureGroupId": "models.user-finetuning-jobs",
3225
+ "toolName": "redai_openapi_models_userfinetuningjobscontroller_getjobtimeline_v1",
3226
+ "operationId": "userfinetuningjobscontroller_getjobtimeline_v1",
3227
+ "title": "Lấy timeline đầy đủ của fine-tuning job.",
3228
+ "summary": "Lấy timeline đầy đủ của fine-tuning job.",
3229
+ "businessMeaning": "Lấy timeline đầy đủ của fine-tuning job.",
3230
+ "method": "GET",
3231
+ "path": "/v1/user/fine-tuning-jobs/{jobId}/timeline",
3232
+ "tags": [
3233
+ "User - Finetuning Jobs"
3234
+ ],
3235
+ "keywords": [
3236
+ "models",
3237
+ "fine-tuning",
3238
+ "dataset",
3239
+ "conversation",
3240
+ "training",
3241
+ "job",
3242
+ "provider",
3243
+ "finetuning",
3244
+ "jobs",
3245
+ "userfinetuningjobscontroller",
3246
+ "getjobtimeline",
3247
+ "timeline",
3248
+ "fine",
3249
+ "tuning"
3250
+ ],
3251
+ "whenToUse": [
3252
+ "Lấy timeline đầy đủ của fine-tuning job."
3253
+ ],
3254
+ "whenNotToUse": [
3255
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3256
+ ],
3257
+ "riskLevel": "costly",
3258
+ "confirmationRequired": true,
3259
+ "requiresAuth": true,
3260
+ "parameterSummary": {
3261
+ "requiredFields": [
3262
+ "path.jobId"
3263
+ ],
3264
+ "topLevelRequired": [
3265
+ "path",
3266
+ "headers"
3267
+ ]
3268
+ },
3269
+ "parameterSchema": {
3270
+ "type": "object",
3271
+ "properties": {
3272
+ "path": {
3273
+ "type": "object",
3274
+ "properties": {
3275
+ "jobId": {
3276
+ "type": "string",
3277
+ "description": "Job ID từ provider"
3278
+ }
3279
+ },
3280
+ "required": [
3281
+ "jobId"
3282
+ ],
3283
+ "additionalProperties": false
3284
+ },
3285
+ "headers": {
3286
+ "type": "object",
3287
+ "properties": {
3288
+ "x-workspace-id": {
3289
+ "type": "string",
3290
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3291
+ },
3292
+ "x-base-id": {
3293
+ "type": "string",
3294
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3295
+ }
3296
+ },
3297
+ "required": [
3298
+ "x-workspace-id"
3299
+ ],
3300
+ "additionalProperties": false
3301
+ }
3302
+ },
3303
+ "required": [
3304
+ "path",
3305
+ "headers"
3306
+ ],
3307
+ "additionalProperties": false,
3308
+ "description": "Lấy timeline đầy đủ của fine-tuning job tool arguments"
3309
+ }
3310
+ },
3311
+ {
3312
+ "id": "models:userfinetuningjobscontroller_getstatushistory_v1",
3313
+ "moduleId": "models",
3314
+ "featureGroupId": "models.user-finetuning-jobs",
3315
+ "toolName": "redai_openapi_models_userfinetuningjobscontroller_getstatushistory_v1",
3316
+ "operationId": "userfinetuningjobscontroller_getstatushistory_v1",
3317
+ "title": "Lấy lịch sử trạng thái fine-tuning.",
3318
+ "summary": "Lấy lịch sử trạng thái fine-tuning.",
3319
+ "businessMeaning": "Lấy lịch sử trạng thái fine-tuning.",
3320
+ "method": "GET",
3321
+ "path": "/v1/user/fine-tuning-jobs/{jobId}/status-history",
3322
+ "tags": [
3323
+ "User - Finetuning Jobs"
3324
+ ],
3325
+ "keywords": [
3326
+ "models",
3327
+ "fine-tuning",
3328
+ "dataset",
3329
+ "conversation",
3330
+ "training",
3331
+ "job",
3332
+ "provider",
3333
+ "finetuning",
3334
+ "jobs",
3335
+ "userfinetuningjobscontroller",
3336
+ "getstatushistory",
3337
+ "ch",
3338
+ "tr",
3339
+ "ng",
3340
+ "th",
3341
+ "fine",
3342
+ "tuning"
3343
+ ],
3344
+ "whenToUse": [
3345
+ "Lấy lịch sử trạng thái fine-tuning."
3346
+ ],
3347
+ "whenNotToUse": [
3348
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3349
+ ],
3350
+ "riskLevel": "costly",
3351
+ "confirmationRequired": true,
3352
+ "requiresAuth": true,
3353
+ "parameterSummary": {
3354
+ "requiredFields": [
3355
+ "path.jobId"
3356
+ ],
3357
+ "topLevelRequired": [
3358
+ "path",
3359
+ "headers"
3360
+ ]
3361
+ },
3362
+ "parameterSchema": {
3363
+ "type": "object",
3364
+ "properties": {
3365
+ "path": {
3366
+ "type": "object",
3367
+ "properties": {
3368
+ "jobId": {
3369
+ "type": "string",
3370
+ "description": "Job ID từ provider"
3371
+ }
3372
+ },
3373
+ "required": [
3374
+ "jobId"
3375
+ ],
3376
+ "additionalProperties": false
3377
+ },
3378
+ "query": {
3379
+ "type": "object",
3380
+ "properties": {
3381
+ "page": {
3382
+ "type": "number",
3383
+ "default": 1,
3384
+ "description": "Số trang (bắt đầu từ 1)"
3385
+ },
3386
+ "limit": {
3387
+ "type": "number",
3388
+ "default": 50,
3389
+ "description": "Số lượng items mỗi trang"
3390
+ }
3391
+ },
3392
+ "additionalProperties": false
3393
+ },
3394
+ "headers": {
3395
+ "type": "object",
3396
+ "properties": {
3397
+ "x-workspace-id": {
3398
+ "type": "string",
3399
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3400
+ },
3401
+ "x-base-id": {
3402
+ "type": "string",
3403
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3404
+ }
3405
+ },
3406
+ "required": [
3407
+ "x-workspace-id"
3408
+ ],
3409
+ "additionalProperties": false
3410
+ }
3411
+ },
3412
+ "required": [
3413
+ "path",
3414
+ "headers"
3415
+ ],
3416
+ "additionalProperties": false,
3417
+ "description": "Lấy lịch sử trạng thái fine-tuning tool arguments"
3418
+ }
3419
+ },
3420
+ {
3421
+ "id": "models:userfinetuningjobscontroller_streamjobprogress_v1",
3422
+ "moduleId": "models",
3423
+ "featureGroupId": "models.user-finetuning-jobs",
3424
+ "toolName": "redai_openapi_models_userfinetuningjobscontroller_streamjobprogress_v1",
3425
+ "operationId": "userfinetuningjobscontroller_streamjobprogress_v1",
3426
+ "title": "Monitor fine-tuning job progress via SSE.",
3427
+ "summary": "Monitor fine-tuning job progress via SSE.",
3428
+ "businessMeaning": "Monitor fine-tuning job progress via SSE.",
3429
+ "method": "GET",
3430
+ "path": "/v1/user/fine-tuning-jobs/{jobId}/stream",
3431
+ "tags": [
3432
+ "User - Finetuning Jobs"
3433
+ ],
3434
+ "keywords": [
3435
+ "models",
3436
+ "fine-tuning",
3437
+ "dataset",
3438
+ "conversation",
3439
+ "training",
3440
+ "job",
3441
+ "provider",
3442
+ "finetuning",
3443
+ "jobs",
3444
+ "userfinetuningjobscontroller",
3445
+ "streamjobprogress",
3446
+ "monitor",
3447
+ "fine",
3448
+ "tuning",
3449
+ "progress",
3450
+ "via",
3451
+ "sse"
3452
+ ],
3453
+ "whenToUse": [
3454
+ "Monitor fine-tuning job progress via SSE."
3455
+ ],
3456
+ "whenNotToUse": [
3457
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3458
+ ],
3459
+ "riskLevel": "costly",
3460
+ "confirmationRequired": true,
3461
+ "requiresAuth": true,
3462
+ "parameterSummary": {
3463
+ "requiredFields": [
3464
+ "path.jobId"
3465
+ ],
3466
+ "topLevelRequired": [
3467
+ "path",
3468
+ "headers"
3469
+ ]
3470
+ },
3471
+ "parameterSchema": {
3472
+ "type": "object",
3473
+ "properties": {
3474
+ "path": {
3475
+ "type": "object",
3476
+ "properties": {
3477
+ "jobId": {
3478
+ "type": "string",
3479
+ "description": "Job ID từ provider"
3480
+ }
3481
+ },
3482
+ "required": [
3483
+ "jobId"
3484
+ ],
3485
+ "additionalProperties": false
3486
+ },
3487
+ "headers": {
3488
+ "type": "object",
3489
+ "properties": {
3490
+ "x-workspace-id": {
3491
+ "type": "string",
3492
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3493
+ },
3494
+ "x-base-id": {
3495
+ "type": "string",
3496
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3497
+ }
3498
+ },
3499
+ "required": [
3500
+ "x-workspace-id"
3501
+ ],
3502
+ "additionalProperties": false
3503
+ }
3504
+ },
3505
+ "required": [
3506
+ "path",
3507
+ "headers"
3508
+ ],
3509
+ "additionalProperties": false,
3510
+ "description": "Monitor fine-tuning job progress via SSE tool arguments"
3511
+ }
3512
+ },
3513
+ {
3514
+ "id": "models:usermodelscontroller_getfinetunedmodels_v1",
3515
+ "moduleId": "models",
3516
+ "featureGroupId": "models.user-models",
3517
+ "toolName": "redai_openapi_models_usermodelscontroller_getfinetunedmodels_v1",
3518
+ "operationId": "usermodelscontroller_getfinetunedmodels_v1",
3519
+ "title": "Lấy danh sách fine-tuned models.",
3520
+ "summary": "Lấy danh sách fine-tuned models.",
3521
+ "businessMeaning": "Lấy danh sách fine-tuned models.",
3522
+ "method": "GET",
3523
+ "path": "/v1/user/models/fine-tuned",
3524
+ "tags": [
3525
+ "User - Models"
3526
+ ],
3527
+ "keywords": [
3528
+ "models",
3529
+ "fine-tuning",
3530
+ "dataset",
3531
+ "conversation",
3532
+ "training",
3533
+ "job",
3534
+ "provider",
3535
+ "usermodelscontroller",
3536
+ "getfinetunedmodels",
3537
+ "danh",
3538
+ "ch",
3539
+ "fine",
3540
+ "tuned"
3541
+ ],
3542
+ "whenToUse": [
3543
+ "Lấy danh sách fine-tuned models."
3544
+ ],
3545
+ "whenNotToUse": [],
3546
+ "riskLevel": "safe",
3547
+ "confirmationRequired": false,
3548
+ "requiresAuth": true,
3549
+ "parameterSummary": {
3550
+ "requiredFields": [],
3551
+ "topLevelRequired": [
3552
+ "headers"
3553
+ ]
3554
+ },
3555
+ "parameterSchema": {
3556
+ "type": "object",
3557
+ "properties": {
3558
+ "query": {
3559
+ "type": "object",
3560
+ "properties": {
3561
+ "page": {
3562
+ "type": "number",
3563
+ "default": 1,
3564
+ "description": "Số trang hiện tại (bắt đầu từ 1)"
3565
+ },
3566
+ "limit": {
3567
+ "type": "number",
3568
+ "default": 10,
3569
+ "description": "Số lượng bản ghi trên mỗi trang"
3570
+ },
3571
+ "search": {
3572
+ "type": "string",
3573
+ "description": "Tìm kiếm theo model name hoặc ID"
3574
+ },
3575
+ "searchBy": {
3576
+ "type": "string",
3577
+ "description": "Trường cần tìm kiếm (có thể chỉ định một hoặc nhiều trường, phân cách bằng dấu phẩy)"
3578
+ },
3579
+ "sortBy": {
3580
+ "type": "string",
3581
+ "description": "Trường cần sắp xếp"
3582
+ },
3583
+ "sortDirection": {
3584
+ "type": "string",
3585
+ "default": "DESC",
3586
+ "enum": [
3587
+ "ASC",
3588
+ "DESC"
3589
+ ],
3590
+ "description": "Hướng sắp xếp"
3591
+ },
3592
+ "provider": {
3593
+ "type": "string",
3594
+ "enum": [
3595
+ "OPENAI",
3596
+ "VERTEX_AI"
3597
+ ],
3598
+ "description": "Filter theo provider"
3599
+ },
3600
+ "active": {
3601
+ "type": "boolean",
3602
+ "description": "Filter theo trạng thái active"
3603
+ }
3604
+ },
3605
+ "additionalProperties": false
3606
+ },
3607
+ "headers": {
3608
+ "type": "object",
3609
+ "properties": {
3610
+ "x-workspace-id": {
3611
+ "type": "string",
3612
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3613
+ },
3614
+ "x-base-id": {
3615
+ "type": "string",
3616
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3617
+ }
3618
+ },
3619
+ "required": [
3620
+ "x-workspace-id"
3621
+ ],
3622
+ "additionalProperties": false
3623
+ }
3624
+ },
3625
+ "required": [
3626
+ "headers"
3627
+ ],
3628
+ "additionalProperties": false,
3629
+ "description": "Lấy danh sách fine-tuned models tool arguments"
3630
+ }
3631
+ },
3632
+ {
3633
+ "id": "models:usermodelscontroller_getfinetunesupportedmodels_v1",
3634
+ "moduleId": "models",
3635
+ "featureGroupId": "models.user-models",
3636
+ "toolName": "redai_openapi_models_usermodelscontroller_getfinetunesupportedmodels_v1",
3637
+ "operationId": "usermodelscontroller_getfinetunesupportedmodels_v1",
3638
+ "title": "Lấy danh sách models hỗ trợ fine-tuning.",
3639
+ "summary": "Lấy danh sách models hỗ trợ fine-tuning.",
3640
+ "businessMeaning": "Lấy danh sách models hỗ trợ fine-tuning.",
3641
+ "method": "GET",
3642
+ "path": "/v1/user/models/fine-tune-supported",
3643
+ "tags": [
3644
+ "User - Models"
3645
+ ],
3646
+ "keywords": [
3647
+ "models",
3648
+ "fine-tuning",
3649
+ "dataset",
3650
+ "conversation",
3651
+ "training",
3652
+ "job",
3653
+ "provider",
3654
+ "usermodelscontroller",
3655
+ "getfinetunesupportedmodels",
3656
+ "danh",
3657
+ "ch",
3658
+ "tr",
3659
+ "fine",
3660
+ "tuning"
3661
+ ],
3662
+ "whenToUse": [
3663
+ "Lấy danh sách models hỗ trợ fine-tuning."
3664
+ ],
3665
+ "whenNotToUse": [
3666
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3667
+ ],
3668
+ "riskLevel": "costly",
3669
+ "confirmationRequired": true,
3670
+ "requiresAuth": true,
3671
+ "parameterSummary": {
3672
+ "requiredFields": [],
3673
+ "topLevelRequired": [
3674
+ "headers"
3675
+ ]
3676
+ },
3677
+ "parameterSchema": {
3678
+ "type": "object",
3679
+ "properties": {
3680
+ "query": {
3681
+ "type": "object",
3682
+ "properties": {
3683
+ "page": {
3684
+ "type": "number",
3685
+ "default": 1,
3686
+ "description": "Số trang hiện tại (bắt đầu từ 1)"
3687
+ },
3688
+ "limit": {
3689
+ "type": "number",
3690
+ "default": 10,
3691
+ "description": "Số lượng bản ghi trên mỗi trang"
3692
+ },
3693
+ "search": {
3694
+ "type": "string",
3695
+ "description": "Từ khóa tìm kiếm (tìm kiếm theo họ tên, email, hoặc số điện thoại - không phân biệt chữ hoa/thường)"
3696
+ },
3697
+ "searchBy": {
3698
+ "type": "string",
3699
+ "description": "Trường cần tìm kiếm (có thể chỉ định một hoặc nhiều trường, phân cách bằng dấu phẩy)"
3700
+ },
3701
+ "sortBy": {
3702
+ "type": "string",
3703
+ "description": "Trường cần sắp xếp"
3704
+ },
3705
+ "sortDirection": {
3706
+ "type": "string",
3707
+ "default": "DESC",
3708
+ "enum": [
3709
+ "ASC",
3710
+ "DESC"
3711
+ ],
3712
+ "description": "Hướng sắp xếp"
3713
+ },
3714
+ "provider": {
3715
+ "type": "string",
3716
+ "enum": [
3717
+ "OPENAI",
3718
+ "VERTEX_AI"
3719
+ ],
3720
+ "description": "Filter theo provider hỗ trợ fine-tuning"
3721
+ }
3722
+ },
3723
+ "additionalProperties": false
3724
+ },
3725
+ "headers": {
3726
+ "type": "object",
3727
+ "properties": {
3728
+ "x-workspace-id": {
3729
+ "type": "string",
3730
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3731
+ },
3732
+ "x-base-id": {
3733
+ "type": "string",
3734
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3735
+ }
3736
+ },
3737
+ "required": [
3738
+ "x-workspace-id"
3739
+ ],
3740
+ "additionalProperties": false
3741
+ }
3742
+ },
3743
+ "required": [
3744
+ "headers"
3745
+ ],
3746
+ "additionalProperties": false,
3747
+ "description": "Lấy danh sách models hỗ trợ fine-tuning tool arguments"
3748
+ }
3749
+ },
3750
+ {
3751
+ "id": "models:usermodelscontroller_getmodeldetail_v1",
3752
+ "moduleId": "models",
3753
+ "featureGroupId": "models.user-models",
3754
+ "toolName": "redai_openapi_models_usermodelscontroller_getmodeldetail_v1",
3755
+ "operationId": "usermodelscontroller_getmodeldetail_v1",
3756
+ "title": "Lấy chi tiết model theo ID.",
3757
+ "summary": "Lấy chi tiết model theo ID.",
3758
+ "businessMeaning": "Lấy chi tiết model theo ID.",
3759
+ "method": "GET",
3760
+ "path": "/v1/user/models/{modelId}",
3761
+ "tags": [
3762
+ "User - Models"
3763
+ ],
3764
+ "keywords": [
3765
+ "models",
3766
+ "fine-tuning",
3767
+ "dataset",
3768
+ "conversation",
3769
+ "training",
3770
+ "job",
3771
+ "provider",
3772
+ "usermodelscontroller",
3773
+ "getmodeldetail",
3774
+ "chi",
3775
+ "ti",
3776
+ "model",
3777
+ "theo",
3778
+ "id"
3779
+ ],
3780
+ "whenToUse": [
3781
+ "Lấy chi tiết model theo ID."
3782
+ ],
3783
+ "whenNotToUse": [],
3784
+ "riskLevel": "safe",
3785
+ "confirmationRequired": false,
3786
+ "requiresAuth": true,
3787
+ "parameterSummary": {
3788
+ "requiredFields": [
3789
+ "path.modelId"
3790
+ ],
3791
+ "topLevelRequired": [
3792
+ "path",
3793
+ "headers"
3794
+ ]
3795
+ },
3796
+ "parameterSchema": {
3797
+ "type": "object",
3798
+ "properties": {
3799
+ "path": {
3800
+ "type": "object",
3801
+ "properties": {
3802
+ "modelId": {
3803
+ "type": "string"
3804
+ }
3805
+ },
3806
+ "required": [
3807
+ "modelId"
3808
+ ],
3809
+ "additionalProperties": false
3810
+ },
3811
+ "headers": {
3812
+ "type": "object",
3813
+ "properties": {
3814
+ "x-workspace-id": {
3815
+ "type": "string",
3816
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3817
+ },
3818
+ "x-base-id": {
3819
+ "type": "string",
3820
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3821
+ }
3822
+ },
3823
+ "required": [
3824
+ "x-workspace-id"
3825
+ ],
3826
+ "additionalProperties": false
3827
+ }
3828
+ },
3829
+ "required": [
3830
+ "path",
3831
+ "headers"
3832
+ ],
3833
+ "additionalProperties": false,
3834
+ "description": "Lấy chi tiết model theo ID tool arguments"
3835
+ }
3836
+ },
3837
+ {
3838
+ "id": "models:usermodelscontroller_getproviders_v1",
3839
+ "moduleId": "models",
3840
+ "featureGroupId": "models.user-models",
3841
+ "toolName": "redai_openapi_models_usermodelscontroller_getproviders_v1",
3842
+ "operationId": "usermodelscontroller_getproviders_v1",
3843
+ "title": "Danh sách provider LLM.",
3844
+ "summary": "Danh sách provider LLM.",
3845
+ "businessMeaning": "Danh sách provider LLM.",
3846
+ "method": "GET",
3847
+ "path": "/v1/user/models/providers",
3848
+ "tags": [
3849
+ "User - Models"
3850
+ ],
3851
+ "keywords": [
3852
+ "models",
3853
+ "fine-tuning",
3854
+ "dataset",
3855
+ "conversation",
3856
+ "training",
3857
+ "job",
3858
+ "provider",
3859
+ "usermodelscontroller",
3860
+ "getproviders",
3861
+ "danh",
3862
+ "ch",
3863
+ "llm"
3864
+ ],
3865
+ "whenToUse": [
3866
+ "Danh sách provider LLM."
3867
+ ],
3868
+ "whenNotToUse": [],
3869
+ "riskLevel": "safe",
3870
+ "confirmationRequired": false,
3871
+ "requiresAuth": true,
3872
+ "parameterSummary": {
3873
+ "requiredFields": [],
3874
+ "topLevelRequired": [
3875
+ "headers"
3876
+ ]
3877
+ },
3878
+ "parameterSchema": {
3879
+ "type": "object",
3880
+ "properties": {
3881
+ "query": {
3882
+ "type": "object",
3883
+ "properties": {
3884
+ "isOutputText": {
3885
+ "type": "boolean",
3886
+ "description": "Lọc providers có hỗ trợ output text"
3887
+ },
3888
+ "isOutputImage": {
3889
+ "type": "boolean",
3890
+ "description": "Lọc providers có hỗ trợ output image"
3891
+ },
3892
+ "isOutputVideo": {
3893
+ "type": "boolean",
3894
+ "description": "Lọc providers có hỗ trợ output video"
3895
+ },
3896
+ "isOutputVoice": {
3897
+ "type": "boolean",
3898
+ "description": "Lọc providers có hỗ trợ output voice"
3899
+ }
3900
+ },
3901
+ "additionalProperties": false
3902
+ },
3903
+ "headers": {
3904
+ "type": "object",
3905
+ "properties": {
3906
+ "x-workspace-id": {
3907
+ "type": "string",
3908
+ "description": "Workspace ID của tenant hiện tại (UUID)"
3909
+ },
3910
+ "x-base-id": {
3911
+ "type": "string",
3912
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
3913
+ }
3914
+ },
3915
+ "required": [
3916
+ "x-workspace-id"
3917
+ ],
3918
+ "additionalProperties": false
3919
+ }
3920
+ },
3921
+ "required": [
3922
+ "headers"
3923
+ ],
3924
+ "additionalProperties": false,
3925
+ "description": "Danh sách provider LLM tool arguments"
3926
+ }
3927
+ },
3928
+ {
3929
+ "id": "models:usermodelscontroller_getuserfinetunesupportedmodels_v1",
3930
+ "moduleId": "models",
3931
+ "featureGroupId": "models.user-models",
3932
+ "toolName": "redai_openapi_models_usermodelscontroller_getuserfinetunesupportedmodels_v1",
3933
+ "operationId": "usermodelscontroller_getuserfinetunesupportedmodels_v1",
3934
+ "title": "Lấy danh sách models hỗ trợ fine-tuning theo tích hợp.",
3935
+ "summary": "Lấy danh sách models hỗ trợ fine-tuning theo tích hợp.",
3936
+ "businessMeaning": "Lấy danh sách models hỗ trợ fine-tuning theo tích hợp.",
3937
+ "method": "GET",
3938
+ "path": "/v1/user/models/integrations/{integrationId}/fine-tune-supported",
3939
+ "tags": [
3940
+ "User - Models"
3941
+ ],
3942
+ "keywords": [
3943
+ "models",
3944
+ "fine-tuning",
3945
+ "dataset",
3946
+ "conversation",
3947
+ "training",
3948
+ "job",
3949
+ "provider",
3950
+ "usermodelscontroller",
3951
+ "getuserfinetunesupportedmodels",
3952
+ "danh",
3953
+ "ch",
3954
+ "tr",
3955
+ "fine",
3956
+ "tuning",
3957
+ "theo"
3958
+ ],
3959
+ "whenToUse": [
3960
+ "Lấy danh sách models hỗ trợ fine-tuning theo tích hợp."
3961
+ ],
3962
+ "whenNotToUse": [
3963
+ "Khong execute neu user chua xac nhan ro muc tieu va doi tuong tac dong."
3964
+ ],
3965
+ "riskLevel": "costly",
3966
+ "confirmationRequired": true,
3967
+ "requiresAuth": true,
3968
+ "parameterSummary": {
3969
+ "requiredFields": [
3970
+ "path.integrationId"
3971
+ ],
3972
+ "topLevelRequired": [
3973
+ "path",
3974
+ "headers"
3975
+ ]
3976
+ },
3977
+ "parameterSchema": {
3978
+ "type": "object",
3979
+ "properties": {
3980
+ "path": {
3981
+ "type": "object",
3982
+ "properties": {
3983
+ "integrationId": {
3984
+ "type": "string"
3985
+ }
3986
+ },
3987
+ "required": [
3988
+ "integrationId"
3989
+ ],
3990
+ "additionalProperties": false
3991
+ },
3992
+ "query": {
3993
+ "type": "object",
3994
+ "properties": {
3995
+ "page": {
3996
+ "type": "number",
3997
+ "default": 1,
3998
+ "description": "Số trang hiện tại (bắt đầu từ 1)"
3999
+ },
4000
+ "limit": {
4001
+ "type": "number",
4002
+ "default": 10,
4003
+ "description": "Số lượng bản ghi trên mỗi trang"
4004
+ },
4005
+ "search": {
4006
+ "type": "string",
4007
+ "description": "Từ khóa tìm kiếm (tìm kiếm theo họ tên, email, hoặc số điện thoại - không phân biệt chữ hoa/thường)"
4008
+ },
4009
+ "searchBy": {
4010
+ "type": "string",
4011
+ "description": "Trường cần tìm kiếm (có thể chỉ định một hoặc nhiều trường, phân cách bằng dấu phẩy)"
4012
+ },
4013
+ "sortBy": {
4014
+ "type": "string",
4015
+ "description": "Trường cần sắp xếp"
4016
+ },
4017
+ "sortDirection": {
4018
+ "type": "string",
4019
+ "default": "DESC",
4020
+ "enum": [
4021
+ "ASC",
4022
+ "DESC"
4023
+ ],
4024
+ "description": "Hướng sắp xếp"
4025
+ }
4026
+ },
4027
+ "additionalProperties": false
4028
+ },
4029
+ "headers": {
4030
+ "type": "object",
4031
+ "properties": {
4032
+ "x-workspace-id": {
4033
+ "type": "string",
4034
+ "description": "Workspace ID của tenant hiện tại (UUID)"
4035
+ },
4036
+ "x-base-id": {
4037
+ "type": "string",
4038
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
4039
+ }
4040
+ },
4041
+ "required": [
4042
+ "x-workspace-id"
4043
+ ],
4044
+ "additionalProperties": false
4045
+ }
4046
+ },
4047
+ "required": [
4048
+ "path",
4049
+ "headers"
4050
+ ],
4051
+ "additionalProperties": false,
4052
+ "description": "Lấy danh sách models hỗ trợ fine-tuning theo tích hợp tool arguments"
4053
+ }
4054
+ },
4055
+ {
4056
+ "id": "models:usermodelscontroller_getusermodelsbykeys_v1",
4057
+ "moduleId": "models",
4058
+ "featureGroupId": "models.user-models",
4059
+ "toolName": "redai_openapi_models_usermodelscontroller_getusermodelsbykeys_v1",
4060
+ "operationId": "usermodelscontroller_getusermodelsbykeys_v1",
4061
+ "title": "Lấy danh sách models theo user keys.",
4062
+ "summary": "Lấy danh sách models theo user keys.",
4063
+ "businessMeaning": "Lấy danh sách models theo user keys.",
4064
+ "method": "GET",
4065
+ "path": "/v1/user/models",
4066
+ "tags": [
4067
+ "User - Models"
4068
+ ],
4069
+ "keywords": [
4070
+ "models",
4071
+ "fine-tuning",
4072
+ "dataset",
4073
+ "conversation",
4074
+ "training",
4075
+ "job",
4076
+ "provider",
4077
+ "usermodelscontroller",
4078
+ "getusermodelsbykeys",
4079
+ "danh",
4080
+ "ch",
4081
+ "theo",
4082
+ "keys"
4083
+ ],
4084
+ "whenToUse": [
4085
+ "Lấy danh sách models theo user keys."
4086
+ ],
4087
+ "whenNotToUse": [],
4088
+ "riskLevel": "safe",
4089
+ "confirmationRequired": false,
4090
+ "requiresAuth": true,
4091
+ "parameterSummary": {
4092
+ "requiredFields": [
4093
+ "query.type",
4094
+ "query.typeModel"
4095
+ ],
4096
+ "topLevelRequired": [
4097
+ "query",
4098
+ "headers"
4099
+ ]
4100
+ },
4101
+ "parameterSchema": {
4102
+ "type": "object",
4103
+ "properties": {
4104
+ "query": {
4105
+ "type": "object",
4106
+ "properties": {
4107
+ "page": {
4108
+ "type": "number",
4109
+ "default": 1,
4110
+ "description": "Số trang hiện tại (bắt đầu từ 1)"
4111
+ },
4112
+ "limit": {
4113
+ "type": "number",
4114
+ "default": 10,
4115
+ "description": "Số lượng bản ghi trên mỗi trang"
4116
+ },
4117
+ "search": {
4118
+ "type": "string",
4119
+ "description": "Từ khóa tìm kiếm (tìm kiếm theo họ tên, email, hoặc số điện thoại - không phân biệt chữ hoa/thường)"
4120
+ },
4121
+ "searchBy": {
4122
+ "type": "string",
4123
+ "description": "Trường cần tìm kiếm (có thể chỉ định một hoặc nhiều trường, phân cách bằng dấu phẩy)"
4124
+ },
4125
+ "sortBy": {
4126
+ "type": "string",
4127
+ "description": "Trường cần sắp xếp"
4128
+ },
4129
+ "sortDirection": {
4130
+ "type": "string",
4131
+ "default": "DESC",
4132
+ "enum": [
4133
+ "ASC",
4134
+ "DESC"
4135
+ ],
4136
+ "description": "Hướng sắp xếp"
4137
+ },
4138
+ "type": {
4139
+ "type": "string",
4140
+ "default": "REDAI",
4141
+ "enum": [
4142
+ "SYSTEM",
4143
+ "USER",
4144
+ "FINE_TUNE",
4145
+ "REDAI"
4146
+ ],
4147
+ "description": "Loại model"
4148
+ },
4149
+ "keyllmId": {
4150
+ "type": "string",
4151
+ "description": "ID của key LLM"
4152
+ },
4153
+ "keyLlmId": {
4154
+ "type": "string",
4155
+ "description": "Alias của keyllmId (hỗ trợ camelCase từ frontend)"
4156
+ },
4157
+ "providers": {
4158
+ "type": "array",
4159
+ "items": {
4160
+ "type": "string",
4161
+ "enum": [
4162
+ "OPENAI",
4163
+ "ALIBABA_CODING_PLAN",
4164
+ "ANTHROPIC",
4165
+ "DEEPSEEK",
4166
+ "XAI",
4167
+ "VERTEX_AI",
4168
+ "OPENROUTER",
4169
+ "AZURE_AI",
4170
+ "PERPLEXITY_AI"
4171
+ ]
4172
+ },
4173
+ "description": "Danh sách nhà cung cấp model (hỗ trợ nhiều providers)"
4174
+ },
4175
+ "typeAgentId": {
4176
+ "type": "number",
4177
+ "description": "ID của type agent để filter models theo cấu hình TypeAgent"
4178
+ },
4179
+ "typeModel": {
4180
+ "type": "string",
4181
+ "enum": [
4182
+ "TEXT",
4183
+ "IMAGE",
4184
+ "VIDEO",
4185
+ "AUDIO",
4186
+ "VOICE",
4187
+ "MULTIMODAL"
4188
+ ],
4189
+ "description": "Loại model để filter (TEXT, IMAGE, VIDEO, AUDIO, MULTIMODAL)"
4190
+ }
4191
+ },
4192
+ "required": [
4193
+ "type",
4194
+ "typeModel"
4195
+ ],
4196
+ "additionalProperties": false
4197
+ },
4198
+ "headers": {
4199
+ "type": "object",
4200
+ "properties": {
4201
+ "x-workspace-id": {
4202
+ "type": "string",
4203
+ "description": "Workspace ID của tenant hiện tại (UUID)"
4204
+ },
4205
+ "x-base-id": {
4206
+ "type": "string",
4207
+ "description": "Base ID của tenant hiện tại (UUID, optional)"
4208
+ }
4209
+ },
4210
+ "required": [
4211
+ "x-workspace-id"
4212
+ ],
4213
+ "additionalProperties": false
4214
+ }
4215
+ },
4216
+ "required": [
4217
+ "query",
4218
+ "headers"
4219
+ ],
4220
+ "additionalProperties": false,
4221
+ "description": "Lấy danh sách models theo user keys tool arguments"
4222
+ }
4223
+ }
4224
+ ]
4225
+ }