Elffuss BraidHub

kikocis/llama-stack public

63314e75ef83 · 260.5 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-10 16:42:15.870336"
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/BatchChatCompletionRequestWrapper"
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/BatchCompletionRequestWrapper"
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": "SSE-stream of these events.",
143 "content": {
144 "text/event-stream": {
145 "schema": {
146 "$ref": "#/components/schemas/ChatCompletionResponseStreamChunk"
147 }
148 }
149 }
150 }
151 },
152 "tags": [
153 "Inference"
154 ],
155 "parameters": [],
156 "requestBody": {
157 "content": {
158 "application/json": {
159 "schema": {
160 "$ref": "#/components/schemas/ChatCompletionRequestWrapper"
161 }
162 }
163 },
164 "required": true
165 }
166 }
167 },
168 "/inference/completion": {
169 "post": {
170 "responses": {
171 "200": {
172 "description": "streamed completion response.",
173 "content": {
174 "application/json": {
175 "schema": {
176 "$ref": "#/components/schemas/CompletionResponseStreamChunk"
177 }
178 }
179 }
180 }
181 },
182 "tags": [
183 "Inference"
184 ],
185 "parameters": [],
186 "requestBody": {
187 "content": {
188 "application/json": {
189 "schema": {
190 "$ref": "#/components/schemas/CompletionRequestWrapper"
191 }
192 }
193 },
194 "required": true
195 }
196 }
197 },
198 "/agentic_system/create": {
199 "post": {
200 "responses": {
201 "200": {
202 "description": "OK",
203 "content": {
204 "application/json": {
205 "schema": {
206 "$ref": "#/components/schemas/AgenticSystemCreateResponse"
207 }
208 }
209 }
210 }
211 },
212 "tags": [
213 "AgenticSystem"
214 ],
215 "parameters": [],
216 "requestBody": {
217 "content": {
218 "application/json": {
219 "schema": {
220 "$ref": "#/components/schemas/CreateAgenticSystemRequest"
221 }
222 }
223 },
224 "required": true
225 }
226 }
227 },
228 "/agentic_system/session/create": {
229 "post": {
230 "responses": {
231 "200": {
232 "description": "OK",
233 "content": {
234 "application/json": {
235 "schema": {
236 "$ref": "#/components/schemas/AgenticSystemSessionCreateResponse"
237 }
238 }
239 }
240 }
241 },
242 "tags": [
243 "AgenticSystem"
244 ],
245 "parameters": [],
246 "requestBody": {
247 "content": {
248 "application/json": {
249 "schema": {
250 "$ref": "#/components/schemas/CreateAgenticSystemSessionRequest"
251 }
252 }
253 },
254 "required": true
255 }
256 }
257 },
258 "/agentic_system/turn/create": {
259 "post": {
260 "responses": {
261 "200": {
262 "description": "OK",
263 "content": {
264 "text/event-stream": {
265 "schema": {
266 "$ref": "#/components/schemas/AgenticSystemTurnResponseStreamChunk"
267 }
268 }
269 }
270 }
271 },
272 "tags": [
273 "AgenticSystem"
274 ],
275 "parameters": [],
276 "requestBody": {
277 "content": {
278 "application/json": {
279 "schema": {
280 "$ref": "#/components/schemas/AgenticSystemTurnCreateRequestWrapper"
281 }
282 }
283 },
284 "required": true
285 }
286 }
287 },
288 "/datasets/create": {
289 "post": {
290 "responses": {
291 "200": {
292 "description": "OK"
293 }
294 },
295 "tags": [
296 "Datasets"
297 ],
298 "parameters": [],
299 "requestBody": {
300 "content": {
301 "application/json": {
302 "schema": {
303 "$ref": "#/components/schemas/CreateDatasetRequestWrapper"
304 }
305 }
306 },
307 "required": true
308 }
309 }
310 },
311 "/experiments/create": {
312 "post": {
313 "responses": {
314 "200": {
315 "description": "OK",
316 "content": {
317 "application/json": {
318 "schema": {
319 "$ref": "#/components/schemas/Experiment"
320 }
321 }
322 }
323 }
324 },
325 "tags": [
326 "Telemetry"
327 ],
328 "parameters": [],
329 "requestBody": {
330 "content": {
331 "application/json": {
332 "schema": {
333 "$ref": "#/components/schemas/CreateExperimentRequestWrapper"
334 }
335 }
336 },
337 "required": true
338 }
339 }
340 },
341 "/memory_banks/create": {
342 "post": {
343 "responses": {
344 "200": {
345 "description": "OK",
346 "content": {
347 "application/json": {
348 "schema": {
349 "$ref": "#/components/schemas/MemoryBank"
350 }
351 }
352 }
353 }
354 },
355 "tags": [
356 "Memory"
357 ],
358 "parameters": [],
359 "requestBody": {
360 "content": {
361 "application/json": {
362 "schema": {
363 "$ref": "#/components/schemas/CreateMemoryBankRequest"
364 }
365 }
366 },
367 "required": true
368 }
369 }
370 },
371 "/experiments/create_run": {
372 "post": {
373 "responses": {
374 "200": {
375 "description": "OK",
376 "content": {
377 "application/json": {
378 "schema": {
379 "$ref": "#/components/schemas/Run"
380 }
381 }
382 }
383 }
384 },
385 "tags": [
386 "Telemetry"
387 ],
388 "parameters": [],
389 "requestBody": {
390 "content": {
391 "application/json": {
392 "schema": {
393 "$ref": "#/components/schemas/CreateRunRequestWrapper"
394 }
395 }
396 },
397 "required": true
398 }
399 }
400 },
401 "/agentic_system/delete": {
402 "post": {
403 "responses": {
404 "200": {
405 "description": "OK"
406 }
407 },
408 "tags": [
409 "AgenticSystem"
410 ],
411 "parameters": [],
412 "requestBody": {
413 "content": {
414 "application/json": {
415 "schema": {
416 "$ref": "#/components/schemas/DeleteAgenticSystemRequest"
417 }
418 }
419 },
420 "required": true
421 }
422 }
423 },
424 "/agentic_system/session/delete": {
425 "post": {
426 "responses": {
427 "200": {
428 "description": "OK"
429 }
430 },
431 "tags": [
432 "AgenticSystem"
433 ],
434 "parameters": [],
435 "requestBody": {
436 "content": {
437 "application/json": {
438 "schema": {
439 "$ref": "#/components/schemas/DeleteAgenticSystemSessionRequest"
440 }
441 }
442 },
443 "required": true
444 }
445 }
446 },
447 "/datasets/delete": {
448 "post": {
449 "responses": {
450 "200": {
451 "description": "OK"
452 }
453 },
454 "tags": [
455 "Datasets"
456 ],
457 "parameters": [],
458 "requestBody": {
459 "content": {
460 "application/json": {
461 "schema": {
462 "$ref": "#/components/schemas/DeleteDatasetRequest"
463 }
464 }
465 },
466 "required": true
467 }
468 }
469 },
470 "/memory_bank/documents/delete": {
471 "post": {
472 "responses": {
473 "200": {
474 "description": "OK"
475 }
476 },
477 "tags": [
478 "Memory"
479 ],
480 "parameters": [],
481 "requestBody": {
482 "content": {
483 "application/json": {
484 "schema": {
485 "$ref": "#/components/schemas/DeleteDocumentsRequest"
486 }
487 }
488 },
489 "required": true
490 }
491 }
492 },
493 "/memory_banks/drop": {
494 "post": {
495 "responses": {
496 "200": {
497 "description": "OK",
498 "content": {
499 "application/json": {
500 "schema": {
501 "type": "string"
502 }
503 }
504 }
505 }
506 },
507 "tags": [
508 "Memory"
509 ],
510 "parameters": [],
511 "requestBody": {
512 "content": {
513 "application/json": {
514 "schema": {
515 "$ref": "#/components/schemas/DropMemoryBankRequest"
516 }
517 }
518 },
519 "required": true
520 }
521 }
522 },
523 "/inference/embeddings": {
524 "post": {
525 "responses": {
526 "200": {
527 "description": "OK",
528 "content": {
529 "application/json": {
530 "schema": {
531 "$ref": "#/components/schemas/EmbeddingsResponse"
532 }
533 }
534 }
535 }
536 },
537 "tags": [
538 "Inference"
539 ],
540 "parameters": [],
541 "requestBody": {
542 "content": {
543 "application/json": {
544 "schema": {
545 "$ref": "#/components/schemas/EmbeddingsRequest"
546 }
547 }
548 },
549 "required": true
550 }
551 }
552 },
553 "/evaluate/question_answering/": {
554 "post": {
555 "responses": {
556 "200": {
557 "description": "OK",
558 "content": {
559 "application/json": {
560 "schema": {
561 "$ref": "#/components/schemas/EvaluationJob"
562 }
563 }
564 }
565 }
566 },
567 "tags": [
568 "Evaluations"
569 ],
570 "parameters": [],
571 "requestBody": {
572 "content": {
573 "application/json": {
574 "schema": {
575 "$ref": "#/components/schemas/EvaluateQuestionAnsweringRequestWrapper"
576 }
577 }
578 },
579 "required": true
580 }
581 }
582 },
583 "/evaluate/summarization/": {
584 "post": {
585 "responses": {
586 "200": {
587 "description": "OK",
588 "content": {
589 "application/json": {
590 "schema": {
591 "$ref": "#/components/schemas/EvaluationJob"
592 }
593 }
594 }
595 }
596 },
597 "tags": [
598 "Evaluations"
599 ],
600 "parameters": [],
601 "requestBody": {
602 "content": {
603 "application/json": {
604 "schema": {
605 "$ref": "#/components/schemas/EvaluateSummarizationRequestWrapper"
606 }
607 }
608 },
609 "required": true
610 }
611 }
612 },
613 "/evaluate/text_generation/": {
614 "post": {
615 "responses": {
616 "200": {
617 "description": "OK",
618 "content": {
619 "application/json": {
620 "schema": {
621 "$ref": "#/components/schemas/EvaluationJob"
622 }
623 }
624 }
625 }
626 },
627 "tags": [
628 "Evaluations"
629 ],
630 "parameters": [],
631 "requestBody": {
632 "content": {
633 "application/json": {
634 "schema": {
635 "$ref": "#/components/schemas/EvaluateTextGenerationRequestWrapper"
636 }
637 }
638 },
639 "required": true
640 }
641 }
642 },
643 "/agentic_system/session/get": {
644 "post": {
645 "responses": {
646 "200": {
647 "description": "OK",
648 "content": {
649 "application/json": {
650 "schema": {
651 "$ref": "#/components/schemas/Session"
652 }
653 }
654 }
655 }
656 },
657 "tags": [
658 "AgenticSystem"
659 ],
660 "parameters": [
661 {
662 "name": "agent_id",
663 "in": "query",
664 "required": true,
665 "schema": {
666 "type": "string"
667 }
668 },
669 {
670 "name": "session_id",
671 "in": "query",
672 "required": true,
673 "schema": {
674 "type": "string"
675 }
676 }
677 ],
678 "requestBody": {
679 "content": {
680 "application/json": {
681 "schema": {
682 "$ref": "#/components/schemas/GetAgenticSystemSessionRequest"
683 }
684 }
685 },
686 "required": true
687 }
688 }
689 },
690 "/agentic_system/step/get": {
691 "get": {
692 "responses": {
693 "200": {
694 "description": "OK",
695 "content": {
696 "application/json": {
697 "schema": {
698 "$ref": "#/components/schemas/AgenticSystemStepResponse"
699 }
700 }
701 }
702 }
703 },
704 "tags": [
705 "AgenticSystem"
706 ],
707 "parameters": [
708 {
709 "name": "agent_id",
710 "in": "query",
711 "required": true,
712 "schema": {
713 "type": "string"
714 }
715 },
716 {
717 "name": "turn_id",
718 "in": "query",
719 "required": true,
720 "schema": {
721 "type": "string"
722 }
723 },
724 {
725 "name": "step_id",
726 "in": "query",
727 "required": true,
728 "schema": {
729 "type": "string"
730 }
731 }
732 ]
733 }
734 },
735 "/agentic_system/turn/get": {
736 "get": {
737 "responses": {
738 "200": {
739 "description": "OK",
740 "content": {
741 "application/json": {
742 "schema": {
743 "$ref": "#/components/schemas/Turn"
744 }
745 }
746 }
747 }
748 },
749 "tags": [
750 "AgenticSystem"
751 ],
752 "parameters": [
753 {
754 "name": "agent_id",
755 "in": "query",
756 "required": true,
757 "schema": {
758 "type": "string"
759 }
760 },
761 {
762 "name": "turn_id",
763 "in": "query",
764 "required": true,
765 "schema": {
766 "type": "string"
767 }
768 }
769 ]
770 }
771 },
772 "/artifacts/get": {
773 "get": {
774 "responses": {
775 "200": {
776 "description": "OK",
777 "content": {
778 "application/json": {
779 "schema": {
780 "$ref": "#/components/schemas/Artifact"
781 }
782 }
783 }
784 }
785 },
786 "tags": [
787 "Telemetry"
788 ],
789 "parameters": [
790 {
791 "name": "artifact_id",
792 "in": "query",
793 "required": true,
794 "schema": {
795 "type": "string"
796 }
797 }
798 ]
799 }
800 },
801 "/datasets/get": {
802 "get": {
803 "responses": {
804 "200": {
805 "description": "OK",
806 "content": {
807 "application/json": {
808 "schema": {
809 "$ref": "#/components/schemas/TrainEvalDataset"
810 }
811 }
812 }
813 }
814 },
815 "tags": [
816 "Datasets"
817 ],
818 "parameters": [
819 {
820 "name": "dataset_uuid",
821 "in": "query",
822 "required": true,
823 "schema": {
824 "type": "string"
825 }
826 }
827 ]
828 }
829 },
830 "/memory_bank/documents/get": {
831 "post": {
832 "responses": {
833 "200": {
834 "description": "OK",
835 "content": {
836 "application/jsonl": {
837 "schema": {
838 "$ref": "#/components/schemas/MemoryBankDocument"
839 }
840 }
841 }
842 }
843 },
844 "tags": [
845 "Memory"
846 ],
847 "parameters": [
848 {
849 "name": "bank_id",
850 "in": "query",
851 "required": true,
852 "schema": {
853 "type": "string"
854 }
855 }
856 ],
857 "requestBody": {
858 "content": {
859 "application/json": {
860 "schema": {
861 "$ref": "#/components/schemas/GetDocumentsRequest"
862 }
863 }
864 },
865 "required": true
866 }
867 }
868 },
869 "/evaluate/job/artifacts": {
870 "get": {
871 "responses": {
872 "200": {
873 "description": "OK",
874 "content": {
875 "application/json": {
876 "schema": {
877 "$ref": "#/components/schemas/EvaluationJobArtifactsResponse"
878 }
879 }
880 }
881 }
882 },
883 "tags": [
884 "Evaluations"
885 ],
886 "parameters": [
887 {
888 "name": "job_uuid",
889 "in": "query",
890 "required": true,
891 "schema": {
892 "type": "string"
893 }
894 }
895 ]
896 }
897 },
898 "/evaluate/job/logs": {
899 "get": {
900 "responses": {
901 "200": {
902 "description": "OK",
903 "content": {
904 "application/json": {
905 "schema": {
906 "$ref": "#/components/schemas/EvaluationJobLogStream"
907 }
908 }
909 }
910 }
911 },
912 "tags": [
913 "Evaluations"
914 ],
915 "parameters": [
916 {
917 "name": "job_uuid",
918 "in": "query",
919 "required": true,
920 "schema": {
921 "type": "string"
922 }
923 }
924 ]
925 }
926 },
927 "/evaluate/job/status": {
928 "get": {
929 "responses": {
930 "200": {
931 "description": "OK",
932 "content": {
933 "application/json": {
934 "schema": {
935 "$ref": "#/components/schemas/EvaluationJobStatusResponse"
936 }
937 }
938 }
939 }
940 },
941 "tags": [
942 "Evaluations"
943 ],
944 "parameters": [
945 {
946 "name": "job_uuid",
947 "in": "query",
948 "required": true,
949 "schema": {
950 "type": "string"
951 }
952 }
953 ]
954 }
955 },
956 "/evaluate/jobs": {
957 "get": {
958 "responses": {
959 "200": {
960 "description": "OK",
961 "content": {
962 "application/jsonl": {
963 "schema": {
964 "$ref": "#/components/schemas/EvaluationJob"
965 }
966 }
967 }
968 }
969 },
970 "tags": [
971 "Evaluations"
972 ],
973 "parameters": []
974 }
975 },
976 "/experiments/get": {
977 "get": {
978 "responses": {
979 "200": {
980 "description": "OK",
981 "content": {
982 "application/json": {
983 "schema": {
984 "$ref": "#/components/schemas/Experiment"
985 }
986 }
987 }
988 }
989 },
990 "tags": [
991 "Telemetry"
992 ],
993 "parameters": [
994 {
995 "name": "experiment_id",
996 "in": "query",
997 "required": true,
998 "schema": {
999 "type": "string"
1000 }
1001 }
1002 ]
1003 }
1004 },
1005 "/logging/get_logs": {
1006 "post": {
1007 "responses": {
1008 "200": {
1009 "description": "OK",
1010 "content": {
1011 "application/jsonl": {
1012 "schema": {
1013 "$ref": "#/components/schemas/Log"
1014 }
1015 }
1016 }
1017 }
1018 },
1019 "tags": [
1020 "Telemetry"
1021 ],
1022 "parameters": [],
1023 "requestBody": {
1024 "content": {
1025 "application/json": {
1026 "schema": {
1027 "$ref": "#/components/schemas/LogSearchRequestWrapper"
1028 }
1029 }
1030 },
1031 "required": true
1032 }
1033 }
1034 },
1035 "/memory_banks/get": {
1036 "get": {
1037 "responses": {
1038 "200": {
1039 "description": "OK",
1040 "content": {
1041 "application/json": {
1042 "schema": {
1043 "oneOf": [
1044 {
1045 "$ref": "#/components/schemas/MemoryBank"
1046 },
1047 {
1048 "type": "null"
1049 }
1050 ]
1051 }
1052 }
1053 }
1054 }
1055 },
1056 "tags": [
1057 "Memory"
1058 ],
1059 "parameters": [
1060 {
1061 "name": "bank_id",
1062 "in": "query",
1063 "required": true,
1064 "schema": {
1065 "type": "string"
1066 }
1067 }
1068 ]
1069 }
1070 },
1071 "/runs/metrics": {
1072 "get": {
1073 "responses": {
1074 "200": {
1075 "description": "OK",
1076 "content": {
1077 "application/jsonl": {
1078 "schema": {
1079 "$ref": "#/components/schemas/Metric"
1080 }
1081 }
1082 }
1083 }
1084 },
1085 "tags": [
1086 "Telemetry"
1087 ],
1088 "parameters": [
1089 {
1090 "name": "run_id",
1091 "in": "query",
1092 "required": true,
1093 "schema": {
1094 "type": "string"
1095 }
1096 }
1097 ]
1098 }
1099 },
1100 "/post_training/job/artifacts": {
1101 "get": {
1102 "responses": {
1103 "200": {
1104 "description": "OK",
1105 "content": {
1106 "application/json": {
1107 "schema": {
1108 "$ref": "#/components/schemas/PostTrainingJobArtifactsResponse"
1109 }
1110 }
1111 }
1112 }
1113 },
1114 "tags": [
1115 "PostTraining"
1116 ],
1117 "parameters": [
1118 {
1119 "name": "job_uuid",
1120 "in": "query",
1121 "required": true,
1122 "schema": {
1123 "type": "string"
1124 }
1125 }
1126 ]
1127 }
1128 },
1129 "/post_training/job/logs": {
1130 "get": {
1131 "responses": {
1132 "200": {
1133 "description": "OK",
1134 "content": {
1135 "application/json": {
1136 "schema": {
1137 "$ref": "#/components/schemas/PostTrainingJobLogStream"
1138 }
1139 }
1140 }
1141 }
1142 },
1143 "tags": [
1144 "PostTraining"
1145 ],
1146 "parameters": [
1147 {
1148 "name": "job_uuid",
1149 "in": "query",
1150 "required": true,
1151 "schema": {
1152 "type": "string"
1153 }
1154 }
1155 ]
1156 }
1157 },
1158 "/post_training/job/status": {
1159 "get": {
1160 "responses": {
1161 "200": {
1162 "description": "OK",
1163 "content": {
1164 "application/json": {
1165 "schema": {
1166 "$ref": "#/components/schemas/PostTrainingJobStatusResponse"
1167 }
1168 }
1169 }
1170 }
1171 },
1172 "tags": [
1173 "PostTraining"
1174 ],
1175 "parameters": [
1176 {
1177 "name": "job_uuid",
1178 "in": "query",
1179 "required": true,
1180 "schema": {
1181 "type": "string"
1182 }
1183 }
1184 ]
1185 }
1186 },
1187 "/post_training/jobs": {
1188 "get": {
1189 "responses": {
1190 "200": {
1191 "description": "OK",
1192 "content": {
1193 "application/jsonl": {
1194 "schema": {
1195 "$ref": "#/components/schemas/PostTrainingJob"
1196 }
1197 }
1198 }
1199 }
1200 },
1201 "tags": [
1202 "PostTraining"
1203 ],
1204 "parameters": []
1205 }
1206 },
1207 "/memory_bank/insert": {
1208 "post": {
1209 "responses": {
1210 "200": {
1211 "description": "OK"
1212 }
1213 },
1214 "tags": [
1215 "Memory"
1216 ],
1217 "parameters": [],
1218 "requestBody": {
1219 "content": {
1220 "application/json": {
1221 "schema": {
1222 "$ref": "#/components/schemas/InsertDocumentsRequest"
1223 }
1224 }
1225 },
1226 "required": true
1227 }
1228 }
1229 },
1230 "/experiments/artifacts/get": {
1231 "post": {
1232 "responses": {
1233 "200": {
1234 "description": "OK",
1235 "content": {
1236 "application/jsonl": {
1237 "schema": {
1238 "$ref": "#/components/schemas/Artifact"
1239 }
1240 }
1241 }
1242 }
1243 },
1244 "tags": [
1245 "Telemetry"
1246 ],
1247 "parameters": [],
1248 "requestBody": {
1249 "content": {
1250 "application/json": {
1251 "schema": {
1252 "$ref": "#/components/schemas/ListArtifactsRequest"
1253 }
1254 }
1255 },
1256 "required": true
1257 }
1258 }
1259 },
1260 "/experiments/list": {
1261 "get": {
1262 "responses": {
1263 "200": {
1264 "description": "OK",
1265 "content": {
1266 "application/jsonl": {
1267 "schema": {
1268 "$ref": "#/components/schemas/Experiment"
1269 }
1270 }
1271 }
1272 }
1273 },
1274 "tags": [
1275 "Telemetry"
1276 ],
1277 "parameters": []
1278 }
1279 },
1280 "/memory_banks/list": {
1281 "get": {
1282 "responses": {
1283 "200": {
1284 "description": "OK",
1285 "content": {
1286 "application/jsonl": {
1287 "schema": {
1288 "$ref": "#/components/schemas/MemoryBank"
1289 }
1290 }
1291 }
1292 }
1293 },
1294 "tags": [
1295 "Memory"
1296 ],
1297 "parameters": []
1298 }
1299 },
1300 "/logging/log_messages": {
1301 "post": {
1302 "responses": {
1303 "200": {
1304 "description": "OK"
1305 }
1306 },
1307 "tags": [
1308 "Telemetry"
1309 ],
1310 "parameters": [],
1311 "requestBody": {
1312 "content": {
1313 "application/json": {
1314 "schema": {
1315 "$ref": "#/components/schemas/LogMessagesRequestWrapper"
1316 }
1317 }
1318 },
1319 "required": true
1320 }
1321 }
1322 },
1323 "/runs/log_metrics": {
1324 "post": {
1325 "responses": {
1326 "200": {
1327 "description": "OK"
1328 }
1329 },
1330 "tags": [
1331 "Telemetry"
1332 ],
1333 "parameters": [],
1334 "requestBody": {
1335 "content": {
1336 "application/json": {
1337 "schema": {
1338 "$ref": "#/components/schemas/LogMetricsRequestWrapper"
1339 }
1340 }
1341 },
1342 "required": true
1343 }
1344 }
1345 },
1346 "/post_training/preference_optimize": {
1347 "post": {
1348 "responses": {
1349 "200": {
1350 "description": "OK",
1351 "content": {
1352 "application/json": {
1353 "schema": {
1354 "$ref": "#/components/schemas/PostTrainingJob"
1355 }
1356 }
1357 }
1358 }
1359 },
1360 "tags": [
1361 "PostTraining"
1362 ],
1363 "parameters": [],
1364 "requestBody": {
1365 "content": {
1366 "application/json": {
1367 "schema": {
1368 "$ref": "#/components/schemas/PostTrainingRLHFRequestWrapper"
1369 }
1370 }
1371 },
1372 "required": true
1373 }
1374 }
1375 },
1376 "/memory_bank/query": {
1377 "post": {
1378 "responses": {
1379 "200": {
1380 "description": "OK",
1381 "content": {
1382 "application/json": {
1383 "schema": {
1384 "$ref": "#/components/schemas/QueryDocumentsResponse"
1385 }
1386 }
1387 }
1388 }
1389 },
1390 "tags": [
1391 "Memory"
1392 ],
1393 "parameters": [],
1394 "requestBody": {
1395 "content": {
1396 "application/json": {
1397 "schema": {
1398 "$ref": "#/components/schemas/QueryDocumentsRequest"
1399 }
1400 }
1401 },
1402 "required": true
1403 }
1404 }
1405 },
1406 "/reward_scoring/score": {
1407 "post": {
1408 "responses": {
1409 "200": {
1410 "description": "OK",
1411 "content": {
1412 "application/json": {
1413 "schema": {
1414 "$ref": "#/components/schemas/RewardScoringResponse"
1415 }
1416 }
1417 }
1418 }
1419 },
1420 "tags": [
1421 "RewardScoring"
1422 ],
1423 "parameters": [],
1424 "requestBody": {
1425 "content": {
1426 "application/json": {
1427 "schema": {
1428 "$ref": "#/components/schemas/RewardScoringRequestWrapper"
1429 }
1430 }
1431 },
1432 "required": true
1433 }
1434 }
1435 },
1436 "/safety/run_shields": {
1437 "post": {
1438 "responses": {
1439 "200": {
1440 "description": "OK",
1441 "content": {
1442 "application/json": {
1443 "schema": {
1444 "$ref": "#/components/schemas/RunShieldResponse"
1445 }
1446 }
1447 }
1448 }
1449 },
1450 "tags": [
1451 "Safety"
1452 ],
1453 "parameters": [],
1454 "requestBody": {
1455 "content": {
1456 "application/json": {
1457 "schema": {
1458 "$ref": "#/components/schemas/RunShieldRequestWrapper"
1459 }
1460 }
1461 },
1462 "required": true
1463 }
1464 }
1465 },
1466 "/post_training/supervised_fine_tune": {
1467 "post": {
1468 "responses": {
1469 "200": {
1470 "description": "OK",
1471 "content": {
1472 "application/json": {
1473 "schema": {
1474 "$ref": "#/components/schemas/PostTrainingJob"
1475 }
1476 }
1477 }
1478 }
1479 },
1480 "tags": [
1481 "PostTraining"
1482 ],
1483 "parameters": [],
1484 "requestBody": {
1485 "content": {
1486 "application/json": {
1487 "schema": {
1488 "$ref": "#/components/schemas/PostTrainingSFTRequestWrapper"
1489 }
1490 }
1491 },
1492 "required": true
1493 }
1494 }
1495 },
1496 "/synthetic_data_generation/generate": {
1497 "post": {
1498 "responses": {
1499 "200": {
1500 "description": "OK",
1501 "content": {
1502 "application/json": {
1503 "schema": {
1504 "$ref": "#/components/schemas/SyntheticDataGenerationResponse"
1505 }
1506 }
1507 }
1508 }
1509 },
1510 "tags": [
1511 "SyntheticDataGeneration"
1512 ],
1513 "parameters": [],
1514 "requestBody": {
1515 "content": {
1516 "application/json": {
1517 "schema": {
1518 "$ref": "#/components/schemas/SyntheticDataGenerationRequestWrapper"
1519 }
1520 }
1521 },
1522 "required": true
1523 }
1524 }
1525 },
1526 "/memory_bank/update": {
1527 "post": {
1528 "responses": {
1529 "200": {
1530 "description": "OK"
1531 }
1532 },
1533 "tags": [
1534 "Memory"
1535 ],
1536 "parameters": [],
1537 "requestBody": {
1538 "content": {
1539 "application/json": {
1540 "schema": {
1541 "$ref": "#/components/schemas/UpdateDocumentsRequest"
1542 }
1543 }
1544 },
1545 "required": true
1546 }
1547 }
1548 },
1549 "/experiments/update": {
1550 "post": {
1551 "responses": {
1552 "200": {
1553 "description": "OK",
1554 "content": {
1555 "application/json": {
1556 "schema": {
1557 "$ref": "#/components/schemas/Experiment"
1558 }
1559 }
1560 }
1561 }
1562 },
1563 "tags": [
1564 "Telemetry"
1565 ],
1566 "parameters": [],
1567 "requestBody": {
1568 "content": {
1569 "application/json": {
1570 "schema": {
1571 "$ref": "#/components/schemas/UpdateExperimentRequestWrapper"
1572 }
1573 }
1574 },
1575 "required": true
1576 }
1577 }
1578 },
1579 "/runs/update": {
1580 "post": {
1581 "responses": {
1582 "200": {
1583 "description": "OK",
1584 "content": {
1585 "application/json": {
1586 "schema": {
1587 "$ref": "#/components/schemas/Run"
1588 }
1589 }
1590 }
1591 }
1592 },
1593 "tags": [
1594 "Telemetry"
1595 ],
1596 "parameters": [],
1597 "requestBody": {
1598 "content": {
1599 "application/json": {
1600 "schema": {
1601 "$ref": "#/components/schemas/UpdateRunRequestWrapper"
1602 }
1603 }
1604 },
1605 "required": true
1606 }
1607 }
1608 },
1609 "/experiments/artifacts/upload": {
1610 "post": {
1611 "responses": {
1612 "200": {
1613 "description": "OK",
1614 "content": {
1615 "application/json": {
1616 "schema": {
1617 "$ref": "#/components/schemas/Artifact"
1618 }
1619 }
1620 }
1621 }
1622 },
1623 "tags": [
1624 "Telemetry"
1625 ],
1626 "parameters": [],
1627 "requestBody": {
1628 "content": {
1629 "application/json": {
1630 "schema": {
1631 "$ref": "#/components/schemas/UploadArtifactRequestWrapper"
1632 }
1633 }
1634 },
1635 "required": true
1636 }
1637 }
1638 }
1639 },
1640 "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
1641 "components": {
1642 "schemas": {
1643 "BatchChatCompletionRequest": {
1644 "type": "object",
1645 "properties": {
1646 "model": {
1647 "type": "string"
1648 },
1649 "messages_batch": {
1650 "type": "array",
1651 "items": {
1652 "type": "array",
1653 "items": {
1654 "oneOf": [
1655 {
1656 "$ref": "#/components/schemas/UserMessage"
1657 },
1658 {
1659 "$ref": "#/components/schemas/SystemMessage"
1660 },
1661 {
1662 "$ref": "#/components/schemas/ToolResponseMessage"
1663 },
1664 {
1665 "$ref": "#/components/schemas/CompletionMessage"
1666 }
1667 ]
1668 }
1669 }
1670 },
1671 "sampling_params": {
1672 "$ref": "#/components/schemas/SamplingParams"
1673 },
1674 "tools": {
1675 "type": "array",
1676 "items": {
1677 "$ref": "#/components/schemas/ToolDefinition"
1678 }
1679 },
1680 "tool_choice": {
1681 "$ref": "#/components/schemas/ToolChoice"
1682 },
1683 "tool_prompt_format": {
1684 "$ref": "#/components/schemas/ToolPromptFormat"
1685 },
1686 "logprobs": {
1687 "type": "object",
1688 "properties": {
1689 "top_k": {
1690 "type": "integer"
1691 }
1692 },
1693 "additionalProperties": false
1694 }
1695 },
1696 "additionalProperties": false,
1697 "required": [
1698 "model",
1699 "messages_batch"
1700 ]
1701 },
1702 "BuiltinTool": {
1703 "type": "string",
1704 "enum": [
1705 "brave_search",
1706 "wolfram_alpha",
1707 "photogen",
1708 "code_interpreter"
1709 ]
1710 },
1711 "CompletionMessage": {
1712 "type": "object",
1713 "properties": {
1714 "role": {
1715 "type": "string",
1716 "const": "assistant"
1717 },
1718 "content": {
1719 "oneOf": [
1720 {
1721 "type": "string"
1722 },
1723 {
1724 "type": "array",
1725 "items": {
1726 "type": "string"
1727 }
1728 }
1729 ]
1730 },
1731 "stop_reason": {
1732 "$ref": "#/components/schemas/StopReason"
1733 },
1734 "tool_calls": {
1735 "type": "array",
1736 "items": {
1737 "$ref": "#/components/schemas/ToolCall"
1738 }
1739 }
1740 },
1741 "additionalProperties": false,
1742 "required": [
1743 "role",
1744 "content",
1745 "stop_reason",
1746 "tool_calls"
1747 ]
1748 },
1749 "SamplingParams": {
1750 "type": "object",
1751 "properties": {
1752 "strategy": {
1753 "$ref": "#/components/schemas/SamplingStrategy"
1754 },
1755 "temperature": {
1756 "type": "number"
1757 },
1758 "top_p": {
1759 "type": "number"
1760 },
1761 "top_k": {
1762 "type": "integer"
1763 },
1764 "max_tokens": {
1765 "type": "integer"
1766 },
1767 "repetition_penalty": {
1768 "type": "number"
1769 }
1770 },
1771 "additionalProperties": false,
1772 "required": [
1773 "strategy"
1774 ]
1775 },
1776 "SamplingStrategy": {
1777 "type": "string",
1778 "enum": [
1779 "greedy",
1780 "top_p",
1781 "top_k"
1782 ]
1783 },
1784 "StopReason": {
1785 "type": "string",
1786 "enum": [
1787 "end_of_turn",
1788 "end_of_message",
1789 "out_of_tokens"
1790 ]
1791 },
1792 "SystemMessage": {
1793 "type": "object",
1794 "properties": {
1795 "role": {
1796 "type": "string",
1797 "const": "system"
1798 },
1799 "content": {
1800 "oneOf": [
1801 {
1802 "type": "string"
1803 },
1804 {
1805 "type": "array",
1806 "items": {
1807 "type": "string"
1808 }
1809 }
1810 ]
1811 }
1812 },
1813 "additionalProperties": false,
1814 "required": [
1815 "role",
1816 "content"
1817 ]
1818 },
1819 "ToolCall": {
1820 "type": "object",
1821 "properties": {
1822 "call_id": {
1823 "type": "string"
1824 },
1825 "tool_name": {
1826 "oneOf": [
1827 {
1828 "$ref": "#/components/schemas/BuiltinTool"
1829 },
1830 {
1831 "type": "string"
1832 }
1833 ]
1834 },
1835 "arguments": {
1836 "type": "object",
1837 "additionalProperties": {
1838 "oneOf": [
1839 {
1840 "type": "string"
1841 },
1842 {
1843 "type": "integer"
1844 },
1845 {
1846 "type": "number"
1847 },
1848 {
1849 "type": "boolean"
1850 },
1851 {
1852 "type": "null"
1853 },
1854 {
1855 "type": "array",
1856 "items": {
1857 "oneOf": [
1858 {
1859 "type": "string"
1860 },
1861 {
1862 "type": "integer"
1863 },
1864 {
1865 "type": "number"
1866 },
1867 {
1868 "type": "boolean"
1869 },
1870 {
1871 "type": "null"
1872 }
1873 ]
1874 }
1875 },
1876 {
1877 "type": "object",
1878 "additionalProperties": {
1879 "oneOf": [
1880 {
1881 "type": "string"
1882 },
1883 {
1884 "type": "integer"
1885 },
1886 {
1887 "type": "number"
1888 },
1889 {
1890 "type": "boolean"
1891 },
1892 {
1893 "type": "null"
1894 }
1895 ]
1896 }
1897 }
1898 ]
1899 }
1900 }
1901 },
1902 "additionalProperties": false,
1903 "required": [
1904 "call_id",
1905 "tool_name",
1906 "arguments"
1907 ]
1908 },
1909 "ToolChoice": {
1910 "type": "string",
1911 "enum": [
1912 "auto",
1913 "required"
1914 ]
1915 },
1916 "ToolDefinition": {
1917 "type": "object",
1918 "properties": {
1919 "tool_name": {
1920 "oneOf": [
1921 {
1922 "$ref": "#/components/schemas/BuiltinTool"
1923 },
1924 {
1925 "type": "string"
1926 }
1927 ]
1928 },
1929 "description": {
1930 "type": "string"
1931 },
1932 "parameters": {
1933 "type": "object",
1934 "additionalProperties": {
1935 "$ref": "#/components/schemas/ToolParamDefinition"
1936 }
1937 }
1938 },
1939 "additionalProperties": false,
1940 "required": [
1941 "tool_name"
1942 ]
1943 },
1944 "ToolParamDefinition": {
1945 "type": "object",
1946 "properties": {
1947 "param_type": {
1948 "type": "string"
1949 },
1950 "description": {
1951 "type": "string"
1952 },
1953 "required": {
1954 "type": "boolean"
1955 }
1956 },
1957 "additionalProperties": false,
1958 "required": [
1959 "param_type"
1960 ]
1961 },
1962 "ToolPromptFormat": {
1963 "type": "string",
1964 "enum": [
1965 "json",
1966 "function_tag"
1967 ],
1968 "title": "This Enum refers to the prompt format for calling custom / zero shot tools",
1969 "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"
1970 },
1971 "ToolResponseMessage": {
1972 "type": "object",
1973 "properties": {
1974 "role": {
1975 "type": "string",
1976 "const": "ipython"
1977 },
1978 "call_id": {
1979 "type": "string"
1980 },
1981 "tool_name": {
1982 "oneOf": [
1983 {
1984 "$ref": "#/components/schemas/BuiltinTool"
1985 },
1986 {
1987 "type": "string"
1988 }
1989 ]
1990 },
1991 "content": {
1992 "oneOf": [
1993 {
1994 "type": "string"
1995 },
1996 {
1997 "type": "array",
1998 "items": {
1999 "type": "string"
2000 }
2001 }
2002 ]
2003 }
2004 },
2005 "additionalProperties": false,
2006 "required": [
2007 "role",
2008 "call_id",
2009 "tool_name",
2010 "content"
2011 ]
2012 },
2013 "UserMessage": {
2014 "type": "object",
2015 "properties": {
2016 "role": {
2017 "type": "string",
2018 "const": "user"
2019 },
2020 "content": {
2021 "oneOf": [
2022 {
2023 "type": "string"
2024 },
2025 {
2026 "type": "array",
2027 "items": {
2028 "type": "string"
2029 }
2030 }
2031 ]
2032 },
2033 "context": {
2034 "oneOf": [
2035 {
2036 "type": "string"
2037 },
2038 {
2039 "type": "array",
2040 "items": {
2041 "type": "string"
2042 }
2043 }
2044 ]
2045 }
2046 },
2047 "additionalProperties": false,
2048 "required": [
2049 "role",
2050 "content"
2051 ]
2052 },
2053 "BatchChatCompletionRequestWrapper": {
2054 "type": "object",
2055 "properties": {
2056 "request": {
2057 "$ref": "#/components/schemas/BatchChatCompletionRequest"
2058 }
2059 },
2060 "additionalProperties": false,
2061 "required": [
2062 "request"
2063 ]
2064 },
2065 "BatchChatCompletionResponse": {
2066 "type": "object",
2067 "properties": {
2068 "completion_message_batch": {
2069 "type": "array",
2070 "items": {
2071 "$ref": "#/components/schemas/CompletionMessage"
2072 }
2073 }
2074 },
2075 "additionalProperties": false,
2076 "required": [
2077 "completion_message_batch"
2078 ]
2079 },
2080 "BatchCompletionRequest": {
2081 "type": "object",
2082 "properties": {
2083 "model": {
2084 "type": "string"
2085 },
2086 "content_batch": {
2087 "type": "array",
2088 "items": {
2089 "oneOf": [
2090 {
2091 "type": "string"
2092 },
2093 {
2094 "type": "array",
2095 "items": {
2096 "type": "string"
2097 }
2098 }
2099 ]
2100 }
2101 },
2102 "sampling_params": {
2103 "$ref": "#/components/schemas/SamplingParams"
2104 },
2105 "logprobs": {
2106 "type": "object",
2107 "properties": {
2108 "top_k": {
2109 "type": "integer"
2110 }
2111 },
2112 "additionalProperties": false
2113 }
2114 },
2115 "additionalProperties": false,
2116 "required": [
2117 "model",
2118 "content_batch"
2119 ]
2120 },
2121 "BatchCompletionRequestWrapper": {
2122 "type": "object",
2123 "properties": {
2124 "request": {
2125 "$ref": "#/components/schemas/BatchCompletionRequest"
2126 }
2127 },
2128 "additionalProperties": false,
2129 "required": [
2130 "request"
2131 ]
2132 },
2133 "BatchCompletionResponse": {
2134 "type": "object",
2135 "properties": {
2136 "completion_message_batch": {
2137 "type": "array",
2138 "items": {
2139 "$ref": "#/components/schemas/CompletionMessage"
2140 }
2141 }
2142 },
2143 "additionalProperties": false,
2144 "required": [
2145 "completion_message_batch"
2146 ]
2147 },
2148 "CancelEvaluationJobRequest": {
2149 "type": "object",
2150 "properties": {
2151 "job_uuid": {
2152 "type": "string"
2153 }
2154 },
2155 "additionalProperties": false,
2156 "required": [
2157 "job_uuid"
2158 ]
2159 },
2160 "CancelTrainingJobRequest": {
2161 "type": "object",
2162 "properties": {
2163 "job_uuid": {
2164 "type": "string"
2165 }
2166 },
2167 "additionalProperties": false,
2168 "required": [
2169 "job_uuid"
2170 ]
2171 },
2172 "ChatCompletionRequest": {
2173 "type": "object",
2174 "properties": {
2175 "model": {
2176 "type": "string"
2177 },
2178 "messages": {
2179 "type": "array",
2180 "items": {
2181 "oneOf": [
2182 {
2183 "$ref": "#/components/schemas/UserMessage"
2184 },
2185 {
2186 "$ref": "#/components/schemas/SystemMessage"
2187 },
2188 {
2189 "$ref": "#/components/schemas/ToolResponseMessage"
2190 },
2191 {
2192 "$ref": "#/components/schemas/CompletionMessage"
2193 }
2194 ]
2195 }
2196 },
2197 "sampling_params": {
2198 "$ref": "#/components/schemas/SamplingParams"
2199 },
2200 "tools": {
2201 "type": "array",
2202 "items": {
2203 "$ref": "#/components/schemas/ToolDefinition"
2204 }
2205 },
2206 "tool_choice": {
2207 "$ref": "#/components/schemas/ToolChoice"
2208 },
2209 "tool_prompt_format": {
2210 "$ref": "#/components/schemas/ToolPromptFormat"
2211 },
2212 "stream": {
2213 "type": "boolean"
2214 },
2215 "logprobs": {
2216 "type": "object",
2217 "properties": {
2218 "top_k": {
2219 "type": "integer"
2220 }
2221 },
2222 "additionalProperties": false
2223 }
2224 },
2225 "additionalProperties": false,
2226 "required": [
2227 "model",
2228 "messages"
2229 ]
2230 },
2231 "ChatCompletionRequestWrapper": {
2232 "type": "object",
2233 "properties": {
2234 "request": {
2235 "$ref": "#/components/schemas/ChatCompletionRequest"
2236 }
2237 },
2238 "additionalProperties": false,
2239 "required": [
2240 "request"
2241 ]
2242 },
2243 "ChatCompletionResponseEvent": {
2244 "type": "object",
2245 "properties": {
2246 "event_type": {
2247 "$ref": "#/components/schemas/ChatCompletionResponseEventType"
2248 },
2249 "delta": {
2250 "oneOf": [
2251 {
2252 "type": "string"
2253 },
2254 {
2255 "$ref": "#/components/schemas/ToolCallDelta"
2256 }
2257 ]
2258 },
2259 "logprobs": {
2260 "type": "array",
2261 "items": {
2262 "$ref": "#/components/schemas/TokenLogProbs"
2263 }
2264 },
2265 "stop_reason": {
2266 "$ref": "#/components/schemas/StopReason"
2267 }
2268 },
2269 "additionalProperties": false,
2270 "required": [
2271 "event_type",
2272 "delta"
2273 ],
2274 "title": "Chat completion response event."
2275 },
2276 "ChatCompletionResponseEventType": {
2277 "type": "string",
2278 "enum": [
2279 "start",
2280 "complete",
2281 "progress"
2282 ]
2283 },
2284 "ChatCompletionResponseStreamChunk": {
2285 "type": "object",
2286 "properties": {
2287 "event": {
2288 "$ref": "#/components/schemas/ChatCompletionResponseEvent"
2289 }
2290 },
2291 "additionalProperties": false,
2292 "required": [
2293 "event"
2294 ],
2295 "title": "SSE-stream of these events."
2296 },
2297 "TokenLogProbs": {
2298 "type": "object",
2299 "properties": {
2300 "logprobs_by_token": {
2301 "type": "object",
2302 "additionalProperties": {
2303 "type": "number"
2304 }
2305 }
2306 },
2307 "additionalProperties": false,
2308 "required": [
2309 "logprobs_by_token"
2310 ]
2311 },
2312 "ToolCallDelta": {
2313 "type": "object",
2314 "properties": {
2315 "content": {
2316 "oneOf": [
2317 {
2318 "type": "string"
2319 },
2320 {
2321 "$ref": "#/components/schemas/ToolCall"
2322 }
2323 ]
2324 },
2325 "parse_status": {
2326 "$ref": "#/components/schemas/ToolCallParseStatus"
2327 }
2328 },
2329 "additionalProperties": false,
2330 "required": [
2331 "content",
2332 "parse_status"
2333 ]
2334 },
2335 "ToolCallParseStatus": {
2336 "type": "string",
2337 "enum": [
2338 "started",
2339 "in_progress",
2340 "failure",
2341 "success"
2342 ]
2343 },
2344 "CompletionRequest": {
2345 "type": "object",
2346 "properties": {
2347 "model": {
2348 "type": "string"
2349 },
2350 "content": {
2351 "oneOf": [
2352 {
2353 "type": "string"
2354 },
2355 {
2356 "type": "array",
2357 "items": {
2358 "type": "string"
2359 }
2360 }
2361 ]
2362 },
2363 "sampling_params": {
2364 "$ref": "#/components/schemas/SamplingParams"
2365 },
2366 "stream": {
2367 "type": "boolean"
2368 },
2369 "logprobs": {
2370 "type": "object",
2371 "properties": {
2372 "top_k": {
2373 "type": "integer"
2374 }
2375 },
2376 "additionalProperties": false
2377 }
2378 },
2379 "additionalProperties": false,
2380 "required": [
2381 "model",
2382 "content"
2383 ]
2384 },
2385 "CompletionRequestWrapper": {
2386 "type": "object",
2387 "properties": {
2388 "request": {
2389 "$ref": "#/components/schemas/CompletionRequest"
2390 }
2391 },
2392 "additionalProperties": false,
2393 "required": [
2394 "request"
2395 ]
2396 },
2397 "CompletionResponseStreamChunk": {
2398 "type": "object",
2399 "properties": {
2400 "delta": {
2401 "type": "string"
2402 },
2403 "stop_reason": {
2404 "$ref": "#/components/schemas/StopReason"
2405 },
2406 "logprobs": {
2407 "type": "array",
2408 "items": {
2409 "$ref": "#/components/schemas/TokenLogProbs"
2410 }
2411 }
2412 },
2413 "additionalProperties": false,
2414 "required": [
2415 "delta"
2416 ],
2417 "title": "streamed completion response."
2418 },
2419 "AgentConfig": {
2420 "type": "object",
2421 "properties": {
2422 "sampling_params": {
2423 "$ref": "#/components/schemas/SamplingParams"
2424 },
2425 "input_shields": {
2426 "type": "array",
2427 "items": {
2428 "$ref": "#/components/schemas/ShieldDefinition"
2429 }
2430 },
2431 "output_shields": {
2432 "type": "array",
2433 "items": {
2434 "$ref": "#/components/schemas/ShieldDefinition"
2435 }
2436 },
2437 "tools": {
2438 "type": "array",
2439 "items": {
2440 "oneOf": [
2441 {
2442 "$ref": "#/components/schemas/SearchToolDefinition"
2443 },
2444 {
2445 "$ref": "#/components/schemas/WolframAlphaToolDefinition"
2446 },
2447 {
2448 "$ref": "#/components/schemas/PhotogenToolDefinition"
2449 },
2450 {
2451 "$ref": "#/components/schemas/CodeInterpreterToolDefinition"
2452 },
2453 {
2454 "$ref": "#/components/schemas/FunctionCallToolDefinition"
2455 },
2456 {
2457 "type": "object",
2458 "properties": {
2459 "input_shields": {
2460 "type": "array",
2461 "items": {
2462 "$ref": "#/components/schemas/ShieldDefinition"
2463 }
2464 },
2465 "output_shields": {
2466 "type": "array",
2467 "items": {
2468 "$ref": "#/components/schemas/ShieldDefinition"
2469 }
2470 },
2471 "type": {
2472 "type": "string",
2473 "const": "memory"
2474 },
2475 "memory_bank_configs": {
2476 "type": "array",
2477 "items": {
2478 "oneOf": [
2479 {
2480 "type": "object",
2481 "properties": {
2482 "bank_id": {
2483 "type": "string"
2484 },
2485 "type": {
2486 "type": "string",
2487 "const": "vector"
2488 }
2489 },
2490 "additionalProperties": false,
2491 "required": [
2492 "bank_id",
2493 "type"
2494 ]
2495 },
2496 {
2497 "type": "object",
2498 "properties": {
2499 "bank_id": {
2500 "type": "string"
2501 },
2502 "type": {
2503 "type": "string",
2504 "const": "keyvalue"
2505 },
2506 "keys": {
2507 "type": "array",
2508 "items": {
2509 "type": "string"
2510 }
2511 }
2512 },
2513 "additionalProperties": false,
2514 "required": [
2515 "bank_id",
2516 "type",
2517 "keys"
2518 ]
2519 },
2520 {
2521 "type": "object",
2522 "properties": {
2523 "bank_id": {
2524 "type": "string"
2525 },
2526 "type": {
2527 "type": "string",
2528 "const": "keyword"
2529 }
2530 },
2531 "additionalProperties": false,
2532 "required": [
2533 "bank_id",
2534 "type"
2535 ]
2536 },
2537 {
2538 "type": "object",
2539 "properties": {
2540 "bank_id": {
2541 "type": "string"
2542 },
2543 "type": {
2544 "type": "string",
2545 "const": "graph"
2546 },
2547 "entities": {
2548 "type": "array",
2549 "items": {
2550 "type": "string"
2551 }
2552 }
2553 },
2554 "additionalProperties": false,
2555 "required": [
2556 "bank_id",
2557 "type",
2558 "entities"
2559 ]
2560 }
2561 ]
2562 }
2563 },
2564 "query_generator_config": {
2565 "oneOf": [
2566 {
2567 "type": "object",
2568 "properties": {
2569 "type": {
2570 "type": "string",
2571 "const": "default"
2572 },
2573 "sep": {
2574 "type": "string"
2575 }
2576 },
2577 "additionalProperties": false,
2578 "required": [
2579 "type",
2580 "sep"
2581 ]
2582 },
2583 {
2584 "type": "object",
2585 "properties": {
2586 "type": {
2587 "type": "string",
2588 "const": "llm"
2589 },
2590 "model": {
2591 "type": "string"
2592 },
2593 "template": {
2594 "type": "string"
2595 }
2596 },
2597 "additionalProperties": false,
2598 "required": [
2599 "type",
2600 "model",
2601 "template"
2602 ]
2603 },
2604 {
2605 "type": "object",
2606 "properties": {
2607 "type": {
2608 "type": "string",
2609 "const": "custom"
2610 }
2611 },
2612 "additionalProperties": false,
2613 "required": [
2614 "type"
2615 ]
2616 }
2617 ]
2618 },
2619 "max_tokens_in_context": {
2620 "type": "integer"
2621 },
2622 "max_chunks": {
2623 "type": "integer"
2624 }
2625 },
2626 "additionalProperties": false,
2627 "required": [
2628 "type",
2629 "memory_bank_configs",
2630 "query_generator_config",
2631 "max_tokens_in_context",
2632 "max_chunks"
2633 ]
2634 }
2635 ]
2636 }
2637 },
2638 "tool_choice": {
2639 "$ref": "#/components/schemas/ToolChoice"
2640 },
2641 "tool_prompt_format": {
2642 "$ref": "#/components/schemas/ToolPromptFormat"
2643 },
2644 "model": {
2645 "type": "string"
2646 },
2647 "instructions": {
2648 "type": "string"
2649 }
2650 },
2651 "additionalProperties": false,
2652 "required": [
2653 "model",
2654 "instructions"
2655 ]
2656 },
2657 "BuiltinShield": {
2658 "type": "string",
2659 "enum": [
2660 "llama_guard",
2661 "code_scanner_guard",
2662 "third_party_shield",
2663 "injection_shield",
2664 "jailbreak_shield"
2665 ]
2666 },
2667 "CodeInterpreterToolDefinition": {
2668 "type": "object",
2669 "properties": {
2670 "input_shields": {
2671 "type": "array",
2672 "items": {
2673 "$ref": "#/components/schemas/ShieldDefinition"
2674 }
2675 },
2676 "output_shields": {
2677 "type": "array",
2678 "items": {
2679 "$ref": "#/components/schemas/ShieldDefinition"
2680 }
2681 },
2682 "type": {
2683 "type": "string",
2684 "const": "code_interpreter"
2685 },
2686 "enable_inline_code_execution": {
2687 "type": "boolean"
2688 },
2689 "remote_execution": {
2690 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2691 }
2692 },
2693 "additionalProperties": false,
2694 "required": [
2695 "type",
2696 "enable_inline_code_execution"
2697 ]
2698 },
2699 "FunctionCallToolDefinition": {
2700 "type": "object",
2701 "properties": {
2702 "input_shields": {
2703 "type": "array",
2704 "items": {
2705 "$ref": "#/components/schemas/ShieldDefinition"
2706 }
2707 },
2708 "output_shields": {
2709 "type": "array",
2710 "items": {
2711 "$ref": "#/components/schemas/ShieldDefinition"
2712 }
2713 },
2714 "type": {
2715 "type": "string",
2716 "const": "function_call"
2717 },
2718 "function_name": {
2719 "type": "string"
2720 },
2721 "description": {
2722 "type": "string"
2723 },
2724 "parameters": {
2725 "type": "object",
2726 "additionalProperties": {
2727 "$ref": "#/components/schemas/ToolParamDefinition"
2728 }
2729 },
2730 "remote_execution": {
2731 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2732 }
2733 },
2734 "additionalProperties": false,
2735 "required": [
2736 "type",
2737 "function_name",
2738 "description",
2739 "parameters"
2740 ]
2741 },
2742 "OnViolationAction": {
2743 "type": "integer",
2744 "enum": [
2745 0,
2746 1,
2747 2
2748 ]
2749 },
2750 "PhotogenToolDefinition": {
2751 "type": "object",
2752 "properties": {
2753 "input_shields": {
2754 "type": "array",
2755 "items": {
2756 "$ref": "#/components/schemas/ShieldDefinition"
2757 }
2758 },
2759 "output_shields": {
2760 "type": "array",
2761 "items": {
2762 "$ref": "#/components/schemas/ShieldDefinition"
2763 }
2764 },
2765 "type": {
2766 "type": "string",
2767 "const": "photogen"
2768 },
2769 "remote_execution": {
2770 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2771 }
2772 },
2773 "additionalProperties": false,
2774 "required": [
2775 "type"
2776 ]
2777 },
2778 "RestAPIExecutionConfig": {
2779 "type": "object",
2780 "properties": {
2781 "url": {
2782 "$ref": "#/components/schemas/URL"
2783 },
2784 "method": {
2785 "$ref": "#/components/schemas/RestAPIMethod"
2786 },
2787 "params": {
2788 "type": "object",
2789 "additionalProperties": {
2790 "oneOf": [
2791 {
2792 "type": "null"
2793 },
2794 {
2795 "type": "boolean"
2796 },
2797 {
2798 "type": "number"
2799 },
2800 {
2801 "type": "string"
2802 },
2803 {
2804 "type": "array"
2805 },
2806 {
2807 "type": "object"
2808 }
2809 ]
2810 }
2811 },
2812 "headers": {
2813 "type": "object",
2814 "additionalProperties": {
2815 "oneOf": [
2816 {
2817 "type": "null"
2818 },
2819 {
2820 "type": "boolean"
2821 },
2822 {
2823 "type": "number"
2824 },
2825 {
2826 "type": "string"
2827 },
2828 {
2829 "type": "array"
2830 },
2831 {
2832 "type": "object"
2833 }
2834 ]
2835 }
2836 },
2837 "body": {
2838 "type": "object",
2839 "additionalProperties": {
2840 "oneOf": [
2841 {
2842 "type": "null"
2843 },
2844 {
2845 "type": "boolean"
2846 },
2847 {
2848 "type": "number"
2849 },
2850 {
2851 "type": "string"
2852 },
2853 {
2854 "type": "array"
2855 },
2856 {
2857 "type": "object"
2858 }
2859 ]
2860 }
2861 }
2862 },
2863 "additionalProperties": false,
2864 "required": [
2865 "url",
2866 "method"
2867 ]
2868 },
2869 "RestAPIMethod": {
2870 "type": "string",
2871 "enum": [
2872 "GET",
2873 "POST",
2874 "PUT",
2875 "DELETE"
2876 ]
2877 },
2878 "SearchToolDefinition": {
2879 "type": "object",
2880 "properties": {
2881 "input_shields": {
2882 "type": "array",
2883 "items": {
2884 "$ref": "#/components/schemas/ShieldDefinition"
2885 }
2886 },
2887 "output_shields": {
2888 "type": "array",
2889 "items": {
2890 "$ref": "#/components/schemas/ShieldDefinition"
2891 }
2892 },
2893 "type": {
2894 "type": "string",
2895 "const": "brave_search"
2896 },
2897 "engine": {
2898 "type": "string",
2899 "enum": [
2900 "bing",
2901 "brave"
2902 ]
2903 },
2904 "remote_execution": {
2905 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2906 }
2907 },
2908 "additionalProperties": false,
2909 "required": [
2910 "type",
2911 "engine"
2912 ]
2913 },
2914 "ShieldDefinition": {
2915 "type": "object",
2916 "properties": {
2917 "shield_type": {
2918 "oneOf": [
2919 {
2920 "$ref": "#/components/schemas/BuiltinShield"
2921 },
2922 {
2923 "type": "string"
2924 }
2925 ]
2926 },
2927 "description": {
2928 "type": "string"
2929 },
2930 "parameters": {
2931 "type": "object",
2932 "additionalProperties": {
2933 "$ref": "#/components/schemas/ToolParamDefinition"
2934 }
2935 },
2936 "on_violation_action": {
2937 "$ref": "#/components/schemas/OnViolationAction"
2938 },
2939 "execution_config": {
2940 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2941 }
2942 },
2943 "additionalProperties": false,
2944 "required": [
2945 "shield_type",
2946 "on_violation_action"
2947 ]
2948 },
2949 "URL": {
2950 "type": "string",
2951 "format": "uri",
2952 "pattern": "^(https?://|file://|data:)"
2953 },
2954 "WolframAlphaToolDefinition": {
2955 "type": "object",
2956 "properties": {
2957 "input_shields": {
2958 "type": "array",
2959 "items": {
2960 "$ref": "#/components/schemas/ShieldDefinition"
2961 }
2962 },
2963 "output_shields": {
2964 "type": "array",
2965 "items": {
2966 "$ref": "#/components/schemas/ShieldDefinition"
2967 }
2968 },
2969 "type": {
2970 "type": "string",
2971 "const": "wolfram_alpha"
2972 },
2973 "remote_execution": {
2974 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2975 }
2976 },
2977 "additionalProperties": false,
2978 "required": [
2979 "type"
2980 ]
2981 },
2982 "CreateAgenticSystemRequest": {
2983 "type": "object",
2984 "properties": {
2985 "agent_config": {
2986 "$ref": "#/components/schemas/AgentConfig"
2987 }
2988 },
2989 "additionalProperties": false,
2990 "required": [
2991 "agent_config"
2992 ]
2993 },
2994 "AgenticSystemCreateResponse": {
2995 "type": "object",
2996 "properties": {
2997 "agent_id": {
2998 "type": "string"
2999 }
3000 },
3001 "additionalProperties": false,
3002 "required": [
3003 "agent_id"
3004 ]
3005 },
3006 "CreateAgenticSystemSessionRequest": {
3007 "type": "object",
3008 "properties": {
3009 "agent_id": {
3010 "type": "string"
3011 },
3012 "session_name": {
3013 "type": "string"
3014 }
3015 },
3016 "additionalProperties": false,
3017 "required": [
3018 "agent_id",
3019 "session_name"
3020 ]
3021 },
3022 "AgenticSystemSessionCreateResponse": {
3023 "type": "object",
3024 "properties": {
3025 "session_id": {
3026 "type": "string"
3027 }
3028 },
3029 "additionalProperties": false,
3030 "required": [
3031 "session_id"
3032 ]
3033 },
3034 "AgenticSystemTurnCreateRequest": {
3035 "type": "object",
3036 "properties": {
3037 "sampling_params": {
3038 "$ref": "#/components/schemas/SamplingParams"
3039 },
3040 "input_shields": {
3041 "type": "array",
3042 "items": {
3043 "$ref": "#/components/schemas/ShieldDefinition"
3044 }
3045 },
3046 "output_shields": {
3047 "type": "array",
3048 "items": {
3049 "$ref": "#/components/schemas/ShieldDefinition"
3050 }
3051 },
3052 "tools": {
3053 "type": "array",
3054 "items": {
3055 "oneOf": [
3056 {
3057 "$ref": "#/components/schemas/SearchToolDefinition"
3058 },
3059 {
3060 "$ref": "#/components/schemas/WolframAlphaToolDefinition"
3061 },
3062 {
3063 "$ref": "#/components/schemas/PhotogenToolDefinition"
3064 },
3065 {
3066 "$ref": "#/components/schemas/CodeInterpreterToolDefinition"
3067 },
3068 {
3069 "$ref": "#/components/schemas/FunctionCallToolDefinition"
3070 },
3071 {
3072 "type": "object",
3073 "properties": {
3074 "input_shields": {
3075 "type": "array",
3076 "items": {
3077 "$ref": "#/components/schemas/ShieldDefinition"
3078 }
3079 },
3080 "output_shields": {
3081 "type": "array",
3082 "items": {
3083 "$ref": "#/components/schemas/ShieldDefinition"
3084 }
3085 },
3086 "type": {
3087 "type": "string",
3088 "const": "memory"
3089 },
3090 "memory_bank_configs": {
3091 "type": "array",
3092 "items": {
3093 "oneOf": [
3094 {
3095 "type": "object",
3096 "properties": {
3097 "bank_id": {
3098 "type": "string"
3099 },
3100 "type": {
3101 "type": "string",
3102 "const": "vector"
3103 }
3104 },
3105 "additionalProperties": false,
3106 "required": [
3107 "bank_id",
3108 "type"
3109 ]
3110 },
3111 {
3112 "type": "object",
3113 "properties": {
3114 "bank_id": {
3115 "type": "string"
3116 },
3117 "type": {
3118 "type": "string",
3119 "const": "keyvalue"
3120 },
3121 "keys": {
3122 "type": "array",
3123 "items": {
3124 "type": "string"
3125 }
3126 }
3127 },
3128 "additionalProperties": false,
3129 "required": [
3130 "bank_id",
3131 "type",
3132 "keys"
3133 ]
3134 },
3135 {
3136 "type": "object",
3137 "properties": {
3138 "bank_id": {
3139 "type": "string"
3140 },
3141 "type": {
3142 "type": "string",
3143 "const": "keyword"
3144 }
3145 },
3146 "additionalProperties": false,
3147 "required": [
3148 "bank_id",
3149 "type"
3150 ]
3151 },
3152 {
3153 "type": "object",
3154 "properties": {
3155 "bank_id": {
3156 "type": "string"
3157 },
3158 "type": {
3159 "type": "string",
3160 "const": "graph"
3161 },
3162 "entities": {
3163 "type": "array",
3164 "items": {
3165 "type": "string"
3166 }
3167 }
3168 },
3169 "additionalProperties": false,
3170 "required": [
3171 "bank_id",
3172 "type",
3173 "entities"
3174 ]
3175 }
3176 ]
3177 }
3178 },
3179 "query_generator_config": {
3180 "oneOf": [
3181 {
3182 "type": "object",
3183 "properties": {
3184 "type": {
3185 "type": "string",
3186 "const": "default"
3187 },
3188 "sep": {
3189 "type": "string"
3190 }
3191 },
3192 "additionalProperties": false,
3193 "required": [
3194 "type",
3195 "sep"
3196 ]
3197 },
3198 {
3199 "type": "object",
3200 "properties": {
3201 "type": {
3202 "type": "string",
3203 "const": "llm"
3204 },
3205 "model": {
3206 "type": "string"
3207 },
3208 "template": {
3209 "type": "string"
3210 }
3211 },
3212 "additionalProperties": false,
3213 "required": [
3214 "type",
3215 "model",
3216 "template"
3217 ]
3218 },
3219 {
3220 "type": "object",
3221 "properties": {
3222 "type": {
3223 "type": "string",
3224 "const": "custom"
3225 }
3226 },
3227 "additionalProperties": false,
3228 "required": [
3229 "type"
3230 ]
3231 }
3232 ]
3233 },
3234 "max_tokens_in_context": {
3235 "type": "integer"
3236 },
3237 "max_chunks": {
3238 "type": "integer"
3239 }
3240 },
3241 "additionalProperties": false,
3242 "required": [
3243 "type",
3244 "memory_bank_configs",
3245 "query_generator_config",
3246 "max_tokens_in_context",
3247 "max_chunks"
3248 ]
3249 }
3250 ]
3251 }
3252 },
3253 "tool_choice": {
3254 "$ref": "#/components/schemas/ToolChoice"
3255 },
3256 "tool_prompt_format": {
3257 "$ref": "#/components/schemas/ToolPromptFormat"
3258 },
3259 "instructions": {
3260 "type": "string"
3261 },
3262 "agent_id": {
3263 "type": "string"
3264 },
3265 "session_id": {
3266 "type": "string"
3267 },
3268 "messages": {
3269 "type": "array",
3270 "items": {
3271 "oneOf": [
3272 {
3273 "$ref": "#/components/schemas/UserMessage"
3274 },
3275 {
3276 "$ref": "#/components/schemas/ToolResponseMessage"
3277 }
3278 ]
3279 }
3280 },
3281 "attachments": {
3282 "type": "array",
3283 "items": {
3284 "$ref": "#/components/schemas/Attachment"
3285 }
3286 },
3287 "stream": {
3288 "type": "boolean"
3289 }
3290 },
3291 "additionalProperties": false,
3292 "required": [
3293 "agent_id",
3294 "session_id",
3295 "messages"
3296 ]
3297 },
3298 "Attachment": {
3299 "type": "object",
3300 "properties": {
3301 "content": {
3302 "oneOf": [
3303 {
3304 "type": "string"
3305 },
3306 {
3307 "type": "array",
3308 "items": {
3309 "type": "string"
3310 }
3311 },
3312 {
3313 "$ref": "#/components/schemas/URL"
3314 }
3315 ]
3316 },
3317 "mime_type": {
3318 "type": "string"
3319 }
3320 },
3321 "additionalProperties": false,
3322 "required": [
3323 "content",
3324 "mime_type"
3325 ]
3326 },
3327 "AgenticSystemTurnCreateRequestWrapper": {
3328 "type": "object",
3329 "properties": {
3330 "request": {
3331 "$ref": "#/components/schemas/AgenticSystemTurnCreateRequest"
3332 }
3333 },
3334 "additionalProperties": false,
3335 "required": [
3336 "request"
3337 ]
3338 },
3339 "AgenticSystemTurnResponseEvent": {
3340 "type": "object",
3341 "properties": {
3342 "payload": {
3343 "oneOf": [
3344 {
3345 "$ref": "#/components/schemas/AgenticSystemTurnResponseStepStartPayload"
3346 },
3347 {
3348 "$ref": "#/components/schemas/AgenticSystemTurnResponseStepProgressPayload"
3349 },
3350 {
3351 "$ref": "#/components/schemas/AgenticSystemTurnResponseStepCompletePayload"
3352 },
3353 {
3354 "$ref": "#/components/schemas/AgenticSystemTurnResponseTurnStartPayload"
3355 },
3356 {
3357 "$ref": "#/components/schemas/AgenticSystemTurnResponseTurnCompletePayload"
3358 }
3359 ]
3360 }
3361 },
3362 "additionalProperties": false,
3363 "required": [
3364 "payload"
3365 ],
3366 "title": "Streamed agent execution response."
3367 },
3368 "AgenticSystemTurnResponseStepCompletePayload": {
3369 "type": "object",
3370 "properties": {
3371 "event_type": {
3372 "type": "string",
3373 "const": "step_complete"
3374 },
3375 "step_type": {
3376 "type": "string",
3377 "enum": [
3378 "inference",
3379 "tool_execution",
3380 "shield_call",
3381 "memory_retrieval"
3382 ]
3383 },
3384 "step_details": {
3385 "oneOf": [
3386 {
3387 "$ref": "#/components/schemas/InferenceStep"
3388 },
3389 {
3390 "$ref": "#/components/schemas/ToolExecutionStep"
3391 },
3392 {
3393 "$ref": "#/components/schemas/ShieldCallStep"
3394 },
3395 {
3396 "$ref": "#/components/schemas/MemoryRetrievalStep"
3397 }
3398 ]
3399 }
3400 },
3401 "additionalProperties": false,
3402 "required": [
3403 "event_type",
3404 "step_type",
3405 "step_details"
3406 ]
3407 },
3408 "AgenticSystemTurnResponseStepProgressPayload": {
3409 "type": "object",
3410 "properties": {
3411 "event_type": {
3412 "type": "string",
3413 "const": "step_progress"
3414 },
3415 "step_type": {
3416 "type": "string",
3417 "enum": [
3418 "inference",
3419 "tool_execution",
3420 "shield_call",
3421 "memory_retrieval"
3422 ]
3423 },
3424 "step_id": {
3425 "type": "string"
3426 },
3427 "model_response_text_delta": {
3428 "type": "string"
3429 },
3430 "tool_call_delta": {
3431 "$ref": "#/components/schemas/ToolCallDelta"
3432 },
3433 "tool_response_text_delta": {
3434 "type": "string"
3435 }
3436 },
3437 "additionalProperties": false,
3438 "required": [
3439 "event_type",
3440 "step_type",
3441 "step_id"
3442 ]
3443 },
3444 "AgenticSystemTurnResponseStepStartPayload": {
3445 "type": "object",
3446 "properties": {
3447 "event_type": {
3448 "type": "string",
3449 "const": "step_start"
3450 },
3451 "step_type": {
3452 "type": "string",
3453 "enum": [
3454 "inference",
3455 "tool_execution",
3456 "shield_call",
3457 "memory_retrieval"
3458 ]
3459 },
3460 "step_id": {
3461 "type": "string"
3462 },
3463 "metadata": {
3464 "type": "object",
3465 "additionalProperties": {
3466 "oneOf": [
3467 {
3468 "type": "null"
3469 },
3470 {
3471 "type": "boolean"
3472 },
3473 {
3474 "type": "number"
3475 },
3476 {
3477 "type": "string"
3478 },
3479 {
3480 "type": "array"
3481 },
3482 {
3483 "type": "object"
3484 }
3485 ]
3486 }
3487 }
3488 },
3489 "additionalProperties": false,
3490 "required": [
3491 "event_type",
3492 "step_type",
3493 "step_id"
3494 ]
3495 },
3496 "AgenticSystemTurnResponseStreamChunk": {
3497 "type": "object",
3498 "properties": {
3499 "event": {
3500 "$ref": "#/components/schemas/AgenticSystemTurnResponseEvent"
3501 }
3502 },
3503 "additionalProperties": false,
3504 "required": [
3505 "event"
3506 ]
3507 },
3508 "AgenticSystemTurnResponseTurnCompletePayload": {
3509 "type": "object",
3510 "properties": {
3511 "event_type": {
3512 "type": "string",
3513 "const": "turn_complete"
3514 },
3515 "turn": {
3516 "$ref": "#/components/schemas/Turn"
3517 }
3518 },
3519 "additionalProperties": false,
3520 "required": [
3521 "event_type",
3522 "turn"
3523 ]
3524 },
3525 "AgenticSystemTurnResponseTurnStartPayload": {
3526 "type": "object",
3527 "properties": {
3528 "event_type": {
3529 "type": "string",
3530 "const": "turn_start"
3531 },
3532 "turn_id": {
3533 "type": "string"
3534 }
3535 },
3536 "additionalProperties": false,
3537 "required": [
3538 "event_type",
3539 "turn_id"
3540 ]
3541 },
3542 "InferenceStep": {
3543 "type": "object",
3544 "properties": {
3545 "turn_id": {
3546 "type": "string"
3547 },
3548 "step_id": {
3549 "type": "string"
3550 },
3551 "started_at": {
3552 "type": "string",
3553 "format": "date-time"
3554 },
3555 "completed_at": {
3556 "type": "string",
3557 "format": "date-time"
3558 },
3559 "step_type": {
3560 "type": "string",
3561 "const": "inference"
3562 },
3563 "model_response": {
3564 "$ref": "#/components/schemas/CompletionMessage"
3565 }
3566 },
3567 "additionalProperties": false,
3568 "required": [
3569 "turn_id",
3570 "step_id",
3571 "step_type",
3572 "model_response"
3573 ]
3574 },
3575 "MemoryRetrievalStep": {
3576 "type": "object",
3577 "properties": {
3578 "turn_id": {
3579 "type": "string"
3580 },
3581 "step_id": {
3582 "type": "string"
3583 },
3584 "started_at": {
3585 "type": "string",
3586 "format": "date-time"
3587 },
3588 "completed_at": {
3589 "type": "string",
3590 "format": "date-time"
3591 },
3592 "step_type": {
3593 "type": "string",
3594 "const": "memory_retrieval"
3595 },
3596 "memory_bank_ids": {
3597 "type": "array",
3598 "items": {
3599 "type": "string"
3600 }
3601 },
3602 "inserted_context": {
3603 "oneOf": [
3604 {
3605 "type": "string"
3606 },
3607 {
3608 "type": "array",
3609 "items": {
3610 "type": "string"
3611 }
3612 }
3613 ]
3614 }
3615 },
3616 "additionalProperties": false,
3617 "required": [
3618 "turn_id",
3619 "step_id",
3620 "step_type",
3621 "memory_bank_ids",
3622 "inserted_context"
3623 ]
3624 },
3625 "ShieldCallStep": {
3626 "type": "object",
3627 "properties": {
3628 "turn_id": {
3629 "type": "string"
3630 },
3631 "step_id": {
3632 "type": "string"
3633 },
3634 "started_at": {
3635 "type": "string",
3636 "format": "date-time"
3637 },
3638 "completed_at": {
3639 "type": "string",
3640 "format": "date-time"
3641 },
3642 "step_type": {
3643 "type": "string",
3644 "const": "shield_call"
3645 },
3646 "response": {
3647 "$ref": "#/components/schemas/ShieldResponse"
3648 }
3649 },
3650 "additionalProperties": false,
3651 "required": [
3652 "turn_id",
3653 "step_id",
3654 "step_type",
3655 "response"
3656 ]
3657 },
3658 "ShieldResponse": {
3659 "type": "object",
3660 "properties": {
3661 "shield_type": {
3662 "oneOf": [
3663 {
3664 "$ref": "#/components/schemas/BuiltinShield"
3665 },
3666 {
3667 "type": "string"
3668 }
3669 ]
3670 },
3671 "is_violation": {
3672 "type": "boolean"
3673 },
3674 "violation_type": {
3675 "type": "string"
3676 },
3677 "violation_return_message": {
3678 "type": "string"
3679 }
3680 },
3681 "additionalProperties": false,
3682 "required": [
3683 "shield_type",
3684 "is_violation"
3685 ]
3686 },
3687 "ToolExecutionStep": {
3688 "type": "object",
3689 "properties": {
3690 "turn_id": {
3691 "type": "string"
3692 },
3693 "step_id": {
3694 "type": "string"
3695 },
3696 "started_at": {
3697 "type": "string",
3698 "format": "date-time"
3699 },
3700 "completed_at": {
3701 "type": "string",
3702 "format": "date-time"
3703 },
3704 "step_type": {
3705 "type": "string",
3706 "const": "tool_execution"
3707 },
3708 "tool_calls": {
3709 "type": "array",
3710 "items": {
3711 "$ref": "#/components/schemas/ToolCall"
3712 }
3713 },
3714 "tool_responses": {
3715 "type": "array",
3716 "items": {
3717 "$ref": "#/components/schemas/ToolResponse"
3718 }
3719 }
3720 },
3721 "additionalProperties": false,
3722 "required": [
3723 "turn_id",
3724 "step_id",
3725 "step_type",
3726 "tool_calls",
3727 "tool_responses"
3728 ]
3729 },
3730 "ToolResponse": {
3731 "type": "object",
3732 "properties": {
3733 "call_id": {
3734 "type": "string"
3735 },
3736 "tool_name": {
3737 "oneOf": [
3738 {
3739 "$ref": "#/components/schemas/BuiltinTool"
3740 },
3741 {
3742 "type": "string"
3743 }
3744 ]
3745 },
3746 "content": {
3747 "oneOf": [
3748 {
3749 "type": "string"
3750 },
3751 {
3752 "type": "array",
3753 "items": {
3754 "type": "string"
3755 }
3756 }
3757 ]
3758 }
3759 },
3760 "additionalProperties": false,
3761 "required": [
3762 "call_id",
3763 "tool_name",
3764 "content"
3765 ]
3766 },
3767 "Turn": {
3768 "type": "object",
3769 "properties": {
3770 "turn_id": {
3771 "type": "string"
3772 },
3773 "session_id": {
3774 "type": "string"
3775 },
3776 "input_messages": {
3777 "type": "array",
3778 "items": {
3779 "oneOf": [
3780 {
3781 "$ref": "#/components/schemas/UserMessage"
3782 },
3783 {
3784 "$ref": "#/components/schemas/ToolResponseMessage"
3785 }
3786 ]
3787 }
3788 },
3789 "steps": {
3790 "type": "array",
3791 "items": {
3792 "oneOf": [
3793 {
3794 "$ref": "#/components/schemas/InferenceStep"
3795 },
3796 {
3797 "$ref": "#/components/schemas/ToolExecutionStep"
3798 },
3799 {
3800 "$ref": "#/components/schemas/ShieldCallStep"
3801 },
3802 {
3803 "$ref": "#/components/schemas/MemoryRetrievalStep"
3804 }
3805 ]
3806 }
3807 },
3808 "output_message": {
3809 "$ref": "#/components/schemas/CompletionMessage"
3810 },
3811 "output_attachments": {
3812 "type": "array",
3813 "items": {
3814 "$ref": "#/components/schemas/Attachment"
3815 }
3816 },
3817 "started_at": {
3818 "type": "string",
3819 "format": "date-time"
3820 },
3821 "completed_at": {
3822 "type": "string",
3823 "format": "date-time"
3824 }
3825 },
3826 "additionalProperties": false,
3827 "required": [
3828 "turn_id",
3829 "session_id",
3830 "input_messages",
3831 "steps",
3832 "output_message",
3833 "output_attachments",
3834 "started_at"
3835 ],
3836 "title": "A single turn in an interaction with an Agentic System."
3837 },
3838 "CreateDatasetRequest": {
3839 "type": "object",
3840 "properties": {
3841 "uuid": {
3842 "type": "string"
3843 },
3844 "dataset": {
3845 "$ref": "#/components/schemas/TrainEvalDataset"
3846 }
3847 },
3848 "additionalProperties": false,
3849 "required": [
3850 "uuid",
3851 "dataset"
3852 ],
3853 "title": "Request to create a dataset."
3854 },
3855 "TrainEvalDataset": {
3856 "type": "object",
3857 "properties": {
3858 "columns": {
3859 "type": "object",
3860 "additionalProperties": {
3861 "$ref": "#/components/schemas/TrainEvalDatasetColumnType"
3862 }
3863 },
3864 "content_url": {
3865 "$ref": "#/components/schemas/URL"
3866 },
3867 "metadata": {
3868 "type": "object",
3869 "additionalProperties": {
3870 "oneOf": [
3871 {
3872 "type": "null"
3873 },
3874 {
3875 "type": "boolean"
3876 },
3877 {
3878 "type": "number"
3879 },
3880 {
3881 "type": "string"
3882 },
3883 {
3884 "type": "array"
3885 },
3886 {
3887 "type": "object"
3888 }
3889 ]
3890 }
3891 }
3892 },
3893 "additionalProperties": false,
3894 "required": [
3895 "columns",
3896 "content_url"
3897 ],
3898 "title": "Dataset to be used for training or evaluating language models."
3899 },
3900 "TrainEvalDatasetColumnType": {
3901 "type": "string",
3902 "enum": [
3903 "dialog",
3904 "text",
3905 "media",
3906 "number",
3907 "json"
3908 ]
3909 },
3910 "CreateDatasetRequestWrapper": {
3911 "type": "object",
3912 "properties": {
3913 "request": {
3914 "$ref": "#/components/schemas/CreateDatasetRequest"
3915 }
3916 },
3917 "additionalProperties": false,
3918 "required": [
3919 "request"
3920 ]
3921 },
3922 "CreateExperimentRequest": {
3923 "type": "object",
3924 "properties": {
3925 "name": {
3926 "type": "string"
3927 },
3928 "metadata": {
3929 "type": "object",
3930 "additionalProperties": {
3931 "oneOf": [
3932 {
3933 "type": "null"
3934 },
3935 {
3936 "type": "boolean"
3937 },
3938 {
3939 "type": "number"
3940 },
3941 {
3942 "type": "string"
3943 },
3944 {
3945 "type": "array"
3946 },
3947 {
3948 "type": "object"
3949 }
3950 ]
3951 }
3952 }
3953 },
3954 "additionalProperties": false,
3955 "required": [
3956 "name"
3957 ]
3958 },
3959 "CreateExperimentRequestWrapper": {
3960 "type": "object",
3961 "properties": {
3962 "request": {
3963 "$ref": "#/components/schemas/CreateExperimentRequest"
3964 }
3965 },
3966 "additionalProperties": false,
3967 "required": [
3968 "request"
3969 ]
3970 },
3971 "Experiment": {
3972 "type": "object",
3973 "properties": {
3974 "id": {
3975 "type": "string"
3976 },
3977 "name": {
3978 "type": "string"
3979 },
3980 "status": {
3981 "$ref": "#/components/schemas/ExperimentStatus"
3982 },
3983 "created_at": {
3984 "type": "string",
3985 "format": "date-time"
3986 },
3987 "updated_at": {
3988 "type": "string",
3989 "format": "date-time"
3990 },
3991 "metadata": {
3992 "type": "object",
3993 "additionalProperties": {
3994 "oneOf": [
3995 {
3996 "type": "null"
3997 },
3998 {
3999 "type": "boolean"
4000 },
4001 {
4002 "type": "number"
4003 },
4004 {
4005 "type": "string"
4006 },
4007 {
4008 "type": "array"
4009 },
4010 {
4011 "type": "object"
4012 }
4013 ]
4014 }
4015 }
4016 },
4017 "additionalProperties": false,
4018 "required": [
4019 "id",
4020 "name",
4021 "status",
4022 "created_at",
4023 "updated_at",
4024 "metadata"
4025 ]
4026 },
4027 "ExperimentStatus": {
4028 "type": "string",
4029 "enum": [
4030 "not_started",
4031 "running",
4032 "completed",
4033 "failed"
4034 ]
4035 },
4036 "CreateMemoryBankRequest": {
4037 "type": "object",
4038 "properties": {
4039 "name": {
4040 "type": "string"
4041 },
4042 "config": {
4043 "oneOf": [
4044 {
4045 "type": "object",
4046 "properties": {
4047 "type": {
4048 "type": "string",
4049 "const": "vector"
4050 },
4051 "embedding_model": {
4052 "type": "string"
4053 },
4054 "chunk_size_in_tokens": {
4055 "type": "integer"
4056 },
4057 "overlap_size_in_tokens": {
4058 "type": "integer"
4059 }
4060 },
4061 "additionalProperties": false,
4062 "required": [
4063 "type",
4064 "embedding_model",
4065 "chunk_size_in_tokens"
4066 ]
4067 },
4068 {
4069 "type": "object",
4070 "properties": {
4071 "type": {
4072 "type": "string",
4073 "const": "keyvalue"
4074 }
4075 },
4076 "additionalProperties": false,
4077 "required": [
4078 "type"
4079 ]
4080 },
4081 {
4082 "type": "object",
4083 "properties": {
4084 "type": {
4085 "type": "string",
4086 "const": "keyword"
4087 }
4088 },
4089 "additionalProperties": false,
4090 "required": [
4091 "type"
4092 ]
4093 },
4094 {
4095 "type": "object",
4096 "properties": {
4097 "type": {
4098 "type": "string",
4099 "const": "graph"
4100 }
4101 },
4102 "additionalProperties": false,
4103 "required": [
4104 "type"
4105 ]
4106 }
4107 ]
4108 },
4109 "url": {
4110 "$ref": "#/components/schemas/URL"
4111 }
4112 },
4113 "additionalProperties": false,
4114 "required": [
4115 "name",
4116 "config"
4117 ]
4118 },
4119 "MemoryBank": {
4120 "type": "object",
4121 "properties": {
4122 "bank_id": {
4123 "type": "string"
4124 },
4125 "name": {
4126 "type": "string"
4127 },
4128 "config": {
4129 "oneOf": [
4130 {
4131 "type": "object",
4132 "properties": {
4133 "type": {
4134 "type": "string",
4135 "const": "vector"
4136 },
4137 "embedding_model": {
4138 "type": "string"
4139 },
4140 "chunk_size_in_tokens": {
4141 "type": "integer"
4142 },
4143 "overlap_size_in_tokens": {
4144 "type": "integer"
4145 }
4146 },
4147 "additionalProperties": false,
4148 "required": [
4149 "type",
4150 "embedding_model",
4151 "chunk_size_in_tokens"
4152 ]
4153 },
4154 {
4155 "type": "object",
4156 "properties": {
4157 "type": {
4158 "type": "string",
4159 "const": "keyvalue"
4160 }
4161 },
4162 "additionalProperties": false,
4163 "required": [
4164 "type"
4165 ]
4166 },
4167 {
4168 "type": "object",
4169 "properties": {
4170 "type": {
4171 "type": "string",
4172 "const": "keyword"
4173 }
4174 },
4175 "additionalProperties": false,
4176 "required": [
4177 "type"
4178 ]
4179 },
4180 {
4181 "type": "object",
4182 "properties": {
4183 "type": {
4184 "type": "string",
4185 "const": "graph"
4186 }
4187 },
4188 "additionalProperties": false,
4189 "required": [
4190 "type"
4191 ]
4192 }
4193 ]
4194 },
4195 "url": {
4196 "$ref": "#/components/schemas/URL"
4197 }
4198 },
4199 "additionalProperties": false,
4200 "required": [
4201 "bank_id",
4202 "name",
4203 "config"
4204 ]
4205 },
4206 "CreateRunRequest": {
4207 "type": "object",
4208 "properties": {
4209 "experiment_id": {
4210 "type": "string"
4211 },
4212 "metadata": {
4213 "type": "object",
4214 "additionalProperties": {
4215 "oneOf": [
4216 {
4217 "type": "null"
4218 },
4219 {
4220 "type": "boolean"
4221 },
4222 {
4223 "type": "number"
4224 },
4225 {
4226 "type": "string"
4227 },
4228 {
4229 "type": "array"
4230 },
4231 {
4232 "type": "object"
4233 }
4234 ]
4235 }
4236 }
4237 },
4238 "additionalProperties": false,
4239 "required": [
4240 "experiment_id"
4241 ]
4242 },
4243 "CreateRunRequestWrapper": {
4244 "type": "object",
4245 "properties": {
4246 "request": {
4247 "$ref": "#/components/schemas/CreateRunRequest"
4248 }
4249 },
4250 "additionalProperties": false,
4251 "required": [
4252 "request"
4253 ]
4254 },
4255 "Run": {
4256 "type": "object",
4257 "properties": {
4258 "id": {
4259 "type": "string"
4260 },
4261 "experiment_id": {
4262 "type": "string"
4263 },
4264 "status": {
4265 "type": "string"
4266 },
4267 "started_at": {
4268 "type": "string",
4269 "format": "date-time"
4270 },
4271 "ended_at": {
4272 "type": "string",
4273 "format": "date-time"
4274 },
4275 "metadata": {
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 },
4301 "additionalProperties": false,
4302 "required": [
4303 "id",
4304 "experiment_id",
4305 "status",
4306 "started_at",
4307 "metadata"
4308 ]
4309 },
4310 "DeleteAgenticSystemRequest": {
4311 "type": "object",
4312 "properties": {
4313 "agent_id": {
4314 "type": "string"
4315 }
4316 },
4317 "additionalProperties": false,
4318 "required": [
4319 "agent_id"
4320 ]
4321 },
4322 "DeleteAgenticSystemSessionRequest": {
4323 "type": "object",
4324 "properties": {
4325 "agent_id": {
4326 "type": "string"
4327 },
4328 "session_id": {
4329 "type": "string"
4330 }
4331 },
4332 "additionalProperties": false,
4333 "required": [
4334 "agent_id",
4335 "session_id"
4336 ]
4337 },
4338 "DeleteDatasetRequest": {
4339 "type": "object",
4340 "properties": {
4341 "dataset_uuid": {
4342 "type": "string"
4343 }
4344 },
4345 "additionalProperties": false,
4346 "required": [
4347 "dataset_uuid"
4348 ]
4349 },
4350 "DeleteDocumentsRequest": {
4351 "type": "object",
4352 "properties": {
4353 "bank_id": {
4354 "type": "string"
4355 },
4356 "document_ids": {
4357 "type": "array",
4358 "items": {
4359 "type": "string"
4360 }
4361 }
4362 },
4363 "additionalProperties": false,
4364 "required": [
4365 "bank_id",
4366 "document_ids"
4367 ]
4368 },
4369 "DropMemoryBankRequest": {
4370 "type": "object",
4371 "properties": {
4372 "bank_id": {
4373 "type": "string"
4374 }
4375 },
4376 "additionalProperties": false,
4377 "required": [
4378 "bank_id"
4379 ]
4380 },
4381 "EmbeddingsRequest": {
4382 "type": "object",
4383 "properties": {
4384 "model": {
4385 "type": "string"
4386 },
4387 "contents": {
4388 "type": "array",
4389 "items": {
4390 "oneOf": [
4391 {
4392 "type": "string"
4393 },
4394 {
4395 "type": "array",
4396 "items": {
4397 "type": "string"
4398 }
4399 }
4400 ]
4401 }
4402 }
4403 },
4404 "additionalProperties": false,
4405 "required": [
4406 "model",
4407 "contents"
4408 ]
4409 },
4410 "EmbeddingsResponse": {
4411 "type": "object",
4412 "properties": {
4413 "embeddings": {
4414 "type": "array",
4415 "items": {
4416 "type": "array",
4417 "items": {
4418 "type": "number"
4419 }
4420 }
4421 }
4422 },
4423 "additionalProperties": false,
4424 "required": [
4425 "embeddings"
4426 ]
4427 },
4428 "Checkpoint": {
4429 "description": "Checkpoint created during training runs"
4430 },
4431 "EvaluateQuestionAnsweringRequest": {
4432 "type": "object",
4433 "properties": {
4434 "job_uuid": {
4435 "type": "string"
4436 },
4437 "dataset": {
4438 "$ref": "#/components/schemas/TrainEvalDataset"
4439 },
4440 "checkpoint": {
4441 "$ref": "#/components/schemas/Checkpoint"
4442 },
4443 "sampling_params": {
4444 "$ref": "#/components/schemas/SamplingParams"
4445 },
4446 "metrics": {
4447 "type": "array",
4448 "items": {
4449 "type": "string",
4450 "enum": [
4451 "em",
4452 "f1"
4453 ]
4454 }
4455 }
4456 },
4457 "additionalProperties": false,
4458 "required": [
4459 "job_uuid",
4460 "dataset",
4461 "checkpoint",
4462 "sampling_params",
4463 "metrics"
4464 ],
4465 "title": "Request to evaluate question answering."
4466 },
4467 "EvaluateQuestionAnsweringRequestWrapper": {
4468 "type": "object",
4469 "properties": {
4470 "request": {
4471 "$ref": "#/components/schemas/EvaluateQuestionAnsweringRequest"
4472 }
4473 },
4474 "additionalProperties": false,
4475 "required": [
4476 "request"
4477 ]
4478 },
4479 "EvaluationJob": {
4480 "type": "object",
4481 "properties": {
4482 "job_uuid": {
4483 "type": "string"
4484 }
4485 },
4486 "additionalProperties": false,
4487 "required": [
4488 "job_uuid"
4489 ]
4490 },
4491 "EvaluateSummarizationRequest": {
4492 "type": "object",
4493 "properties": {
4494 "job_uuid": {
4495 "type": "string"
4496 },
4497 "dataset": {
4498 "$ref": "#/components/schemas/TrainEvalDataset"
4499 },
4500 "checkpoint": {
4501 "$ref": "#/components/schemas/Checkpoint"
4502 },
4503 "sampling_params": {
4504 "$ref": "#/components/schemas/SamplingParams"
4505 },
4506 "metrics": {
4507 "type": "array",
4508 "items": {
4509 "type": "string",
4510 "enum": [
4511 "rouge",
4512 "bleu"
4513 ]
4514 }
4515 }
4516 },
4517 "additionalProperties": false,
4518 "required": [
4519 "job_uuid",
4520 "dataset",
4521 "checkpoint",
4522 "sampling_params",
4523 "metrics"
4524 ],
4525 "title": "Request to evaluate summarization."
4526 },
4527 "EvaluateSummarizationRequestWrapper": {
4528 "type": "object",
4529 "properties": {
4530 "request": {
4531 "$ref": "#/components/schemas/EvaluateSummarizationRequest"
4532 }
4533 },
4534 "additionalProperties": false,
4535 "required": [
4536 "request"
4537 ]
4538 },
4539 "EvaluateTextGenerationRequest": {
4540 "type": "object",
4541 "properties": {
4542 "job_uuid": {
4543 "type": "string"
4544 },
4545 "dataset": {
4546 "$ref": "#/components/schemas/TrainEvalDataset"
4547 },
4548 "checkpoint": {
4549 "$ref": "#/components/schemas/Checkpoint"
4550 },
4551 "sampling_params": {
4552 "$ref": "#/components/schemas/SamplingParams"
4553 },
4554 "metrics": {
4555 "type": "array",
4556 "items": {
4557 "type": "string",
4558 "enum": [
4559 "perplexity",
4560 "rouge",
4561 "bleu"
4562 ]
4563 }
4564 }
4565 },
4566 "additionalProperties": false,
4567 "required": [
4568 "job_uuid",
4569 "dataset",
4570 "checkpoint",
4571 "sampling_params",
4572 "metrics"
4573 ],
4574 "title": "Request to evaluate text generation."
4575 },
4576 "EvaluateTextGenerationRequestWrapper": {
4577 "type": "object",
4578 "properties": {
4579 "request": {
4580 "$ref": "#/components/schemas/EvaluateTextGenerationRequest"
4581 }
4582 },
4583 "additionalProperties": false,
4584 "required": [
4585 "request"
4586 ]
4587 },
4588 "GetAgenticSystemSessionRequest": {
4589 "type": "object",
4590 "properties": {
4591 "turn_ids": {
4592 "type": "array",
4593 "items": {
4594 "type": "string"
4595 }
4596 }
4597 },
4598 "additionalProperties": false
4599 },
4600 "Session": {
4601 "type": "object",
4602 "properties": {
4603 "session_id": {
4604 "type": "string"
4605 },
4606 "session_name": {
4607 "type": "string"
4608 },
4609 "turns": {
4610 "type": "array",
4611 "items": {
4612 "$ref": "#/components/schemas/Turn"
4613 }
4614 },
4615 "started_at": {
4616 "type": "string",
4617 "format": "date-time"
4618 },
4619 "memory_bank": {
4620 "$ref": "#/components/schemas/MemoryBank"
4621 }
4622 },
4623 "additionalProperties": false,
4624 "required": [
4625 "session_id",
4626 "session_name",
4627 "turns",
4628 "started_at"
4629 ],
4630 "title": "A single session of an interaction with an Agentic System."
4631 },
4632 "AgenticSystemStepResponse": {
4633 "type": "object",
4634 "properties": {
4635 "step": {
4636 "oneOf": [
4637 {
4638 "$ref": "#/components/schemas/InferenceStep"
4639 },
4640 {
4641 "$ref": "#/components/schemas/ToolExecutionStep"
4642 },
4643 {
4644 "$ref": "#/components/schemas/ShieldCallStep"
4645 },
4646 {
4647 "$ref": "#/components/schemas/MemoryRetrievalStep"
4648 }
4649 ]
4650 }
4651 },
4652 "additionalProperties": false,
4653 "required": [
4654 "step"
4655 ]
4656 },
4657 "Artifact": {
4658 "type": "object",
4659 "properties": {
4660 "id": {
4661 "type": "string"
4662 },
4663 "name": {
4664 "type": "string"
4665 },
4666 "type": {
4667 "$ref": "#/components/schemas/ArtifactType"
4668 },
4669 "size": {
4670 "type": "integer"
4671 },
4672 "created_at": {
4673 "type": "string",
4674 "format": "date-time"
4675 },
4676 "metadata": {
4677 "type": "object",
4678 "additionalProperties": {
4679 "oneOf": [
4680 {
4681 "type": "null"
4682 },
4683 {
4684 "type": "boolean"
4685 },
4686 {
4687 "type": "number"
4688 },
4689 {
4690 "type": "string"
4691 },
4692 {
4693 "type": "array"
4694 },
4695 {
4696 "type": "object"
4697 }
4698 ]
4699 }
4700 }
4701 },
4702 "additionalProperties": false,
4703 "required": [
4704 "id",
4705 "name",
4706 "type",
4707 "size",
4708 "created_at",
4709 "metadata"
4710 ]
4711 },
4712 "ArtifactType": {
4713 "type": "string",
4714 "enum": [
4715 "model",
4716 "dataset",
4717 "checkpoint",
4718 "plot",
4719 "metric",
4720 "config",
4721 "code",
4722 "other"
4723 ]
4724 },
4725 "GetDocumentsRequest": {
4726 "type": "object",
4727 "properties": {
4728 "document_ids": {
4729 "type": "array",
4730 "items": {
4731 "type": "string"
4732 }
4733 }
4734 },
4735 "additionalProperties": false,
4736 "required": [
4737 "document_ids"
4738 ]
4739 },
4740 "MemoryBankDocument": {
4741 "type": "object",
4742 "properties": {
4743 "document_id": {
4744 "type": "string"
4745 },
4746 "content": {
4747 "oneOf": [
4748 {
4749 "type": "string"
4750 },
4751 {
4752 "type": "array",
4753 "items": {
4754 "type": "string"
4755 }
4756 },
4757 {
4758 "$ref": "#/components/schemas/URL"
4759 }
4760 ]
4761 },
4762 "mime_type": {
4763 "type": "string"
4764 },
4765 "metadata": {
4766 "type": "object",
4767 "additionalProperties": {
4768 "oneOf": [
4769 {
4770 "type": "null"
4771 },
4772 {
4773 "type": "boolean"
4774 },
4775 {
4776 "type": "number"
4777 },
4778 {
4779 "type": "string"
4780 },
4781 {
4782 "type": "array"
4783 },
4784 {
4785 "type": "object"
4786 }
4787 ]
4788 }
4789 }
4790 },
4791 "additionalProperties": false,
4792 "required": [
4793 "document_id",
4794 "content",
4795 "mime_type",
4796 "metadata"
4797 ]
4798 },
4799 "EvaluationJobArtifactsResponse": {
4800 "type": "object",
4801 "properties": {
4802 "job_uuid": {
4803 "type": "string"
4804 }
4805 },
4806 "additionalProperties": false,
4807 "required": [
4808 "job_uuid"
4809 ],
4810 "title": "Artifacts of a evaluation job."
4811 },
4812 "EvaluationJobLogStream": {
4813 "type": "object",
4814 "properties": {
4815 "job_uuid": {
4816 "type": "string"
4817 }
4818 },
4819 "additionalProperties": false,
4820 "required": [
4821 "job_uuid"
4822 ]
4823 },
4824 "EvaluationJobStatusResponse": {
4825 "type": "object",
4826 "properties": {
4827 "job_uuid": {
4828 "type": "string"
4829 }
4830 },
4831 "additionalProperties": false,
4832 "required": [
4833 "job_uuid"
4834 ]
4835 },
4836 "LogSearchRequest": {
4837 "type": "object",
4838 "properties": {
4839 "query": {
4840 "type": "string"
4841 },
4842 "filters": {
4843 "type": "object",
4844 "additionalProperties": {
4845 "oneOf": [
4846 {
4847 "type": "null"
4848 },
4849 {
4850 "type": "boolean"
4851 },
4852 {
4853 "type": "number"
4854 },
4855 {
4856 "type": "string"
4857 },
4858 {
4859 "type": "array"
4860 },
4861 {
4862 "type": "object"
4863 }
4864 ]
4865 }
4866 }
4867 },
4868 "additionalProperties": false,
4869 "required": [
4870 "query"
4871 ]
4872 },
4873 "LogSearchRequestWrapper": {
4874 "type": "object",
4875 "properties": {
4876 "request": {
4877 "$ref": "#/components/schemas/LogSearchRequest"
4878 }
4879 },
4880 "additionalProperties": false,
4881 "required": [
4882 "request"
4883 ]
4884 },
4885 "Log": {
4886 "type": "object",
4887 "properties": {
4888 "message": {
4889 "type": "string"
4890 },
4891 "level": {
4892 "type": "string"
4893 },
4894 "timestamp": {
4895 "type": "string",
4896 "format": "date-time"
4897 },
4898 "additional_info": {
4899 "type": "object",
4900 "additionalProperties": {
4901 "oneOf": [
4902 {
4903 "type": "null"
4904 },
4905 {
4906 "type": "boolean"
4907 },
4908 {
4909 "type": "number"
4910 },
4911 {
4912 "type": "string"
4913 },
4914 {
4915 "type": "array"
4916 },
4917 {
4918 "type": "object"
4919 }
4920 ]
4921 }
4922 }
4923 },
4924 "additionalProperties": false,
4925 "required": [
4926 "message",
4927 "level",
4928 "timestamp",
4929 "additional_info"
4930 ]
4931 },
4932 "Metric": {
4933 "type": "object",
4934 "properties": {
4935 "name": {
4936 "type": "string"
4937 },
4938 "value": {
4939 "oneOf": [
4940 {
4941 "type": "number"
4942 },
4943 {
4944 "type": "integer"
4945 },
4946 {
4947 "type": "string"
4948 },
4949 {
4950 "type": "boolean"
4951 }
4952 ]
4953 },
4954 "timestamp": {
4955 "type": "string",
4956 "format": "date-time"
4957 },
4958 "run_id": {
4959 "type": "string"
4960 }
4961 },
4962 "additionalProperties": false,
4963 "required": [
4964 "name",
4965 "value",
4966 "timestamp",
4967 "run_id"
4968 ]
4969 },
4970 "PostTrainingJobArtifactsResponse": {
4971 "type": "object",
4972 "properties": {
4973 "job_uuid": {
4974 "type": "string"
4975 },
4976 "checkpoints": {
4977 "type": "array",
4978 "items": {
4979 "$ref": "#/components/schemas/Checkpoint"
4980 }
4981 }
4982 },
4983 "additionalProperties": false,
4984 "required": [
4985 "job_uuid",
4986 "checkpoints"
4987 ],
4988 "title": "Artifacts of a finetuning job."
4989 },
4990 "PostTrainingJobLogStream": {
4991 "type": "object",
4992 "properties": {
4993 "job_uuid": {
4994 "type": "string"
4995 },
4996 "log_lines": {
4997 "type": "array",
4998 "items": {
4999 "type": "string"
5000 }
5001 }
5002 },
5003 "additionalProperties": false,
5004 "required": [
5005 "job_uuid",
5006 "log_lines"
5007 ],
5008 "title": "Stream of logs from a finetuning job."
5009 },
5010 "PostTrainingJobStatus": {
5011 "type": "string",
5012 "enum": [
5013 "running",
5014 "completed",
5015 "failed",
5016 "scheduled"
5017 ]
5018 },
5019 "PostTrainingJobStatusResponse": {
5020 "type": "object",
5021 "properties": {
5022 "job_uuid": {
5023 "type": "string"
5024 },
5025 "status": {
5026 "$ref": "#/components/schemas/PostTrainingJobStatus"
5027 },
5028 "scheduled_at": {
5029 "type": "string",
5030 "format": "date-time"
5031 },
5032 "started_at": {
5033 "type": "string",
5034 "format": "date-time"
5035 },
5036 "completed_at": {
5037 "type": "string",
5038 "format": "date-time"
5039 },
5040 "resources_allocated": {
5041 "type": "object",
5042 "additionalProperties": {
5043 "oneOf": [
5044 {
5045 "type": "null"
5046 },
5047 {
5048 "type": "boolean"
5049 },
5050 {
5051 "type": "number"
5052 },
5053 {
5054 "type": "string"
5055 },
5056 {
5057 "type": "array"
5058 },
5059 {
5060 "type": "object"
5061 }
5062 ]
5063 }
5064 },
5065 "checkpoints": {
5066 "type": "array",
5067 "items": {
5068 "$ref": "#/components/schemas/Checkpoint"
5069 }
5070 }
5071 },
5072 "additionalProperties": false,
5073 "required": [
5074 "job_uuid",
5075 "status",
5076 "checkpoints"
5077 ],
5078 "title": "Status of a finetuning job."
5079 },
5080 "PostTrainingJob": {
5081 "type": "object",
5082 "properties": {
5083 "job_uuid": {
5084 "type": "string"
5085 }
5086 },
5087 "additionalProperties": false,
5088 "required": [
5089 "job_uuid"
5090 ]
5091 },
5092 "InsertDocumentsRequest": {
5093 "type": "object",
5094 "properties": {
5095 "bank_id": {
5096 "type": "string"
5097 },
5098 "documents": {
5099 "type": "array",
5100 "items": {
5101 "$ref": "#/components/schemas/MemoryBankDocument"
5102 }
5103 },
5104 "ttl_seconds": {
5105 "type": "integer"
5106 }
5107 },
5108 "additionalProperties": false,
5109 "required": [
5110 "bank_id",
5111 "documents"
5112 ]
5113 },
5114 "ListArtifactsRequest": {
5115 "type": "object",
5116 "properties": {
5117 "experiment_id": {
5118 "type": "string"
5119 }
5120 },
5121 "additionalProperties": false,
5122 "required": [
5123 "experiment_id"
5124 ]
5125 },
5126 "LogMessagesRequest": {
5127 "type": "object",
5128 "properties": {
5129 "logs": {
5130 "type": "array",
5131 "items": {
5132 "$ref": "#/components/schemas/Log"
5133 }
5134 },
5135 "run_id": {
5136 "type": "string"
5137 }
5138 },
5139 "additionalProperties": false,
5140 "required": [
5141 "logs"
5142 ]
5143 },
5144 "LogMessagesRequestWrapper": {
5145 "type": "object",
5146 "properties": {
5147 "request": {
5148 "$ref": "#/components/schemas/LogMessagesRequest"
5149 }
5150 },
5151 "additionalProperties": false,
5152 "required": [
5153 "request"
5154 ]
5155 },
5156 "LogMetricsRequest": {
5157 "type": "object",
5158 "properties": {
5159 "run_id": {
5160 "type": "string"
5161 },
5162 "metrics": {
5163 "type": "array",
5164 "items": {
5165 "$ref": "#/components/schemas/Metric"
5166 }
5167 }
5168 },
5169 "additionalProperties": false,
5170 "required": [
5171 "run_id",
5172 "metrics"
5173 ]
5174 },
5175 "LogMetricsRequestWrapper": {
5176 "type": "object",
5177 "properties": {
5178 "request": {
5179 "$ref": "#/components/schemas/LogMetricsRequest"
5180 }
5181 },
5182 "additionalProperties": false,
5183 "required": [
5184 "request"
5185 ]
5186 },
5187 "DPOAlignmentConfig": {
5188 "type": "object",
5189 "properties": {
5190 "reward_scale": {
5191 "type": "number"
5192 },
5193 "reward_clip": {
5194 "type": "number"
5195 },
5196 "epsilon": {
5197 "type": "number"
5198 },
5199 "gamma": {
5200 "type": "number"
5201 }
5202 },
5203 "additionalProperties": false,
5204 "required": [
5205 "reward_scale",
5206 "reward_clip",
5207 "epsilon",
5208 "gamma"
5209 ]
5210 },
5211 "OptimizerConfig": {
5212 "type": "object",
5213 "properties": {
5214 "optimizer_type": {
5215 "type": "string",
5216 "enum": [
5217 "adam",
5218 "adamw",
5219 "sgd"
5220 ]
5221 },
5222 "lr": {
5223 "type": "number"
5224 },
5225 "lr_min": {
5226 "type": "number"
5227 },
5228 "weight_decay": {
5229 "type": "number"
5230 }
5231 },
5232 "additionalProperties": false,
5233 "required": [
5234 "optimizer_type",
5235 "lr",
5236 "lr_min",
5237 "weight_decay"
5238 ]
5239 },
5240 "PostTrainingRLHFRequest": {
5241 "type": "object",
5242 "properties": {
5243 "job_uuid": {
5244 "type": "string"
5245 },
5246 "finetuned_model": {
5247 "$ref": "#/components/schemas/URL"
5248 },
5249 "dataset": {
5250 "$ref": "#/components/schemas/TrainEvalDataset"
5251 },
5252 "validation_dataset": {
5253 "$ref": "#/components/schemas/TrainEvalDataset"
5254 },
5255 "algorithm": {
5256 "$ref": "#/components/schemas/RLHFAlgorithm"
5257 },
5258 "algorithm_config": {
5259 "$ref": "#/components/schemas/DPOAlignmentConfig"
5260 },
5261 "optimizer_config": {
5262 "$ref": "#/components/schemas/OptimizerConfig"
5263 },
5264 "training_config": {
5265 "$ref": "#/components/schemas/TrainingConfig"
5266 },
5267 "hyperparam_search_config": {
5268 "type": "object",
5269 "additionalProperties": {
5270 "oneOf": [
5271 {
5272 "type": "null"
5273 },
5274 {
5275 "type": "boolean"
5276 },
5277 {
5278 "type": "number"
5279 },
5280 {
5281 "type": "string"
5282 },
5283 {
5284 "type": "array"
5285 },
5286 {
5287 "type": "object"
5288 }
5289 ]
5290 }
5291 },
5292 "logger_config": {
5293 "type": "object",
5294 "additionalProperties": {
5295 "oneOf": [
5296 {
5297 "type": "null"
5298 },
5299 {
5300 "type": "boolean"
5301 },
5302 {
5303 "type": "number"
5304 },
5305 {
5306 "type": "string"
5307 },
5308 {
5309 "type": "array"
5310 },
5311 {
5312 "type": "object"
5313 }
5314 ]
5315 }
5316 }
5317 },
5318 "additionalProperties": false,
5319 "required": [
5320 "job_uuid",
5321 "finetuned_model",
5322 "dataset",
5323 "validation_dataset",
5324 "algorithm",
5325 "algorithm_config",
5326 "optimizer_config",
5327 "training_config",
5328 "hyperparam_search_config",
5329 "logger_config"
5330 ],
5331 "title": "Request to finetune a model."
5332 },
5333 "RLHFAlgorithm": {
5334 "type": "string",
5335 "enum": [
5336 "dpo"
5337 ]
5338 },
5339 "TrainingConfig": {
5340 "type": "object",
5341 "properties": {
5342 "n_epochs": {
5343 "type": "integer"
5344 },
5345 "batch_size": {
5346 "type": "integer"
5347 },
5348 "shuffle": {
5349 "type": "boolean"
5350 },
5351 "n_iters": {
5352 "type": "integer"
5353 },
5354 "enable_activation_checkpointing": {
5355 "type": "boolean"
5356 },
5357 "memory_efficient_fsdp_wrap": {
5358 "type": "boolean"
5359 },
5360 "fsdp_cpu_offload": {
5361 "type": "boolean"
5362 }
5363 },
5364 "additionalProperties": false,
5365 "required": [
5366 "n_epochs",
5367 "batch_size",
5368 "shuffle",
5369 "n_iters",
5370 "enable_activation_checkpointing",
5371 "memory_efficient_fsdp_wrap",
5372 "fsdp_cpu_offload"
5373 ]
5374 },
5375 "PostTrainingRLHFRequestWrapper": {
5376 "type": "object",
5377 "properties": {
5378 "request": {
5379 "$ref": "#/components/schemas/PostTrainingRLHFRequest"
5380 }
5381 },
5382 "additionalProperties": false,
5383 "required": [
5384 "request"
5385 ]
5386 },
5387 "QueryDocumentsRequest": {
5388 "type": "object",
5389 "properties": {
5390 "bank_id": {
5391 "type": "string"
5392 },
5393 "query": {
5394 "oneOf": [
5395 {
5396 "type": "string"
5397 },
5398 {
5399 "type": "array",
5400 "items": {
5401 "type": "string"
5402 }
5403 }
5404 ]
5405 },
5406 "params": {
5407 "type": "object",
5408 "additionalProperties": {
5409 "oneOf": [
5410 {
5411 "type": "null"
5412 },
5413 {
5414 "type": "boolean"
5415 },
5416 {
5417 "type": "number"
5418 },
5419 {
5420 "type": "string"
5421 },
5422 {
5423 "type": "array"
5424 },
5425 {
5426 "type": "object"
5427 }
5428 ]
5429 }
5430 }
5431 },
5432 "additionalProperties": false,
5433 "required": [
5434 "bank_id",
5435 "query"
5436 ]
5437 },
5438 "QueryDocumentsResponse": {
5439 "type": "object",
5440 "properties": {
5441 "chunks": {
5442 "type": "array",
5443 "items": {
5444 "type": "object",
5445 "properties": {
5446 "content": {
5447 "oneOf": [
5448 {
5449 "type": "string"
5450 },
5451 {
5452 "type": "array",
5453 "items": {
5454 "type": "string"
5455 }
5456 }
5457 ]
5458 },
5459 "token_count": {
5460 "type": "integer"
5461 },
5462 "document_id": {
5463 "type": "string"
5464 }
5465 },
5466 "additionalProperties": false,
5467 "required": [
5468 "content",
5469 "token_count",
5470 "document_id"
5471 ]
5472 }
5473 },
5474 "scores": {
5475 "type": "array",
5476 "items": {
5477 "type": "number"
5478 }
5479 }
5480 },
5481 "additionalProperties": false,
5482 "required": [
5483 "chunks",
5484 "scores"
5485 ]
5486 },
5487 "DialogGenerations": {
5488 "type": "object",
5489 "properties": {
5490 "dialog": {
5491 "type": "array",
5492 "items": {
5493 "oneOf": [
5494 {
5495 "$ref": "#/components/schemas/UserMessage"
5496 },
5497 {
5498 "$ref": "#/components/schemas/SystemMessage"
5499 },
5500 {
5501 "$ref": "#/components/schemas/ToolResponseMessage"
5502 },
5503 {
5504 "$ref": "#/components/schemas/CompletionMessage"
5505 }
5506 ]
5507 }
5508 },
5509 "sampled_generations": {
5510 "type": "array",
5511 "items": {
5512 "oneOf": [
5513 {
5514 "$ref": "#/components/schemas/UserMessage"
5515 },
5516 {
5517 "$ref": "#/components/schemas/SystemMessage"
5518 },
5519 {
5520 "$ref": "#/components/schemas/ToolResponseMessage"
5521 },
5522 {
5523 "$ref": "#/components/schemas/CompletionMessage"
5524 }
5525 ]
5526 }
5527 }
5528 },
5529 "additionalProperties": false,
5530 "required": [
5531 "dialog",
5532 "sampled_generations"
5533 ]
5534 },
5535 "RewardScoringRequest": {
5536 "type": "object",
5537 "properties": {
5538 "dialog_generations": {
5539 "type": "array",
5540 "items": {
5541 "$ref": "#/components/schemas/DialogGenerations"
5542 }
5543 },
5544 "model": {
5545 "type": "string"
5546 }
5547 },
5548 "additionalProperties": false,
5549 "required": [
5550 "dialog_generations",
5551 "model"
5552 ],
5553 "title": "Request to score a reward function. A list of prompts and a list of responses per prompt."
5554 },
5555 "RewardScoringRequestWrapper": {
5556 "type": "object",
5557 "properties": {
5558 "request": {
5559 "$ref": "#/components/schemas/RewardScoringRequest"
5560 }
5561 },
5562 "additionalProperties": false,
5563 "required": [
5564 "request"
5565 ]
5566 },
5567 "RewardScoringResponse": {
5568 "type": "object",
5569 "properties": {
5570 "scored_generations": {
5571 "type": "array",
5572 "items": {
5573 "$ref": "#/components/schemas/ScoredDialogGenerations"
5574 }
5575 }
5576 },
5577 "additionalProperties": false,
5578 "required": [
5579 "scored_generations"
5580 ],
5581 "title": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold."
5582 },
5583 "ScoredDialogGenerations": {
5584 "type": "object",
5585 "properties": {
5586 "dialog": {
5587 "type": "array",
5588 "items": {
5589 "oneOf": [
5590 {
5591 "$ref": "#/components/schemas/UserMessage"
5592 },
5593 {
5594 "$ref": "#/components/schemas/SystemMessage"
5595 },
5596 {
5597 "$ref": "#/components/schemas/ToolResponseMessage"
5598 },
5599 {
5600 "$ref": "#/components/schemas/CompletionMessage"
5601 }
5602 ]
5603 }
5604 },
5605 "scored_generations": {
5606 "type": "array",
5607 "items": {
5608 "$ref": "#/components/schemas/ScoredMessage"
5609 }
5610 }
5611 },
5612 "additionalProperties": false,
5613 "required": [
5614 "dialog",
5615 "scored_generations"
5616 ]
5617 },
5618 "ScoredMessage": {
5619 "type": "object",
5620 "properties": {
5621 "message": {
5622 "oneOf": [
5623 {
5624 "$ref": "#/components/schemas/UserMessage"
5625 },
5626 {
5627 "$ref": "#/components/schemas/SystemMessage"
5628 },
5629 {
5630 "$ref": "#/components/schemas/ToolResponseMessage"
5631 },
5632 {
5633 "$ref": "#/components/schemas/CompletionMessage"
5634 }
5635 ]
5636 },
5637 "score": {
5638 "type": "number"
5639 }
5640 },
5641 "additionalProperties": false,
5642 "required": [
5643 "message",
5644 "score"
5645 ]
5646 },
5647 "RunShieldRequest": {
5648 "type": "object",
5649 "properties": {
5650 "messages": {
5651 "type": "array",
5652 "items": {
5653 "oneOf": [
5654 {
5655 "$ref": "#/components/schemas/UserMessage"
5656 },
5657 {
5658 "$ref": "#/components/schemas/SystemMessage"
5659 },
5660 {
5661 "$ref": "#/components/schemas/ToolResponseMessage"
5662 },
5663 {
5664 "$ref": "#/components/schemas/CompletionMessage"
5665 }
5666 ]
5667 }
5668 },
5669 "shields": {
5670 "type": "array",
5671 "items": {
5672 "$ref": "#/components/schemas/ShieldDefinition"
5673 }
5674 }
5675 },
5676 "additionalProperties": false,
5677 "required": [
5678 "messages",
5679 "shields"
5680 ]
5681 },
5682 "RunShieldRequestWrapper": {
5683 "type": "object",
5684 "properties": {
5685 "request": {
5686 "$ref": "#/components/schemas/RunShieldRequest"
5687 }
5688 },
5689 "additionalProperties": false,
5690 "required": [
5691 "request"
5692 ]
5693 },
5694 "RunShieldResponse": {
5695 "type": "object",
5696 "properties": {
5697 "responses": {
5698 "type": "array",
5699 "items": {
5700 "$ref": "#/components/schemas/ShieldResponse"
5701 }
5702 }
5703 },
5704 "additionalProperties": false,
5705 "required": [
5706 "responses"
5707 ]
5708 },
5709 "DoraFinetuningConfig": {
5710 "type": "object",
5711 "properties": {
5712 "lora_attn_modules": {
5713 "type": "array",
5714 "items": {
5715 "type": "string"
5716 }
5717 },
5718 "apply_lora_to_mlp": {
5719 "type": "boolean"
5720 },
5721 "apply_lora_to_output": {
5722 "type": "boolean"
5723 },
5724 "rank": {
5725 "type": "integer"
5726 },
5727 "alpha": {
5728 "type": "integer"
5729 }
5730 },
5731 "additionalProperties": false,
5732 "required": [
5733 "lora_attn_modules",
5734 "apply_lora_to_mlp",
5735 "apply_lora_to_output",
5736 "rank",
5737 "alpha"
5738 ]
5739 },
5740 "FinetuningAlgorithm": {
5741 "type": "string",
5742 "enum": [
5743 "full",
5744 "lora",
5745 "qlora",
5746 "dora"
5747 ]
5748 },
5749 "LoraFinetuningConfig": {
5750 "type": "object",
5751 "properties": {
5752 "lora_attn_modules": {
5753 "type": "array",
5754 "items": {
5755 "type": "string"
5756 }
5757 },
5758 "apply_lora_to_mlp": {
5759 "type": "boolean"
5760 },
5761 "apply_lora_to_output": {
5762 "type": "boolean"
5763 },
5764 "rank": {
5765 "type": "integer"
5766 },
5767 "alpha": {
5768 "type": "integer"
5769 }
5770 },
5771 "additionalProperties": false,
5772 "required": [
5773 "lora_attn_modules",
5774 "apply_lora_to_mlp",
5775 "apply_lora_to_output",
5776 "rank",
5777 "alpha"
5778 ]
5779 },
5780 "PostTrainingSFTRequest": {
5781 "type": "object",
5782 "properties": {
5783 "job_uuid": {
5784 "type": "string"
5785 },
5786 "model": {
5787 "type": "string"
5788 },
5789 "dataset": {
5790 "$ref": "#/components/schemas/TrainEvalDataset"
5791 },
5792 "validation_dataset": {
5793 "$ref": "#/components/schemas/TrainEvalDataset"
5794 },
5795 "algorithm": {
5796 "$ref": "#/components/schemas/FinetuningAlgorithm"
5797 },
5798 "algorithm_config": {
5799 "oneOf": [
5800 {
5801 "$ref": "#/components/schemas/LoraFinetuningConfig"
5802 },
5803 {
5804 "$ref": "#/components/schemas/QLoraFinetuningConfig"
5805 },
5806 {
5807 "$ref": "#/components/schemas/DoraFinetuningConfig"
5808 }
5809 ]
5810 },
5811 "optimizer_config": {
5812 "$ref": "#/components/schemas/OptimizerConfig"
5813 },
5814 "training_config": {
5815 "$ref": "#/components/schemas/TrainingConfig"
5816 },
5817 "hyperparam_search_config": {
5818 "type": "object",
5819 "additionalProperties": {
5820 "oneOf": [
5821 {
5822 "type": "null"
5823 },
5824 {
5825 "type": "boolean"
5826 },
5827 {
5828 "type": "number"
5829 },
5830 {
5831 "type": "string"
5832 },
5833 {
5834 "type": "array"
5835 },
5836 {
5837 "type": "object"
5838 }
5839 ]
5840 }
5841 },
5842 "logger_config": {
5843 "type": "object",
5844 "additionalProperties": {
5845 "oneOf": [
5846 {
5847 "type": "null"
5848 },
5849 {
5850 "type": "boolean"
5851 },
5852 {
5853 "type": "number"
5854 },
5855 {
5856 "type": "string"
5857 },
5858 {
5859 "type": "array"
5860 },
5861 {
5862 "type": "object"
5863 }
5864 ]
5865 }
5866 }
5867 },
5868 "additionalProperties": false,
5869 "required": [
5870 "job_uuid",
5871 "model",
5872 "dataset",
5873 "validation_dataset",
5874 "algorithm",
5875 "algorithm_config",
5876 "optimizer_config",
5877 "training_config",
5878 "hyperparam_search_config",
5879 "logger_config"
5880 ],
5881 "title": "Request to finetune a model."
5882 },
5883 "QLoraFinetuningConfig": {
5884 "type": "object",
5885 "properties": {
5886 "lora_attn_modules": {
5887 "type": "array",
5888 "items": {
5889 "type": "string"
5890 }
5891 },
5892 "apply_lora_to_mlp": {
5893 "type": "boolean"
5894 },
5895 "apply_lora_to_output": {
5896 "type": "boolean"
5897 },
5898 "rank": {
5899 "type": "integer"
5900 },
5901 "alpha": {
5902 "type": "integer"
5903 }
5904 },
5905 "additionalProperties": false,
5906 "required": [
5907 "lora_attn_modules",
5908 "apply_lora_to_mlp",
5909 "apply_lora_to_output",
5910 "rank",
5911 "alpha"
5912 ]
5913 },
5914 "PostTrainingSFTRequestWrapper": {
5915 "type": "object",
5916 "properties": {
5917 "request": {
5918 "$ref": "#/components/schemas/PostTrainingSFTRequest"
5919 }
5920 },
5921 "additionalProperties": false,
5922 "required": [
5923 "request"
5924 ]
5925 },
5926 "SyntheticDataGenerationRequest": {
5927 "type": "object",
5928 "properties": {
5929 "dialogs": {
5930 "type": "array",
5931 "items": {
5932 "oneOf": [
5933 {
5934 "$ref": "#/components/schemas/UserMessage"
5935 },
5936 {
5937 "$ref": "#/components/schemas/SystemMessage"
5938 },
5939 {
5940 "$ref": "#/components/schemas/ToolResponseMessage"
5941 },
5942 {
5943 "$ref": "#/components/schemas/CompletionMessage"
5944 }
5945 ]
5946 }
5947 },
5948 "filtering_function": {
5949 "type": "string",
5950 "enum": [
5951 "none",
5952 "random",
5953 "top_k",
5954 "top_p",
5955 "top_k_top_p",
5956 "sigmoid"
5957 ],
5958 "title": "The type of filtering function."
5959 },
5960 "model": {
5961 "type": "string"
5962 }
5963 },
5964 "additionalProperties": false,
5965 "required": [
5966 "dialogs",
5967 "filtering_function"
5968 ],
5969 "title": "Request to generate synthetic data. A small batch of prompts and a filtering function"
5970 },
5971 "SyntheticDataGenerationRequestWrapper": {
5972 "type": "object",
5973 "properties": {
5974 "request": {
5975 "$ref": "#/components/schemas/SyntheticDataGenerationRequest"
5976 }
5977 },
5978 "additionalProperties": false,
5979 "required": [
5980 "request"
5981 ]
5982 },
5983 "SyntheticDataGenerationResponse": {
5984 "type": "object",
5985 "properties": {
5986 "synthetic_data": {
5987 "type": "array",
5988 "items": {
5989 "$ref": "#/components/schemas/ScoredDialogGenerations"
5990 }
5991 },
5992 "statistics": {
5993 "type": "object",
5994 "additionalProperties": {
5995 "oneOf": [
5996 {
5997 "type": "null"
5998 },
5999 {
6000 "type": "boolean"
6001 },
6002 {
6003 "type": "number"
6004 },
6005 {
6006 "type": "string"
6007 },
6008 {
6009 "type": "array"
6010 },
6011 {
6012 "type": "object"
6013 }
6014 ]
6015 }
6016 }
6017 },
6018 "additionalProperties": false,
6019 "required": [
6020 "synthetic_data"
6021 ],
6022 "title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold."
6023 },
6024 "UpdateDocumentsRequest": {
6025 "type": "object",
6026 "properties": {
6027 "bank_id": {
6028 "type": "string"
6029 },
6030 "documents": {
6031 "type": "array",
6032 "items": {
6033 "$ref": "#/components/schemas/MemoryBankDocument"
6034 }
6035 }
6036 },
6037 "additionalProperties": false,
6038 "required": [
6039 "bank_id",
6040 "documents"
6041 ]
6042 },
6043 "UpdateExperimentRequest": {
6044 "type": "object",
6045 "properties": {
6046 "experiment_id": {
6047 "type": "string"
6048 },
6049 "status": {
6050 "$ref": "#/components/schemas/ExperimentStatus"
6051 },
6052 "metadata": {
6053 "type": "object",
6054 "additionalProperties": {
6055 "oneOf": [
6056 {
6057 "type": "null"
6058 },
6059 {
6060 "type": "boolean"
6061 },
6062 {
6063 "type": "number"
6064 },
6065 {
6066 "type": "string"
6067 },
6068 {
6069 "type": "array"
6070 },
6071 {
6072 "type": "object"
6073 }
6074 ]
6075 }
6076 }
6077 },
6078 "additionalProperties": false,
6079 "required": [
6080 "experiment_id"
6081 ]
6082 },
6083 "UpdateExperimentRequestWrapper": {
6084 "type": "object",
6085 "properties": {
6086 "request": {
6087 "$ref": "#/components/schemas/UpdateExperimentRequest"
6088 }
6089 },
6090 "additionalProperties": false,
6091 "required": [
6092 "request"
6093 ]
6094 },
6095 "UpdateRunRequest": {
6096 "type": "object",
6097 "properties": {
6098 "run_id": {
6099 "type": "string"
6100 },
6101 "status": {
6102 "type": "string"
6103 },
6104 "ended_at": {
6105 "type": "string",
6106 "format": "date-time"
6107 },
6108 "metadata": {
6109 "type": "object",
6110 "additionalProperties": {
6111 "oneOf": [
6112 {
6113 "type": "null"
6114 },
6115 {
6116 "type": "boolean"
6117 },
6118 {
6119 "type": "number"
6120 },
6121 {
6122 "type": "string"
6123 },
6124 {
6125 "type": "array"
6126 },
6127 {
6128 "type": "object"
6129 }
6130 ]
6131 }
6132 }
6133 },
6134 "additionalProperties": false,
6135 "required": [
6136 "run_id"
6137 ]
6138 },
6139 "UpdateRunRequestWrapper": {
6140 "type": "object",
6141 "properties": {
6142 "request": {
6143 "$ref": "#/components/schemas/UpdateRunRequest"
6144 }
6145 },
6146 "additionalProperties": false,
6147 "required": [
6148 "request"
6149 ]
6150 },
6151 "UploadArtifactRequest": {
6152 "type": "object",
6153 "properties": {
6154 "experiment_id": {
6155 "type": "string"
6156 },
6157 "name": {
6158 "type": "string"
6159 },
6160 "artifact_type": {
6161 "type": "string"
6162 },
6163 "content": {
6164 "type": "string",
6165 "contentEncoding": "base64"
6166 },
6167 "metadata": {
6168 "type": "object",
6169 "additionalProperties": {
6170 "oneOf": [
6171 {
6172 "type": "null"
6173 },
6174 {
6175 "type": "boolean"
6176 },
6177 {
6178 "type": "number"
6179 },
6180 {
6181 "type": "string"
6182 },
6183 {
6184 "type": "array"
6185 },
6186 {
6187 "type": "object"
6188 }
6189 ]
6190 }
6191 }
6192 },
6193 "additionalProperties": false,
6194 "required": [
6195 "experiment_id",
6196 "name",
6197 "artifact_type",
6198 "content"
6199 ]
6200 },
6201 "UploadArtifactRequestWrapper": {
6202 "type": "object",
6203 "properties": {
6204 "request": {
6205 "$ref": "#/components/schemas/UploadArtifactRequest"
6206 }
6207 },
6208 "additionalProperties": false,
6209 "required": [
6210 "request"
6211 ]
6212 }
6213 },
6214 "responses": {}
6215 },
6216 "security": [
6217 {
6218 "Default": []
6219 }
6220 ],
6221 "tags": [
6222 {
6223 "name": "BatchInference"
6224 },
6225 {
6226 "name": "Safety"
6227 },
6228 {
6229 "name": "Telemetry"
6230 },
6231 {
6232 "name": "RewardScoring"
6233 },
6234 {
6235 "name": "Memory"
6236 },
6237 {
6238 "name": "SyntheticDataGeneration"
6239 },
6240 {
6241 "name": "Inference"
6242 },
6243 {
6244 "name": "Evaluations"
6245 },
6246 {
6247 "name": "PostTraining"
6248 },
6249 {
6250 "name": "Datasets"
6251 },
6252 {
6253 "name": "AgenticSystem"
6254 },
6255 {
6256 "name": "BatchChatCompletionRequest",
6257 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />"
6258 },
6259 {
6260 "name": "BuiltinTool",
6261 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"
6262 },
6263 {
6264 "name": "CompletionMessage",
6265 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionMessage\" />"
6266 },
6267 {
6268 "name": "SamplingParams",
6269 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingParams\" />"
6270 },
6271 {
6272 "name": "SamplingStrategy",
6273 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingStrategy\" />"
6274 },
6275 {
6276 "name": "StopReason",
6277 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StopReason\" />"
6278 },
6279 {
6280 "name": "SystemMessage",
6281 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SystemMessage\" />"
6282 },
6283 {
6284 "name": "ToolCall",
6285 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCall\" />"
6286 },
6287 {
6288 "name": "ToolChoice",
6289 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolChoice\" />"
6290 },
6291 {
6292 "name": "ToolDefinition",
6293 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolDefinition\" />"
6294 },
6295 {
6296 "name": "ToolParamDefinition",
6297 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolParamDefinition\" />"
6298 },
6299 {
6300 "name": "ToolPromptFormat",
6301 "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\" />"
6302 },
6303 {
6304 "name": "ToolResponseMessage",
6305 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponseMessage\" />"
6306 },
6307 {
6308 "name": "UserMessage",
6309 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UserMessage\" />"
6310 },
6311 {
6312 "name": "BatchChatCompletionRequestWrapper",
6313 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequestWrapper\" />"
6314 },
6315 {
6316 "name": "BatchChatCompletionResponse",
6317 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionResponse\" />"
6318 },
6319 {
6320 "name": "BatchCompletionRequest",
6321 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionRequest\" />"
6322 },
6323 {
6324 "name": "BatchCompletionRequestWrapper",
6325 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionRequestWrapper\" />"
6326 },
6327 {
6328 "name": "BatchCompletionResponse",
6329 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
6330 },
6331 {
6332 "name": "CancelEvaluationJobRequest",
6333 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelEvaluationJobRequest\" />"
6334 },
6335 {
6336 "name": "CancelTrainingJobRequest",
6337 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelTrainingJobRequest\" />"
6338 },
6339 {
6340 "name": "ChatCompletionRequest",
6341 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />"
6342 },
6343 {
6344 "name": "ChatCompletionRequestWrapper",
6345 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequestWrapper\" />"
6346 },
6347 {
6348 "name": "ChatCompletionResponseEvent",
6349 "description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />"
6350 },
6351 {
6352 "name": "ChatCompletionResponseEventType",
6353 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEventType\" />"
6354 },
6355 {
6356 "name": "ChatCompletionResponseStreamChunk",
6357 "description": "SSE-stream of these events.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseStreamChunk\" />"
6358 },
6359 {
6360 "name": "TokenLogProbs",
6361 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TokenLogProbs\" />"
6362 },
6363 {
6364 "name": "ToolCallDelta",
6365 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallDelta\" />"
6366 },
6367 {
6368 "name": "ToolCallParseStatus",
6369 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallParseStatus\" />"
6370 },
6371 {
6372 "name": "CompletionRequest",
6373 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />"
6374 },
6375 {
6376 "name": "CompletionRequestWrapper",
6377 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequestWrapper\" />"
6378 },
6379 {
6380 "name": "CompletionResponseStreamChunk",
6381 "description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />"
6382 },
6383 {
6384 "name": "AgentConfig",
6385 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentConfig\" />"
6386 },
6387 {
6388 "name": "BuiltinShield",
6389 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinShield\" />"
6390 },
6391 {
6392 "name": "CodeInterpreterToolDefinition",
6393 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CodeInterpreterToolDefinition\" />"
6394 },
6395 {
6396 "name": "FunctionCallToolDefinition",
6397 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FunctionCallToolDefinition\" />"
6398 },
6399 {
6400 "name": "OnViolationAction",
6401 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OnViolationAction\" />"
6402 },
6403 {
6404 "name": "PhotogenToolDefinition",
6405 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PhotogenToolDefinition\" />"
6406 },
6407 {
6408 "name": "RestAPIExecutionConfig",
6409 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIExecutionConfig\" />"
6410 },
6411 {
6412 "name": "RestAPIMethod",
6413 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIMethod\" />"
6414 },
6415 {
6416 "name": "SearchToolDefinition",
6417 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SearchToolDefinition\" />"
6418 },
6419 {
6420 "name": "ShieldDefinition",
6421 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldDefinition\" />"
6422 },
6423 {
6424 "name": "URL",
6425 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/URL\" />"
6426 },
6427 {
6428 "name": "WolframAlphaToolDefinition",
6429 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/WolframAlphaToolDefinition\" />"
6430 },
6431 {
6432 "name": "CreateAgenticSystemRequest",
6433 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgenticSystemRequest\" />"
6434 },
6435 {
6436 "name": "AgenticSystemCreateResponse",
6437 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemCreateResponse\" />"
6438 },
6439 {
6440 "name": "CreateAgenticSystemSessionRequest",
6441 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgenticSystemSessionRequest\" />"
6442 },
6443 {
6444 "name": "AgenticSystemSessionCreateResponse",
6445 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemSessionCreateResponse\" />"
6446 },
6447 {
6448 "name": "AgenticSystemTurnCreateRequest",
6449 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnCreateRequest\" />"
6450 },
6451 {
6452 "name": "Attachment",
6453 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Attachment\" />"
6454 },
6455 {
6456 "name": "AgenticSystemTurnCreateRequestWrapper",
6457 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnCreateRequestWrapper\" />"
6458 },
6459 {
6460 "name": "AgenticSystemTurnResponseEvent",
6461 "description": "Streamed agent execution response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseEvent\" />"
6462 },
6463 {
6464 "name": "AgenticSystemTurnResponseStepCompletePayload",
6465 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStepCompletePayload\" />"
6466 },
6467 {
6468 "name": "AgenticSystemTurnResponseStepProgressPayload",
6469 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStepProgressPayload\" />"
6470 },
6471 {
6472 "name": "AgenticSystemTurnResponseStepStartPayload",
6473 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStepStartPayload\" />"
6474 },
6475 {
6476 "name": "AgenticSystemTurnResponseStreamChunk",
6477 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseStreamChunk\" />"
6478 },
6479 {
6480 "name": "AgenticSystemTurnResponseTurnCompletePayload",
6481 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseTurnCompletePayload\" />"
6482 },
6483 {
6484 "name": "AgenticSystemTurnResponseTurnStartPayload",
6485 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemTurnResponseTurnStartPayload\" />"
6486 },
6487 {
6488 "name": "InferenceStep",
6489 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InferenceStep\" />"
6490 },
6491 {
6492 "name": "MemoryRetrievalStep",
6493 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryRetrievalStep\" />"
6494 },
6495 {
6496 "name": "ShieldCallStep",
6497 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldCallStep\" />"
6498 },
6499 {
6500 "name": "ShieldResponse",
6501 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldResponse\" />"
6502 },
6503 {
6504 "name": "ToolExecutionStep",
6505 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolExecutionStep\" />"
6506 },
6507 {
6508 "name": "ToolResponse",
6509 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponse\" />"
6510 },
6511 {
6512 "name": "Turn",
6513 "description": "A single turn in an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Turn\" />"
6514 },
6515 {
6516 "name": "CreateDatasetRequest",
6517 "description": "Request to create a dataset.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CreateDatasetRequest\" />"
6518 },
6519 {
6520 "name": "TrainEvalDataset",
6521 "description": "Dataset to be used for training or evaluating language models.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDataset\" />"
6522 },
6523 {
6524 "name": "TrainEvalDatasetColumnType",
6525 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDatasetColumnType\" />"
6526 },
6527 {
6528 "name": "CreateDatasetRequestWrapper",
6529 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateDatasetRequestWrapper\" />"
6530 },
6531 {
6532 "name": "CreateExperimentRequest",
6533 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateExperimentRequest\" />"
6534 },
6535 {
6536 "name": "CreateExperimentRequestWrapper",
6537 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateExperimentRequestWrapper\" />"
6538 },
6539 {
6540 "name": "Experiment",
6541 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Experiment\" />"
6542 },
6543 {
6544 "name": "ExperimentStatus",
6545 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ExperimentStatus\" />"
6546 },
6547 {
6548 "name": "CreateMemoryBankRequest",
6549 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateMemoryBankRequest\" />"
6550 },
6551 {
6552 "name": "MemoryBank",
6553 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBank\" />"
6554 },
6555 {
6556 "name": "CreateRunRequest",
6557 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateRunRequest\" />"
6558 },
6559 {
6560 "name": "CreateRunRequestWrapper",
6561 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateRunRequestWrapper\" />"
6562 },
6563 {
6564 "name": "Run",
6565 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Run\" />"
6566 },
6567 {
6568 "name": "DeleteAgenticSystemRequest",
6569 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemRequest\" />"
6570 },
6571 {
6572 "name": "DeleteAgenticSystemSessionRequest",
6573 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemSessionRequest\" />"
6574 },
6575 {
6576 "name": "DeleteDatasetRequest",
6577 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDatasetRequest\" />"
6578 },
6579 {
6580 "name": "DeleteDocumentsRequest",
6581 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDocumentsRequest\" />"
6582 },
6583 {
6584 "name": "DropMemoryBankRequest",
6585 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DropMemoryBankRequest\" />"
6586 },
6587 {
6588 "name": "EmbeddingsRequest",
6589 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />"
6590 },
6591 {
6592 "name": "EmbeddingsResponse",
6593 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsResponse\" />"
6594 },
6595 {
6596 "name": "Checkpoint",
6597 "description": "Checkpoint created during training runs\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Checkpoint\" />"
6598 },
6599 {
6600 "name": "EvaluateQuestionAnsweringRequest",
6601 "description": "Request to evaluate question answering.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateQuestionAnsweringRequest\" />"
6602 },
6603 {
6604 "name": "EvaluateQuestionAnsweringRequestWrapper",
6605 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateQuestionAnsweringRequestWrapper\" />"
6606 },
6607 {
6608 "name": "EvaluationJob",
6609 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJob\" />"
6610 },
6611 {
6612 "name": "EvaluateSummarizationRequest",
6613 "description": "Request to evaluate summarization.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateSummarizationRequest\" />"
6614 },
6615 {
6616 "name": "EvaluateSummarizationRequestWrapper",
6617 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateSummarizationRequestWrapper\" />"
6618 },
6619 {
6620 "name": "EvaluateTextGenerationRequest",
6621 "description": "Request to evaluate text generation.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequest\" />"
6622 },
6623 {
6624 "name": "EvaluateTextGenerationRequestWrapper",
6625 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequestWrapper\" />"
6626 },
6627 {
6628 "name": "GetAgenticSystemSessionRequest",
6629 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetAgenticSystemSessionRequest\" />"
6630 },
6631 {
6632 "name": "Session",
6633 "description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />"
6634 },
6635 {
6636 "name": "AgenticSystemStepResponse",
6637 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemStepResponse\" />"
6638 },
6639 {
6640 "name": "Artifact",
6641 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Artifact\" />"
6642 },
6643 {
6644 "name": "ArtifactType",
6645 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ArtifactType\" />"
6646 },
6647 {
6648 "name": "GetDocumentsRequest",
6649 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetDocumentsRequest\" />"
6650 },
6651 {
6652 "name": "MemoryBankDocument",
6653 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankDocument\" />"
6654 },
6655 {
6656 "name": "EvaluationJobArtifactsResponse",
6657 "description": "Artifacts of a evaluation job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobArtifactsResponse\" />"
6658 },
6659 {
6660 "name": "EvaluationJobLogStream",
6661 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobLogStream\" />"
6662 },
6663 {
6664 "name": "EvaluationJobStatusResponse",
6665 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobStatusResponse\" />"
6666 },
6667 {
6668 "name": "LogSearchRequest",
6669 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogSearchRequest\" />"
6670 },
6671 {
6672 "name": "LogSearchRequestWrapper",
6673 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogSearchRequestWrapper\" />"
6674 },
6675 {
6676 "name": "Log",
6677 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Log\" />"
6678 },
6679 {
6680 "name": "Metric",
6681 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Metric\" />"
6682 },
6683 {
6684 "name": "PostTrainingJobArtifactsResponse",
6685 "description": "Artifacts of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobArtifactsResponse\" />"
6686 },
6687 {
6688 "name": "PostTrainingJobLogStream",
6689 "description": "Stream of logs from a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobLogStream\" />"
6690 },
6691 {
6692 "name": "PostTrainingJobStatus",
6693 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatus\" />"
6694 },
6695 {
6696 "name": "PostTrainingJobStatusResponse",
6697 "description": "Status of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatusResponse\" />"
6698 },
6699 {
6700 "name": "PostTrainingJob",
6701 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />"
6702 },
6703 {
6704 "name": "InsertDocumentsRequest",
6705 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />"
6706 },
6707 {
6708 "name": "ListArtifactsRequest",
6709 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListArtifactsRequest\" />"
6710 },
6711 {
6712 "name": "LogMessagesRequest",
6713 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogMessagesRequest\" />"
6714 },
6715 {
6716 "name": "LogMessagesRequestWrapper",
6717 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogMessagesRequestWrapper\" />"
6718 },
6719 {
6720 "name": "LogMetricsRequest",
6721 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogMetricsRequest\" />"
6722 },
6723 {
6724 "name": "LogMetricsRequestWrapper",
6725 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogMetricsRequestWrapper\" />"
6726 },
6727 {
6728 "name": "DPOAlignmentConfig",
6729 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DPOAlignmentConfig\" />"
6730 },
6731 {
6732 "name": "OptimizerConfig",
6733 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OptimizerConfig\" />"
6734 },
6735 {
6736 "name": "PostTrainingRLHFRequest",
6737 "description": "Request to finetune a model.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingRLHFRequest\" />"
6738 },
6739 {
6740 "name": "RLHFAlgorithm",
6741 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RLHFAlgorithm\" />"
6742 },
6743 {
6744 "name": "TrainingConfig",
6745 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainingConfig\" />"
6746 },
6747 {
6748 "name": "PostTrainingRLHFRequestWrapper",
6749 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingRLHFRequestWrapper\" />"
6750 },
6751 {
6752 "name": "QueryDocumentsRequest",
6753 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsRequest\" />"
6754 },
6755 {
6756 "name": "QueryDocumentsResponse",
6757 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsResponse\" />"
6758 },
6759 {
6760 "name": "DialogGenerations",
6761 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DialogGenerations\" />"
6762 },
6763 {
6764 "name": "RewardScoringRequest",
6765 "description": "Request to score a reward function. A list of prompts and a list of responses per prompt.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringRequest\" />"
6766 },
6767 {
6768 "name": "RewardScoringRequestWrapper",
6769 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringRequestWrapper\" />"
6770 },
6771 {
6772 "name": "RewardScoringResponse",
6773 "description": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringResponse\" />"
6774 },
6775 {
6776 "name": "ScoredDialogGenerations",
6777 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredDialogGenerations\" />"
6778 },
6779 {
6780 "name": "ScoredMessage",
6781 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredMessage\" />"
6782 },
6783 {
6784 "name": "RunShieldRequest",
6785 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldRequest\" />"
6786 },
6787 {
6788 "name": "RunShieldRequestWrapper",
6789 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldRequestWrapper\" />"
6790 },
6791 {
6792 "name": "RunShieldResponse",
6793 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldResponse\" />"
6794 },
6795 {
6796 "name": "DoraFinetuningConfig",
6797 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DoraFinetuningConfig\" />"
6798 },
6799 {
6800 "name": "FinetuningAlgorithm",
6801 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FinetuningAlgorithm\" />"
6802 },
6803 {
6804 "name": "LoraFinetuningConfig",
6805 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LoraFinetuningConfig\" />"
6806 },
6807 {
6808 "name": "PostTrainingSFTRequest",
6809 "description": "Request to finetune a model.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingSFTRequest\" />"
6810 },
6811 {
6812 "name": "QLoraFinetuningConfig",
6813 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QLoraFinetuningConfig\" />"
6814 },
6815 {
6816 "name": "PostTrainingSFTRequestWrapper",
6817 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingSFTRequestWrapper\" />"
6818 },
6819 {
6820 "name": "SyntheticDataGenerationRequest",
6821 "description": "Request to generate synthetic data. A small batch of prompts and a filtering function\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationRequest\" />"
6822 },
6823 {
6824 "name": "SyntheticDataGenerationRequestWrapper",
6825 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationRequestWrapper\" />"
6826 },
6827 {
6828 "name": "SyntheticDataGenerationResponse",
6829 "description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
6830 },
6831 {
6832 "name": "UpdateDocumentsRequest",
6833 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateDocumentsRequest\" />"
6834 },
6835 {
6836 "name": "UpdateExperimentRequest",
6837 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateExperimentRequest\" />"
6838 },
6839 {
6840 "name": "UpdateExperimentRequestWrapper",
6841 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateExperimentRequestWrapper\" />"
6842 },
6843 {
6844 "name": "UpdateRunRequest",
6845 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateRunRequest\" />"
6846 },
6847 {
6848 "name": "UpdateRunRequestWrapper",
6849 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateRunRequestWrapper\" />"
6850 },
6851 {
6852 "name": "UploadArtifactRequest",
6853 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UploadArtifactRequest\" />"
6854 },
6855 {
6856 "name": "UploadArtifactRequestWrapper",
6857 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UploadArtifactRequestWrapper\" />"
6858 }
6859 ],
6860 "x-tagGroups": [
6861 {
6862 "name": "Operations",
6863 "tags": [
6864 "AgenticSystem",
6865 "BatchInference",
6866 "Datasets",
6867 "Evaluations",
6868 "Inference",
6869 "Memory",
6870 "PostTraining",
6871 "RewardScoring",
6872 "Safety",
6873 "SyntheticDataGeneration",
6874 "Telemetry"
6875 ]
6876 },
6877 {
6878 "name": "Types",
6879 "tags": [
6880 "AgentConfig",
6881 "AgenticSystemCreateResponse",
6882 "AgenticSystemSessionCreateResponse",
6883 "AgenticSystemStepResponse",
6884 "AgenticSystemTurnCreateRequest",
6885 "AgenticSystemTurnCreateRequestWrapper",
6886 "AgenticSystemTurnResponseEvent",
6887 "AgenticSystemTurnResponseStepCompletePayload",
6888 "AgenticSystemTurnResponseStepProgressPayload",
6889 "AgenticSystemTurnResponseStepStartPayload",
6890 "AgenticSystemTurnResponseStreamChunk",
6891 "AgenticSystemTurnResponseTurnCompletePayload",
6892 "AgenticSystemTurnResponseTurnStartPayload",
6893 "Artifact",
6894 "ArtifactType",
6895 "Attachment",
6896 "BatchChatCompletionRequest",
6897 "BatchChatCompletionRequestWrapper",
6898 "BatchChatCompletionResponse",
6899 "BatchCompletionRequest",
6900 "BatchCompletionRequestWrapper",
6901 "BatchCompletionResponse",
6902 "BuiltinShield",
6903 "BuiltinTool",
6904 "CancelEvaluationJobRequest",
6905 "CancelTrainingJobRequest",
6906 "ChatCompletionRequest",
6907 "ChatCompletionRequestWrapper",
6908 "ChatCompletionResponseEvent",
6909 "ChatCompletionResponseEventType",
6910 "ChatCompletionResponseStreamChunk",
6911 "Checkpoint",
6912 "CodeInterpreterToolDefinition",
6913 "CompletionMessage",
6914 "CompletionRequest",
6915 "CompletionRequestWrapper",
6916 "CompletionResponseStreamChunk",
6917 "CreateAgenticSystemRequest",
6918 "CreateAgenticSystemSessionRequest",
6919 "CreateDatasetRequest",
6920 "CreateDatasetRequestWrapper",
6921 "CreateExperimentRequest",
6922 "CreateExperimentRequestWrapper",
6923 "CreateMemoryBankRequest",
6924 "CreateRunRequest",
6925 "CreateRunRequestWrapper",
6926 "DPOAlignmentConfig",
6927 "DeleteAgenticSystemRequest",
6928 "DeleteAgenticSystemSessionRequest",
6929 "DeleteDatasetRequest",
6930 "DeleteDocumentsRequest",
6931 "DialogGenerations",
6932 "DoraFinetuningConfig",
6933 "DropMemoryBankRequest",
6934 "EmbeddingsRequest",
6935 "EmbeddingsResponse",
6936 "EvaluateQuestionAnsweringRequest",
6937 "EvaluateQuestionAnsweringRequestWrapper",
6938 "EvaluateSummarizationRequest",
6939 "EvaluateSummarizationRequestWrapper",
6940 "EvaluateTextGenerationRequest",
6941 "EvaluateTextGenerationRequestWrapper",
6942 "EvaluationJob",
6943 "EvaluationJobArtifactsResponse",
6944 "EvaluationJobLogStream",
6945 "EvaluationJobStatusResponse",
6946 "Experiment",
6947 "ExperimentStatus",
6948 "FinetuningAlgorithm",
6949 "FunctionCallToolDefinition",
6950 "GetAgenticSystemSessionRequest",
6951 "GetDocumentsRequest",
6952 "InferenceStep",
6953 "InsertDocumentsRequest",
6954 "ListArtifactsRequest",
6955 "Log",
6956 "LogMessagesRequest",
6957 "LogMessagesRequestWrapper",
6958 "LogMetricsRequest",
6959 "LogMetricsRequestWrapper",
6960 "LogSearchRequest",
6961 "LogSearchRequestWrapper",
6962 "LoraFinetuningConfig",
6963 "MemoryBank",
6964 "MemoryBankDocument",
6965 "MemoryRetrievalStep",
6966 "Metric",
6967 "OnViolationAction",
6968 "OptimizerConfig",
6969 "PhotogenToolDefinition",
6970 "PostTrainingJob",
6971 "PostTrainingJobArtifactsResponse",
6972 "PostTrainingJobLogStream",
6973 "PostTrainingJobStatus",
6974 "PostTrainingJobStatusResponse",
6975 "PostTrainingRLHFRequest",
6976 "PostTrainingRLHFRequestWrapper",
6977 "PostTrainingSFTRequest",
6978 "PostTrainingSFTRequestWrapper",
6979 "QLoraFinetuningConfig",
6980 "QueryDocumentsRequest",
6981 "QueryDocumentsResponse",
6982 "RLHFAlgorithm",
6983 "RestAPIExecutionConfig",
6984 "RestAPIMethod",
6985 "RewardScoringRequest",
6986 "RewardScoringRequestWrapper",
6987 "RewardScoringResponse",
6988 "Run",
6989 "RunShieldRequest",
6990 "RunShieldRequestWrapper",
6991 "RunShieldResponse",
6992 "SamplingParams",
6993 "SamplingStrategy",
6994 "ScoredDialogGenerations",
6995 "ScoredMessage",
6996 "SearchToolDefinition",
6997 "Session",
6998 "ShieldCallStep",
6999 "ShieldDefinition",
7000 "ShieldResponse",
7001 "StopReason",
7002 "SyntheticDataGenerationRequest",
7003 "SyntheticDataGenerationRequestWrapper",
7004 "SyntheticDataGenerationResponse",
7005 "SystemMessage",
7006 "TokenLogProbs",
7007 "ToolCall",
7008 "ToolCallDelta",
7009 "ToolCallParseStatus",
7010 "ToolChoice",
7011 "ToolDefinition",
7012 "ToolExecutionStep",
7013 "ToolParamDefinition",
7014 "ToolPromptFormat",
7015 "ToolResponse",
7016 "ToolResponseMessage",
7017 "TrainEvalDataset",
7018 "TrainEvalDatasetColumnType",
7019 "TrainingConfig",
7020 "Turn",
7021 "URL",
7022 "UpdateDocumentsRequest",
7023 "UpdateExperimentRequest",
7024 "UpdateExperimentRequestWrapper",
7025 "UpdateRunRequest",
7026 "UpdateRunRequestWrapper",
7027 "UploadArtifactRequest",
7028 "UploadArtifactRequestWrapper",
7029 "UserMessage",
7030 "WolframAlphaToolDefinition"
7031 ]
7032 }
7033 ]
7034};
7035 options = {
7036 downloadFileName: "openapi.json",
7037 expandResponses: "200",
7038 expandSingleSchemaField: true,
7039 jsonSampleExpandLevel: "all",
7040 schemaExpansionLevel: "all",
7041 };
7042 element = document.getElementById("openapi-container");
7043 Redoc.init(spec, options, element);
7044
7045 if (spec.info && spec.info.title) {
7046 document.title = spec.info.title;
7047 }
7048 });
7049 </script>
7050</head>
7051
7052<body>
7053 <div id="openapi-container"></div>
7054</body>
7055
7056</html>