Elffuss BraidHub

kikocis/llama-stack public

efac2a2f572e · 212.2 KiBRawPermalink
1<!DOCTYPE html>
2<html>
3
4<head>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <title>OpenAPI specification</title>
8 <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
9 <style>
10 body {
11 margin: 0;
12 padding: 0;
13 }
14
15 </style>
16 <script defer="defer" src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
17 <script defer="defer">
18 document.addEventListener("DOMContentLoaded", function () {
19 spec = {
20 "openapi": "3.1.0",
21 "info": {
22 "title": "[DRAFT] Llama Stack Specification",
23 "version": "0.0.1",
24 "description": "This is the specification of the llama stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. The specification is still in draft and subject to change.\n Generated at 2024-09-11 16:05:23.016090"
25 },
26 "servers": [
27 {
28 "url": "http://any-hosted-llama-stack.com"
29 }
30 ],
31 "paths": {
32 "/batch_inference/chat_completion": {
33 "post": {
34 "responses": {
35 "200": {
36 "description": "OK",
37 "content": {
38 "application/json": {
39 "schema": {
40 "$ref": "#/components/schemas/BatchChatCompletionResponse"
41 }
42 }
43 }
44 }
45 },
46 "tags": [
47 "BatchInference"
48 ],
49 "parameters": [],
50 "requestBody": {
51 "content": {
52 "application/json": {
53 "schema": {
54 "$ref": "#/components/schemas/BatchChatCompletionRequest"
55 }
56 }
57 },
58 "required": true
59 }
60 }
61 },
62 "/batch_inference/completion": {
63 "post": {
64 "responses": {
65 "200": {
66 "description": "OK",
67 "content": {
68 "application/json": {
69 "schema": {
70 "$ref": "#/components/schemas/BatchCompletionResponse"
71 }
72 }
73 }
74 }
75 },
76 "tags": [
77 "BatchInference"
78 ],
79 "parameters": [],
80 "requestBody": {
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/BatchCompletionRequest"
85 }
86 }
87 },
88 "required": true
89 }
90 }
91 },
92 "/evaluate/job/cancel": {
93 "post": {
94 "responses": {
95 "200": {
96 "description": "OK"
97 }
98 },
99 "tags": [
100 "Evaluations"
101 ],
102 "parameters": [],
103 "requestBody": {
104 "content": {
105 "application/json": {
106 "schema": {
107 "$ref": "#/components/schemas/CancelEvaluationJobRequest"
108 }
109 }
110 },
111 "required": true
112 }
113 }
114 },
115 "/post_training/job/cancel": {
116 "post": {
117 "responses": {
118 "200": {
119 "description": "OK"
120 }
121 },
122 "tags": [
123 "PostTraining"
124 ],
125 "parameters": [],
126 "requestBody": {
127 "content": {
128 "application/json": {
129 "schema": {
130 "$ref": "#/components/schemas/CancelTrainingJobRequest"
131 }
132 }
133 },
134 "required": true
135 }
136 }
137 },
138 "/inference/chat_completion": {
139 "post": {
140 "responses": {
141 "200": {
142 "description": "Chat completion response. **OR** SSE-stream of these events.",
143 "content": {
144 "text/event-stream": {
145 "schema": {
146 "oneOf": [
147 {
148 "$ref": "#/components/schemas/ChatCompletionResponse"
149 },
150 {
151 "$ref": "#/components/schemas/ChatCompletionResponseStreamChunk"
152 }
153 ]
154 }
155 }
156 }
157 }
158 },
159 "tags": [
160 "Inference"
161 ],
162 "parameters": [],
163 "requestBody": {
164 "content": {
165 "application/json": {
166 "schema": {
167 "$ref": "#/components/schemas/ChatCompletionRequest"
168 }
169 }
170 },
171 "required": true
172 }
173 }
174 },
175 "/inference/completion": {
176 "post": {
177 "responses": {
178 "200": {
179 "description": "Completion response. **OR** streamed completion response.",
180 "content": {
181 "application/json": {
182 "schema": {
183 "oneOf": [
184 {
185 "$ref": "#/components/schemas/CompletionResponse"
186 },
187 {
188 "$ref": "#/components/schemas/CompletionResponseStreamChunk"
189 }
190 ]
191 }
192 }
193 }
194 }
195 },
196 "tags": [
197 "Inference"
198 ],
199 "parameters": [],
200 "requestBody": {
201 "content": {
202 "application/json": {
203 "schema": {
204 "$ref": "#/components/schemas/CompletionRequest"
205 }
206 }
207 },
208 "required": true
209 }
210 }
211 },
212 "/agentic_system/create": {
213 "post": {
214 "responses": {
215 "200": {
216 "description": "OK",
217 "content": {
218 "application/json": {
219 "schema": {
220 "$ref": "#/components/schemas/AgenticSystemCreateResponse"
221 }
222 }
223 }
224 }
225 },
226 "tags": [
227 "AgenticSystem"
228 ],
229 "parameters": [],
230 "requestBody": {
231 "content": {
232 "application/json": {
233 "schema": {
234 "$ref": "#/components/schemas/CreateAgenticSystemRequest"
235 }
236 }
237 },
238 "required": true
239 }
240 }
241 },
242 "/agentic_system/session/create": {
243 "post": {
244 "responses": {
245 "200": {
246 "description": "OK",
247 "content": {
248 "application/json": {
249 "schema": {
250 "$ref": "#/components/schemas/AgenticSystemSessionCreateResponse"
251 }
252 }
253 }
254 }
255 },
256 "tags": [
257 "AgenticSystem"
258 ],
259 "parameters": [],
260 "requestBody": {
261 "content": {
262 "application/json": {
263 "schema": {
264 "$ref": "#/components/schemas/CreateAgenticSystemSessionRequest"
265 }
266 }
267 },
268 "required": true
269 }
270 }
271 },
272 "/agentic_system/turn/create": {
273 "post": {
274 "responses": {
275 "200": {
276 "description": "OK",
277 "content": {
278 "text/event-stream": {
279 "schema": {
280 "$ref": "#/components/schemas/AgenticSystemTurnResponseStreamChunk"
281 }
282 }
283 }
284 }
285 },
286 "tags": [
287 "AgenticSystem"
288 ],
289 "parameters": [],
290 "requestBody": {
291 "content": {
292 "application/json": {
293 "schema": {
294 "$ref": "#/components/schemas/CreateAgenticSystemTurnRequest"
295 }
296 }
297 },
298 "required": true
299 }
300 }
301 },
302 "/datasets/create": {
303 "post": {
304 "responses": {
305 "200": {
306 "description": "OK"
307 }
308 },
309 "tags": [
310 "Datasets"
311 ],
312 "parameters": [],
313 "requestBody": {
314 "content": {
315 "application/json": {
316 "schema": {
317 "$ref": "#/components/schemas/CreateDatasetRequest"
318 }
319 }
320 },
321 "required": true
322 }
323 }
324 },
325 "/memory_banks/create": {
326 "post": {
327 "responses": {
328 "200": {
329 "description": "OK",
330 "content": {
331 "application/json": {
332 "schema": {
333 "$ref": "#/components/schemas/MemoryBank"
334 }
335 }
336 }
337 }
338 },
339 "tags": [
340 "Memory"
341 ],
342 "parameters": [],
343 "requestBody": {
344 "content": {
345 "application/json": {
346 "schema": {
347 "$ref": "#/components/schemas/CreateMemoryBankRequest"
348 }
349 }
350 },
351 "required": true
352 }
353 }
354 },
355 "/agentic_system/delete": {
356 "post": {
357 "responses": {
358 "200": {
359 "description": "OK"
360 }
361 },
362 "tags": [
363 "AgenticSystem"
364 ],
365 "parameters": [],
366 "requestBody": {
367 "content": {
368 "application/json": {
369 "schema": {
370 "$ref": "#/components/schemas/DeleteAgenticSystemRequest"
371 }
372 }
373 },
374 "required": true
375 }
376 }
377 },
378 "/agentic_system/session/delete": {
379 "post": {
380 "responses": {
381 "200": {
382 "description": "OK"
383 }
384 },
385 "tags": [
386 "AgenticSystem"
387 ],
388 "parameters": [],
389 "requestBody": {
390 "content": {
391 "application/json": {
392 "schema": {
393 "$ref": "#/components/schemas/DeleteAgenticSystemSessionRequest"
394 }
395 }
396 },
397 "required": true
398 }
399 }
400 },
401 "/datasets/delete": {
402 "post": {
403 "responses": {
404 "200": {
405 "description": "OK"
406 }
407 },
408 "tags": [
409 "Datasets"
410 ],
411 "parameters": [],
412 "requestBody": {
413 "content": {
414 "application/json": {
415 "schema": {
416 "$ref": "#/components/schemas/DeleteDatasetRequest"
417 }
418 }
419 },
420 "required": true
421 }
422 }
423 },
424 "/memory_bank/documents/delete": {
425 "post": {
426 "responses": {
427 "200": {
428 "description": "OK"
429 }
430 },
431 "tags": [
432 "Memory"
433 ],
434 "parameters": [],
435 "requestBody": {
436 "content": {
437 "application/json": {
438 "schema": {
439 "$ref": "#/components/schemas/DeleteDocumentsRequest"
440 }
441 }
442 },
443 "required": true
444 }
445 }
446 },
447 "/memory_banks/drop": {
448 "post": {
449 "responses": {
450 "200": {
451 "description": "OK",
452 "content": {
453 "application/json": {
454 "schema": {
455 "type": "string"
456 }
457 }
458 }
459 }
460 },
461 "tags": [
462 "Memory"
463 ],
464 "parameters": [],
465 "requestBody": {
466 "content": {
467 "application/json": {
468 "schema": {
469 "$ref": "#/components/schemas/DropMemoryBankRequest"
470 }
471 }
472 },
473 "required": true
474 }
475 }
476 },
477 "/inference/embeddings": {
478 "post": {
479 "responses": {
480 "200": {
481 "description": "OK",
482 "content": {
483 "application/json": {
484 "schema": {
485 "$ref": "#/components/schemas/EmbeddingsResponse"
486 }
487 }
488 }
489 }
490 },
491 "tags": [
492 "Inference"
493 ],
494 "parameters": [],
495 "requestBody": {
496 "content": {
497 "application/json": {
498 "schema": {
499 "$ref": "#/components/schemas/EmbeddingsRequest"
500 }
501 }
502 },
503 "required": true
504 }
505 }
506 },
507 "/evaluate/question_answering/": {
508 "post": {
509 "responses": {
510 "200": {
511 "description": "OK",
512 "content": {
513 "application/json": {
514 "schema": {
515 "$ref": "#/components/schemas/EvaluationJob"
516 }
517 }
518 }
519 }
520 },
521 "tags": [
522 "Evaluations"
523 ],
524 "parameters": [],
525 "requestBody": {
526 "content": {
527 "application/json": {
528 "schema": {
529 "$ref": "#/components/schemas/EvaluateQuestionAnsweringRequest"
530 }
531 }
532 },
533 "required": true
534 }
535 }
536 },
537 "/evaluate/summarization/": {
538 "post": {
539 "responses": {
540 "200": {
541 "description": "OK",
542 "content": {
543 "application/json": {
544 "schema": {
545 "$ref": "#/components/schemas/EvaluationJob"
546 }
547 }
548 }
549 }
550 },
551 "tags": [
552 "Evaluations"
553 ],
554 "parameters": [],
555 "requestBody": {
556 "content": {
557 "application/json": {
558 "schema": {
559 "$ref": "#/components/schemas/EvaluateSummarizationRequest"
560 }
561 }
562 },
563 "required": true
564 }
565 }
566 },
567 "/evaluate/text_generation/": {
568 "post": {
569 "responses": {
570 "200": {
571 "description": "OK",
572 "content": {
573 "application/json": {
574 "schema": {
575 "$ref": "#/components/schemas/EvaluationJob"
576 }
577 }
578 }
579 }
580 },
581 "tags": [
582 "Evaluations"
583 ],
584 "parameters": [],
585 "requestBody": {
586 "content": {
587 "application/json": {
588 "schema": {
589 "$ref": "#/components/schemas/EvaluateTextGenerationRequest"
590 }
591 }
592 },
593 "required": true
594 }
595 }
596 },
597 "/agentic_system/session/get": {
598 "post": {
599 "responses": {
600 "200": {
601 "description": "OK",
602 "content": {
603 "application/json": {
604 "schema": {
605 "$ref": "#/components/schemas/Session"
606 }
607 }
608 }
609 }
610 },
611 "tags": [
612 "AgenticSystem"
613 ],
614 "parameters": [
615 {
616 "name": "agent_id",
617 "in": "query",
618 "required": true,
619 "schema": {
620 "type": "string"
621 }
622 },
623 {
624 "name": "session_id",
625 "in": "query",
626 "required": true,
627 "schema": {
628 "type": "string"
629 }
630 }
631 ],
632 "requestBody": {
633 "content": {
634 "application/json": {
635 "schema": {
636 "$ref": "#/components/schemas/GetAgenticSystemSessionRequest"
637 }
638 }
639 },
640 "required": true
641 }
642 }
643 },
644 "/agentic_system/step/get": {
645 "get": {
646 "responses": {
647 "200": {
648 "description": "OK",
649 "content": {
650 "application/json": {
651 "schema": {
652 "$ref": "#/components/schemas/AgenticSystemStepResponse"
653 }
654 }
655 }
656 }
657 },
658 "tags": [
659 "AgenticSystem"
660 ],
661 "parameters": [
662 {
663 "name": "agent_id",
664 "in": "query",
665 "required": true,
666 "schema": {
667 "type": "string"
668 }
669 },
670 {
671 "name": "turn_id",
672 "in": "query",
673 "required": true,
674 "schema": {
675 "type": "string"
676 }
677 },
678 {
679 "name": "step_id",
680 "in": "query",
681 "required": true,
682 "schema": {
683 "type": "string"
684 }
685 }
686 ]
687 }
688 },
689 "/agentic_system/turn/get": {
690 "get": {
691 "responses": {
692 "200": {
693 "description": "OK",
694 "content": {
695 "application/json": {
696 "schema": {
697 "$ref": "#/components/schemas/Turn"
698 }
699 }
700 }
701 }
702 },
703 "tags": [
704 "AgenticSystem"
705 ],
706 "parameters": [
707 {
708 "name": "agent_id",
709 "in": "query",
710 "required": true,
711 "schema": {
712 "type": "string"
713 }
714 },
715 {
716 "name": "turn_id",
717 "in": "query",
718 "required": true,
719 "schema": {
720 "type": "string"
721 }
722 }
723 ]
724 }
725 },
726 "/datasets/get": {
727 "get": {
728 "responses": {
729 "200": {
730 "description": "OK",
731 "content": {
732 "application/json": {
733 "schema": {
734 "$ref": "#/components/schemas/TrainEvalDataset"
735 }
736 }
737 }
738 }
739 },
740 "tags": [
741 "Datasets"
742 ],
743 "parameters": [
744 {
745 "name": "dataset_uuid",
746 "in": "query",
747 "required": true,
748 "schema": {
749 "type": "string"
750 }
751 }
752 ]
753 }
754 },
755 "/memory_bank/documents/get": {
756 "post": {
757 "responses": {
758 "200": {
759 "description": "OK",
760 "content": {
761 "application/jsonl": {
762 "schema": {
763 "$ref": "#/components/schemas/MemoryBankDocument"
764 }
765 }
766 }
767 }
768 },
769 "tags": [
770 "Memory"
771 ],
772 "parameters": [
773 {
774 "name": "bank_id",
775 "in": "query",
776 "required": true,
777 "schema": {
778 "type": "string"
779 }
780 }
781 ],
782 "requestBody": {
783 "content": {
784 "application/json": {
785 "schema": {
786 "$ref": "#/components/schemas/GetDocumentsRequest"
787 }
788 }
789 },
790 "required": true
791 }
792 }
793 },
794 "/evaluate/job/artifacts": {
795 "get": {
796 "responses": {
797 "200": {
798 "description": "OK",
799 "content": {
800 "application/json": {
801 "schema": {
802 "$ref": "#/components/schemas/EvaluationJobArtifactsResponse"
803 }
804 }
805 }
806 }
807 },
808 "tags": [
809 "Evaluations"
810 ],
811 "parameters": [
812 {
813 "name": "job_uuid",
814 "in": "query",
815 "required": true,
816 "schema": {
817 "type": "string"
818 }
819 }
820 ]
821 }
822 },
823 "/evaluate/job/logs": {
824 "get": {
825 "responses": {
826 "200": {
827 "description": "OK",
828 "content": {
829 "application/json": {
830 "schema": {
831 "$ref": "#/components/schemas/EvaluationJobLogStream"
832 }
833 }
834 }
835 }
836 },
837 "tags": [
838 "Evaluations"
839 ],
840 "parameters": [
841 {
842 "name": "job_uuid",
843 "in": "query",
844 "required": true,
845 "schema": {
846 "type": "string"
847 }
848 }
849 ]
850 }
851 },
852 "/evaluate/job/status": {
853 "get": {
854 "responses": {
855 "200": {
856 "description": "OK",
857 "content": {
858 "application/json": {
859 "schema": {
860 "$ref": "#/components/schemas/EvaluationJobStatusResponse"
861 }
862 }
863 }
864 }
865 },
866 "tags": [
867 "Evaluations"
868 ],
869 "parameters": [
870 {
871 "name": "job_uuid",
872 "in": "query",
873 "required": true,
874 "schema": {
875 "type": "string"
876 }
877 }
878 ]
879 }
880 },
881 "/evaluate/jobs": {
882 "get": {
883 "responses": {
884 "200": {
885 "description": "OK",
886 "content": {
887 "application/jsonl": {
888 "schema": {
889 "$ref": "#/components/schemas/EvaluationJob"
890 }
891 }
892 }
893 }
894 },
895 "tags": [
896 "Evaluations"
897 ],
898 "parameters": []
899 }
900 },
901 "/memory_banks/get": {
902 "get": {
903 "responses": {
904 "200": {
905 "description": "OK",
906 "content": {
907 "application/json": {
908 "schema": {
909 "oneOf": [
910 {
911 "$ref": "#/components/schemas/MemoryBank"
912 },
913 {
914 "type": "null"
915 }
916 ]
917 }
918 }
919 }
920 }
921 },
922 "tags": [
923 "Memory"
924 ],
925 "parameters": [
926 {
927 "name": "bank_id",
928 "in": "query",
929 "required": true,
930 "schema": {
931 "type": "string"
932 }
933 }
934 ]
935 }
936 },
937 "/telemetry/get_trace": {
938 "get": {
939 "responses": {
940 "200": {
941 "description": "OK",
942 "content": {
943 "application/json": {
944 "schema": {
945 "$ref": "#/components/schemas/Trace"
946 }
947 }
948 }
949 }
950 },
951 "tags": [
952 "Telemetry"
953 ],
954 "parameters": [
955 {
956 "name": "trace_id",
957 "in": "query",
958 "required": true,
959 "schema": {
960 "type": "string"
961 }
962 }
963 ]
964 }
965 },
966 "/post_training/job/artifacts": {
967 "get": {
968 "responses": {
969 "200": {
970 "description": "OK",
971 "content": {
972 "application/json": {
973 "schema": {
974 "$ref": "#/components/schemas/PostTrainingJobArtifactsResponse"
975 }
976 }
977 }
978 }
979 },
980 "tags": [
981 "PostTraining"
982 ],
983 "parameters": [
984 {
985 "name": "job_uuid",
986 "in": "query",
987 "required": true,
988 "schema": {
989 "type": "string"
990 }
991 }
992 ]
993 }
994 },
995 "/post_training/job/logs": {
996 "get": {
997 "responses": {
998 "200": {
999 "description": "OK",
1000 "content": {
1001 "application/json": {
1002 "schema": {
1003 "$ref": "#/components/schemas/PostTrainingJobLogStream"
1004 }
1005 }
1006 }
1007 }
1008 },
1009 "tags": [
1010 "PostTraining"
1011 ],
1012 "parameters": [
1013 {
1014 "name": "job_uuid",
1015 "in": "query",
1016 "required": true,
1017 "schema": {
1018 "type": "string"
1019 }
1020 }
1021 ]
1022 }
1023 },
1024 "/post_training/job/status": {
1025 "get": {
1026 "responses": {
1027 "200": {
1028 "description": "OK",
1029 "content": {
1030 "application/json": {
1031 "schema": {
1032 "$ref": "#/components/schemas/PostTrainingJobStatusResponse"
1033 }
1034 }
1035 }
1036 }
1037 },
1038 "tags": [
1039 "PostTraining"
1040 ],
1041 "parameters": [
1042 {
1043 "name": "job_uuid",
1044 "in": "query",
1045 "required": true,
1046 "schema": {
1047 "type": "string"
1048 }
1049 }
1050 ]
1051 }
1052 },
1053 "/post_training/jobs": {
1054 "get": {
1055 "responses": {
1056 "200": {
1057 "description": "OK",
1058 "content": {
1059 "application/jsonl": {
1060 "schema": {
1061 "$ref": "#/components/schemas/PostTrainingJob"
1062 }
1063 }
1064 }
1065 }
1066 },
1067 "tags": [
1068 "PostTraining"
1069 ],
1070 "parameters": []
1071 }
1072 },
1073 "/memory_bank/insert": {
1074 "post": {
1075 "responses": {
1076 "200": {
1077 "description": "OK"
1078 }
1079 },
1080 "tags": [
1081 "Memory"
1082 ],
1083 "parameters": [],
1084 "requestBody": {
1085 "content": {
1086 "application/json": {
1087 "schema": {
1088 "$ref": "#/components/schemas/InsertDocumentsRequest"
1089 }
1090 }
1091 },
1092 "required": true
1093 }
1094 }
1095 },
1096 "/memory_banks/list": {
1097 "get": {
1098 "responses": {
1099 "200": {
1100 "description": "OK",
1101 "content": {
1102 "application/jsonl": {
1103 "schema": {
1104 "$ref": "#/components/schemas/MemoryBank"
1105 }
1106 }
1107 }
1108 }
1109 },
1110 "tags": [
1111 "Memory"
1112 ],
1113 "parameters": []
1114 }
1115 },
1116 "/telemetry/log_event": {
1117 "post": {
1118 "responses": {
1119 "200": {
1120 "description": "OK"
1121 }
1122 },
1123 "tags": [
1124 "Telemetry"
1125 ],
1126 "parameters": [],
1127 "requestBody": {
1128 "content": {
1129 "application/json": {
1130 "schema": {
1131 "$ref": "#/components/schemas/LogEventRequest"
1132 }
1133 }
1134 },
1135 "required": true
1136 }
1137 }
1138 },
1139 "/post_training/preference_optimize": {
1140 "post": {
1141 "responses": {
1142 "200": {
1143 "description": "OK",
1144 "content": {
1145 "application/json": {
1146 "schema": {
1147 "$ref": "#/components/schemas/PostTrainingJob"
1148 }
1149 }
1150 }
1151 }
1152 },
1153 "tags": [
1154 "PostTraining"
1155 ],
1156 "parameters": [],
1157 "requestBody": {
1158 "content": {
1159 "application/json": {
1160 "schema": {
1161 "$ref": "#/components/schemas/PreferenceOptimizeRequest"
1162 }
1163 }
1164 },
1165 "required": true
1166 }
1167 }
1168 },
1169 "/memory_bank/query": {
1170 "post": {
1171 "responses": {
1172 "200": {
1173 "description": "OK",
1174 "content": {
1175 "application/json": {
1176 "schema": {
1177 "$ref": "#/components/schemas/QueryDocumentsResponse"
1178 }
1179 }
1180 }
1181 }
1182 },
1183 "tags": [
1184 "Memory"
1185 ],
1186 "parameters": [],
1187 "requestBody": {
1188 "content": {
1189 "application/json": {
1190 "schema": {
1191 "$ref": "#/components/schemas/QueryDocumentsRequest"
1192 }
1193 }
1194 },
1195 "required": true
1196 }
1197 }
1198 },
1199 "/reward_scoring/score": {
1200 "post": {
1201 "responses": {
1202 "200": {
1203 "description": "OK",
1204 "content": {
1205 "application/json": {
1206 "schema": {
1207 "$ref": "#/components/schemas/RewardScoringResponse"
1208 }
1209 }
1210 }
1211 }
1212 },
1213 "tags": [
1214 "RewardScoring"
1215 ],
1216 "parameters": [],
1217 "requestBody": {
1218 "content": {
1219 "application/json": {
1220 "schema": {
1221 "$ref": "#/components/schemas/RewardScoreRequest"
1222 }
1223 }
1224 },
1225 "required": true
1226 }
1227 }
1228 },
1229 "/safety/run_shields": {
1230 "post": {
1231 "responses": {
1232 "200": {
1233 "description": "OK",
1234 "content": {
1235 "application/json": {
1236 "schema": {
1237 "$ref": "#/components/schemas/RunShieldResponse"
1238 }
1239 }
1240 }
1241 }
1242 },
1243 "tags": [
1244 "Safety"
1245 ],
1246 "parameters": [],
1247 "requestBody": {
1248 "content": {
1249 "application/json": {
1250 "schema": {
1251 "$ref": "#/components/schemas/RunShieldsRequest"
1252 }
1253 }
1254 },
1255 "required": true
1256 }
1257 }
1258 },
1259 "/post_training/supervised_fine_tune": {
1260 "post": {
1261 "responses": {
1262 "200": {
1263 "description": "OK",
1264 "content": {
1265 "application/json": {
1266 "schema": {
1267 "$ref": "#/components/schemas/PostTrainingJob"
1268 }
1269 }
1270 }
1271 }
1272 },
1273 "tags": [
1274 "PostTraining"
1275 ],
1276 "parameters": [],
1277 "requestBody": {
1278 "content": {
1279 "application/json": {
1280 "schema": {
1281 "$ref": "#/components/schemas/SupervisedFineTuneRequest"
1282 }
1283 }
1284 },
1285 "required": true
1286 }
1287 }
1288 },
1289 "/synthetic_data_generation/generate": {
1290 "post": {
1291 "responses": {
1292 "200": {
1293 "description": "OK",
1294 "content": {
1295 "application/json": {
1296 "schema": {
1297 "$ref": "#/components/schemas/SyntheticDataGenerationResponse"
1298 }
1299 }
1300 }
1301 }
1302 },
1303 "tags": [
1304 "SyntheticDataGeneration"
1305 ],
1306 "parameters": [],
1307 "requestBody": {
1308 "content": {
1309 "application/json": {
1310 "schema": {
1311 "$ref": "#/components/schemas/SyntheticDataGenerateRequest"
1312 }
1313 }
1314 },
1315 "required": true
1316 }
1317 }
1318 },
1319 "/memory_bank/update": {
1320 "post": {
1321 "responses": {
1322 "200": {
1323 "description": "OK"
1324 }
1325 },
1326 "tags": [
1327 "Memory"
1328 ],
1329 "parameters": [],
1330 "requestBody": {
1331 "content": {
1332 "application/json": {
1333 "schema": {
1334 "$ref": "#/components/schemas/UpdateDocumentsRequest"
1335 }
1336 }
1337 },
1338 "required": true
1339 }
1340 }
1341 }
1342 },
1343 "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
1344 "components": {
1345 "schemas": {
1346 "BuiltinTool": {
1347 "type": "string",
1348 "enum": [
1349 "brave_search",
1350 "wolfram_alpha",
1351 "photogen",
1352 "code_interpreter"
1353 ]
1354 },
1355 "CompletionMessage": {
1356 "type": "object",
1357 "properties": {
1358 "role": {
1359 "type": "string",
1360 "const": "assistant"
1361 },
1362 "content": {
1363 "oneOf": [
1364 {
1365 "type": "string"
1366 },
1367 {
1368 "type": "array",
1369 "items": {
1370 "type": "string"
1371 }
1372 }
1373 ]
1374 },
1375 "stop_reason": {
1376 "$ref": "#/components/schemas/StopReason"
1377 },
1378 "tool_calls": {
1379 "type": "array",
1380 "items": {
1381 "$ref": "#/components/schemas/ToolCall"
1382 }
1383 }
1384 },
1385 "additionalProperties": false,
1386 "required": [
1387 "role",
1388 "content",
1389 "stop_reason",
1390 "tool_calls"
1391 ]
1392 },
1393 "SamplingParams": {
1394 "type": "object",
1395 "properties": {
1396 "strategy": {
1397 "$ref": "#/components/schemas/SamplingStrategy"
1398 },
1399 "temperature": {
1400 "type": "number"
1401 },
1402 "top_p": {
1403 "type": "number"
1404 },
1405 "top_k": {
1406 "type": "integer"
1407 },
1408 "max_tokens": {
1409 "type": "integer"
1410 },
1411 "repetition_penalty": {
1412 "type": "number"
1413 }
1414 },
1415 "additionalProperties": false,
1416 "required": [
1417 "strategy"
1418 ]
1419 },
1420 "SamplingStrategy": {
1421 "type": "string",
1422 "enum": [
1423 "greedy",
1424 "top_p",
1425 "top_k"
1426 ]
1427 },
1428 "StopReason": {
1429 "type": "string",
1430 "enum": [
1431 "end_of_turn",
1432 "end_of_message",
1433 "out_of_tokens"
1434 ]
1435 },
1436 "SystemMessage": {
1437 "type": "object",
1438 "properties": {
1439 "role": {
1440 "type": "string",
1441 "const": "system"
1442 },
1443 "content": {
1444 "oneOf": [
1445 {
1446 "type": "string"
1447 },
1448 {
1449 "type": "array",
1450 "items": {
1451 "type": "string"
1452 }
1453 }
1454 ]
1455 }
1456 },
1457 "additionalProperties": false,
1458 "required": [
1459 "role",
1460 "content"
1461 ]
1462 },
1463 "ToolCall": {
1464 "type": "object",
1465 "properties": {
1466 "call_id": {
1467 "type": "string"
1468 },
1469 "tool_name": {
1470 "oneOf": [
1471 {
1472 "$ref": "#/components/schemas/BuiltinTool"
1473 },
1474 {
1475 "type": "string"
1476 }
1477 ]
1478 },
1479 "arguments": {
1480 "type": "object",
1481 "additionalProperties": {
1482 "oneOf": [
1483 {
1484 "type": "string"
1485 },
1486 {
1487 "type": "integer"
1488 },
1489 {
1490 "type": "number"
1491 },
1492 {
1493 "type": "boolean"
1494 },
1495 {
1496 "type": "null"
1497 },
1498 {
1499 "type": "array",
1500 "items": {
1501 "oneOf": [
1502 {
1503 "type": "string"
1504 },
1505 {
1506 "type": "integer"
1507 },
1508 {
1509 "type": "number"
1510 },
1511 {
1512 "type": "boolean"
1513 },
1514 {
1515 "type": "null"
1516 }
1517 ]
1518 }
1519 },
1520 {
1521 "type": "object",
1522 "additionalProperties": {
1523 "oneOf": [
1524 {
1525 "type": "string"
1526 },
1527 {
1528 "type": "integer"
1529 },
1530 {
1531 "type": "number"
1532 },
1533 {
1534 "type": "boolean"
1535 },
1536 {
1537 "type": "null"
1538 }
1539 ]
1540 }
1541 }
1542 ]
1543 }
1544 }
1545 },
1546 "additionalProperties": false,
1547 "required": [
1548 "call_id",
1549 "tool_name",
1550 "arguments"
1551 ]
1552 },
1553 "ToolChoice": {
1554 "type": "string",
1555 "enum": [
1556 "auto",
1557 "required"
1558 ]
1559 },
1560 "ToolDefinition": {
1561 "type": "object",
1562 "properties": {
1563 "tool_name": {
1564 "oneOf": [
1565 {
1566 "$ref": "#/components/schemas/BuiltinTool"
1567 },
1568 {
1569 "type": "string"
1570 }
1571 ]
1572 },
1573 "description": {
1574 "type": "string"
1575 },
1576 "parameters": {
1577 "type": "object",
1578 "additionalProperties": {
1579 "$ref": "#/components/schemas/ToolParamDefinition"
1580 }
1581 }
1582 },
1583 "additionalProperties": false,
1584 "required": [
1585 "tool_name"
1586 ]
1587 },
1588 "ToolParamDefinition": {
1589 "type": "object",
1590 "properties": {
1591 "param_type": {
1592 "type": "string"
1593 },
1594 "description": {
1595 "type": "string"
1596 },
1597 "required": {
1598 "type": "boolean"
1599 }
1600 },
1601 "additionalProperties": false,
1602 "required": [
1603 "param_type"
1604 ]
1605 },
1606 "ToolPromptFormat": {
1607 "type": "string",
1608 "enum": [
1609 "json",
1610 "function_tag"
1611 ],
1612 "title": "This Enum refers to the prompt format for calling custom / zero shot tools",
1613 "description": "`json` --\n Refers to the json format for calling tools.\n The json format takes the form like\n {\n \"type\": \"function\",\n \"function\" : {\n \"name\": \"function_name\",\n \"description\": \"function_description\",\n \"parameters\": {...}\n }\n }\n\n`function_tag` --\n This is an example of how you could define\n your own user defined format for making tool calls.\n The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\nThe detailed prompts for each of these formats are added to llama cli"
1614 },
1615 "ToolResponseMessage": {
1616 "type": "object",
1617 "properties": {
1618 "role": {
1619 "type": "string",
1620 "const": "ipython"
1621 },
1622 "call_id": {
1623 "type": "string"
1624 },
1625 "tool_name": {
1626 "oneOf": [
1627 {
1628 "$ref": "#/components/schemas/BuiltinTool"
1629 },
1630 {
1631 "type": "string"
1632 }
1633 ]
1634 },
1635 "content": {
1636 "oneOf": [
1637 {
1638 "type": "string"
1639 },
1640 {
1641 "type": "array",
1642 "items": {
1643 "type": "string"
1644 }
1645 }
1646 ]
1647 }
1648 },
1649 "additionalProperties": false,
1650 "required": [
1651 "role",
1652 "call_id",
1653 "tool_name",
1654 "content"
1655 ]
1656 },
1657 "UserMessage": {
1658 "type": "object",
1659 "properties": {
1660 "role": {
1661 "type": "string",
1662 "const": "user"
1663 },
1664 "content": {
1665 "oneOf": [
1666 {
1667 "type": "string"
1668 },
1669 {
1670 "type": "array",
1671 "items": {
1672 "type": "string"
1673 }
1674 }
1675 ]
1676 },
1677 "context": {
1678 "oneOf": [
1679 {
1680 "type": "string"
1681 },
1682 {
1683 "type": "array",
1684 "items": {
1685 "type": "string"
1686 }
1687 }
1688 ]
1689 }
1690 },
1691 "additionalProperties": false,
1692 "required": [
1693 "role",
1694 "content"
1695 ]
1696 },
1697 "BatchChatCompletionRequest": {
1698 "type": "object",
1699 "properties": {
1700 "model": {
1701 "type": "string"
1702 },
1703 "messages_batch": {
1704 "type": "array",
1705 "items": {
1706 "type": "array",
1707 "items": {
1708 "oneOf": [
1709 {
1710 "$ref": "#/components/schemas/UserMessage"
1711 },
1712 {
1713 "$ref": "#/components/schemas/SystemMessage"
1714 },
1715 {
1716 "$ref": "#/components/schemas/ToolResponseMessage"
1717 },
1718 {
1719 "$ref": "#/components/schemas/CompletionMessage"
1720 }
1721 ]
1722 }
1723 }
1724 },
1725 "sampling_params": {
1726 "$ref": "#/components/schemas/SamplingParams"
1727 },
1728 "tools": {
1729 "type": "array",
1730 "items": {
1731 "$ref": "#/components/schemas/ToolDefinition"
1732 }
1733 },
1734 "tool_choice": {
1735 "$ref": "#/components/schemas/ToolChoice"
1736 },
1737 "tool_prompt_format": {
1738 "$ref": "#/components/schemas/ToolPromptFormat"
1739 },
1740 "logprobs": {
1741 "type": "object",
1742 "properties": {
1743 "top_k": {
1744 "type": "integer"
1745 }
1746 },
1747 "additionalProperties": false
1748 }
1749 },
1750 "additionalProperties": false,
1751 "required": [
1752 "model",
1753 "messages_batch"
1754 ]
1755 },
1756 "BatchChatCompletionResponse": {
1757 "type": "object",
1758 "properties": {
1759 "completion_message_batch": {
1760 "type": "array",
1761 "items": {
1762 "$ref": "#/components/schemas/CompletionMessage"
1763 }
1764 }
1765 },
1766 "additionalProperties": false,
1767 "required": [
1768 "completion_message_batch"
1769 ]
1770 },
1771 "BatchCompletionRequest": {
1772 "type": "object",
1773 "properties": {
1774 "model": {
1775 "type": "string"
1776 },
1777 "content_batch": {
1778 "type": "array",
1779 "items": {
1780 "oneOf": [
1781 {
1782 "type": "string"
1783 },
1784 {
1785 "type": "array",
1786 "items": {
1787 "type": "string"
1788 }
1789 }
1790 ]
1791 }
1792 },
1793 "sampling_params": {
1794 "$ref": "#/components/schemas/SamplingParams"
1795 },
1796 "logprobs": {
1797 "type": "object",
1798 "properties": {
1799 "top_k": {
1800 "type": "integer"
1801 }
1802 },
1803 "additionalProperties": false
1804 }
1805 },
1806 "additionalProperties": false,
1807 "required": [
1808 "model",
1809 "content_batch"
1810 ]
1811 },
1812 "BatchCompletionResponse": {
1813 "type": "object",
1814 "properties": {
1815 "completion_message_batch": {
1816 "type": "array",
1817 "items": {
1818 "$ref": "#/components/schemas/CompletionMessage"
1819 }
1820 }
1821 },
1822 "additionalProperties": false,
1823 "required": [
1824 "completion_message_batch"
1825 ]
1826 },
1827 "CancelEvaluationJobRequest": {
1828 "type": "object",
1829 "properties": {
1830 "job_uuid": {
1831 "type": "string"
1832 }
1833 },
1834 "additionalProperties": false,
1835 "required": [
1836 "job_uuid"
1837 ]
1838 },
1839 "CancelTrainingJobRequest": {
1840 "type": "object",
1841 "properties": {
1842 "job_uuid": {
1843 "type": "string"
1844 }
1845 },
1846 "additionalProperties": false,
1847 "required": [
1848 "job_uuid"
1849 ]
1850 },
1851 "ChatCompletionRequest": {
1852 "type": "object",
1853 "properties": {
1854 "model": {
1855 "type": "string"
1856 },
1857 "messages": {
1858 "type": "array",
1859 "items": {
1860 "oneOf": [
1861 {
1862 "$ref": "#/components/schemas/UserMessage"
1863 },
1864 {
1865 "$ref": "#/components/schemas/SystemMessage"
1866 },
1867 {
1868 "$ref": "#/components/schemas/ToolResponseMessage"
1869 },
1870 {
1871 "$ref": "#/components/schemas/CompletionMessage"
1872 }
1873 ]
1874 }
1875 },
1876 "sampling_params": {
1877 "$ref": "#/components/schemas/SamplingParams"
1878 },
1879 "tools": {
1880 "type": "array",
1881 "items": {
1882 "$ref": "#/components/schemas/ToolDefinition"
1883 }
1884 },
1885 "tool_choice": {
1886 "$ref": "#/components/schemas/ToolChoice"
1887 },
1888 "tool_prompt_format": {
1889 "$ref": "#/components/schemas/ToolPromptFormat"
1890 },
1891 "stream": {
1892 "type": "boolean"
1893 },
1894 "logprobs": {
1895 "type": "object",
1896 "properties": {
1897 "top_k": {
1898 "type": "integer"
1899 }
1900 },
1901 "additionalProperties": false
1902 }
1903 },
1904 "additionalProperties": false,
1905 "required": [
1906 "model",
1907 "messages"
1908 ]
1909 },
1910 "ChatCompletionResponse": {
1911 "type": "object",
1912 "properties": {
1913 "completion_message": {
1914 "$ref": "#/components/schemas/CompletionMessage"
1915 },
1916 "logprobs": {
1917 "type": "array",
1918 "items": {
1919 "$ref": "#/components/schemas/TokenLogProbs"
1920 }
1921 }
1922 },
1923 "additionalProperties": false,
1924 "required": [
1925 "completion_message"
1926 ],
1927 "title": "Chat completion response."
1928 },
1929 "ChatCompletionResponseEvent": {
1930 "type": "object",
1931 "properties": {
1932 "event_type": {
1933 "$ref": "#/components/schemas/ChatCompletionResponseEventType"
1934 },
1935 "delta": {
1936 "oneOf": [
1937 {
1938 "type": "string"
1939 },
1940 {
1941 "$ref": "#/components/schemas/ToolCallDelta"
1942 }
1943 ]
1944 },
1945 "logprobs": {
1946 "type": "array",
1947 "items": {
1948 "$ref": "#/components/schemas/TokenLogProbs"
1949 }
1950 },
1951 "stop_reason": {
1952 "$ref": "#/components/schemas/StopReason"
1953 }
1954 },
1955 "additionalProperties": false,
1956 "required": [
1957 "event_type",
1958 "delta"
1959 ],
1960 "title": "Chat completion response event."
1961 },
1962 "ChatCompletionResponseEventType": {
1963 "type": "string",
1964 "enum": [
1965 "start",
1966 "complete",
1967 "progress"
1968 ]
1969 },
1970 "ChatCompletionResponseStreamChunk": {
1971 "type": "object",
1972 "properties": {
1973 "event": {
1974 "$ref": "#/components/schemas/ChatCompletionResponseEvent"
1975 }
1976 },
1977 "additionalProperties": false,
1978 "required": [
1979 "event"
1980 ],
1981 "title": "SSE-stream of these events."
1982 },
1983 "TokenLogProbs": {
1984 "type": "object",
1985 "properties": {
1986 "logprobs_by_token": {
1987 "type": "object",
1988 "additionalProperties": {
1989 "type": "number"
1990 }
1991 }
1992 },
1993 "additionalProperties": false,
1994 "required": [
1995 "logprobs_by_token"
1996 ]
1997 },
1998 "ToolCallDelta": {
1999 "type": "object",
2000 "properties": {
2001 "content": {
2002 "oneOf": [
2003 {
2004 "type": "string"
2005 },
2006 {
2007 "$ref": "#/components/schemas/ToolCall"
2008 }
2009 ]
2010 },
2011 "parse_status": {
2012 "$ref": "#/components/schemas/ToolCallParseStatus"
2013 }
2014 },
2015 "additionalProperties": false,
2016 "required": [
2017 "content",
2018 "parse_status"
2019 ]
2020 },
2021 "ToolCallParseStatus": {
2022 "type": "string",
2023 "enum": [
2024 "started",
2025 "in_progress",
2026 "failure",
2027 "success"
2028 ]
2029 },
2030 "CompletionRequest": {
2031 "type": "object",
2032 "properties": {
2033 "model": {
2034 "type": "string"
2035 },
2036 "content": {
2037 "oneOf": [
2038 {
2039 "type": "string"
2040 },
2041 {
2042 "type": "array",
2043 "items": {
2044 "type": "string"
2045 }
2046 }
2047 ]
2048 },
2049 "sampling_params": {
2050 "$ref": "#/components/schemas/SamplingParams"
2051 },
2052 "stream": {
2053 "type": "boolean"
2054 },
2055 "logprobs": {
2056 "type": "object",
2057 "properties": {
2058 "top_k": {
2059 "type": "integer"
2060 }
2061 },
2062 "additionalProperties": false
2063 }
2064 },
2065 "additionalProperties": false,
2066 "required": [
2067 "model",
2068 "content"
2069 ]
2070 },
2071 "CompletionResponse": {
2072 "type": "object",
2073 "properties": {
2074 "completion_message": {
2075 "$ref": "#/components/schemas/CompletionMessage"
2076 },
2077 "logprobs": {
2078 "type": "array",
2079 "items": {
2080 "$ref": "#/components/schemas/TokenLogProbs"
2081 }
2082 }
2083 },
2084 "additionalProperties": false,
2085 "required": [
2086 "completion_message"
2087 ],
2088 "title": "Completion response."
2089 },
2090 "CompletionResponseStreamChunk": {
2091 "type": "object",
2092 "properties": {
2093 "delta": {
2094 "type": "string"
2095 },
2096 "stop_reason": {
2097 "$ref": "#/components/schemas/StopReason"
2098 },
2099 "logprobs": {
2100 "type": "array",
2101 "items": {
2102 "$ref": "#/components/schemas/TokenLogProbs"
2103 }
2104 }
2105 },
2106 "additionalProperties": false,
2107 "required": [
2108 "delta"
2109 ],
2110 "title": "streamed completion response."
2111 },
2112 "AgentConfig": {
2113 "type": "object",
2114 "properties": {
2115 "sampling_params": {
2116 "$ref": "#/components/schemas/SamplingParams"
2117 },
2118 "input_shields": {
2119 "type": "array",
2120 "items": {
2121 "$ref": "#/components/schemas/ShieldDefinition"
2122 }
2123 },
2124 "output_shields": {
2125 "type": "array",
2126 "items": {
2127 "$ref": "#/components/schemas/ShieldDefinition"
2128 }
2129 },
2130 "tools": {
2131 "type": "array",
2132 "items": {
2133 "oneOf": [
2134 {
2135 "$ref": "#/components/schemas/SearchToolDefinition"
2136 },
2137 {
2138 "$ref": "#/components/schemas/WolframAlphaToolDefinition"
2139 },
2140 {
2141 "$ref": "#/components/schemas/PhotogenToolDefinition"
2142 },
2143 {
2144 "$ref": "#/components/schemas/CodeInterpreterToolDefinition"
2145 },
2146 {
2147 "$ref": "#/components/schemas/FunctionCallToolDefinition"
2148 },
2149 {
2150 "type": "object",
2151 "properties": {
2152 "input_shields": {
2153 "type": "array",
2154 "items": {
2155 "$ref": "#/components/schemas/ShieldDefinition"
2156 }
2157 },
2158 "output_shields": {
2159 "type": "array",
2160 "items": {
2161 "$ref": "#/components/schemas/ShieldDefinition"
2162 }
2163 },
2164 "type": {
2165 "type": "string",
2166 "const": "memory"
2167 },
2168 "memory_bank_configs": {
2169 "type": "array",
2170 "items": {
2171 "oneOf": [
2172 {
2173 "type": "object",
2174 "properties": {
2175 "bank_id": {
2176 "type": "string"
2177 },
2178 "type": {
2179 "type": "string",
2180 "const": "vector"
2181 }
2182 },
2183 "additionalProperties": false,
2184 "required": [
2185 "bank_id",
2186 "type"
2187 ]
2188 },
2189 {
2190 "type": "object",
2191 "properties": {
2192 "bank_id": {
2193 "type": "string"
2194 },
2195 "type": {
2196 "type": "string",
2197 "const": "keyvalue"
2198 },
2199 "keys": {
2200 "type": "array",
2201 "items": {
2202 "type": "string"
2203 }
2204 }
2205 },
2206 "additionalProperties": false,
2207 "required": [
2208 "bank_id",
2209 "type",
2210 "keys"
2211 ]
2212 },
2213 {
2214 "type": "object",
2215 "properties": {
2216 "bank_id": {
2217 "type": "string"
2218 },
2219 "type": {
2220 "type": "string",
2221 "const": "keyword"
2222 }
2223 },
2224 "additionalProperties": false,
2225 "required": [
2226 "bank_id",
2227 "type"
2228 ]
2229 },
2230 {
2231 "type": "object",
2232 "properties": {
2233 "bank_id": {
2234 "type": "string"
2235 },
2236 "type": {
2237 "type": "string",
2238 "const": "graph"
2239 },
2240 "entities": {
2241 "type": "array",
2242 "items": {
2243 "type": "string"
2244 }
2245 }
2246 },
2247 "additionalProperties": false,
2248 "required": [
2249 "bank_id",
2250 "type",
2251 "entities"
2252 ]
2253 }
2254 ]
2255 }
2256 },
2257 "query_generator_config": {
2258 "oneOf": [
2259 {
2260 "type": "object",
2261 "properties": {
2262 "type": {
2263 "type": "string",
2264 "const": "default"
2265 },
2266 "sep": {
2267 "type": "string"
2268 }
2269 },
2270 "additionalProperties": false,
2271 "required": [
2272 "type",
2273 "sep"
2274 ]
2275 },
2276 {
2277 "type": "object",
2278 "properties": {
2279 "type": {
2280 "type": "string",
2281 "const": "llm"
2282 },
2283 "model": {
2284 "type": "string"
2285 },
2286 "template": {
2287 "type": "string"
2288 }
2289 },
2290 "additionalProperties": false,
2291 "required": [
2292 "type",
2293 "model",
2294 "template"
2295 ]
2296 },
2297 {
2298 "type": "object",
2299 "properties": {
2300 "type": {
2301 "type": "string",
2302 "const": "custom"
2303 }
2304 },
2305 "additionalProperties": false,
2306 "required": [
2307 "type"
2308 ]
2309 }
2310 ]
2311 },
2312 "max_tokens_in_context": {
2313 "type": "integer"
2314 },
2315 "max_chunks": {
2316 "type": "integer"
2317 }
2318 },
2319 "additionalProperties": false,
2320 "required": [
2321 "type",
2322 "memory_bank_configs",
2323 "query_generator_config",
2324 "max_tokens_in_context",
2325 "max_chunks"
2326 ]
2327 }
2328 ]
2329 }
2330 },
2331 "tool_choice": {
2332 "$ref": "#/components/schemas/ToolChoice"
2333 },
2334 "tool_prompt_format": {
2335 "$ref": "#/components/schemas/ToolPromptFormat"
2336 },
2337 "model": {
2338 "type": "string"
2339 },
2340 "instructions": {
2341 "type": "string"
2342 }
2343 },
2344 "additionalProperties": false,
2345 "required": [
2346 "model",
2347 "instructions"
2348 ]
2349 },
2350 "BuiltinShield": {
2351 "type": "string",
2352 "enum": [
2353 "llama_guard",
2354 "code_scanner_guard",
2355 "third_party_shield",
2356 "injection_shield",
2357 "jailbreak_shield"
2358 ]
2359 },
2360 "CodeInterpreterToolDefinition": {
2361 "type": "object",
2362 "properties": {
2363 "input_shields": {
2364 "type": "array",
2365 "items": {
2366 "$ref": "#/components/schemas/ShieldDefinition"
2367 }
2368 },
2369 "output_shields": {
2370 "type": "array",
2371 "items": {
2372 "$ref": "#/components/schemas/ShieldDefinition"
2373 }
2374 },
2375 "type": {
2376 "type": "string",
2377 "const": "code_interpreter"
2378 },
2379 "enable_inline_code_execution": {
2380 "type": "boolean"
2381 },
2382 "remote_execution": {
2383 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2384 }
2385 },
2386 "additionalProperties": false,
2387 "required": [
2388 "type",
2389 "enable_inline_code_execution"
2390 ]
2391 },
2392 "FunctionCallToolDefinition": {
2393 "type": "object",
2394 "properties": {
2395 "input_shields": {
2396 "type": "array",
2397 "items": {
2398 "$ref": "#/components/schemas/ShieldDefinition"
2399 }
2400 },
2401 "output_shields": {
2402 "type": "array",
2403 "items": {
2404 "$ref": "#/components/schemas/ShieldDefinition"
2405 }
2406 },
2407 "type": {
2408 "type": "string",
2409 "const": "function_call"
2410 },
2411 "function_name": {
2412 "type": "string"
2413 },
2414 "description": {
2415 "type": "string"
2416 },
2417 "parameters": {
2418 "type": "object",
2419 "additionalProperties": {
2420 "$ref": "#/components/schemas/ToolParamDefinition"
2421 }
2422 },
2423 "remote_execution": {
2424 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2425 }
2426 },
2427 "additionalProperties": false,
2428 "required": [
2429 "type",
2430 "function_name",
2431 "description",
2432 "parameters"
2433 ]
2434 },
2435 "OnViolationAction": {
2436 "type": "integer",
2437 "enum": [
2438 0,
2439 1,
2440 2
2441 ]
2442 },
2443 "PhotogenToolDefinition": {
2444 "type": "object",
2445 "properties": {
2446 "input_shields": {
2447 "type": "array",
2448 "items": {
2449 "$ref": "#/components/schemas/ShieldDefinition"
2450 }
2451 },
2452 "output_shields": {
2453 "type": "array",
2454 "items": {
2455 "$ref": "#/components/schemas/ShieldDefinition"
2456 }
2457 },
2458 "type": {
2459 "type": "string",
2460 "const": "photogen"
2461 },
2462 "remote_execution": {
2463 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2464 }
2465 },
2466 "additionalProperties": false,
2467 "required": [
2468 "type"
2469 ]
2470 },
2471 "RestAPIExecutionConfig": {
2472 "type": "object",
2473 "properties": {
2474 "url": {
2475 "$ref": "#/components/schemas/URL"
2476 },
2477 "method": {
2478 "$ref": "#/components/schemas/RestAPIMethod"
2479 },
2480 "params": {
2481 "type": "object",
2482 "additionalProperties": {
2483 "oneOf": [
2484 {
2485 "type": "null"
2486 },
2487 {
2488 "type": "boolean"
2489 },
2490 {
2491 "type": "number"
2492 },
2493 {
2494 "type": "string"
2495 },
2496 {
2497 "type": "array"
2498 },
2499 {
2500 "type": "object"
2501 }
2502 ]
2503 }
2504 },
2505 "headers": {
2506 "type": "object",
2507 "additionalProperties": {
2508 "oneOf": [
2509 {
2510 "type": "null"
2511 },
2512 {
2513 "type": "boolean"
2514 },
2515 {
2516 "type": "number"
2517 },
2518 {
2519 "type": "string"
2520 },
2521 {
2522 "type": "array"
2523 },
2524 {
2525 "type": "object"
2526 }
2527 ]
2528 }
2529 },
2530 "body": {
2531 "type": "object",
2532 "additionalProperties": {
2533 "oneOf": [
2534 {
2535 "type": "null"
2536 },
2537 {
2538 "type": "boolean"
2539 },
2540 {
2541 "type": "number"
2542 },
2543 {
2544 "type": "string"
2545 },
2546 {
2547 "type": "array"
2548 },
2549 {
2550 "type": "object"
2551 }
2552 ]
2553 }
2554 }
2555 },
2556 "additionalProperties": false,
2557 "required": [
2558 "url",
2559 "method"
2560 ]
2561 },
2562 "RestAPIMethod": {
2563 "type": "string",
2564 "enum": [
2565 "GET",
2566 "POST",
2567 "PUT",
2568 "DELETE"
2569 ]
2570 },
2571 "SearchToolDefinition": {
2572 "type": "object",
2573 "properties": {
2574 "input_shields": {
2575 "type": "array",
2576 "items": {
2577 "$ref": "#/components/schemas/ShieldDefinition"
2578 }
2579 },
2580 "output_shields": {
2581 "type": "array",
2582 "items": {
2583 "$ref": "#/components/schemas/ShieldDefinition"
2584 }
2585 },
2586 "type": {
2587 "type": "string",
2588 "const": "brave_search"
2589 },
2590 "engine": {
2591 "type": "string",
2592 "enum": [
2593 "bing",
2594 "brave"
2595 ]
2596 },
2597 "remote_execution": {
2598 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2599 }
2600 },
2601 "additionalProperties": false,
2602 "required": [
2603 "type",
2604 "engine"
2605 ]
2606 },
2607 "ShieldDefinition": {
2608 "type": "object",
2609 "properties": {
2610 "shield_type": {
2611 "oneOf": [
2612 {
2613 "$ref": "#/components/schemas/BuiltinShield"
2614 },
2615 {
2616 "type": "string"
2617 }
2618 ]
2619 },
2620 "description": {
2621 "type": "string"
2622 },
2623 "parameters": {
2624 "type": "object",
2625 "additionalProperties": {
2626 "$ref": "#/components/schemas/ToolParamDefinition"
2627 }
2628 },
2629 "on_violation_action": {
2630 "$ref": "#/components/schemas/OnViolationAction"
2631 },
2632 "execution_config": {
2633 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2634 }
2635 },
2636 "additionalProperties": false,
2637 "required": [
2638 "shield_type",
2639 "on_violation_action"
2640 ]
2641 },
2642 "URL": {
2643 "type": "string",
2644 "format": "uri",
2645 "pattern": "^(https?://|file://|data:)"
2646 },
2647 "WolframAlphaToolDefinition": {
2648 "type": "object",
2649 "properties": {
2650 "input_shields": {
2651 "type": "array",
2652 "items": {
2653 "$ref": "#/components/schemas/ShieldDefinition"
2654 }
2655 },
2656 "output_shields": {
2657 "type": "array",
2658 "items": {
2659 "$ref": "#/components/schemas/ShieldDefinition"
2660 }
2661 },
2662 "type": {
2663 "type": "string",
2664 "const": "wolfram_alpha"
2665 },
2666 "remote_execution": {
2667 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2668 }
2669 },
2670 "additionalProperties": false,
2671 "required": [
2672 "type"
2673 ]
2674 },
2675 "CreateAgenticSystemRequest": {
2676 "type": "object",
2677 "properties": {
2678 "agent_config": {
2679 "$ref": "#/components/schemas/AgentConfig"
2680 }
2681 },
2682 "additionalProperties": false,
2683 "required": [
2684 "agent_config"
2685 ]
2686 },
2687 "AgenticSystemCreateResponse": {
2688 "type": "object",
2689 "properties": {
2690 "agent_id": {
2691 "type": "string"
2692 }
2693 },
2694 "additionalProperties": false,
2695 "required": [
2696 "agent_id"
2697 ]
2698 },
2699 "CreateAgenticSystemSessionRequest": {
2700 "type": "object",
2701 "properties": {
2702 "agent_id": {
2703 "type": "string"
2704 },
2705 "session_name": {
2706 "type": "string"
2707 }
2708 },
2709 "additionalProperties": false,
2710 "required": [
2711 "agent_id",
2712 "session_name"
2713 ]
2714 },
2715 "AgenticSystemSessionCreateResponse": {
2716 "type": "object",
2717 "properties": {
2718 "session_id": {
2719 "type": "string"
2720 }
2721 },
2722 "additionalProperties": false,
2723 "required": [
2724 "session_id"
2725 ]
2726 },
2727 "Attachment": {
2728 "type": "object",
2729 "properties": {
2730 "content": {
2731 "oneOf": [
2732 {
2733 "type": "string"
2734 },
2735 {
2736 "type": "array",
2737 "items": {
2738 "type": "string"
2739 }
2740 },
2741 {
2742 "$ref": "#/components/schemas/URL"
2743 }
2744 ]
2745 },
2746 "mime_type": {
2747 "type": "string"
2748 }
2749 },
2750 "additionalProperties": false,
2751 "required": [
2752 "content",
2753 "mime_type"
2754 ]
2755 },
2756 "CreateAgenticSystemTurnRequest": {
2757 "type": "object",
2758 "properties": {
2759 "agent_id": {
2760 "type": "string"
2761 },
2762 "session_id": {
2763 "type": "string"
2764 },
2765 "messages": {
2766 "type": "array",
2767 "items": {
2768 "oneOf": [
2769 {
2770 "$ref": "#/components/schemas/UserMessage"
2771 },
2772 {
2773 "$ref": "#/components/schemas/ToolResponseMessage"
2774 }
2775 ]
2776 }
2777 },
2778 "attachments": {
2779 "type": "array",
2780 "items": {
2781 "$ref": "#/components/schemas/Attachment"
2782 }
2783 },
2784 "stream": {
2785 "type": "boolean"
2786 }
2787 },
2788 "additionalProperties": false,
2789 "required": [
2790 "agent_id",
2791 "session_id",
2792 "messages"
2793 ]
2794 },
2795 "AgenticSystemTurnResponseEvent": {
2796 "type": "object",
2797 "properties": {
2798 "payload": {
2799 "oneOf": [
2800 {
2801 "$ref": "#/components/schemas/AgenticSystemTurnResponseStepStartPayload"
2802 },
2803 {
2804 "$ref": "#/components/schemas/AgenticSystemTurnResponseStepProgressPayload"
2805 },
2806 {
2807 "$ref": "#/components/schemas/AgenticSystemTurnResponseStepCompletePayload"
2808 },
2809 {
2810 "$ref": "#/components/schemas/AgenticSystemTurnResponseTurnStartPayload"
2811 },
2812 {
2813 "$ref": "#/components/schemas/AgenticSystemTurnResponseTurnCompletePayload"
2814 }
2815 ]
2816 }
2817 },
2818 "additionalProperties": false,
2819 "required": [
2820 "payload"
2821 ],
2822 "title": "Streamed agent execution response."
2823 },
2824 "AgenticSystemTurnResponseStepCompletePayload": {
2825 "type": "object",
2826 "properties": {
2827 "event_type": {
2828 "type": "string",
2829 "const": "step_complete"
2830 },
2831 "step_type": {
2832 "type": "string",
2833 "enum": [
2834 "inference",
2835 "tool_execution",
2836 "shield_call",
2837 "memory_retrieval"
2838 ]
2839 },
2840 "step_details": {
2841 "oneOf": [
2842 {
2843 "$ref": "#/components/schemas/InferenceStep"
2844 },
2845 {
2846 "$ref": "#/components/schemas/ToolExecutionStep"
2847 },
2848 {
2849 "$ref": "#/components/schemas/ShieldCallStep"
2850 },
2851 {
2852 "$ref": "#/components/schemas/MemoryRetrievalStep"
2853 }
2854 ]
2855 }
2856 },
2857 "additionalProperties": false,
2858 "required": [
2859 "event_type",
2860 "step_type",
2861 "step_details"
2862 ]
2863 },
2864 "AgenticSystemTurnResponseStepProgressPayload": {
2865 "type": "object",
2866 "properties": {
2867 "event_type": {
2868 "type": "string",
2869 "const": "step_progress"
2870 },
2871 "step_type": {
2872 "type": "string",
2873 "enum": [
2874 "inference",
2875 "tool_execution",
2876 "shield_call",
2877 "memory_retrieval"
2878 ]
2879 },
2880 "step_id": {
2881 "type": "string"
2882 },
2883 "model_response_text_delta": {
2884 "type": "string"
2885 },
2886 "tool_call_delta": {
2887 "$ref": "#/components/schemas/ToolCallDelta"
2888 },
2889 "tool_response_text_delta": {
2890 "type": "string"
2891 }
2892 },
2893 "additionalProperties": false,
2894 "required": [
2895 "event_type",
2896 "step_type",
2897 "step_id"
2898 ]
2899 },
2900 "AgenticSystemTurnResponseStepStartPayload": {
2901 "type": "object",
2902 "properties": {
2903 "event_type": {
2904 "type": "string",
2905 "const": "step_start"
2906 },
2907 "step_type": {
2908 "type": "string",
2909 "enum": [
2910 "inference",
2911 "tool_execution",
2912 "shield_call",
2913 "memory_retrieval"
2914 ]
2915 },
2916 "step_id": {
2917 "type": "string"
2918 },
2919 "metadata": {
2920 "type": "object",
2921 "additionalProperties": {
2922 "oneOf": [
2923 {
2924 "type": "null"
2925 },
2926 {
2927 "type": "boolean"
2928 },
2929 {
2930 "type": "number"
2931 },
2932 {
2933 "type": "string"
2934 },
2935 {
2936 "type": "array"
2937 },
2938 {
2939 "type": "object"
2940 }
2941 ]
2942 }
2943 }
2944 },
2945 "additionalProperties": false,
2946 "required": [
2947 "event_type",
2948 "step_type",
2949 "step_id"
2950 ]
2951 },
2952 "AgenticSystemTurnResponseStreamChunk": {
2953 "type": "object",
2954 "properties": {
2955 "event": {
2956 "$ref": "#/components/schemas/AgenticSystemTurnResponseEvent"
2957 }
2958 },
2959 "additionalProperties": false,
2960 "required": [
2961 "event"
2962 ]
2963 },
2964 "AgenticSystemTurnResponseTurnCompletePayload": {
2965 "type": "object",
2966 "properties": {
2967 "event_type": {
2968 "type": "string",
2969 "const": "turn_complete"
2970 },
2971 "turn": {
2972 "$ref": "#/components/schemas/Turn"
2973 }
2974 },
2975 "additionalProperties": false,
2976 "required": [
2977 "event_type",
2978 "turn"
2979 ]
2980 },
2981 "AgenticSystemTurnResponseTurnStartPayload": {
2982 "type": "object",
2983 "properties": {
2984 "event_type": {
2985 "type": "string",
2986 "const": "turn_start"
2987 },
2988 "turn_id": {
2989 "type": "string"
2990 }
2991 },
2992 "additionalProperties": false,
2993 "required": [
2994 "event_type",
2995 "turn_id"
2996 ]
2997 },
2998 "InferenceStep": {
2999 "type": "object",
3000 "properties": {
3001 "turn_id": {
3002 "type": "string"
3003 },
3004 "step_id": {
3005 "type": "string"
3006 },
3007 "started_at": {
3008 "type": "string",
3009 "format": "date-time"
3010 },
3011 "completed_at": {
3012 "type": "string",
3013 "format": "date-time"
3014 },
3015 "step_type": {
3016 "type": "string",
3017 "const": "inference"
3018 },
3019 "model_response": {
3020 "$ref": "#/components/schemas/CompletionMessage"
3021 }
3022 },
3023 "additionalProperties": false,
3024 "required": [
3025 "turn_id",
3026 "step_id",
3027 "step_type",
3028 "model_response"
3029 ]
3030 },
3031 "MemoryRetrievalStep": {
3032 "type": "object",
3033 "properties": {
3034 "turn_id": {
3035 "type": "string"
3036 },
3037 "step_id": {
3038 "type": "string"
3039 },
3040 "started_at": {
3041 "type": "string",
3042 "format": "date-time"
3043 },
3044 "completed_at": {
3045 "type": "string",
3046 "format": "date-time"
3047 },
3048 "step_type": {
3049 "type": "string",
3050 "const": "memory_retrieval"
3051 },
3052 "memory_bank_ids": {
3053 "type": "array",
3054 "items": {
3055 "type": "string"
3056 }
3057 },
3058 "inserted_context": {
3059 "oneOf": [
3060 {
3061 "type": "string"
3062 },
3063 {
3064 "type": "array",
3065 "items": {
3066 "type": "string"
3067 }
3068 }
3069 ]
3070 }
3071 },
3072 "additionalProperties": false,
3073 "required": [
3074 "turn_id",
3075 "step_id",
3076 "step_type",
3077 "memory_bank_ids",
3078 "inserted_context"
3079 ]
3080 },
3081 "ShieldCallStep": {
3082 "type": "object",
3083 "properties": {
3084 "turn_id": {
3085 "type": "string"
3086 },
3087 "step_id": {
3088 "type": "string"
3089 },
3090 "started_at": {
3091 "type": "string",
3092 "format": "date-time"
3093 },
3094 "completed_at": {
3095 "type": "string",
3096 "format": "date-time"
3097 },
3098 "step_type": {
3099 "type": "string",
3100 "const": "shield_call"
3101 },
3102 "response": {
3103 "$ref": "#/components/schemas/ShieldResponse"
3104 }
3105 },
3106 "additionalProperties": false,
3107 "required": [
3108 "turn_id",
3109 "step_id",
3110 "step_type",
3111 "response"
3112 ]
3113 },
3114 "ShieldResponse": {
3115 "type": "object",
3116 "properties": {
3117 "shield_type": {
3118 "oneOf": [
3119 {
3120 "$ref": "#/components/schemas/BuiltinShield"
3121 },
3122 {
3123 "type": "string"
3124 }
3125 ]
3126 },
3127 "is_violation": {
3128 "type": "boolean"
3129 },
3130 "violation_type": {
3131 "type": "string"
3132 },
3133 "violation_return_message": {
3134 "type": "string"
3135 }
3136 },
3137 "additionalProperties": false,
3138 "required": [
3139 "shield_type",
3140 "is_violation"
3141 ]
3142 },
3143 "ToolExecutionStep": {
3144 "type": "object",
3145 "properties": {
3146 "turn_id": {
3147 "type": "string"
3148 },
3149 "step_id": {
3150 "type": "string"
3151 },
3152 "started_at": {
3153 "type": "string",
3154 "format": "date-time"
3155 },
3156 "completed_at": {
3157 "type": "string",
3158 "format": "date-time"
3159 },
3160 "step_type": {
3161 "type": "string",
3162 "const": "tool_execution"
3163 },
3164 "tool_calls": {
3165 "type": "array",
3166 "items": {
3167 "$ref": "#/components/schemas/ToolCall"
3168 }
3169 },
3170 "tool_responses": {
3171 "type": "array",
3172 "items": {
3173 "$ref": "#/components/schemas/ToolResponse"
3174 }
3175 }
3176 },
3177 "additionalProperties": false,
3178 "required": [
3179 "turn_id",
3180 "step_id",
3181 "step_type",
3182 "tool_calls",
3183 "tool_responses"
3184 ]
3185 },
3186 "ToolResponse": {
3187 "type": "object",
3188 "properties": {
3189 "call_id": {
3190 "type": "string"
3191 },
3192 "tool_name": {
3193 "oneOf": [
3194 {
3195 "$ref": "#/components/schemas/BuiltinTool"
3196 },
3197 {
3198 "type": "string"
3199 }
3200 ]
3201 },
3202 "content": {
3203 "oneOf": [
3204 {
3205 "type": "string"
3206 },
3207 {
3208 "type": "array",
3209 "items": {
3210 "type": "string"
3211 }
3212 }
3213 ]
3214 }
3215 },
3216 "additionalProperties": false,
3217 "required": [
3218 "call_id",
3219 "tool_name",
3220 "content"
3221 ]
3222 },
3223 "Turn": {
3224 "type": "object",
3225 "properties": {
3226 "turn_id": {
3227 "type": "string"
3228 },
3229 "session_id": {
3230 "type": "string"
3231 },
3232 "input_messages": {
3233 "type": "array",
3234 "items": {
3235 "oneOf": [
3236 {
3237 "$ref": "#/components/schemas/UserMessage"
3238 },
3239 {
3240 "$ref": "#/components/schemas/ToolResponseMessage"
3241 }
3242 ]
3243 }
3244 },
3245 "steps": {
3246 "type": "array",
3247 "items": {
3248 "oneOf": [
3249 {
3250 "$ref": "#/components/schemas/InferenceStep"
3251 },
3252 {
3253 "$ref": "#/components/schemas/ToolExecutionStep"
3254 },
3255 {
3256 "$ref": "#/components/schemas/ShieldCallStep"
3257 },
3258 {
3259 "$ref": "#/components/schemas/MemoryRetrievalStep"
3260 }
3261 ]
3262 }
3263 },
3264 "output_message": {
3265 "$ref": "#/components/schemas/CompletionMessage"
3266 },
3267 "output_attachments": {
3268 "type": "array",
3269 "items": {
3270 "$ref": "#/components/schemas/Attachment"
3271 }
3272 },
3273 "started_at": {
3274 "type": "string",
3275 "format": "date-time"
3276 },
3277 "completed_at": {
3278 "type": "string",
3279 "format": "date-time"
3280 }
3281 },
3282 "additionalProperties": false,
3283 "required": [
3284 "turn_id",
3285 "session_id",
3286 "input_messages",
3287 "steps",
3288 "output_message",
3289 "output_attachments",
3290 "started_at"
3291 ],
3292 "title": "A single turn in an interaction with an Agentic System."
3293 },
3294 "TrainEvalDataset": {
3295 "type": "object",
3296 "properties": {
3297 "columns": {
3298 "type": "object",
3299 "additionalProperties": {
3300 "$ref": "#/components/schemas/TrainEvalDatasetColumnType"
3301 }
3302 },
3303 "content_url": {
3304 "$ref": "#/components/schemas/URL"
3305 },
3306 "metadata": {
3307 "type": "object",
3308 "additionalProperties": {
3309 "oneOf": [
3310 {
3311 "type": "null"
3312 },
3313 {
3314 "type": "boolean"
3315 },
3316 {
3317 "type": "number"
3318 },
3319 {
3320 "type": "string"
3321 },
3322 {
3323 "type": "array"
3324 },
3325 {
3326 "type": "object"
3327 }
3328 ]
3329 }
3330 }
3331 },
3332 "additionalProperties": false,
3333 "required": [
3334 "columns",
3335 "content_url"
3336 ],
3337 "title": "Dataset to be used for training or evaluating language models."
3338 },
3339 "TrainEvalDatasetColumnType": {
3340 "type": "string",
3341 "enum": [
3342 "dialog",
3343 "text",
3344 "media",
3345 "number",
3346 "json"
3347 ]
3348 },
3349 "CreateDatasetRequest": {
3350 "type": "object",
3351 "properties": {
3352 "uuid": {
3353 "type": "string"
3354 },
3355 "dataset": {
3356 "$ref": "#/components/schemas/TrainEvalDataset"
3357 }
3358 },
3359 "additionalProperties": false,
3360 "required": [
3361 "uuid",
3362 "dataset"
3363 ]
3364 },
3365 "CreateMemoryBankRequest": {
3366 "type": "object",
3367 "properties": {
3368 "name": {
3369 "type": "string"
3370 },
3371 "config": {
3372 "oneOf": [
3373 {
3374 "type": "object",
3375 "properties": {
3376 "type": {
3377 "type": "string",
3378 "const": "vector"
3379 },
3380 "embedding_model": {
3381 "type": "string"
3382 },
3383 "chunk_size_in_tokens": {
3384 "type": "integer"
3385 },
3386 "overlap_size_in_tokens": {
3387 "type": "integer"
3388 }
3389 },
3390 "additionalProperties": false,
3391 "required": [
3392 "type",
3393 "embedding_model",
3394 "chunk_size_in_tokens"
3395 ]
3396 },
3397 {
3398 "type": "object",
3399 "properties": {
3400 "type": {
3401 "type": "string",
3402 "const": "keyvalue"
3403 }
3404 },
3405 "additionalProperties": false,
3406 "required": [
3407 "type"
3408 ]
3409 },
3410 {
3411 "type": "object",
3412 "properties": {
3413 "type": {
3414 "type": "string",
3415 "const": "keyword"
3416 }
3417 },
3418 "additionalProperties": false,
3419 "required": [
3420 "type"
3421 ]
3422 },
3423 {
3424 "type": "object",
3425 "properties": {
3426 "type": {
3427 "type": "string",
3428 "const": "graph"
3429 }
3430 },
3431 "additionalProperties": false,
3432 "required": [
3433 "type"
3434 ]
3435 }
3436 ]
3437 },
3438 "url": {
3439 "$ref": "#/components/schemas/URL"
3440 }
3441 },
3442 "additionalProperties": false,
3443 "required": [
3444 "name",
3445 "config"
3446 ]
3447 },
3448 "MemoryBank": {
3449 "type": "object",
3450 "properties": {
3451 "bank_id": {
3452 "type": "string"
3453 },
3454 "name": {
3455 "type": "string"
3456 },
3457 "config": {
3458 "oneOf": [
3459 {
3460 "type": "object",
3461 "properties": {
3462 "type": {
3463 "type": "string",
3464 "const": "vector"
3465 },
3466 "embedding_model": {
3467 "type": "string"
3468 },
3469 "chunk_size_in_tokens": {
3470 "type": "integer"
3471 },
3472 "overlap_size_in_tokens": {
3473 "type": "integer"
3474 }
3475 },
3476 "additionalProperties": false,
3477 "required": [
3478 "type",
3479 "embedding_model",
3480 "chunk_size_in_tokens"
3481 ]
3482 },
3483 {
3484 "type": "object",
3485 "properties": {
3486 "type": {
3487 "type": "string",
3488 "const": "keyvalue"
3489 }
3490 },
3491 "additionalProperties": false,
3492 "required": [
3493 "type"
3494 ]
3495 },
3496 {
3497 "type": "object",
3498 "properties": {
3499 "type": {
3500 "type": "string",
3501 "const": "keyword"
3502 }
3503 },
3504 "additionalProperties": false,
3505 "required": [
3506 "type"
3507 ]
3508 },
3509 {
3510 "type": "object",
3511 "properties": {
3512 "type": {
3513 "type": "string",
3514 "const": "graph"
3515 }
3516 },
3517 "additionalProperties": false,
3518 "required": [
3519 "type"
3520 ]
3521 }
3522 ]
3523 },
3524 "url": {
3525 "$ref": "#/components/schemas/URL"
3526 }
3527 },
3528 "additionalProperties": false,
3529 "required": [
3530 "bank_id",
3531 "name",
3532 "config"
3533 ]
3534 },
3535 "DeleteAgenticSystemRequest": {
3536 "type": "object",
3537 "properties": {
3538 "agent_id": {
3539 "type": "string"
3540 }
3541 },
3542 "additionalProperties": false,
3543 "required": [
3544 "agent_id"
3545 ]
3546 },
3547 "DeleteAgenticSystemSessionRequest": {
3548 "type": "object",
3549 "properties": {
3550 "agent_id": {
3551 "type": "string"
3552 },
3553 "session_id": {
3554 "type": "string"
3555 }
3556 },
3557 "additionalProperties": false,
3558 "required": [
3559 "agent_id",
3560 "session_id"
3561 ]
3562 },
3563 "DeleteDatasetRequest": {
3564 "type": "object",
3565 "properties": {
3566 "dataset_uuid": {
3567 "type": "string"
3568 }
3569 },
3570 "additionalProperties": false,
3571 "required": [
3572 "dataset_uuid"
3573 ]
3574 },
3575 "DeleteDocumentsRequest": {
3576 "type": "object",
3577 "properties": {
3578 "bank_id": {
3579 "type": "string"
3580 },
3581 "document_ids": {
3582 "type": "array",
3583 "items": {
3584 "type": "string"
3585 }
3586 }
3587 },
3588 "additionalProperties": false,
3589 "required": [
3590 "bank_id",
3591 "document_ids"
3592 ]
3593 },
3594 "DropMemoryBankRequest": {
3595 "type": "object",
3596 "properties": {
3597 "bank_id": {
3598 "type": "string"
3599 }
3600 },
3601 "additionalProperties": false,
3602 "required": [
3603 "bank_id"
3604 ]
3605 },
3606 "EmbeddingsRequest": {
3607 "type": "object",
3608 "properties": {
3609 "model": {
3610 "type": "string"
3611 },
3612 "contents": {
3613 "type": "array",
3614 "items": {
3615 "oneOf": [
3616 {
3617 "type": "string"
3618 },
3619 {
3620 "type": "array",
3621 "items": {
3622 "type": "string"
3623 }
3624 }
3625 ]
3626 }
3627 }
3628 },
3629 "additionalProperties": false,
3630 "required": [
3631 "model",
3632 "contents"
3633 ]
3634 },
3635 "EmbeddingsResponse": {
3636 "type": "object",
3637 "properties": {
3638 "embeddings": {
3639 "type": "array",
3640 "items": {
3641 "type": "array",
3642 "items": {
3643 "type": "number"
3644 }
3645 }
3646 }
3647 },
3648 "additionalProperties": false,
3649 "required": [
3650 "embeddings"
3651 ]
3652 },
3653 "EvaluateQuestionAnsweringRequest": {
3654 "type": "object",
3655 "properties": {
3656 "metrics": {
3657 "type": "array",
3658 "items": {
3659 "type": "string",
3660 "enum": [
3661 "em",
3662 "f1"
3663 ]
3664 }
3665 }
3666 },
3667 "additionalProperties": false,
3668 "required": [
3669 "metrics"
3670 ]
3671 },
3672 "EvaluationJob": {
3673 "type": "object",
3674 "properties": {
3675 "job_uuid": {
3676 "type": "string"
3677 }
3678 },
3679 "additionalProperties": false,
3680 "required": [
3681 "job_uuid"
3682 ]
3683 },
3684 "EvaluateSummarizationRequest": {
3685 "type": "object",
3686 "properties": {
3687 "metrics": {
3688 "type": "array",
3689 "items": {
3690 "type": "string",
3691 "enum": [
3692 "rouge",
3693 "bleu"
3694 ]
3695 }
3696 }
3697 },
3698 "additionalProperties": false,
3699 "required": [
3700 "metrics"
3701 ]
3702 },
3703 "EvaluateTextGenerationRequest": {
3704 "type": "object",
3705 "properties": {
3706 "metrics": {
3707 "type": "array",
3708 "items": {
3709 "type": "string",
3710 "enum": [
3711 "perplexity",
3712 "rouge",
3713 "bleu"
3714 ]
3715 }
3716 }
3717 },
3718 "additionalProperties": false,
3719 "required": [
3720 "metrics"
3721 ]
3722 },
3723 "GetAgenticSystemSessionRequest": {
3724 "type": "object",
3725 "properties": {
3726 "turn_ids": {
3727 "type": "array",
3728 "items": {
3729 "type": "string"
3730 }
3731 }
3732 },
3733 "additionalProperties": false
3734 },
3735 "Session": {
3736 "type": "object",
3737 "properties": {
3738 "session_id": {
3739 "type": "string"
3740 },
3741 "session_name": {
3742 "type": "string"
3743 },
3744 "turns": {
3745 "type": "array",
3746 "items": {
3747 "$ref": "#/components/schemas/Turn"
3748 }
3749 },
3750 "started_at": {
3751 "type": "string",
3752 "format": "date-time"
3753 },
3754 "memory_bank": {
3755 "$ref": "#/components/schemas/MemoryBank"
3756 }
3757 },
3758 "additionalProperties": false,
3759 "required": [
3760 "session_id",
3761 "session_name",
3762 "turns",
3763 "started_at"
3764 ],
3765 "title": "A single session of an interaction with an Agentic System."
3766 },
3767 "AgenticSystemStepResponse": {
3768 "type": "object",
3769 "properties": {
3770 "step": {
3771 "oneOf": [
3772 {
3773 "$ref": "#/components/schemas/InferenceStep"
3774 },
3775 {
3776 "$ref": "#/components/schemas/ToolExecutionStep"
3777 },
3778 {
3779 "$ref": "#/components/schemas/ShieldCallStep"
3780 },
3781 {
3782 "$ref": "#/components/schemas/MemoryRetrievalStep"
3783 }
3784 ]
3785 }
3786 },
3787 "additionalProperties": false,
3788 "required": [
3789 "step"
3790 ]
3791 },
3792 "GetDocumentsRequest": {
3793 "type": "object",
3794 "properties": {
3795 "document_ids": {
3796 "type": "array",
3797 "items": {
3798 "type": "string"
3799 }
3800 }
3801 },
3802 "additionalProperties": false,
3803 "required": [
3804 "document_ids"
3805 ]
3806 },
3807 "MemoryBankDocument": {
3808 "type": "object",
3809 "properties": {
3810 "document_id": {
3811 "type": "string"
3812 },
3813 "content": {
3814 "oneOf": [
3815 {
3816 "type": "string"
3817 },
3818 {
3819 "type": "array",
3820 "items": {
3821 "type": "string"
3822 }
3823 },
3824 {
3825 "$ref": "#/components/schemas/URL"
3826 }
3827 ]
3828 },
3829 "mime_type": {
3830 "type": "string"
3831 },
3832 "metadata": {
3833 "type": "object",
3834 "additionalProperties": {
3835 "oneOf": [
3836 {
3837 "type": "null"
3838 },
3839 {
3840 "type": "boolean"
3841 },
3842 {
3843 "type": "number"
3844 },
3845 {
3846 "type": "string"
3847 },
3848 {
3849 "type": "array"
3850 },
3851 {
3852 "type": "object"
3853 }
3854 ]
3855 }
3856 }
3857 },
3858 "additionalProperties": false,
3859 "required": [
3860 "document_id",
3861 "content",
3862 "mime_type",
3863 "metadata"
3864 ]
3865 },
3866 "EvaluationJobArtifactsResponse": {
3867 "type": "object",
3868 "properties": {
3869 "job_uuid": {
3870 "type": "string"
3871 }
3872 },
3873 "additionalProperties": false,
3874 "required": [
3875 "job_uuid"
3876 ],
3877 "title": "Artifacts of a evaluation job."
3878 },
3879 "EvaluationJobLogStream": {
3880 "type": "object",
3881 "properties": {
3882 "job_uuid": {
3883 "type": "string"
3884 }
3885 },
3886 "additionalProperties": false,
3887 "required": [
3888 "job_uuid"
3889 ]
3890 },
3891 "EvaluationJobStatusResponse": {
3892 "type": "object",
3893 "properties": {
3894 "job_uuid": {
3895 "type": "string"
3896 }
3897 },
3898 "additionalProperties": false,
3899 "required": [
3900 "job_uuid"
3901 ]
3902 },
3903 "Trace": {
3904 "type": "object",
3905 "properties": {
3906 "trace_id": {
3907 "type": "string"
3908 },
3909 "root_span_id": {
3910 "type": "string"
3911 },
3912 "start_time": {
3913 "type": "string",
3914 "format": "date-time"
3915 },
3916 "end_time": {
3917 "type": "string",
3918 "format": "date-time"
3919 }
3920 },
3921 "additionalProperties": false,
3922 "required": [
3923 "trace_id",
3924 "root_span_id",
3925 "start_time"
3926 ]
3927 },
3928 "Checkpoint": {
3929 "description": "Checkpoint created during training runs"
3930 },
3931 "PostTrainingJobArtifactsResponse": {
3932 "type": "object",
3933 "properties": {
3934 "job_uuid": {
3935 "type": "string"
3936 },
3937 "checkpoints": {
3938 "type": "array",
3939 "items": {
3940 "$ref": "#/components/schemas/Checkpoint"
3941 }
3942 }
3943 },
3944 "additionalProperties": false,
3945 "required": [
3946 "job_uuid",
3947 "checkpoints"
3948 ],
3949 "title": "Artifacts of a finetuning job."
3950 },
3951 "PostTrainingJobLogStream": {
3952 "type": "object",
3953 "properties": {
3954 "job_uuid": {
3955 "type": "string"
3956 },
3957 "log_lines": {
3958 "type": "array",
3959 "items": {
3960 "type": "string"
3961 }
3962 }
3963 },
3964 "additionalProperties": false,
3965 "required": [
3966 "job_uuid",
3967 "log_lines"
3968 ],
3969 "title": "Stream of logs from a finetuning job."
3970 },
3971 "PostTrainingJobStatus": {
3972 "type": "string",
3973 "enum": [
3974 "running",
3975 "completed",
3976 "failed",
3977 "scheduled"
3978 ]
3979 },
3980 "PostTrainingJobStatusResponse": {
3981 "type": "object",
3982 "properties": {
3983 "job_uuid": {
3984 "type": "string"
3985 },
3986 "status": {
3987 "$ref": "#/components/schemas/PostTrainingJobStatus"
3988 },
3989 "scheduled_at": {
3990 "type": "string",
3991 "format": "date-time"
3992 },
3993 "started_at": {
3994 "type": "string",
3995 "format": "date-time"
3996 },
3997 "completed_at": {
3998 "type": "string",
3999 "format": "date-time"
4000 },
4001 "resources_allocated": {
4002 "type": "object",
4003 "additionalProperties": {
4004 "oneOf": [
4005 {
4006 "type": "null"
4007 },
4008 {
4009 "type": "boolean"
4010 },
4011 {
4012 "type": "number"
4013 },
4014 {
4015 "type": "string"
4016 },
4017 {
4018 "type": "array"
4019 },
4020 {
4021 "type": "object"
4022 }
4023 ]
4024 }
4025 },
4026 "checkpoints": {
4027 "type": "array",
4028 "items": {
4029 "$ref": "#/components/schemas/Checkpoint"
4030 }
4031 }
4032 },
4033 "additionalProperties": false,
4034 "required": [
4035 "job_uuid",
4036 "status",
4037 "checkpoints"
4038 ],
4039 "title": "Status of a finetuning job."
4040 },
4041 "PostTrainingJob": {
4042 "type": "object",
4043 "properties": {
4044 "job_uuid": {
4045 "type": "string"
4046 }
4047 },
4048 "additionalProperties": false,
4049 "required": [
4050 "job_uuid"
4051 ]
4052 },
4053 "InsertDocumentsRequest": {
4054 "type": "object",
4055 "properties": {
4056 "bank_id": {
4057 "type": "string"
4058 },
4059 "documents": {
4060 "type": "array",
4061 "items": {
4062 "$ref": "#/components/schemas/MemoryBankDocument"
4063 }
4064 },
4065 "ttl_seconds": {
4066 "type": "integer"
4067 }
4068 },
4069 "additionalProperties": false,
4070 "required": [
4071 "bank_id",
4072 "documents"
4073 ]
4074 },
4075 "LogSeverity": {
4076 "type": "string",
4077 "enum": [
4078 "verbose",
4079 "debug",
4080 "info",
4081 "warn",
4082 "error",
4083 "critical"
4084 ]
4085 },
4086 "MetricEvent": {
4087 "type": "object",
4088 "properties": {
4089 "trace_id": {
4090 "type": "string"
4091 },
4092 "span_id": {
4093 "type": "string"
4094 },
4095 "timestamp": {
4096 "type": "string",
4097 "format": "date-time"
4098 },
4099 "attributes": {
4100 "type": "object",
4101 "additionalProperties": {
4102 "oneOf": [
4103 {
4104 "type": "null"
4105 },
4106 {
4107 "type": "boolean"
4108 },
4109 {
4110 "type": "number"
4111 },
4112 {
4113 "type": "string"
4114 },
4115 {
4116 "type": "array"
4117 },
4118 {
4119 "type": "object"
4120 }
4121 ]
4122 }
4123 },
4124 "type": {
4125 "type": "string",
4126 "const": "metric"
4127 },
4128 "metric": {
4129 "type": "string"
4130 },
4131 "value": {
4132 "oneOf": [
4133 {
4134 "type": "integer"
4135 },
4136 {
4137 "type": "number"
4138 }
4139 ]
4140 },
4141 "unit": {
4142 "type": "string"
4143 }
4144 },
4145 "additionalProperties": false,
4146 "required": [
4147 "trace_id",
4148 "span_id",
4149 "timestamp",
4150 "type",
4151 "metric",
4152 "value",
4153 "unit"
4154 ]
4155 },
4156 "SpanEndPayload": {
4157 "type": "object",
4158 "properties": {
4159 "type": {
4160 "type": "string",
4161 "const": "span_end"
4162 },
4163 "status": {
4164 "$ref": "#/components/schemas/SpanStatus"
4165 }
4166 },
4167 "additionalProperties": false,
4168 "required": [
4169 "type",
4170 "status"
4171 ]
4172 },
4173 "SpanStartPayload": {
4174 "type": "object",
4175 "properties": {
4176 "type": {
4177 "type": "string",
4178 "const": "span_start"
4179 },
4180 "name": {
4181 "type": "string"
4182 },
4183 "parent_span_id": {
4184 "type": "string"
4185 }
4186 },
4187 "additionalProperties": false,
4188 "required": [
4189 "type",
4190 "name"
4191 ]
4192 },
4193 "SpanStatus": {
4194 "type": "string",
4195 "enum": [
4196 "ok",
4197 "error"
4198 ]
4199 },
4200 "StructuredLogEvent": {
4201 "type": "object",
4202 "properties": {
4203 "trace_id": {
4204 "type": "string"
4205 },
4206 "span_id": {
4207 "type": "string"
4208 },
4209 "timestamp": {
4210 "type": "string",
4211 "format": "date-time"
4212 },
4213 "attributes": {
4214 "type": "object",
4215 "additionalProperties": {
4216 "oneOf": [
4217 {
4218 "type": "null"
4219 },
4220 {
4221 "type": "boolean"
4222 },
4223 {
4224 "type": "number"
4225 },
4226 {
4227 "type": "string"
4228 },
4229 {
4230 "type": "array"
4231 },
4232 {
4233 "type": "object"
4234 }
4235 ]
4236 }
4237 },
4238 "type": {
4239 "type": "string",
4240 "const": "structured_log"
4241 },
4242 "payload": {
4243 "oneOf": [
4244 {
4245 "$ref": "#/components/schemas/SpanStartPayload"
4246 },
4247 {
4248 "$ref": "#/components/schemas/SpanEndPayload"
4249 }
4250 ]
4251 }
4252 },
4253 "additionalProperties": false,
4254 "required": [
4255 "trace_id",
4256 "span_id",
4257 "timestamp",
4258 "type",
4259 "payload"
4260 ]
4261 },
4262 "UnstructuredLogEvent": {
4263 "type": "object",
4264 "properties": {
4265 "trace_id": {
4266 "type": "string"
4267 },
4268 "span_id": {
4269 "type": "string"
4270 },
4271 "timestamp": {
4272 "type": "string",
4273 "format": "date-time"
4274 },
4275 "attributes": {
4276 "type": "object",
4277 "additionalProperties": {
4278 "oneOf": [
4279 {
4280 "type": "null"
4281 },
4282 {
4283 "type": "boolean"
4284 },
4285 {
4286 "type": "number"
4287 },
4288 {
4289 "type": "string"
4290 },
4291 {
4292 "type": "array"
4293 },
4294 {
4295 "type": "object"
4296 }
4297 ]
4298 }
4299 },
4300 "type": {
4301 "type": "string",
4302 "const": "unstructured_log"
4303 },
4304 "message": {
4305 "type": "string"
4306 },
4307 "severity": {
4308 "$ref": "#/components/schemas/LogSeverity"
4309 }
4310 },
4311 "additionalProperties": false,
4312 "required": [
4313 "trace_id",
4314 "span_id",
4315 "timestamp",
4316 "type",
4317 "message",
4318 "severity"
4319 ]
4320 },
4321 "LogEventRequest": {
4322 "type": "object",
4323 "properties": {
4324 "event": {
4325 "oneOf": [
4326 {
4327 "$ref": "#/components/schemas/UnstructuredLogEvent"
4328 },
4329 {
4330 "$ref": "#/components/schemas/MetricEvent"
4331 },
4332 {
4333 "$ref": "#/components/schemas/StructuredLogEvent"
4334 }
4335 ]
4336 }
4337 },
4338 "additionalProperties": false,
4339 "required": [
4340 "event"
4341 ]
4342 },
4343 "DPOAlignmentConfig": {
4344 "type": "object",
4345 "properties": {
4346 "reward_scale": {
4347 "type": "number"
4348 },
4349 "reward_clip": {
4350 "type": "number"
4351 },
4352 "epsilon": {
4353 "type": "number"
4354 },
4355 "gamma": {
4356 "type": "number"
4357 }
4358 },
4359 "additionalProperties": false,
4360 "required": [
4361 "reward_scale",
4362 "reward_clip",
4363 "epsilon",
4364 "gamma"
4365 ]
4366 },
4367 "OptimizerConfig": {
4368 "type": "object",
4369 "properties": {
4370 "optimizer_type": {
4371 "type": "string",
4372 "enum": [
4373 "adam",
4374 "adamw",
4375 "sgd"
4376 ]
4377 },
4378 "lr": {
4379 "type": "number"
4380 },
4381 "lr_min": {
4382 "type": "number"
4383 },
4384 "weight_decay": {
4385 "type": "number"
4386 }
4387 },
4388 "additionalProperties": false,
4389 "required": [
4390 "optimizer_type",
4391 "lr",
4392 "lr_min",
4393 "weight_decay"
4394 ]
4395 },
4396 "RLHFAlgorithm": {
4397 "type": "string",
4398 "enum": [
4399 "dpo"
4400 ]
4401 },
4402 "TrainingConfig": {
4403 "type": "object",
4404 "properties": {
4405 "n_epochs": {
4406 "type": "integer"
4407 },
4408 "batch_size": {
4409 "type": "integer"
4410 },
4411 "shuffle": {
4412 "type": "boolean"
4413 },
4414 "n_iters": {
4415 "type": "integer"
4416 },
4417 "enable_activation_checkpointing": {
4418 "type": "boolean"
4419 },
4420 "memory_efficient_fsdp_wrap": {
4421 "type": "boolean"
4422 },
4423 "fsdp_cpu_offload": {
4424 "type": "boolean"
4425 }
4426 },
4427 "additionalProperties": false,
4428 "required": [
4429 "n_epochs",
4430 "batch_size",
4431 "shuffle",
4432 "n_iters",
4433 "enable_activation_checkpointing",
4434 "memory_efficient_fsdp_wrap",
4435 "fsdp_cpu_offload"
4436 ]
4437 },
4438 "PreferenceOptimizeRequest": {
4439 "type": "object",
4440 "properties": {
4441 "job_uuid": {
4442 "type": "string"
4443 },
4444 "finetuned_model": {
4445 "$ref": "#/components/schemas/URL"
4446 },
4447 "dataset": {
4448 "$ref": "#/components/schemas/TrainEvalDataset"
4449 },
4450 "validation_dataset": {
4451 "$ref": "#/components/schemas/TrainEvalDataset"
4452 },
4453 "algorithm": {
4454 "$ref": "#/components/schemas/RLHFAlgorithm"
4455 },
4456 "algorithm_config": {
4457 "$ref": "#/components/schemas/DPOAlignmentConfig"
4458 },
4459 "optimizer_config": {
4460 "$ref": "#/components/schemas/OptimizerConfig"
4461 },
4462 "training_config": {
4463 "$ref": "#/components/schemas/TrainingConfig"
4464 },
4465 "hyperparam_search_config": {
4466 "type": "object",
4467 "additionalProperties": {
4468 "oneOf": [
4469 {
4470 "type": "null"
4471 },
4472 {
4473 "type": "boolean"
4474 },
4475 {
4476 "type": "number"
4477 },
4478 {
4479 "type": "string"
4480 },
4481 {
4482 "type": "array"
4483 },
4484 {
4485 "type": "object"
4486 }
4487 ]
4488 }
4489 },
4490 "logger_config": {
4491 "type": "object",
4492 "additionalProperties": {
4493 "oneOf": [
4494 {
4495 "type": "null"
4496 },
4497 {
4498 "type": "boolean"
4499 },
4500 {
4501 "type": "number"
4502 },
4503 {
4504 "type": "string"
4505 },
4506 {
4507 "type": "array"
4508 },
4509 {
4510 "type": "object"
4511 }
4512 ]
4513 }
4514 }
4515 },
4516 "additionalProperties": false,
4517 "required": [
4518 "job_uuid",
4519 "finetuned_model",
4520 "dataset",
4521 "validation_dataset",
4522 "algorithm",
4523 "algorithm_config",
4524 "optimizer_config",
4525 "training_config",
4526 "hyperparam_search_config",
4527 "logger_config"
4528 ]
4529 },
4530 "QueryDocumentsRequest": {
4531 "type": "object",
4532 "properties": {
4533 "bank_id": {
4534 "type": "string"
4535 },
4536 "query": {
4537 "oneOf": [
4538 {
4539 "type": "string"
4540 },
4541 {
4542 "type": "array",
4543 "items": {
4544 "type": "string"
4545 }
4546 }
4547 ]
4548 },
4549 "params": {
4550 "type": "object",
4551 "additionalProperties": {
4552 "oneOf": [
4553 {
4554 "type": "null"
4555 },
4556 {
4557 "type": "boolean"
4558 },
4559 {
4560 "type": "number"
4561 },
4562 {
4563 "type": "string"
4564 },
4565 {
4566 "type": "array"
4567 },
4568 {
4569 "type": "object"
4570 }
4571 ]
4572 }
4573 }
4574 },
4575 "additionalProperties": false,
4576 "required": [
4577 "bank_id",
4578 "query"
4579 ]
4580 },
4581 "QueryDocumentsResponse": {
4582 "type": "object",
4583 "properties": {
4584 "chunks": {
4585 "type": "array",
4586 "items": {
4587 "type": "object",
4588 "properties": {
4589 "content": {
4590 "oneOf": [
4591 {
4592 "type": "string"
4593 },
4594 {
4595 "type": "array",
4596 "items": {
4597 "type": "string"
4598 }
4599 }
4600 ]
4601 },
4602 "token_count": {
4603 "type": "integer"
4604 },
4605 "document_id": {
4606 "type": "string"
4607 }
4608 },
4609 "additionalProperties": false,
4610 "required": [
4611 "content",
4612 "token_count",
4613 "document_id"
4614 ]
4615 }
4616 },
4617 "scores": {
4618 "type": "array",
4619 "items": {
4620 "type": "number"
4621 }
4622 }
4623 },
4624 "additionalProperties": false,
4625 "required": [
4626 "chunks",
4627 "scores"
4628 ]
4629 },
4630 "DialogGenerations": {
4631 "type": "object",
4632 "properties": {
4633 "dialog": {
4634 "type": "array",
4635 "items": {
4636 "oneOf": [
4637 {
4638 "$ref": "#/components/schemas/UserMessage"
4639 },
4640 {
4641 "$ref": "#/components/schemas/SystemMessage"
4642 },
4643 {
4644 "$ref": "#/components/schemas/ToolResponseMessage"
4645 },
4646 {
4647 "$ref": "#/components/schemas/CompletionMessage"
4648 }
4649 ]
4650 }
4651 },
4652 "sampled_generations": {
4653 "type": "array",
4654 "items": {
4655 "oneOf": [
4656 {
4657 "$ref": "#/components/schemas/UserMessage"
4658 },
4659 {
4660 "$ref": "#/components/schemas/SystemMessage"
4661 },
4662 {
4663 "$ref": "#/components/schemas/ToolResponseMessage"
4664 },
4665 {
4666 "$ref": "#/components/schemas/CompletionMessage"
4667 }
4668 ]
4669 }
4670 }
4671 },
4672 "additionalProperties": false,
4673 "required": [
4674 "dialog",
4675 "sampled_generations"
4676 ]
4677 },
4678 "RewardScoreRequest": {
4679 "type": "object",
4680 "properties": {
4681 "dialog_generations": {
4682 "type": "array",
4683 "items": {
4684 "$ref": "#/components/schemas/DialogGenerations"
4685 }
4686 },
4687 "model": {
4688 "type": "string"
4689 }
4690 },
4691 "additionalProperties": false,
4692 "required": [
4693 "dialog_generations",
4694 "model"
4695 ]
4696 },
4697 "RewardScoringResponse": {
4698 "type": "object",
4699 "properties": {
4700 "scored_generations": {
4701 "type": "array",
4702 "items": {
4703 "$ref": "#/components/schemas/ScoredDialogGenerations"
4704 }
4705 }
4706 },
4707 "additionalProperties": false,
4708 "required": [
4709 "scored_generations"
4710 ],
4711 "title": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold."
4712 },
4713 "ScoredDialogGenerations": {
4714 "type": "object",
4715 "properties": {
4716 "dialog": {
4717 "type": "array",
4718 "items": {
4719 "oneOf": [
4720 {
4721 "$ref": "#/components/schemas/UserMessage"
4722 },
4723 {
4724 "$ref": "#/components/schemas/SystemMessage"
4725 },
4726 {
4727 "$ref": "#/components/schemas/ToolResponseMessage"
4728 },
4729 {
4730 "$ref": "#/components/schemas/CompletionMessage"
4731 }
4732 ]
4733 }
4734 },
4735 "scored_generations": {
4736 "type": "array",
4737 "items": {
4738 "$ref": "#/components/schemas/ScoredMessage"
4739 }
4740 }
4741 },
4742 "additionalProperties": false,
4743 "required": [
4744 "dialog",
4745 "scored_generations"
4746 ]
4747 },
4748 "ScoredMessage": {
4749 "type": "object",
4750 "properties": {
4751 "message": {
4752 "oneOf": [
4753 {
4754 "$ref": "#/components/schemas/UserMessage"
4755 },
4756 {
4757 "$ref": "#/components/schemas/SystemMessage"
4758 },
4759 {
4760 "$ref": "#/components/schemas/ToolResponseMessage"
4761 },
4762 {
4763 "$ref": "#/components/schemas/CompletionMessage"
4764 }
4765 ]
4766 },
4767 "score": {
4768 "type": "number"
4769 }
4770 },
4771 "additionalProperties": false,
4772 "required": [
4773 "message",
4774 "score"
4775 ]
4776 },
4777 "RunShieldsRequest": {
4778 "type": "object",
4779 "properties": {
4780 "messages": {
4781 "type": "array",
4782 "items": {
4783 "oneOf": [
4784 {
4785 "$ref": "#/components/schemas/UserMessage"
4786 },
4787 {
4788 "$ref": "#/components/schemas/SystemMessage"
4789 },
4790 {
4791 "$ref": "#/components/schemas/ToolResponseMessage"
4792 },
4793 {
4794 "$ref": "#/components/schemas/CompletionMessage"
4795 }
4796 ]
4797 }
4798 },
4799 "shields": {
4800 "type": "array",
4801 "items": {
4802 "$ref": "#/components/schemas/ShieldDefinition"
4803 }
4804 }
4805 },
4806 "additionalProperties": false,
4807 "required": [
4808 "messages",
4809 "shields"
4810 ]
4811 },
4812 "RunShieldResponse": {
4813 "type": "object",
4814 "properties": {
4815 "responses": {
4816 "type": "array",
4817 "items": {
4818 "$ref": "#/components/schemas/ShieldResponse"
4819 }
4820 }
4821 },
4822 "additionalProperties": false,
4823 "required": [
4824 "responses"
4825 ]
4826 },
4827 "DoraFinetuningConfig": {
4828 "type": "object",
4829 "properties": {
4830 "lora_attn_modules": {
4831 "type": "array",
4832 "items": {
4833 "type": "string"
4834 }
4835 },
4836 "apply_lora_to_mlp": {
4837 "type": "boolean"
4838 },
4839 "apply_lora_to_output": {
4840 "type": "boolean"
4841 },
4842 "rank": {
4843 "type": "integer"
4844 },
4845 "alpha": {
4846 "type": "integer"
4847 }
4848 },
4849 "additionalProperties": false,
4850 "required": [
4851 "lora_attn_modules",
4852 "apply_lora_to_mlp",
4853 "apply_lora_to_output",
4854 "rank",
4855 "alpha"
4856 ]
4857 },
4858 "FinetuningAlgorithm": {
4859 "type": "string",
4860 "enum": [
4861 "full",
4862 "lora",
4863 "qlora",
4864 "dora"
4865 ]
4866 },
4867 "LoraFinetuningConfig": {
4868 "type": "object",
4869 "properties": {
4870 "lora_attn_modules": {
4871 "type": "array",
4872 "items": {
4873 "type": "string"
4874 }
4875 },
4876 "apply_lora_to_mlp": {
4877 "type": "boolean"
4878 },
4879 "apply_lora_to_output": {
4880 "type": "boolean"
4881 },
4882 "rank": {
4883 "type": "integer"
4884 },
4885 "alpha": {
4886 "type": "integer"
4887 }
4888 },
4889 "additionalProperties": false,
4890 "required": [
4891 "lora_attn_modules",
4892 "apply_lora_to_mlp",
4893 "apply_lora_to_output",
4894 "rank",
4895 "alpha"
4896 ]
4897 },
4898 "QLoraFinetuningConfig": {
4899 "type": "object",
4900 "properties": {
4901 "lora_attn_modules": {
4902 "type": "array",
4903 "items": {
4904 "type": "string"
4905 }
4906 },
4907 "apply_lora_to_mlp": {
4908 "type": "boolean"
4909 },
4910 "apply_lora_to_output": {
4911 "type": "boolean"
4912 },
4913 "rank": {
4914 "type": "integer"
4915 },
4916 "alpha": {
4917 "type": "integer"
4918 }
4919 },
4920 "additionalProperties": false,
4921 "required": [
4922 "lora_attn_modules",
4923 "apply_lora_to_mlp",
4924 "apply_lora_to_output",
4925 "rank",
4926 "alpha"
4927 ]
4928 },
4929 "SupervisedFineTuneRequest": {
4930 "type": "object",
4931 "properties": {
4932 "job_uuid": {
4933 "type": "string"
4934 },
4935 "model": {
4936 "type": "string"
4937 },
4938 "dataset": {
4939 "$ref": "#/components/schemas/TrainEvalDataset"
4940 },
4941 "validation_dataset": {
4942 "$ref": "#/components/schemas/TrainEvalDataset"
4943 },
4944 "algorithm": {
4945 "$ref": "#/components/schemas/FinetuningAlgorithm"
4946 },
4947 "algorithm_config": {
4948 "oneOf": [
4949 {
4950 "$ref": "#/components/schemas/LoraFinetuningConfig"
4951 },
4952 {
4953 "$ref": "#/components/schemas/QLoraFinetuningConfig"
4954 },
4955 {
4956 "$ref": "#/components/schemas/DoraFinetuningConfig"
4957 }
4958 ]
4959 },
4960 "optimizer_config": {
4961 "$ref": "#/components/schemas/OptimizerConfig"
4962 },
4963 "training_config": {
4964 "$ref": "#/components/schemas/TrainingConfig"
4965 },
4966 "hyperparam_search_config": {
4967 "type": "object",
4968 "additionalProperties": {
4969 "oneOf": [
4970 {
4971 "type": "null"
4972 },
4973 {
4974 "type": "boolean"
4975 },
4976 {
4977 "type": "number"
4978 },
4979 {
4980 "type": "string"
4981 },
4982 {
4983 "type": "array"
4984 },
4985 {
4986 "type": "object"
4987 }
4988 ]
4989 }
4990 },
4991 "logger_config": {
4992 "type": "object",
4993 "additionalProperties": {
4994 "oneOf": [
4995 {
4996 "type": "null"
4997 },
4998 {
4999 "type": "boolean"
5000 },
5001 {
5002 "type": "number"
5003 },
5004 {
5005 "type": "string"
5006 },
5007 {
5008 "type": "array"
5009 },
5010 {
5011 "type": "object"
5012 }
5013 ]
5014 }
5015 }
5016 },
5017 "additionalProperties": false,
5018 "required": [
5019 "job_uuid",
5020 "model",
5021 "dataset",
5022 "validation_dataset",
5023 "algorithm",
5024 "algorithm_config",
5025 "optimizer_config",
5026 "training_config",
5027 "hyperparam_search_config",
5028 "logger_config"
5029 ]
5030 },
5031 "SyntheticDataGenerateRequest": {
5032 "type": "object",
5033 "properties": {
5034 "dialogs": {
5035 "type": "array",
5036 "items": {
5037 "oneOf": [
5038 {
5039 "$ref": "#/components/schemas/UserMessage"
5040 },
5041 {
5042 "$ref": "#/components/schemas/SystemMessage"
5043 },
5044 {
5045 "$ref": "#/components/schemas/ToolResponseMessage"
5046 },
5047 {
5048 "$ref": "#/components/schemas/CompletionMessage"
5049 }
5050 ]
5051 }
5052 },
5053 "filtering_function": {
5054 "type": "string",
5055 "enum": [
5056 "none",
5057 "random",
5058 "top_k",
5059 "top_p",
5060 "top_k_top_p",
5061 "sigmoid"
5062 ],
5063 "title": "The type of filtering function."
5064 },
5065 "model": {
5066 "type": "string"
5067 }
5068 },
5069 "additionalProperties": false,
5070 "required": [
5071 "dialogs",
5072 "filtering_function"
5073 ]
5074 },
5075 "SyntheticDataGenerationResponse": {
5076 "type": "object",
5077 "properties": {
5078 "synthetic_data": {
5079 "type": "array",
5080 "items": {
5081 "$ref": "#/components/schemas/ScoredDialogGenerations"
5082 }
5083 },
5084 "statistics": {
5085 "type": "object",
5086 "additionalProperties": {
5087 "oneOf": [
5088 {
5089 "type": "null"
5090 },
5091 {
5092 "type": "boolean"
5093 },
5094 {
5095 "type": "number"
5096 },
5097 {
5098 "type": "string"
5099 },
5100 {
5101 "type": "array"
5102 },
5103 {
5104 "type": "object"
5105 }
5106 ]
5107 }
5108 }
5109 },
5110 "additionalProperties": false,
5111 "required": [
5112 "synthetic_data"
5113 ],
5114 "title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold."
5115 },
5116 "UpdateDocumentsRequest": {
5117 "type": "object",
5118 "properties": {
5119 "bank_id": {
5120 "type": "string"
5121 },
5122 "documents": {
5123 "type": "array",
5124 "items": {
5125 "$ref": "#/components/schemas/MemoryBankDocument"
5126 }
5127 }
5128 },
5129 "additionalProperties": false,
5130 "required": [
5131 "bank_id",
5132 "documents"
5133 ]
5134 }
5135 },
5136 "responses": {}
5137 },
5138 "security": [
5139 {
5140 "Default": []
5141 }
5142 ],
5143 "tags": [
5144 {
5145 "name": "SyntheticDataGeneration"
5146 },
5147 {
5148 "name": "Datasets"
5149 },
5150 {
5151 "name": "Evaluations"
5152 },
5153 {
5154 "name": "Safety"
5155 },
5156 {
5157 "name": "Inference"
5158 },
5159 {
5160 "name": "Telemetry"
5161 },
5162 {
5163 "name": "PostTraining"
5164 },
5165 {
5166 "name": "Memory"
5167 },
5168 {
5169 "name": "RewardScoring"
5170 },
5171 {
5172 "name": "BatchInference"
5173 },
5174 {
5175 "name": "AgenticSystem"
5176 },
5177 {
5178 "name": "BuiltinTool",
5179 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"
5180 },
5181 {
5182 "name": "CompletionMessage",
5183 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionMessage\" />"
5184 },
5185 {
5186 "name": "SamplingParams",
5187 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingParams\" />"
5188 },
5189 {
5190 "name": "SamplingStrategy",
5191 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingStrategy\" />"
5192 },
5193 {
5194 "name": "StopReason",
5195 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StopReason\" />"
5196 },
5197 {
5198 "name": "SystemMessage",
5199 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SystemMessage\" />"
5200 },
5201 {
5202 "name": "ToolCall",
5203 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCall\" />"
5204 },
5205 {
5206 "name": "ToolChoice",
5207 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolChoice\" />"
5208 },
5209 {
5210 "name": "ToolDefinition",
5211 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolDefinition\" />"
5212 },
5213 {
5214 "name": "ToolParamDefinition",
5215 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolParamDefinition\" />"
5216 },
5217 {
5218 "name": "ToolPromptFormat",
5219 "description": "This Enum refers to the prompt format for calling custom / zero shot tools\n\n`json` --\n Refers to the json format for calling tools.\n The json format takes the form like\n {\n \"type\": \"function\",\n \"function\" : {\n \"name\": \"function_name\",\n \"description\": \"function_description\",\n \"parameters\": {...}\n }\n }\n\n`function_tag` --\n This is an example of how you could define\n your own user defined format for making tool calls.\n The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\nThe detailed prompts for each of these formats are added to llama cli\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ToolPromptFormat\" />"
5220 },
5221 {
5222 "name": "ToolResponseMessage",
5223 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponseMessage\" />"
5224 },
5225 {
5226 "name": "UserMessage",
5227 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UserMessage\" />"
5228 },
5229 {
5230 "name": "BatchChatCompletionRequest",
5231 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />"
5232 },
5233 {
5234 "name": "BatchChatCompletionResponse",
5235 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionResponse\" />"
5236 },
5237 {
5238 "name": "BatchCompletionRequest",
5239 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionRequest\" />"
5240 },
5241 {
5242 "name": "BatchCompletionResponse",
5243 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
5244 },
5245 {
5246 "name": "CancelEvaluationJobRequest",
5247 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelEvaluationJobRequest\" />"
5248 },
5249 {
5250 "name": "CancelTrainingJobRequest",
5251 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelTrainingJobRequest\" />"
5252 },
5253 {
5254 "name": "ChatCompletionRequest",
5255 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />"
5256 },
5257 {
5258 "name": "ChatCompletionResponse",
5259 "description": "Chat completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponse\" />"
5260 },
5261 {
5262 "name": "ChatCompletionResponseEvent",
5263 "description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />"
5264 },
5265 {
5266 "name": "ChatCompletionResponseEventType",
5267 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEventType\" />"
5268 },
5269 {
5270 "name": "ChatCompletionResponseStreamChunk",
5271 "description": "SSE-stream of these events.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseStreamChunk\" />"
5272 },
5273 {
5274 "name": "TokenLogProbs",
5275 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TokenLogProbs\" />"
5276 },
5277 {
5278 "name": "ToolCallDelta",
5279 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallDelta\" />"
5280 },
5281 {
5282 "name": "ToolCallParseStatus",
5283 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallParseStatus\" />"
5284 },
5285 {
5286 "name": "CompletionRequest",
5287 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />"
5288 },
5289 {
5290 "name": "CompletionResponse",
5291 "description": "Completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponse\" />"
5292 },
5293 {
5294 "name": "CompletionResponseStreamChunk",
5295 "description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />"
5296 },
5297 {
5298 "name": "AgentConfig",
5299 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentConfig\" />"
5300 },
5301 {
5302 "name": "BuiltinShield",
5303 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinShield\" />"
5304 },
5305 {
5306 "name": "CodeInterpreterToolDefinition",
5307 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CodeInterpreterToolDefinition\" />"
5308 },
5309 {
5310 "name": "FunctionCallToolDefinition",
5311 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FunctionCallToolDefinition\" />"
5312 },
5313 {
5314 "name": "OnViolationAction",
5315 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OnViolationAction\" />"
5316 },
5317 {
5318 "name": "PhotogenToolDefinition",
5319 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PhotogenToolDefinition\" />"
5320 },
5321 {
5322 "name": "RestAPIExecutionConfig",
5323 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIExecutionConfig\" />"
5324 },
5325 {
5326 "name": "RestAPIMethod",
5327 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIMethod\" />"
5328 },
5329 {
5330 "name": "SearchToolDefinition",
5331 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SearchToolDefinition\" />"
5332 },
5333 {
5334 "name": "ShieldDefinition",
5335 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldDefinition\" />"
5336 },
5337 {
5338 "name": "URL",
5339 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/URL\" />"
5340 },
5341 {
5342 "name": "WolframAlphaToolDefinition",
5343 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/WolframAlphaToolDefinition\" />"
5344 },
5345 {
5346 "name": "CreateAgenticSystemRequest",
5347 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgenticSystemRequest\" />"
5348 },
5349 {
5350 "name": "AgenticSystemCreateResponse",
5351 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemCreateResponse\" />"
5352 },
5353 {
5354 "name": "CreateAgenticSystemSessionRequest",
5355 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgenticSystemSessionRequest\" />"
5356 },
5357 {
5358 "name": "AgenticSystemSessionCreateResponse",
5359 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemSessionCreateResponse\" />"
5360 },
5361 {
5362 "name": "Attachment",
5363 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Attachment\" />"
5364 },
5365 {
5366 "name": "CreateAgenticSystemTurnRequest",
5367 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgenticSystemTurnRequest\" />"
5368 },
5369 {
5370 "name": "AgenticSystemTurnResponseEvent",
5371 "description": "Streamed agent execution response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseEvent\" />"
5372 },
5373 {
5374 "name": "AgenticSystemTurnResponseStepCompletePayload",
5375 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStepCompletePayload\" />"
5376 },
5377 {
5378 "name": "AgenticSystemTurnResponseStepProgressPayload",
5379 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStepProgressPayload\" />"
5380 },
5381 {
5382 "name": "AgenticSystemTurnResponseStepStartPayload",
5383 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStepStartPayload\" />"
5384 },
5385 {
5386 "name": "AgenticSystemTurnResponseStreamChunk",
5387 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStreamChunk\" />"
5388 },
5389 {
5390 "name": "AgenticSystemTurnResponseTurnCompletePayload",
5391 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseTurnCompletePayload\" />"
5392 },
5393 {
5394 "name": "AgenticSystemTurnResponseTurnStartPayload",
5395 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseTurnStartPayload\" />"
5396 },
5397 {
5398 "name": "InferenceStep",
5399 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InferenceStep\" />"
5400 },
5401 {
5402 "name": "MemoryRetrievalStep",
5403 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryRetrievalStep\" />"
5404 },
5405 {
5406 "name": "ShieldCallStep",
5407 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldCallStep\" />"
5408 },
5409 {
5410 "name": "ShieldResponse",
5411 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldResponse\" />"
5412 },
5413 {
5414 "name": "ToolExecutionStep",
5415 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolExecutionStep\" />"
5416 },
5417 {
5418 "name": "ToolResponse",
5419 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponse\" />"
5420 },
5421 {
5422 "name": "Turn",
5423 "description": "A single turn in an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Turn\" />"
5424 },
5425 {
5426 "name": "TrainEvalDataset",
5427 "description": "Dataset to be used for training or evaluating language models.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDataset\" />"
5428 },
5429 {
5430 "name": "TrainEvalDatasetColumnType",
5431 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDatasetColumnType\" />"
5432 },
5433 {
5434 "name": "CreateDatasetRequest",
5435 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateDatasetRequest\" />"
5436 },
5437 {
5438 "name": "CreateMemoryBankRequest",
5439 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateMemoryBankRequest\" />"
5440 },
5441 {
5442 "name": "MemoryBank",
5443 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBank\" />"
5444 },
5445 {
5446 "name": "DeleteAgenticSystemRequest",
5447 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemRequest\" />"
5448 },
5449 {
5450 "name": "DeleteAgenticSystemSessionRequest",
5451 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemSessionRequest\" />"
5452 },
5453 {
5454 "name": "DeleteDatasetRequest",
5455 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDatasetRequest\" />"
5456 },
5457 {
5458 "name": "DeleteDocumentsRequest",
5459 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDocumentsRequest\" />"
5460 },
5461 {
5462 "name": "DropMemoryBankRequest",
5463 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DropMemoryBankRequest\" />"
5464 },
5465 {
5466 "name": "EmbeddingsRequest",
5467 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />"
5468 },
5469 {
5470 "name": "EmbeddingsResponse",
5471 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsResponse\" />"
5472 },
5473 {
5474 "name": "EvaluateQuestionAnsweringRequest",
5475 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateQuestionAnsweringRequest\" />"
5476 },
5477 {
5478 "name": "EvaluationJob",
5479 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJob\" />"
5480 },
5481 {
5482 "name": "EvaluateSummarizationRequest",
5483 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateSummarizationRequest\" />"
5484 },
5485 {
5486 "name": "EvaluateTextGenerationRequest",
5487 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequest\" />"
5488 },
5489 {
5490 "name": "GetAgenticSystemSessionRequest",
5491 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetAgenticSystemSessionRequest\" />"
5492 },
5493 {
5494 "name": "Session",
5495 "description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />"
5496 },
5497 {
5498 "name": "AgenticSystemStepResponse",
5499 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemStepResponse\" />"
5500 },
5501 {
5502 "name": "GetDocumentsRequest",
5503 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetDocumentsRequest\" />"
5504 },
5505 {
5506 "name": "MemoryBankDocument",
5507 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankDocument\" />"
5508 },
5509 {
5510 "name": "EvaluationJobArtifactsResponse",
5511 "description": "Artifacts of a evaluation job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobArtifactsResponse\" />"
5512 },
5513 {
5514 "name": "EvaluationJobLogStream",
5515 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobLogStream\" />"
5516 },
5517 {
5518 "name": "EvaluationJobStatusResponse",
5519 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobStatusResponse\" />"
5520 },
5521 {
5522 "name": "Trace",
5523 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Trace\" />"
5524 },
5525 {
5526 "name": "Checkpoint",
5527 "description": "Checkpoint created during training runs\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Checkpoint\" />"
5528 },
5529 {
5530 "name": "PostTrainingJobArtifactsResponse",
5531 "description": "Artifacts of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobArtifactsResponse\" />"
5532 },
5533 {
5534 "name": "PostTrainingJobLogStream",
5535 "description": "Stream of logs from a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobLogStream\" />"
5536 },
5537 {
5538 "name": "PostTrainingJobStatus",
5539 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatus\" />"
5540 },
5541 {
5542 "name": "PostTrainingJobStatusResponse",
5543 "description": "Status of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatusResponse\" />"
5544 },
5545 {
5546 "name": "PostTrainingJob",
5547 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />"
5548 },
5549 {
5550 "name": "InsertDocumentsRequest",
5551 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />"
5552 },
5553 {
5554 "name": "LogSeverity",
5555 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogSeverity\" />"
5556 },
5557 {
5558 "name": "MetricEvent",
5559 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MetricEvent\" />"
5560 },
5561 {
5562 "name": "SpanEndPayload",
5563 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanEndPayload\" />"
5564 },
5565 {
5566 "name": "SpanStartPayload",
5567 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStartPayload\" />"
5568 },
5569 {
5570 "name": "SpanStatus",
5571 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStatus\" />"
5572 },
5573 {
5574 "name": "StructuredLogEvent",
5575 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StructuredLogEvent\" />"
5576 },
5577 {
5578 "name": "UnstructuredLogEvent",
5579 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UnstructuredLogEvent\" />"
5580 },
5581 {
5582 "name": "LogEventRequest",
5583 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogEventRequest\" />"
5584 },
5585 {
5586 "name": "DPOAlignmentConfig",
5587 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DPOAlignmentConfig\" />"
5588 },
5589 {
5590 "name": "OptimizerConfig",
5591 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OptimizerConfig\" />"
5592 },
5593 {
5594 "name": "RLHFAlgorithm",
5595 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RLHFAlgorithm\" />"
5596 },
5597 {
5598 "name": "TrainingConfig",
5599 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainingConfig\" />"
5600 },
5601 {
5602 "name": "PreferenceOptimizeRequest",
5603 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PreferenceOptimizeRequest\" />"
5604 },
5605 {
5606 "name": "QueryDocumentsRequest",
5607 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsRequest\" />"
5608 },
5609 {
5610 "name": "QueryDocumentsResponse",
5611 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsResponse\" />"
5612 },
5613 {
5614 "name": "DialogGenerations",
5615 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DialogGenerations\" />"
5616 },
5617 {
5618 "name": "RewardScoreRequest",
5619 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoreRequest\" />"
5620 },
5621 {
5622 "name": "RewardScoringResponse",
5623 "description": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringResponse\" />"
5624 },
5625 {
5626 "name": "ScoredDialogGenerations",
5627 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredDialogGenerations\" />"
5628 },
5629 {
5630 "name": "ScoredMessage",
5631 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredMessage\" />"
5632 },
5633 {
5634 "name": "RunShieldsRequest",
5635 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldsRequest\" />"
5636 },
5637 {
5638 "name": "RunShieldResponse",
5639 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldResponse\" />"
5640 },
5641 {
5642 "name": "DoraFinetuningConfig",
5643 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DoraFinetuningConfig\" />"
5644 },
5645 {
5646 "name": "FinetuningAlgorithm",
5647 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FinetuningAlgorithm\" />"
5648 },
5649 {
5650 "name": "LoraFinetuningConfig",
5651 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LoraFinetuningConfig\" />"
5652 },
5653 {
5654 "name": "QLoraFinetuningConfig",
5655 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QLoraFinetuningConfig\" />"
5656 },
5657 {
5658 "name": "SupervisedFineTuneRequest",
5659 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SupervisedFineTuneRequest\" />"
5660 },
5661 {
5662 "name": "SyntheticDataGenerateRequest",
5663 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerateRequest\" />"
5664 },
5665 {
5666 "name": "SyntheticDataGenerationResponse",
5667 "description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
5668 },
5669 {
5670 "name": "UpdateDocumentsRequest",
5671 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateDocumentsRequest\" />"
5672 }
5673 ],
5674 "x-tagGroups": [
5675 {
5676 "name": "Operations",
5677 "tags": [
5678 "AgenticSystem",
5679 "BatchInference",
5680 "Datasets",
5681 "Evaluations",
5682 "Inference",
5683 "Memory",
5684 "PostTraining",
5685 "RewardScoring",
5686 "Safety",
5687 "SyntheticDataGeneration",
5688 "Telemetry"
5689 ]
5690 },
5691 {
5692 "name": "Types",
5693 "tags": [
5694 "AgentConfig",
5695 "AgenticSystemCreateResponse",
5696 "AgenticSystemSessionCreateResponse",
5697 "AgenticSystemStepResponse",
5698 "AgenticSystemTurnResponseEvent",
5699 "AgenticSystemTurnResponseStepCompletePayload",
5700 "AgenticSystemTurnResponseStepProgressPayload",
5701 "AgenticSystemTurnResponseStepStartPayload",
5702 "AgenticSystemTurnResponseStreamChunk",
5703 "AgenticSystemTurnResponseTurnCompletePayload",
5704 "AgenticSystemTurnResponseTurnStartPayload",
5705 "Attachment",
5706 "BatchChatCompletionRequest",
5707 "BatchChatCompletionResponse",
5708 "BatchCompletionRequest",
5709 "BatchCompletionResponse",
5710 "BuiltinShield",
5711 "BuiltinTool",
5712 "CancelEvaluationJobRequest",
5713 "CancelTrainingJobRequest",
5714 "ChatCompletionRequest",
5715 "ChatCompletionResponse",
5716 "ChatCompletionResponseEvent",
5717 "ChatCompletionResponseEventType",
5718 "ChatCompletionResponseStreamChunk",
5719 "Checkpoint",
5720 "CodeInterpreterToolDefinition",
5721 "CompletionMessage",
5722 "CompletionRequest",
5723 "CompletionResponse",
5724 "CompletionResponseStreamChunk",
5725 "CreateAgenticSystemRequest",
5726 "CreateAgenticSystemSessionRequest",
5727 "CreateAgenticSystemTurnRequest",
5728 "CreateDatasetRequest",
5729 "CreateMemoryBankRequest",
5730 "DPOAlignmentConfig",
5731 "DeleteAgenticSystemRequest",
5732 "DeleteAgenticSystemSessionRequest",
5733 "DeleteDatasetRequest",
5734 "DeleteDocumentsRequest",
5735 "DialogGenerations",
5736 "DoraFinetuningConfig",
5737 "DropMemoryBankRequest",
5738 "EmbeddingsRequest",
5739 "EmbeddingsResponse",
5740 "EvaluateQuestionAnsweringRequest",
5741 "EvaluateSummarizationRequest",
5742 "EvaluateTextGenerationRequest",
5743 "EvaluationJob",
5744 "EvaluationJobArtifactsResponse",
5745 "EvaluationJobLogStream",
5746 "EvaluationJobStatusResponse",
5747 "FinetuningAlgorithm",
5748 "FunctionCallToolDefinition",
5749 "GetAgenticSystemSessionRequest",
5750 "GetDocumentsRequest",
5751 "InferenceStep",
5752 "InsertDocumentsRequest",
5753 "LogEventRequest",
5754 "LogSeverity",
5755 "LoraFinetuningConfig",
5756 "MemoryBank",
5757 "MemoryBankDocument",
5758 "MemoryRetrievalStep",
5759 "MetricEvent",
5760 "OnViolationAction",
5761 "OptimizerConfig",
5762 "PhotogenToolDefinition",
5763 "PostTrainingJob",
5764 "PostTrainingJobArtifactsResponse",
5765 "PostTrainingJobLogStream",
5766 "PostTrainingJobStatus",
5767 "PostTrainingJobStatusResponse",
5768 "PreferenceOptimizeRequest",
5769 "QLoraFinetuningConfig",
5770 "QueryDocumentsRequest",
5771 "QueryDocumentsResponse",
5772 "RLHFAlgorithm",
5773 "RestAPIExecutionConfig",
5774 "RestAPIMethod",
5775 "RewardScoreRequest",
5776 "RewardScoringResponse",
5777 "RunShieldResponse",
5778 "RunShieldsRequest",
5779 "SamplingParams",
5780 "SamplingStrategy",
5781 "ScoredDialogGenerations",
5782 "ScoredMessage",
5783 "SearchToolDefinition",
5784 "Session",
5785 "ShieldCallStep",
5786 "ShieldDefinition",
5787 "ShieldResponse",
5788 "SpanEndPayload",
5789 "SpanStartPayload",
5790 "SpanStatus",
5791 "StopReason",
5792 "StructuredLogEvent",
5793 "SupervisedFineTuneRequest",
5794 "SyntheticDataGenerateRequest",
5795 "SyntheticDataGenerationResponse",
5796 "SystemMessage",
5797 "TokenLogProbs",
5798 "ToolCall",
5799 "ToolCallDelta",
5800 "ToolCallParseStatus",
5801 "ToolChoice",
5802 "ToolDefinition",
5803 "ToolExecutionStep",
5804 "ToolParamDefinition",
5805 "ToolPromptFormat",
5806 "ToolResponse",
5807 "ToolResponseMessage",
5808 "Trace",
5809 "TrainEvalDataset",
5810 "TrainEvalDatasetColumnType",
5811 "TrainingConfig",
5812 "Turn",
5813 "URL",
5814 "UnstructuredLogEvent",
5815 "UpdateDocumentsRequest",
5816 "UserMessage",
5817 "WolframAlphaToolDefinition"
5818 ]
5819 }
5820 ]
5821};
5822 options = {
5823 downloadFileName: "openapi.json",
5824 expandResponses: "200",
5825 expandSingleSchemaField: true,
5826 jsonSampleExpandLevel: "all",
5827 schemaExpansionLevel: "all",
5828 };
5829 element = document.getElementById("openapi-container");
5830 Redoc.init(spec, options, element);
5831
5832 if (spec.info && spec.info.title) {
5833 document.title = spec.info.title;
5834 }
5835 });
5836 </script>
5837</head>
5838
5839<body>
5840 <div id="openapi-container"></div>
5841</body>
5842
5843</html>