Elffuss BraidHub

kikocis/llama-stack public

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