Elffuss BraidHub

kikocis/llama-stack public

566afbf5da2b · 211.7 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-18 19:27:39.955190"
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 "type": "object",
2151 "properties": {
2152 "input_shields": {
2153 "type": "array",
2154 "items": {
2155 "$ref": "#/components/schemas/ShieldDefinition"
2156 }
2157 },
2158 "output_shields": {
2159 "type": "array",
2160 "items": {
2161 "$ref": "#/components/schemas/ShieldDefinition"
2162 }
2163 },
2164 "type": {
2165 "type": "string",
2166 "const": "memory"
2167 },
2168 "memory_bank_configs": {
2169 "type": "array",
2170 "items": {
2171 "oneOf": [
2172 {
2173 "type": "object",
2174 "properties": {
2175 "bank_id": {
2176 "type": "string"
2177 },
2178 "type": {
2179 "type": "string",
2180 "const": "vector"
2181 }
2182 },
2183 "additionalProperties": false,
2184 "required": [
2185 "bank_id",
2186 "type"
2187 ]
2188 },
2189 {
2190 "type": "object",
2191 "properties": {
2192 "bank_id": {
2193 "type": "string"
2194 },
2195 "type": {
2196 "type": "string",
2197 "const": "keyvalue"
2198 },
2199 "keys": {
2200 "type": "array",
2201 "items": {
2202 "type": "string"
2203 }
2204 }
2205 },
2206 "additionalProperties": false,
2207 "required": [
2208 "bank_id",
2209 "type",
2210 "keys"
2211 ]
2212 },
2213 {
2214 "type": "object",
2215 "properties": {
2216 "bank_id": {
2217 "type": "string"
2218 },
2219 "type": {
2220 "type": "string",
2221 "const": "keyword"
2222 }
2223 },
2224 "additionalProperties": false,
2225 "required": [
2226 "bank_id",
2227 "type"
2228 ]
2229 },
2230 {
2231 "type": "object",
2232 "properties": {
2233 "bank_id": {
2234 "type": "string"
2235 },
2236 "type": {
2237 "type": "string",
2238 "const": "graph"
2239 },
2240 "entities": {
2241 "type": "array",
2242 "items": {
2243 "type": "string"
2244 }
2245 }
2246 },
2247 "additionalProperties": false,
2248 "required": [
2249 "bank_id",
2250 "type",
2251 "entities"
2252 ]
2253 }
2254 ]
2255 }
2256 },
2257 "query_generator_config": {
2258 "oneOf": [
2259 {
2260 "type": "object",
2261 "properties": {
2262 "type": {
2263 "type": "string",
2264 "const": "default"
2265 },
2266 "sep": {
2267 "type": "string"
2268 }
2269 },
2270 "additionalProperties": false,
2271 "required": [
2272 "type",
2273 "sep"
2274 ]
2275 },
2276 {
2277 "type": "object",
2278 "properties": {
2279 "type": {
2280 "type": "string",
2281 "const": "llm"
2282 },
2283 "model": {
2284 "type": "string"
2285 },
2286 "template": {
2287 "type": "string"
2288 }
2289 },
2290 "additionalProperties": false,
2291 "required": [
2292 "type",
2293 "model",
2294 "template"
2295 ]
2296 },
2297 {
2298 "type": "object",
2299 "properties": {
2300 "type": {
2301 "type": "string",
2302 "const": "custom"
2303 }
2304 },
2305 "additionalProperties": false,
2306 "required": [
2307 "type"
2308 ]
2309 }
2310 ]
2311 },
2312 "max_tokens_in_context": {
2313 "type": "integer"
2314 },
2315 "max_chunks": {
2316 "type": "integer"
2317 }
2318 },
2319 "additionalProperties": false,
2320 "required": [
2321 "type",
2322 "memory_bank_configs",
2323 "query_generator_config",
2324 "max_tokens_in_context",
2325 "max_chunks"
2326 ]
2327 }
2328 ]
2329 }
2330 },
2331 "tool_choice": {
2332 "$ref": "#/components/schemas/ToolChoice"
2333 },
2334 "tool_prompt_format": {
2335 "$ref": "#/components/schemas/ToolPromptFormat"
2336 },
2337 "model": {
2338 "type": "string"
2339 },
2340 "instructions": {
2341 "type": "string"
2342 }
2343 },
2344 "additionalProperties": false,
2345 "required": [
2346 "model",
2347 "instructions"
2348 ]
2349 },
2350 "BuiltinShield": {
2351 "type": "string",
2352 "enum": [
2353 "llama_guard",
2354 "code_scanner_guard",
2355 "third_party_shield",
2356 "injection_shield",
2357 "jailbreak_shield"
2358 ]
2359 },
2360 "CodeInterpreterToolDefinition": {
2361 "type": "object",
2362 "properties": {
2363 "input_shields": {
2364 "type": "array",
2365 "items": {
2366 "$ref": "#/components/schemas/ShieldDefinition"
2367 }
2368 },
2369 "output_shields": {
2370 "type": "array",
2371 "items": {
2372 "$ref": "#/components/schemas/ShieldDefinition"
2373 }
2374 },
2375 "type": {
2376 "type": "string",
2377 "const": "code_interpreter"
2378 },
2379 "enable_inline_code_execution": {
2380 "type": "boolean"
2381 },
2382 "remote_execution": {
2383 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2384 }
2385 },
2386 "additionalProperties": false,
2387 "required": [
2388 "type",
2389 "enable_inline_code_execution"
2390 ]
2391 },
2392 "FunctionCallToolDefinition": {
2393 "type": "object",
2394 "properties": {
2395 "input_shields": {
2396 "type": "array",
2397 "items": {
2398 "$ref": "#/components/schemas/ShieldDefinition"
2399 }
2400 },
2401 "output_shields": {
2402 "type": "array",
2403 "items": {
2404 "$ref": "#/components/schemas/ShieldDefinition"
2405 }
2406 },
2407 "type": {
2408 "type": "string",
2409 "const": "function_call"
2410 },
2411 "function_name": {
2412 "type": "string"
2413 },
2414 "description": {
2415 "type": "string"
2416 },
2417 "parameters": {
2418 "type": "object",
2419 "additionalProperties": {
2420 "$ref": "#/components/schemas/ToolParamDefinition"
2421 }
2422 },
2423 "remote_execution": {
2424 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2425 }
2426 },
2427 "additionalProperties": false,
2428 "required": [
2429 "type",
2430 "function_name",
2431 "description",
2432 "parameters"
2433 ]
2434 },
2435 "OnViolationAction": {
2436 "type": "integer",
2437 "enum": [
2438 0,
2439 1,
2440 2
2441 ]
2442 },
2443 "PhotogenToolDefinition": {
2444 "type": "object",
2445 "properties": {
2446 "input_shields": {
2447 "type": "array",
2448 "items": {
2449 "$ref": "#/components/schemas/ShieldDefinition"
2450 }
2451 },
2452 "output_shields": {
2453 "type": "array",
2454 "items": {
2455 "$ref": "#/components/schemas/ShieldDefinition"
2456 }
2457 },
2458 "type": {
2459 "type": "string",
2460 "const": "photogen"
2461 },
2462 "remote_execution": {
2463 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2464 }
2465 },
2466 "additionalProperties": false,
2467 "required": [
2468 "type"
2469 ]
2470 },
2471 "RestAPIExecutionConfig": {
2472 "type": "object",
2473 "properties": {
2474 "url": {
2475 "$ref": "#/components/schemas/URL"
2476 },
2477 "method": {
2478 "$ref": "#/components/schemas/RestAPIMethod"
2479 },
2480 "params": {
2481 "type": "object",
2482 "additionalProperties": {
2483 "oneOf": [
2484 {
2485 "type": "null"
2486 },
2487 {
2488 "type": "boolean"
2489 },
2490 {
2491 "type": "number"
2492 },
2493 {
2494 "type": "string"
2495 },
2496 {
2497 "type": "array"
2498 },
2499 {
2500 "type": "object"
2501 }
2502 ]
2503 }
2504 },
2505 "headers": {
2506 "type": "object",
2507 "additionalProperties": {
2508 "oneOf": [
2509 {
2510 "type": "null"
2511 },
2512 {
2513 "type": "boolean"
2514 },
2515 {
2516 "type": "number"
2517 },
2518 {
2519 "type": "string"
2520 },
2521 {
2522 "type": "array"
2523 },
2524 {
2525 "type": "object"
2526 }
2527 ]
2528 }
2529 },
2530 "body": {
2531 "type": "object",
2532 "additionalProperties": {
2533 "oneOf": [
2534 {
2535 "type": "null"
2536 },
2537 {
2538 "type": "boolean"
2539 },
2540 {
2541 "type": "number"
2542 },
2543 {
2544 "type": "string"
2545 },
2546 {
2547 "type": "array"
2548 },
2549 {
2550 "type": "object"
2551 }
2552 ]
2553 }
2554 }
2555 },
2556 "additionalProperties": false,
2557 "required": [
2558 "url",
2559 "method"
2560 ]
2561 },
2562 "RestAPIMethod": {
2563 "type": "string",
2564 "enum": [
2565 "GET",
2566 "POST",
2567 "PUT",
2568 "DELETE"
2569 ]
2570 },
2571 "SearchToolDefinition": {
2572 "type": "object",
2573 "properties": {
2574 "input_shields": {
2575 "type": "array",
2576 "items": {
2577 "$ref": "#/components/schemas/ShieldDefinition"
2578 }
2579 },
2580 "output_shields": {
2581 "type": "array",
2582 "items": {
2583 "$ref": "#/components/schemas/ShieldDefinition"
2584 }
2585 },
2586 "type": {
2587 "type": "string",
2588 "const": "brave_search"
2589 },
2590 "api_key": {
2591 "type": "string"
2592 },
2593 "engine": {
2594 "type": "string",
2595 "enum": [
2596 "bing",
2597 "brave"
2598 ]
2599 },
2600 "remote_execution": {
2601 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2602 }
2603 },
2604 "additionalProperties": false,
2605 "required": [
2606 "type",
2607 "api_key",
2608 "engine"
2609 ]
2610 },
2611 "ShieldDefinition": {
2612 "type": "object",
2613 "properties": {
2614 "shield_type": {
2615 "oneOf": [
2616 {
2617 "$ref": "#/components/schemas/BuiltinShield"
2618 },
2619 {
2620 "type": "string"
2621 }
2622 ]
2623 },
2624 "description": {
2625 "type": "string"
2626 },
2627 "parameters": {
2628 "type": "object",
2629 "additionalProperties": {
2630 "$ref": "#/components/schemas/ToolParamDefinition"
2631 }
2632 },
2633 "on_violation_action": {
2634 "$ref": "#/components/schemas/OnViolationAction"
2635 },
2636 "execution_config": {
2637 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2638 }
2639 },
2640 "additionalProperties": false,
2641 "required": [
2642 "shield_type",
2643 "on_violation_action"
2644 ]
2645 },
2646 "URL": {
2647 "type": "string",
2648 "format": "uri",
2649 "pattern": "^(https?://|file://|data:)"
2650 },
2651 "WolframAlphaToolDefinition": {
2652 "type": "object",
2653 "properties": {
2654 "input_shields": {
2655 "type": "array",
2656 "items": {
2657 "$ref": "#/components/schemas/ShieldDefinition"
2658 }
2659 },
2660 "output_shields": {
2661 "type": "array",
2662 "items": {
2663 "$ref": "#/components/schemas/ShieldDefinition"
2664 }
2665 },
2666 "type": {
2667 "type": "string",
2668 "const": "wolfram_alpha"
2669 },
2670 "api_key": {
2671 "type": "string"
2672 },
2673 "remote_execution": {
2674 "$ref": "#/components/schemas/RestAPIExecutionConfig"
2675 }
2676 },
2677 "additionalProperties": false,
2678 "required": [
2679 "type",
2680 "api_key"
2681 ]
2682 },
2683 "CreateAgentRequest": {
2684 "type": "object",
2685 "properties": {
2686 "agent_config": {
2687 "$ref": "#/components/schemas/AgentConfig"
2688 }
2689 },
2690 "additionalProperties": false,
2691 "required": [
2692 "agent_config"
2693 ]
2694 },
2695 "AgentCreateResponse": {
2696 "type": "object",
2697 "properties": {
2698 "agent_id": {
2699 "type": "string"
2700 }
2701 },
2702 "additionalProperties": false,
2703 "required": [
2704 "agent_id"
2705 ]
2706 },
2707 "CreateAgentSessionRequest": {
2708 "type": "object",
2709 "properties": {
2710 "agent_id": {
2711 "type": "string"
2712 },
2713 "session_name": {
2714 "type": "string"
2715 }
2716 },
2717 "additionalProperties": false,
2718 "required": [
2719 "agent_id",
2720 "session_name"
2721 ]
2722 },
2723 "AgentSessionCreateResponse": {
2724 "type": "object",
2725 "properties": {
2726 "session_id": {
2727 "type": "string"
2728 }
2729 },
2730 "additionalProperties": false,
2731 "required": [
2732 "session_id"
2733 ]
2734 },
2735 "Attachment": {
2736 "type": "object",
2737 "properties": {
2738 "content": {
2739 "oneOf": [
2740 {
2741 "type": "string"
2742 },
2743 {
2744 "type": "array",
2745 "items": {
2746 "type": "string"
2747 }
2748 },
2749 {
2750 "$ref": "#/components/schemas/URL"
2751 }
2752 ]
2753 },
2754 "mime_type": {
2755 "type": "string"
2756 }
2757 },
2758 "additionalProperties": false,
2759 "required": [
2760 "content",
2761 "mime_type"
2762 ]
2763 },
2764 "CreateAgentTurnRequest": {
2765 "type": "object",
2766 "properties": {
2767 "agent_id": {
2768 "type": "string"
2769 },
2770 "session_id": {
2771 "type": "string"
2772 },
2773 "messages": {
2774 "type": "array",
2775 "items": {
2776 "oneOf": [
2777 {
2778 "$ref": "#/components/schemas/UserMessage"
2779 },
2780 {
2781 "$ref": "#/components/schemas/ToolResponseMessage"
2782 }
2783 ]
2784 }
2785 },
2786 "attachments": {
2787 "type": "array",
2788 "items": {
2789 "$ref": "#/components/schemas/Attachment"
2790 }
2791 },
2792 "stream": {
2793 "type": "boolean"
2794 }
2795 },
2796 "additionalProperties": false,
2797 "required": [
2798 "agent_id",
2799 "session_id",
2800 "messages"
2801 ]
2802 },
2803 "AgentTurnResponseEvent": {
2804 "type": "object",
2805 "properties": {
2806 "payload": {
2807 "oneOf": [
2808 {
2809 "$ref": "#/components/schemas/AgentTurnResponseStepStartPayload"
2810 },
2811 {
2812 "$ref": "#/components/schemas/AgentTurnResponseStepProgressPayload"
2813 },
2814 {
2815 "$ref": "#/components/schemas/AgentTurnResponseStepCompletePayload"
2816 },
2817 {
2818 "$ref": "#/components/schemas/AgentTurnResponseTurnStartPayload"
2819 },
2820 {
2821 "$ref": "#/components/schemas/AgentTurnResponseTurnCompletePayload"
2822 }
2823 ]
2824 }
2825 },
2826 "additionalProperties": false,
2827 "required": [
2828 "payload"
2829 ],
2830 "title": "Streamed agent execution response."
2831 },
2832 "AgentTurnResponseStepCompletePayload": {
2833 "type": "object",
2834 "properties": {
2835 "event_type": {
2836 "type": "string",
2837 "const": "step_complete"
2838 },
2839 "step_type": {
2840 "type": "string",
2841 "enum": [
2842 "inference",
2843 "tool_execution",
2844 "shield_call",
2845 "memory_retrieval"
2846 ]
2847 },
2848 "step_details": {
2849 "oneOf": [
2850 {
2851 "$ref": "#/components/schemas/InferenceStep"
2852 },
2853 {
2854 "$ref": "#/components/schemas/ToolExecutionStep"
2855 },
2856 {
2857 "$ref": "#/components/schemas/ShieldCallStep"
2858 },
2859 {
2860 "$ref": "#/components/schemas/MemoryRetrievalStep"
2861 }
2862 ]
2863 }
2864 },
2865 "additionalProperties": false,
2866 "required": [
2867 "event_type",
2868 "step_type",
2869 "step_details"
2870 ]
2871 },
2872 "AgentTurnResponseStepProgressPayload": {
2873 "type": "object",
2874 "properties": {
2875 "event_type": {
2876 "type": "string",
2877 "const": "step_progress"
2878 },
2879 "step_type": {
2880 "type": "string",
2881 "enum": [
2882 "inference",
2883 "tool_execution",
2884 "shield_call",
2885 "memory_retrieval"
2886 ]
2887 },
2888 "step_id": {
2889 "type": "string"
2890 },
2891 "model_response_text_delta": {
2892 "type": "string"
2893 },
2894 "tool_call_delta": {
2895 "$ref": "#/components/schemas/ToolCallDelta"
2896 },
2897 "tool_response_text_delta": {
2898 "type": "string"
2899 }
2900 },
2901 "additionalProperties": false,
2902 "required": [
2903 "event_type",
2904 "step_type",
2905 "step_id"
2906 ]
2907 },
2908 "AgentTurnResponseStepStartPayload": {
2909 "type": "object",
2910 "properties": {
2911 "event_type": {
2912 "type": "string",
2913 "const": "step_start"
2914 },
2915 "step_type": {
2916 "type": "string",
2917 "enum": [
2918 "inference",
2919 "tool_execution",
2920 "shield_call",
2921 "memory_retrieval"
2922 ]
2923 },
2924 "step_id": {
2925 "type": "string"
2926 },
2927 "metadata": {
2928 "type": "object",
2929 "additionalProperties": {
2930 "oneOf": [
2931 {
2932 "type": "null"
2933 },
2934 {
2935 "type": "boolean"
2936 },
2937 {
2938 "type": "number"
2939 },
2940 {
2941 "type": "string"
2942 },
2943 {
2944 "type": "array"
2945 },
2946 {
2947 "type": "object"
2948 }
2949 ]
2950 }
2951 }
2952 },
2953 "additionalProperties": false,
2954 "required": [
2955 "event_type",
2956 "step_type",
2957 "step_id"
2958 ]
2959 },
2960 "AgentTurnResponseStreamChunk": {
2961 "type": "object",
2962 "properties": {
2963 "event": {
2964 "$ref": "#/components/schemas/AgentTurnResponseEvent"
2965 }
2966 },
2967 "additionalProperties": false,
2968 "required": [
2969 "event"
2970 ]
2971 },
2972 "AgentTurnResponseTurnCompletePayload": {
2973 "type": "object",
2974 "properties": {
2975 "event_type": {
2976 "type": "string",
2977 "const": "turn_complete"
2978 },
2979 "turn": {
2980 "$ref": "#/components/schemas/Turn"
2981 }
2982 },
2983 "additionalProperties": false,
2984 "required": [
2985 "event_type",
2986 "turn"
2987 ]
2988 },
2989 "AgentTurnResponseTurnStartPayload": {
2990 "type": "object",
2991 "properties": {
2992 "event_type": {
2993 "type": "string",
2994 "const": "turn_start"
2995 },
2996 "turn_id": {
2997 "type": "string"
2998 }
2999 },
3000 "additionalProperties": false,
3001 "required": [
3002 "event_type",
3003 "turn_id"
3004 ]
3005 },
3006 "InferenceStep": {
3007 "type": "object",
3008 "properties": {
3009 "turn_id": {
3010 "type": "string"
3011 },
3012 "step_id": {
3013 "type": "string"
3014 },
3015 "started_at": {
3016 "type": "string",
3017 "format": "date-time"
3018 },
3019 "completed_at": {
3020 "type": "string",
3021 "format": "date-time"
3022 },
3023 "step_type": {
3024 "type": "string",
3025 "const": "inference"
3026 },
3027 "model_response": {
3028 "$ref": "#/components/schemas/CompletionMessage"
3029 }
3030 },
3031 "additionalProperties": false,
3032 "required": [
3033 "turn_id",
3034 "step_id",
3035 "step_type",
3036 "model_response"
3037 ]
3038 },
3039 "MemoryRetrievalStep": {
3040 "type": "object",
3041 "properties": {
3042 "turn_id": {
3043 "type": "string"
3044 },
3045 "step_id": {
3046 "type": "string"
3047 },
3048 "started_at": {
3049 "type": "string",
3050 "format": "date-time"
3051 },
3052 "completed_at": {
3053 "type": "string",
3054 "format": "date-time"
3055 },
3056 "step_type": {
3057 "type": "string",
3058 "const": "memory_retrieval"
3059 },
3060 "memory_bank_ids": {
3061 "type": "array",
3062 "items": {
3063 "type": "string"
3064 }
3065 },
3066 "inserted_context": {
3067 "oneOf": [
3068 {
3069 "type": "string"
3070 },
3071 {
3072 "type": "array",
3073 "items": {
3074 "type": "string"
3075 }
3076 }
3077 ]
3078 }
3079 },
3080 "additionalProperties": false,
3081 "required": [
3082 "turn_id",
3083 "step_id",
3084 "step_type",
3085 "memory_bank_ids",
3086 "inserted_context"
3087 ]
3088 },
3089 "ShieldCallStep": {
3090 "type": "object",
3091 "properties": {
3092 "turn_id": {
3093 "type": "string"
3094 },
3095 "step_id": {
3096 "type": "string"
3097 },
3098 "started_at": {
3099 "type": "string",
3100 "format": "date-time"
3101 },
3102 "completed_at": {
3103 "type": "string",
3104 "format": "date-time"
3105 },
3106 "step_type": {
3107 "type": "string",
3108 "const": "shield_call"
3109 },
3110 "response": {
3111 "$ref": "#/components/schemas/ShieldResponse"
3112 }
3113 },
3114 "additionalProperties": false,
3115 "required": [
3116 "turn_id",
3117 "step_id",
3118 "step_type",
3119 "response"
3120 ]
3121 },
3122 "ShieldResponse": {
3123 "type": "object",
3124 "properties": {
3125 "shield_type": {
3126 "oneOf": [
3127 {
3128 "$ref": "#/components/schemas/BuiltinShield"
3129 },
3130 {
3131 "type": "string"
3132 }
3133 ]
3134 },
3135 "is_violation": {
3136 "type": "boolean"
3137 },
3138 "violation_type": {
3139 "type": "string"
3140 },
3141 "violation_return_message": {
3142 "type": "string"
3143 }
3144 },
3145 "additionalProperties": false,
3146 "required": [
3147 "shield_type",
3148 "is_violation"
3149 ]
3150 },
3151 "ToolExecutionStep": {
3152 "type": "object",
3153 "properties": {
3154 "turn_id": {
3155 "type": "string"
3156 },
3157 "step_id": {
3158 "type": "string"
3159 },
3160 "started_at": {
3161 "type": "string",
3162 "format": "date-time"
3163 },
3164 "completed_at": {
3165 "type": "string",
3166 "format": "date-time"
3167 },
3168 "step_type": {
3169 "type": "string",
3170 "const": "tool_execution"
3171 },
3172 "tool_calls": {
3173 "type": "array",
3174 "items": {
3175 "$ref": "#/components/schemas/ToolCall"
3176 }
3177 },
3178 "tool_responses": {
3179 "type": "array",
3180 "items": {
3181 "$ref": "#/components/schemas/ToolResponse"
3182 }
3183 }
3184 },
3185 "additionalProperties": false,
3186 "required": [
3187 "turn_id",
3188 "step_id",
3189 "step_type",
3190 "tool_calls",
3191 "tool_responses"
3192 ]
3193 },
3194 "ToolResponse": {
3195 "type": "object",
3196 "properties": {
3197 "call_id": {
3198 "type": "string"
3199 },
3200 "tool_name": {
3201 "oneOf": [
3202 {
3203 "$ref": "#/components/schemas/BuiltinTool"
3204 },
3205 {
3206 "type": "string"
3207 }
3208 ]
3209 },
3210 "content": {
3211 "oneOf": [
3212 {
3213 "type": "string"
3214 },
3215 {
3216 "type": "array",
3217 "items": {
3218 "type": "string"
3219 }
3220 }
3221 ]
3222 }
3223 },
3224 "additionalProperties": false,
3225 "required": [
3226 "call_id",
3227 "tool_name",
3228 "content"
3229 ]
3230 },
3231 "Turn": {
3232 "type": "object",
3233 "properties": {
3234 "turn_id": {
3235 "type": "string"
3236 },
3237 "session_id": {
3238 "type": "string"
3239 },
3240 "input_messages": {
3241 "type": "array",
3242 "items": {
3243 "oneOf": [
3244 {
3245 "$ref": "#/components/schemas/UserMessage"
3246 },
3247 {
3248 "$ref": "#/components/schemas/ToolResponseMessage"
3249 }
3250 ]
3251 }
3252 },
3253 "steps": {
3254 "type": "array",
3255 "items": {
3256 "oneOf": [
3257 {
3258 "$ref": "#/components/schemas/InferenceStep"
3259 },
3260 {
3261 "$ref": "#/components/schemas/ToolExecutionStep"
3262 },
3263 {
3264 "$ref": "#/components/schemas/ShieldCallStep"
3265 },
3266 {
3267 "$ref": "#/components/schemas/MemoryRetrievalStep"
3268 }
3269 ]
3270 }
3271 },
3272 "output_message": {
3273 "$ref": "#/components/schemas/CompletionMessage"
3274 },
3275 "output_attachments": {
3276 "type": "array",
3277 "items": {
3278 "$ref": "#/components/schemas/Attachment"
3279 }
3280 },
3281 "started_at": {
3282 "type": "string",
3283 "format": "date-time"
3284 },
3285 "completed_at": {
3286 "type": "string",
3287 "format": "date-time"
3288 }
3289 },
3290 "additionalProperties": false,
3291 "required": [
3292 "turn_id",
3293 "session_id",
3294 "input_messages",
3295 "steps",
3296 "output_message",
3297 "output_attachments",
3298 "started_at"
3299 ],
3300 "title": "A single turn in an interaction with an Agentic System."
3301 },
3302 "TrainEvalDataset": {
3303 "type": "object",
3304 "properties": {
3305 "columns": {
3306 "type": "object",
3307 "additionalProperties": {
3308 "$ref": "#/components/schemas/TrainEvalDatasetColumnType"
3309 }
3310 },
3311 "content_url": {
3312 "$ref": "#/components/schemas/URL"
3313 },
3314 "metadata": {
3315 "type": "object",
3316 "additionalProperties": {
3317 "oneOf": [
3318 {
3319 "type": "null"
3320 },
3321 {
3322 "type": "boolean"
3323 },
3324 {
3325 "type": "number"
3326 },
3327 {
3328 "type": "string"
3329 },
3330 {
3331 "type": "array"
3332 },
3333 {
3334 "type": "object"
3335 }
3336 ]
3337 }
3338 }
3339 },
3340 "additionalProperties": false,
3341 "required": [
3342 "columns",
3343 "content_url"
3344 ],
3345 "title": "Dataset to be used for training or evaluating language models."
3346 },
3347 "TrainEvalDatasetColumnType": {
3348 "type": "string",
3349 "enum": [
3350 "dialog",
3351 "text",
3352 "media",
3353 "number",
3354 "json"
3355 ]
3356 },
3357 "CreateDatasetRequest": {
3358 "type": "object",
3359 "properties": {
3360 "uuid": {
3361 "type": "string"
3362 },
3363 "dataset": {
3364 "$ref": "#/components/schemas/TrainEvalDataset"
3365 }
3366 },
3367 "additionalProperties": false,
3368 "required": [
3369 "uuid",
3370 "dataset"
3371 ]
3372 },
3373 "CreateMemoryBankRequest": {
3374 "type": "object",
3375 "properties": {
3376 "name": {
3377 "type": "string"
3378 },
3379 "config": {
3380 "oneOf": [
3381 {
3382 "type": "object",
3383 "properties": {
3384 "type": {
3385 "type": "string",
3386 "const": "vector"
3387 },
3388 "embedding_model": {
3389 "type": "string"
3390 },
3391 "chunk_size_in_tokens": {
3392 "type": "integer"
3393 },
3394 "overlap_size_in_tokens": {
3395 "type": "integer"
3396 }
3397 },
3398 "additionalProperties": false,
3399 "required": [
3400 "type",
3401 "embedding_model",
3402 "chunk_size_in_tokens"
3403 ]
3404 },
3405 {
3406 "type": "object",
3407 "properties": {
3408 "type": {
3409 "type": "string",
3410 "const": "keyvalue"
3411 }
3412 },
3413 "additionalProperties": false,
3414 "required": [
3415 "type"
3416 ]
3417 },
3418 {
3419 "type": "object",
3420 "properties": {
3421 "type": {
3422 "type": "string",
3423 "const": "keyword"
3424 }
3425 },
3426 "additionalProperties": false,
3427 "required": [
3428 "type"
3429 ]
3430 },
3431 {
3432 "type": "object",
3433 "properties": {
3434 "type": {
3435 "type": "string",
3436 "const": "graph"
3437 }
3438 },
3439 "additionalProperties": false,
3440 "required": [
3441 "type"
3442 ]
3443 }
3444 ]
3445 },
3446 "url": {
3447 "$ref": "#/components/schemas/URL"
3448 }
3449 },
3450 "additionalProperties": false,
3451 "required": [
3452 "name",
3453 "config"
3454 ]
3455 },
3456 "MemoryBank": {
3457 "type": "object",
3458 "properties": {
3459 "bank_id": {
3460 "type": "string"
3461 },
3462 "name": {
3463 "type": "string"
3464 },
3465 "config": {
3466 "oneOf": [
3467 {
3468 "type": "object",
3469 "properties": {
3470 "type": {
3471 "type": "string",
3472 "const": "vector"
3473 },
3474 "embedding_model": {
3475 "type": "string"
3476 },
3477 "chunk_size_in_tokens": {
3478 "type": "integer"
3479 },
3480 "overlap_size_in_tokens": {
3481 "type": "integer"
3482 }
3483 },
3484 "additionalProperties": false,
3485 "required": [
3486 "type",
3487 "embedding_model",
3488 "chunk_size_in_tokens"
3489 ]
3490 },
3491 {
3492 "type": "object",
3493 "properties": {
3494 "type": {
3495 "type": "string",
3496 "const": "keyvalue"
3497 }
3498 },
3499 "additionalProperties": false,
3500 "required": [
3501 "type"
3502 ]
3503 },
3504 {
3505 "type": "object",
3506 "properties": {
3507 "type": {
3508 "type": "string",
3509 "const": "keyword"
3510 }
3511 },
3512 "additionalProperties": false,
3513 "required": [
3514 "type"
3515 ]
3516 },
3517 {
3518 "type": "object",
3519 "properties": {
3520 "type": {
3521 "type": "string",
3522 "const": "graph"
3523 }
3524 },
3525 "additionalProperties": false,
3526 "required": [
3527 "type"
3528 ]
3529 }
3530 ]
3531 },
3532 "url": {
3533 "$ref": "#/components/schemas/URL"
3534 }
3535 },
3536 "additionalProperties": false,
3537 "required": [
3538 "bank_id",
3539 "name",
3540 "config"
3541 ]
3542 },
3543 "DeleteAgentsRequest": {
3544 "type": "object",
3545 "properties": {
3546 "agent_id": {
3547 "type": "string"
3548 }
3549 },
3550 "additionalProperties": false,
3551 "required": [
3552 "agent_id"
3553 ]
3554 },
3555 "DeleteAgentsSessionRequest": {
3556 "type": "object",
3557 "properties": {
3558 "agent_id": {
3559 "type": "string"
3560 },
3561 "session_id": {
3562 "type": "string"
3563 }
3564 },
3565 "additionalProperties": false,
3566 "required": [
3567 "agent_id",
3568 "session_id"
3569 ]
3570 },
3571 "DeleteDatasetRequest": {
3572 "type": "object",
3573 "properties": {
3574 "dataset_uuid": {
3575 "type": "string"
3576 }
3577 },
3578 "additionalProperties": false,
3579 "required": [
3580 "dataset_uuid"
3581 ]
3582 },
3583 "DeleteDocumentsRequest": {
3584 "type": "object",
3585 "properties": {
3586 "bank_id": {
3587 "type": "string"
3588 },
3589 "document_ids": {
3590 "type": "array",
3591 "items": {
3592 "type": "string"
3593 }
3594 }
3595 },
3596 "additionalProperties": false,
3597 "required": [
3598 "bank_id",
3599 "document_ids"
3600 ]
3601 },
3602 "DropMemoryBankRequest": {
3603 "type": "object",
3604 "properties": {
3605 "bank_id": {
3606 "type": "string"
3607 }
3608 },
3609 "additionalProperties": false,
3610 "required": [
3611 "bank_id"
3612 ]
3613 },
3614 "EmbeddingsRequest": {
3615 "type": "object",
3616 "properties": {
3617 "model": {
3618 "type": "string"
3619 },
3620 "contents": {
3621 "type": "array",
3622 "items": {
3623 "oneOf": [
3624 {
3625 "type": "string"
3626 },
3627 {
3628 "type": "array",
3629 "items": {
3630 "type": "string"
3631 }
3632 }
3633 ]
3634 }
3635 }
3636 },
3637 "additionalProperties": false,
3638 "required": [
3639 "model",
3640 "contents"
3641 ]
3642 },
3643 "EmbeddingsResponse": {
3644 "type": "object",
3645 "properties": {
3646 "embeddings": {
3647 "type": "array",
3648 "items": {
3649 "type": "array",
3650 "items": {
3651 "type": "number"
3652 }
3653 }
3654 }
3655 },
3656 "additionalProperties": false,
3657 "required": [
3658 "embeddings"
3659 ]
3660 },
3661 "EvaluateQuestionAnsweringRequest": {
3662 "type": "object",
3663 "properties": {
3664 "metrics": {
3665 "type": "array",
3666 "items": {
3667 "type": "string",
3668 "enum": [
3669 "em",
3670 "f1"
3671 ]
3672 }
3673 }
3674 },
3675 "additionalProperties": false,
3676 "required": [
3677 "metrics"
3678 ]
3679 },
3680 "EvaluationJob": {
3681 "type": "object",
3682 "properties": {
3683 "job_uuid": {
3684 "type": "string"
3685 }
3686 },
3687 "additionalProperties": false,
3688 "required": [
3689 "job_uuid"
3690 ]
3691 },
3692 "EvaluateSummarizationRequest": {
3693 "type": "object",
3694 "properties": {
3695 "metrics": {
3696 "type": "array",
3697 "items": {
3698 "type": "string",
3699 "enum": [
3700 "rouge",
3701 "bleu"
3702 ]
3703 }
3704 }
3705 },
3706 "additionalProperties": false,
3707 "required": [
3708 "metrics"
3709 ]
3710 },
3711 "EvaluateTextGenerationRequest": {
3712 "type": "object",
3713 "properties": {
3714 "metrics": {
3715 "type": "array",
3716 "items": {
3717 "type": "string",
3718 "enum": [
3719 "perplexity",
3720 "rouge",
3721 "bleu"
3722 ]
3723 }
3724 }
3725 },
3726 "additionalProperties": false,
3727 "required": [
3728 "metrics"
3729 ]
3730 },
3731 "GetAgentsSessionRequest": {
3732 "type": "object",
3733 "properties": {
3734 "turn_ids": {
3735 "type": "array",
3736 "items": {
3737 "type": "string"
3738 }
3739 }
3740 },
3741 "additionalProperties": false
3742 },
3743 "Session": {
3744 "type": "object",
3745 "properties": {
3746 "session_id": {
3747 "type": "string"
3748 },
3749 "session_name": {
3750 "type": "string"
3751 },
3752 "turns": {
3753 "type": "array",
3754 "items": {
3755 "$ref": "#/components/schemas/Turn"
3756 }
3757 },
3758 "started_at": {
3759 "type": "string",
3760 "format": "date-time"
3761 },
3762 "memory_bank": {
3763 "$ref": "#/components/schemas/MemoryBank"
3764 }
3765 },
3766 "additionalProperties": false,
3767 "required": [
3768 "session_id",
3769 "session_name",
3770 "turns",
3771 "started_at"
3772 ],
3773 "title": "A single session of an interaction with an Agentic System."
3774 },
3775 "AgentStepResponse": {
3776 "type": "object",
3777 "properties": {
3778 "step": {
3779 "oneOf": [
3780 {
3781 "$ref": "#/components/schemas/InferenceStep"
3782 },
3783 {
3784 "$ref": "#/components/schemas/ToolExecutionStep"
3785 },
3786 {
3787 "$ref": "#/components/schemas/ShieldCallStep"
3788 },
3789 {
3790 "$ref": "#/components/schemas/MemoryRetrievalStep"
3791 }
3792 ]
3793 }
3794 },
3795 "additionalProperties": false,
3796 "required": [
3797 "step"
3798 ]
3799 },
3800 "GetDocumentsRequest": {
3801 "type": "object",
3802 "properties": {
3803 "document_ids": {
3804 "type": "array",
3805 "items": {
3806 "type": "string"
3807 }
3808 }
3809 },
3810 "additionalProperties": false,
3811 "required": [
3812 "document_ids"
3813 ]
3814 },
3815 "MemoryBankDocument": {
3816 "type": "object",
3817 "properties": {
3818 "document_id": {
3819 "type": "string"
3820 },
3821 "content": {
3822 "oneOf": [
3823 {
3824 "type": "string"
3825 },
3826 {
3827 "type": "array",
3828 "items": {
3829 "type": "string"
3830 }
3831 },
3832 {
3833 "$ref": "#/components/schemas/URL"
3834 }
3835 ]
3836 },
3837 "mime_type": {
3838 "type": "string"
3839 },
3840 "metadata": {
3841 "type": "object",
3842 "additionalProperties": {
3843 "oneOf": [
3844 {
3845 "type": "null"
3846 },
3847 {
3848 "type": "boolean"
3849 },
3850 {
3851 "type": "number"
3852 },
3853 {
3854 "type": "string"
3855 },
3856 {
3857 "type": "array"
3858 },
3859 {
3860 "type": "object"
3861 }
3862 ]
3863 }
3864 }
3865 },
3866 "additionalProperties": false,
3867 "required": [
3868 "document_id",
3869 "content",
3870 "metadata"
3871 ]
3872 },
3873 "EvaluationJobArtifactsResponse": {
3874 "type": "object",
3875 "properties": {
3876 "job_uuid": {
3877 "type": "string"
3878 }
3879 },
3880 "additionalProperties": false,
3881 "required": [
3882 "job_uuid"
3883 ],
3884 "title": "Artifacts of a evaluation job."
3885 },
3886 "EvaluationJobLogStream": {
3887 "type": "object",
3888 "properties": {
3889 "job_uuid": {
3890 "type": "string"
3891 }
3892 },
3893 "additionalProperties": false,
3894 "required": [
3895 "job_uuid"
3896 ]
3897 },
3898 "EvaluationJobStatusResponse": {
3899 "type": "object",
3900 "properties": {
3901 "job_uuid": {
3902 "type": "string"
3903 }
3904 },
3905 "additionalProperties": false,
3906 "required": [
3907 "job_uuid"
3908 ]
3909 },
3910 "Trace": {
3911 "type": "object",
3912 "properties": {
3913 "trace_id": {
3914 "type": "string"
3915 },
3916 "root_span_id": {
3917 "type": "string"
3918 },
3919 "start_time": {
3920 "type": "string",
3921 "format": "date-time"
3922 },
3923 "end_time": {
3924 "type": "string",
3925 "format": "date-time"
3926 }
3927 },
3928 "additionalProperties": false,
3929 "required": [
3930 "trace_id",
3931 "root_span_id",
3932 "start_time"
3933 ]
3934 },
3935 "Checkpoint": {
3936 "description": "Checkpoint created during training runs"
3937 },
3938 "PostTrainingJobArtifactsResponse": {
3939 "type": "object",
3940 "properties": {
3941 "job_uuid": {
3942 "type": "string"
3943 },
3944 "checkpoints": {
3945 "type": "array",
3946 "items": {
3947 "$ref": "#/components/schemas/Checkpoint"
3948 }
3949 }
3950 },
3951 "additionalProperties": false,
3952 "required": [
3953 "job_uuid",
3954 "checkpoints"
3955 ],
3956 "title": "Artifacts of a finetuning job."
3957 },
3958 "PostTrainingJobLogStream": {
3959 "type": "object",
3960 "properties": {
3961 "job_uuid": {
3962 "type": "string"
3963 },
3964 "log_lines": {
3965 "type": "array",
3966 "items": {
3967 "type": "string"
3968 }
3969 }
3970 },
3971 "additionalProperties": false,
3972 "required": [
3973 "job_uuid",
3974 "log_lines"
3975 ],
3976 "title": "Stream of logs from a finetuning job."
3977 },
3978 "PostTrainingJobStatus": {
3979 "type": "string",
3980 "enum": [
3981 "running",
3982 "completed",
3983 "failed",
3984 "scheduled"
3985 ]
3986 },
3987 "PostTrainingJobStatusResponse": {
3988 "type": "object",
3989 "properties": {
3990 "job_uuid": {
3991 "type": "string"
3992 },
3993 "status": {
3994 "$ref": "#/components/schemas/PostTrainingJobStatus"
3995 },
3996 "scheduled_at": {
3997 "type": "string",
3998 "format": "date-time"
3999 },
4000 "started_at": {
4001 "type": "string",
4002 "format": "date-time"
4003 },
4004 "completed_at": {
4005 "type": "string",
4006 "format": "date-time"
4007 },
4008 "resources_allocated": {
4009 "type": "object",
4010 "additionalProperties": {
4011 "oneOf": [
4012 {
4013 "type": "null"
4014 },
4015 {
4016 "type": "boolean"
4017 },
4018 {
4019 "type": "number"
4020 },
4021 {
4022 "type": "string"
4023 },
4024 {
4025 "type": "array"
4026 },
4027 {
4028 "type": "object"
4029 }
4030 ]
4031 }
4032 },
4033 "checkpoints": {
4034 "type": "array",
4035 "items": {
4036 "$ref": "#/components/schemas/Checkpoint"
4037 }
4038 }
4039 },
4040 "additionalProperties": false,
4041 "required": [
4042 "job_uuid",
4043 "status",
4044 "checkpoints"
4045 ],
4046 "title": "Status of a finetuning job."
4047 },
4048 "PostTrainingJob": {
4049 "type": "object",
4050 "properties": {
4051 "job_uuid": {
4052 "type": "string"
4053 }
4054 },
4055 "additionalProperties": false,
4056 "required": [
4057 "job_uuid"
4058 ]
4059 },
4060 "InsertDocumentsRequest": {
4061 "type": "object",
4062 "properties": {
4063 "bank_id": {
4064 "type": "string"
4065 },
4066 "documents": {
4067 "type": "array",
4068 "items": {
4069 "$ref": "#/components/schemas/MemoryBankDocument"
4070 }
4071 },
4072 "ttl_seconds": {
4073 "type": "integer"
4074 }
4075 },
4076 "additionalProperties": false,
4077 "required": [
4078 "bank_id",
4079 "documents"
4080 ]
4081 },
4082 "LogSeverity": {
4083 "type": "string",
4084 "enum": [
4085 "verbose",
4086 "debug",
4087 "info",
4088 "warn",
4089 "error",
4090 "critical"
4091 ]
4092 },
4093 "MetricEvent": {
4094 "type": "object",
4095 "properties": {
4096 "trace_id": {
4097 "type": "string"
4098 },
4099 "span_id": {
4100 "type": "string"
4101 },
4102 "timestamp": {
4103 "type": "string",
4104 "format": "date-time"
4105 },
4106 "attributes": {
4107 "type": "object",
4108 "additionalProperties": {
4109 "oneOf": [
4110 {
4111 "type": "null"
4112 },
4113 {
4114 "type": "boolean"
4115 },
4116 {
4117 "type": "number"
4118 },
4119 {
4120 "type": "string"
4121 },
4122 {
4123 "type": "array"
4124 },
4125 {
4126 "type": "object"
4127 }
4128 ]
4129 }
4130 },
4131 "type": {
4132 "type": "string",
4133 "const": "metric"
4134 },
4135 "metric": {
4136 "type": "string"
4137 },
4138 "value": {
4139 "oneOf": [
4140 {
4141 "type": "integer"
4142 },
4143 {
4144 "type": "number"
4145 }
4146 ]
4147 },
4148 "unit": {
4149 "type": "string"
4150 }
4151 },
4152 "additionalProperties": false,
4153 "required": [
4154 "trace_id",
4155 "span_id",
4156 "timestamp",
4157 "type",
4158 "metric",
4159 "value",
4160 "unit"
4161 ]
4162 },
4163 "SpanEndPayload": {
4164 "type": "object",
4165 "properties": {
4166 "type": {
4167 "type": "string",
4168 "const": "span_end"
4169 },
4170 "status": {
4171 "$ref": "#/components/schemas/SpanStatus"
4172 }
4173 },
4174 "additionalProperties": false,
4175 "required": [
4176 "type",
4177 "status"
4178 ]
4179 },
4180 "SpanStartPayload": {
4181 "type": "object",
4182 "properties": {
4183 "type": {
4184 "type": "string",
4185 "const": "span_start"
4186 },
4187 "name": {
4188 "type": "string"
4189 },
4190 "parent_span_id": {
4191 "type": "string"
4192 }
4193 },
4194 "additionalProperties": false,
4195 "required": [
4196 "type",
4197 "name"
4198 ]
4199 },
4200 "SpanStatus": {
4201 "type": "string",
4202 "enum": [
4203 "ok",
4204 "error"
4205 ]
4206 },
4207 "StructuredLogEvent": {
4208 "type": "object",
4209 "properties": {
4210 "trace_id": {
4211 "type": "string"
4212 },
4213 "span_id": {
4214 "type": "string"
4215 },
4216 "timestamp": {
4217 "type": "string",
4218 "format": "date-time"
4219 },
4220 "attributes": {
4221 "type": "object",
4222 "additionalProperties": {
4223 "oneOf": [
4224 {
4225 "type": "null"
4226 },
4227 {
4228 "type": "boolean"
4229 },
4230 {
4231 "type": "number"
4232 },
4233 {
4234 "type": "string"
4235 },
4236 {
4237 "type": "array"
4238 },
4239 {
4240 "type": "object"
4241 }
4242 ]
4243 }
4244 },
4245 "type": {
4246 "type": "string",
4247 "const": "structured_log"
4248 },
4249 "payload": {
4250 "oneOf": [
4251 {
4252 "$ref": "#/components/schemas/SpanStartPayload"
4253 },
4254 {
4255 "$ref": "#/components/schemas/SpanEndPayload"
4256 }
4257 ]
4258 }
4259 },
4260 "additionalProperties": false,
4261 "required": [
4262 "trace_id",
4263 "span_id",
4264 "timestamp",
4265 "type",
4266 "payload"
4267 ]
4268 },
4269 "UnstructuredLogEvent": {
4270 "type": "object",
4271 "properties": {
4272 "trace_id": {
4273 "type": "string"
4274 },
4275 "span_id": {
4276 "type": "string"
4277 },
4278 "timestamp": {
4279 "type": "string",
4280 "format": "date-time"
4281 },
4282 "attributes": {
4283 "type": "object",
4284 "additionalProperties": {
4285 "oneOf": [
4286 {
4287 "type": "null"
4288 },
4289 {
4290 "type": "boolean"
4291 },
4292 {
4293 "type": "number"
4294 },
4295 {
4296 "type": "string"
4297 },
4298 {
4299 "type": "array"
4300 },
4301 {
4302 "type": "object"
4303 }
4304 ]
4305 }
4306 },
4307 "type": {
4308 "type": "string",
4309 "const": "unstructured_log"
4310 },
4311 "message": {
4312 "type": "string"
4313 },
4314 "severity": {
4315 "$ref": "#/components/schemas/LogSeverity"
4316 }
4317 },
4318 "additionalProperties": false,
4319 "required": [
4320 "trace_id",
4321 "span_id",
4322 "timestamp",
4323 "type",
4324 "message",
4325 "severity"
4326 ]
4327 },
4328 "LogEventRequest": {
4329 "type": "object",
4330 "properties": {
4331 "event": {
4332 "oneOf": [
4333 {
4334 "$ref": "#/components/schemas/UnstructuredLogEvent"
4335 },
4336 {
4337 "$ref": "#/components/schemas/MetricEvent"
4338 },
4339 {
4340 "$ref": "#/components/schemas/StructuredLogEvent"
4341 }
4342 ]
4343 }
4344 },
4345 "additionalProperties": false,
4346 "required": [
4347 "event"
4348 ]
4349 },
4350 "DPOAlignmentConfig": {
4351 "type": "object",
4352 "properties": {
4353 "reward_scale": {
4354 "type": "number"
4355 },
4356 "reward_clip": {
4357 "type": "number"
4358 },
4359 "epsilon": {
4360 "type": "number"
4361 },
4362 "gamma": {
4363 "type": "number"
4364 }
4365 },
4366 "additionalProperties": false,
4367 "required": [
4368 "reward_scale",
4369 "reward_clip",
4370 "epsilon",
4371 "gamma"
4372 ]
4373 },
4374 "OptimizerConfig": {
4375 "type": "object",
4376 "properties": {
4377 "optimizer_type": {
4378 "type": "string",
4379 "enum": [
4380 "adam",
4381 "adamw",
4382 "sgd"
4383 ]
4384 },
4385 "lr": {
4386 "type": "number"
4387 },
4388 "lr_min": {
4389 "type": "number"
4390 },
4391 "weight_decay": {
4392 "type": "number"
4393 }
4394 },
4395 "additionalProperties": false,
4396 "required": [
4397 "optimizer_type",
4398 "lr",
4399 "lr_min",
4400 "weight_decay"
4401 ]
4402 },
4403 "RLHFAlgorithm": {
4404 "type": "string",
4405 "enum": [
4406 "dpo"
4407 ]
4408 },
4409 "TrainingConfig": {
4410 "type": "object",
4411 "properties": {
4412 "n_epochs": {
4413 "type": "integer"
4414 },
4415 "batch_size": {
4416 "type": "integer"
4417 },
4418 "shuffle": {
4419 "type": "boolean"
4420 },
4421 "n_iters": {
4422 "type": "integer"
4423 },
4424 "enable_activation_checkpointing": {
4425 "type": "boolean"
4426 },
4427 "memory_efficient_fsdp_wrap": {
4428 "type": "boolean"
4429 },
4430 "fsdp_cpu_offload": {
4431 "type": "boolean"
4432 }
4433 },
4434 "additionalProperties": false,
4435 "required": [
4436 "n_epochs",
4437 "batch_size",
4438 "shuffle",
4439 "n_iters",
4440 "enable_activation_checkpointing",
4441 "memory_efficient_fsdp_wrap",
4442 "fsdp_cpu_offload"
4443 ]
4444 },
4445 "PreferenceOptimizeRequest": {
4446 "type": "object",
4447 "properties": {
4448 "job_uuid": {
4449 "type": "string"
4450 },
4451 "finetuned_model": {
4452 "$ref": "#/components/schemas/URL"
4453 },
4454 "dataset": {
4455 "$ref": "#/components/schemas/TrainEvalDataset"
4456 },
4457 "validation_dataset": {
4458 "$ref": "#/components/schemas/TrainEvalDataset"
4459 },
4460 "algorithm": {
4461 "$ref": "#/components/schemas/RLHFAlgorithm"
4462 },
4463 "algorithm_config": {
4464 "$ref": "#/components/schemas/DPOAlignmentConfig"
4465 },
4466 "optimizer_config": {
4467 "$ref": "#/components/schemas/OptimizerConfig"
4468 },
4469 "training_config": {
4470 "$ref": "#/components/schemas/TrainingConfig"
4471 },
4472 "hyperparam_search_config": {
4473 "type": "object",
4474 "additionalProperties": {
4475 "oneOf": [
4476 {
4477 "type": "null"
4478 },
4479 {
4480 "type": "boolean"
4481 },
4482 {
4483 "type": "number"
4484 },
4485 {
4486 "type": "string"
4487 },
4488 {
4489 "type": "array"
4490 },
4491 {
4492 "type": "object"
4493 }
4494 ]
4495 }
4496 },
4497 "logger_config": {
4498 "type": "object",
4499 "additionalProperties": {
4500 "oneOf": [
4501 {
4502 "type": "null"
4503 },
4504 {
4505 "type": "boolean"
4506 },
4507 {
4508 "type": "number"
4509 },
4510 {
4511 "type": "string"
4512 },
4513 {
4514 "type": "array"
4515 },
4516 {
4517 "type": "object"
4518 }
4519 ]
4520 }
4521 }
4522 },
4523 "additionalProperties": false,
4524 "required": [
4525 "job_uuid",
4526 "finetuned_model",
4527 "dataset",
4528 "validation_dataset",
4529 "algorithm",
4530 "algorithm_config",
4531 "optimizer_config",
4532 "training_config",
4533 "hyperparam_search_config",
4534 "logger_config"
4535 ]
4536 },
4537 "QueryDocumentsRequest": {
4538 "type": "object",
4539 "properties": {
4540 "bank_id": {
4541 "type": "string"
4542 },
4543 "query": {
4544 "oneOf": [
4545 {
4546 "type": "string"
4547 },
4548 {
4549 "type": "array",
4550 "items": {
4551 "type": "string"
4552 }
4553 }
4554 ]
4555 },
4556 "params": {
4557 "type": "object",
4558 "additionalProperties": {
4559 "oneOf": [
4560 {
4561 "type": "null"
4562 },
4563 {
4564 "type": "boolean"
4565 },
4566 {
4567 "type": "number"
4568 },
4569 {
4570 "type": "string"
4571 },
4572 {
4573 "type": "array"
4574 },
4575 {
4576 "type": "object"
4577 }
4578 ]
4579 }
4580 }
4581 },
4582 "additionalProperties": false,
4583 "required": [
4584 "bank_id",
4585 "query"
4586 ]
4587 },
4588 "QueryDocumentsResponse": {
4589 "type": "object",
4590 "properties": {
4591 "chunks": {
4592 "type": "array",
4593 "items": {
4594 "type": "object",
4595 "properties": {
4596 "content": {
4597 "oneOf": [
4598 {
4599 "type": "string"
4600 },
4601 {
4602 "type": "array",
4603 "items": {
4604 "type": "string"
4605 }
4606 }
4607 ]
4608 },
4609 "token_count": {
4610 "type": "integer"
4611 },
4612 "document_id": {
4613 "type": "string"
4614 }
4615 },
4616 "additionalProperties": false,
4617 "required": [
4618 "content",
4619 "token_count",
4620 "document_id"
4621 ]
4622 }
4623 },
4624 "scores": {
4625 "type": "array",
4626 "items": {
4627 "type": "number"
4628 }
4629 }
4630 },
4631 "additionalProperties": false,
4632 "required": [
4633 "chunks",
4634 "scores"
4635 ]
4636 },
4637 "DialogGenerations": {
4638 "type": "object",
4639 "properties": {
4640 "dialog": {
4641 "type": "array",
4642 "items": {
4643 "oneOf": [
4644 {
4645 "$ref": "#/components/schemas/UserMessage"
4646 },
4647 {
4648 "$ref": "#/components/schemas/SystemMessage"
4649 },
4650 {
4651 "$ref": "#/components/schemas/ToolResponseMessage"
4652 },
4653 {
4654 "$ref": "#/components/schemas/CompletionMessage"
4655 }
4656 ]
4657 }
4658 },
4659 "sampled_generations": {
4660 "type": "array",
4661 "items": {
4662 "oneOf": [
4663 {
4664 "$ref": "#/components/schemas/UserMessage"
4665 },
4666 {
4667 "$ref": "#/components/schemas/SystemMessage"
4668 },
4669 {
4670 "$ref": "#/components/schemas/ToolResponseMessage"
4671 },
4672 {
4673 "$ref": "#/components/schemas/CompletionMessage"
4674 }
4675 ]
4676 }
4677 }
4678 },
4679 "additionalProperties": false,
4680 "required": [
4681 "dialog",
4682 "sampled_generations"
4683 ]
4684 },
4685 "RewardScoreRequest": {
4686 "type": "object",
4687 "properties": {
4688 "dialog_generations": {
4689 "type": "array",
4690 "items": {
4691 "$ref": "#/components/schemas/DialogGenerations"
4692 }
4693 },
4694 "model": {
4695 "type": "string"
4696 }
4697 },
4698 "additionalProperties": false,
4699 "required": [
4700 "dialog_generations",
4701 "model"
4702 ]
4703 },
4704 "RewardScoringResponse": {
4705 "type": "object",
4706 "properties": {
4707 "scored_generations": {
4708 "type": "array",
4709 "items": {
4710 "$ref": "#/components/schemas/ScoredDialogGenerations"
4711 }
4712 }
4713 },
4714 "additionalProperties": false,
4715 "required": [
4716 "scored_generations"
4717 ],
4718 "title": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold."
4719 },
4720 "ScoredDialogGenerations": {
4721 "type": "object",
4722 "properties": {
4723 "dialog": {
4724 "type": "array",
4725 "items": {
4726 "oneOf": [
4727 {
4728 "$ref": "#/components/schemas/UserMessage"
4729 },
4730 {
4731 "$ref": "#/components/schemas/SystemMessage"
4732 },
4733 {
4734 "$ref": "#/components/schemas/ToolResponseMessage"
4735 },
4736 {
4737 "$ref": "#/components/schemas/CompletionMessage"
4738 }
4739 ]
4740 }
4741 },
4742 "scored_generations": {
4743 "type": "array",
4744 "items": {
4745 "$ref": "#/components/schemas/ScoredMessage"
4746 }
4747 }
4748 },
4749 "additionalProperties": false,
4750 "required": [
4751 "dialog",
4752 "scored_generations"
4753 ]
4754 },
4755 "ScoredMessage": {
4756 "type": "object",
4757 "properties": {
4758 "message": {
4759 "oneOf": [
4760 {
4761 "$ref": "#/components/schemas/UserMessage"
4762 },
4763 {
4764 "$ref": "#/components/schemas/SystemMessage"
4765 },
4766 {
4767 "$ref": "#/components/schemas/ToolResponseMessage"
4768 },
4769 {
4770 "$ref": "#/components/schemas/CompletionMessage"
4771 }
4772 ]
4773 },
4774 "score": {
4775 "type": "number"
4776 }
4777 },
4778 "additionalProperties": false,
4779 "required": [
4780 "message",
4781 "score"
4782 ]
4783 },
4784 "RunShieldsRequest": {
4785 "type": "object",
4786 "properties": {
4787 "messages": {
4788 "type": "array",
4789 "items": {
4790 "oneOf": [
4791 {
4792 "$ref": "#/components/schemas/UserMessage"
4793 },
4794 {
4795 "$ref": "#/components/schemas/SystemMessage"
4796 },
4797 {
4798 "$ref": "#/components/schemas/ToolResponseMessage"
4799 },
4800 {
4801 "$ref": "#/components/schemas/CompletionMessage"
4802 }
4803 ]
4804 }
4805 },
4806 "shields": {
4807 "type": "array",
4808 "items": {
4809 "$ref": "#/components/schemas/ShieldDefinition"
4810 }
4811 }
4812 },
4813 "additionalProperties": false,
4814 "required": [
4815 "messages",
4816 "shields"
4817 ]
4818 },
4819 "RunShieldResponse": {
4820 "type": "object",
4821 "properties": {
4822 "responses": {
4823 "type": "array",
4824 "items": {
4825 "$ref": "#/components/schemas/ShieldResponse"
4826 }
4827 }
4828 },
4829 "additionalProperties": false,
4830 "required": [
4831 "responses"
4832 ]
4833 },
4834 "DoraFinetuningConfig": {
4835 "type": "object",
4836 "properties": {
4837 "lora_attn_modules": {
4838 "type": "array",
4839 "items": {
4840 "type": "string"
4841 }
4842 },
4843 "apply_lora_to_mlp": {
4844 "type": "boolean"
4845 },
4846 "apply_lora_to_output": {
4847 "type": "boolean"
4848 },
4849 "rank": {
4850 "type": "integer"
4851 },
4852 "alpha": {
4853 "type": "integer"
4854 }
4855 },
4856 "additionalProperties": false,
4857 "required": [
4858 "lora_attn_modules",
4859 "apply_lora_to_mlp",
4860 "apply_lora_to_output",
4861 "rank",
4862 "alpha"
4863 ]
4864 },
4865 "FinetuningAlgorithm": {
4866 "type": "string",
4867 "enum": [
4868 "full",
4869 "lora",
4870 "qlora",
4871 "dora"
4872 ]
4873 },
4874 "LoraFinetuningConfig": {
4875 "type": "object",
4876 "properties": {
4877 "lora_attn_modules": {
4878 "type": "array",
4879 "items": {
4880 "type": "string"
4881 }
4882 },
4883 "apply_lora_to_mlp": {
4884 "type": "boolean"
4885 },
4886 "apply_lora_to_output": {
4887 "type": "boolean"
4888 },
4889 "rank": {
4890 "type": "integer"
4891 },
4892 "alpha": {
4893 "type": "integer"
4894 }
4895 },
4896 "additionalProperties": false,
4897 "required": [
4898 "lora_attn_modules",
4899 "apply_lora_to_mlp",
4900 "apply_lora_to_output",
4901 "rank",
4902 "alpha"
4903 ]
4904 },
4905 "QLoraFinetuningConfig": {
4906 "type": "object",
4907 "properties": {
4908 "lora_attn_modules": {
4909 "type": "array",
4910 "items": {
4911 "type": "string"
4912 }
4913 },
4914 "apply_lora_to_mlp": {
4915 "type": "boolean"
4916 },
4917 "apply_lora_to_output": {
4918 "type": "boolean"
4919 },
4920 "rank": {
4921 "type": "integer"
4922 },
4923 "alpha": {
4924 "type": "integer"
4925 }
4926 },
4927 "additionalProperties": false,
4928 "required": [
4929 "lora_attn_modules",
4930 "apply_lora_to_mlp",
4931 "apply_lora_to_output",
4932 "rank",
4933 "alpha"
4934 ]
4935 },
4936 "SupervisedFineTuneRequest": {
4937 "type": "object",
4938 "properties": {
4939 "job_uuid": {
4940 "type": "string"
4941 },
4942 "model": {
4943 "type": "string"
4944 },
4945 "dataset": {
4946 "$ref": "#/components/schemas/TrainEvalDataset"
4947 },
4948 "validation_dataset": {
4949 "$ref": "#/components/schemas/TrainEvalDataset"
4950 },
4951 "algorithm": {
4952 "$ref": "#/components/schemas/FinetuningAlgorithm"
4953 },
4954 "algorithm_config": {
4955 "oneOf": [
4956 {
4957 "$ref": "#/components/schemas/LoraFinetuningConfig"
4958 },
4959 {
4960 "$ref": "#/components/schemas/QLoraFinetuningConfig"
4961 },
4962 {
4963 "$ref": "#/components/schemas/DoraFinetuningConfig"
4964 }
4965 ]
4966 },
4967 "optimizer_config": {
4968 "$ref": "#/components/schemas/OptimizerConfig"
4969 },
4970 "training_config": {
4971 "$ref": "#/components/schemas/TrainingConfig"
4972 },
4973 "hyperparam_search_config": {
4974 "type": "object",
4975 "additionalProperties": {
4976 "oneOf": [
4977 {
4978 "type": "null"
4979 },
4980 {
4981 "type": "boolean"
4982 },
4983 {
4984 "type": "number"
4985 },
4986 {
4987 "type": "string"
4988 },
4989 {
4990 "type": "array"
4991 },
4992 {
4993 "type": "object"
4994 }
4995 ]
4996 }
4997 },
4998 "logger_config": {
4999 "type": "object",
5000 "additionalProperties": {
5001 "oneOf": [
5002 {
5003 "type": "null"
5004 },
5005 {
5006 "type": "boolean"
5007 },
5008 {
5009 "type": "number"
5010 },
5011 {
5012 "type": "string"
5013 },
5014 {
5015 "type": "array"
5016 },
5017 {
5018 "type": "object"
5019 }
5020 ]
5021 }
5022 }
5023 },
5024 "additionalProperties": false,
5025 "required": [
5026 "job_uuid",
5027 "model",
5028 "dataset",
5029 "validation_dataset",
5030 "algorithm",
5031 "algorithm_config",
5032 "optimizer_config",
5033 "training_config",
5034 "hyperparam_search_config",
5035 "logger_config"
5036 ]
5037 },
5038 "SyntheticDataGenerateRequest": {
5039 "type": "object",
5040 "properties": {
5041 "dialogs": {
5042 "type": "array",
5043 "items": {
5044 "oneOf": [
5045 {
5046 "$ref": "#/components/schemas/UserMessage"
5047 },
5048 {
5049 "$ref": "#/components/schemas/SystemMessage"
5050 },
5051 {
5052 "$ref": "#/components/schemas/ToolResponseMessage"
5053 },
5054 {
5055 "$ref": "#/components/schemas/CompletionMessage"
5056 }
5057 ]
5058 }
5059 },
5060 "filtering_function": {
5061 "type": "string",
5062 "enum": [
5063 "none",
5064 "random",
5065 "top_k",
5066 "top_p",
5067 "top_k_top_p",
5068 "sigmoid"
5069 ],
5070 "title": "The type of filtering function."
5071 },
5072 "model": {
5073 "type": "string"
5074 }
5075 },
5076 "additionalProperties": false,
5077 "required": [
5078 "dialogs",
5079 "filtering_function"
5080 ]
5081 },
5082 "SyntheticDataGenerationResponse": {
5083 "type": "object",
5084 "properties": {
5085 "synthetic_data": {
5086 "type": "array",
5087 "items": {
5088 "$ref": "#/components/schemas/ScoredDialogGenerations"
5089 }
5090 },
5091 "statistics": {
5092 "type": "object",
5093 "additionalProperties": {
5094 "oneOf": [
5095 {
5096 "type": "null"
5097 },
5098 {
5099 "type": "boolean"
5100 },
5101 {
5102 "type": "number"
5103 },
5104 {
5105 "type": "string"
5106 },
5107 {
5108 "type": "array"
5109 },
5110 {
5111 "type": "object"
5112 }
5113 ]
5114 }
5115 }
5116 },
5117 "additionalProperties": false,
5118 "required": [
5119 "synthetic_data"
5120 ],
5121 "title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold."
5122 },
5123 "UpdateDocumentsRequest": {
5124 "type": "object",
5125 "properties": {
5126 "bank_id": {
5127 "type": "string"
5128 },
5129 "documents": {
5130 "type": "array",
5131 "items": {
5132 "$ref": "#/components/schemas/MemoryBankDocument"
5133 }
5134 }
5135 },
5136 "additionalProperties": false,
5137 "required": [
5138 "bank_id",
5139 "documents"
5140 ]
5141 }
5142 },
5143 "responses": {}
5144 },
5145 "security": [
5146 {
5147 "Default": []
5148 }
5149 ],
5150 "tags": [
5151 {
5152 "name": "BatchInference"
5153 },
5154 {
5155 "name": "PostTraining"
5156 },
5157 {
5158 "name": "Inference"
5159 },
5160 {
5161 "name": "Safety"
5162 },
5163 {
5164 "name": "RewardScoring"
5165 },
5166 {
5167 "name": "Telemetry"
5168 },
5169 {
5170 "name": "Evaluations"
5171 },
5172 {
5173 "name": "SyntheticDataGeneration"
5174 },
5175 {
5176 "name": "Memory"
5177 },
5178 {
5179 "name": "Agents"
5180 },
5181 {
5182 "name": "Datasets"
5183 },
5184 {
5185 "name": "BuiltinTool",
5186 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"
5187 },
5188 {
5189 "name": "CompletionMessage",
5190 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionMessage\" />"
5191 },
5192 {
5193 "name": "SamplingParams",
5194 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingParams\" />"
5195 },
5196 {
5197 "name": "SamplingStrategy",
5198 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingStrategy\" />"
5199 },
5200 {
5201 "name": "StopReason",
5202 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StopReason\" />"
5203 },
5204 {
5205 "name": "SystemMessage",
5206 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SystemMessage\" />"
5207 },
5208 {
5209 "name": "ToolCall",
5210 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCall\" />"
5211 },
5212 {
5213 "name": "ToolChoice",
5214 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolChoice\" />"
5215 },
5216 {
5217 "name": "ToolDefinition",
5218 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolDefinition\" />"
5219 },
5220 {
5221 "name": "ToolParamDefinition",
5222 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolParamDefinition\" />"
5223 },
5224 {
5225 "name": "ToolPromptFormat",
5226 "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\" />"
5227 },
5228 {
5229 "name": "ToolResponseMessage",
5230 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponseMessage\" />"
5231 },
5232 {
5233 "name": "UserMessage",
5234 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UserMessage\" />"
5235 },
5236 {
5237 "name": "BatchChatCompletionRequest",
5238 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />"
5239 },
5240 {
5241 "name": "BatchChatCompletionResponse",
5242 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionResponse\" />"
5243 },
5244 {
5245 "name": "BatchCompletionRequest",
5246 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionRequest\" />"
5247 },
5248 {
5249 "name": "BatchCompletionResponse",
5250 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
5251 },
5252 {
5253 "name": "CancelEvaluationJobRequest",
5254 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelEvaluationJobRequest\" />"
5255 },
5256 {
5257 "name": "CancelTrainingJobRequest",
5258 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelTrainingJobRequest\" />"
5259 },
5260 {
5261 "name": "ChatCompletionRequest",
5262 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />"
5263 },
5264 {
5265 "name": "ChatCompletionResponse",
5266 "description": "Chat completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponse\" />"
5267 },
5268 {
5269 "name": "ChatCompletionResponseEvent",
5270 "description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />"
5271 },
5272 {
5273 "name": "ChatCompletionResponseEventType",
5274 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEventType\" />"
5275 },
5276 {
5277 "name": "ChatCompletionResponseStreamChunk",
5278 "description": "SSE-stream of these events.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseStreamChunk\" />"
5279 },
5280 {
5281 "name": "TokenLogProbs",
5282 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TokenLogProbs\" />"
5283 },
5284 {
5285 "name": "ToolCallDelta",
5286 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallDelta\" />"
5287 },
5288 {
5289 "name": "ToolCallParseStatus",
5290 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallParseStatus\" />"
5291 },
5292 {
5293 "name": "CompletionRequest",
5294 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />"
5295 },
5296 {
5297 "name": "CompletionResponse",
5298 "description": "Completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponse\" />"
5299 },
5300 {
5301 "name": "CompletionResponseStreamChunk",
5302 "description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />"
5303 },
5304 {
5305 "name": "AgentConfig",
5306 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentConfig\" />"
5307 },
5308 {
5309 "name": "BuiltinShield",
5310 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinShield\" />"
5311 },
5312 {
5313 "name": "CodeInterpreterToolDefinition",
5314 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CodeInterpreterToolDefinition\" />"
5315 },
5316 {
5317 "name": "FunctionCallToolDefinition",
5318 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FunctionCallToolDefinition\" />"
5319 },
5320 {
5321 "name": "OnViolationAction",
5322 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OnViolationAction\" />"
5323 },
5324 {
5325 "name": "PhotogenToolDefinition",
5326 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PhotogenToolDefinition\" />"
5327 },
5328 {
5329 "name": "RestAPIExecutionConfig",
5330 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIExecutionConfig\" />"
5331 },
5332 {
5333 "name": "RestAPIMethod",
5334 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIMethod\" />"
5335 },
5336 {
5337 "name": "SearchToolDefinition",
5338 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SearchToolDefinition\" />"
5339 },
5340 {
5341 "name": "ShieldDefinition",
5342 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldDefinition\" />"
5343 },
5344 {
5345 "name": "URL",
5346 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/URL\" />"
5347 },
5348 {
5349 "name": "WolframAlphaToolDefinition",
5350 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/WolframAlphaToolDefinition\" />"
5351 },
5352 {
5353 "name": "CreateAgentRequest",
5354 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentRequest\" />"
5355 },
5356 {
5357 "name": "AgentCreateResponse",
5358 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentCreateResponse\" />"
5359 },
5360 {
5361 "name": "CreateAgentSessionRequest",
5362 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentSessionRequest\" />"
5363 },
5364 {
5365 "name": "AgentSessionCreateResponse",
5366 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentSessionCreateResponse\" />"
5367 },
5368 {
5369 "name": "Attachment",
5370 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Attachment\" />"
5371 },
5372 {
5373 "name": "CreateAgentTurnRequest",
5374 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentTurnRequest\" />"
5375 },
5376 {
5377 "name": "AgentTurnResponseEvent",
5378 "description": "Streamed agent execution response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseEvent\" />"
5379 },
5380 {
5381 "name": "AgentTurnResponseStepCompletePayload",
5382 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepCompletePayload\" />"
5383 },
5384 {
5385 "name": "AgentTurnResponseStepProgressPayload",
5386 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepProgressPayload\" />"
5387 },
5388 {
5389 "name": "AgentTurnResponseStepStartPayload",
5390 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepStartPayload\" />"
5391 },
5392 {
5393 "name": "AgentTurnResponseStreamChunk",
5394 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStreamChunk\" />"
5395 },
5396 {
5397 "name": "AgentTurnResponseTurnCompletePayload",
5398 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseTurnCompletePayload\" />"
5399 },
5400 {
5401 "name": "AgentTurnResponseTurnStartPayload",
5402 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseTurnStartPayload\" />"
5403 },
5404 {
5405 "name": "InferenceStep",
5406 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InferenceStep\" />"
5407 },
5408 {
5409 "name": "MemoryRetrievalStep",
5410 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryRetrievalStep\" />"
5411 },
5412 {
5413 "name": "ShieldCallStep",
5414 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldCallStep\" />"
5415 },
5416 {
5417 "name": "ShieldResponse",
5418 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldResponse\" />"
5419 },
5420 {
5421 "name": "ToolExecutionStep",
5422 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolExecutionStep\" />"
5423 },
5424 {
5425 "name": "ToolResponse",
5426 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponse\" />"
5427 },
5428 {
5429 "name": "Turn",
5430 "description": "A single turn in an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Turn\" />"
5431 },
5432 {
5433 "name": "TrainEvalDataset",
5434 "description": "Dataset to be used for training or evaluating language models.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDataset\" />"
5435 },
5436 {
5437 "name": "TrainEvalDatasetColumnType",
5438 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDatasetColumnType\" />"
5439 },
5440 {
5441 "name": "CreateDatasetRequest",
5442 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateDatasetRequest\" />"
5443 },
5444 {
5445 "name": "CreateMemoryBankRequest",
5446 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateMemoryBankRequest\" />"
5447 },
5448 {
5449 "name": "MemoryBank",
5450 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBank\" />"
5451 },
5452 {
5453 "name": "DeleteAgentsRequest",
5454 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgentsRequest\" />"
5455 },
5456 {
5457 "name": "DeleteAgentsSessionRequest",
5458 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgentsSessionRequest\" />"
5459 },
5460 {
5461 "name": "DeleteDatasetRequest",
5462 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDatasetRequest\" />"
5463 },
5464 {
5465 "name": "DeleteDocumentsRequest",
5466 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDocumentsRequest\" />"
5467 },
5468 {
5469 "name": "DropMemoryBankRequest",
5470 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DropMemoryBankRequest\" />"
5471 },
5472 {
5473 "name": "EmbeddingsRequest",
5474 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />"
5475 },
5476 {
5477 "name": "EmbeddingsResponse",
5478 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsResponse\" />"
5479 },
5480 {
5481 "name": "EvaluateQuestionAnsweringRequest",
5482 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateQuestionAnsweringRequest\" />"
5483 },
5484 {
5485 "name": "EvaluationJob",
5486 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJob\" />"
5487 },
5488 {
5489 "name": "EvaluateSummarizationRequest",
5490 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateSummarizationRequest\" />"
5491 },
5492 {
5493 "name": "EvaluateTextGenerationRequest",
5494 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequest\" />"
5495 },
5496 {
5497 "name": "GetAgentsSessionRequest",
5498 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetAgentsSessionRequest\" />"
5499 },
5500 {
5501 "name": "Session",
5502 "description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />"
5503 },
5504 {
5505 "name": "AgentStepResponse",
5506 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentStepResponse\" />"
5507 },
5508 {
5509 "name": "GetDocumentsRequest",
5510 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetDocumentsRequest\" />"
5511 },
5512 {
5513 "name": "MemoryBankDocument",
5514 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankDocument\" />"
5515 },
5516 {
5517 "name": "EvaluationJobArtifactsResponse",
5518 "description": "Artifacts of a evaluation job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobArtifactsResponse\" />"
5519 },
5520 {
5521 "name": "EvaluationJobLogStream",
5522 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobLogStream\" />"
5523 },
5524 {
5525 "name": "EvaluationJobStatusResponse",
5526 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobStatusResponse\" />"
5527 },
5528 {
5529 "name": "Trace",
5530 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Trace\" />"
5531 },
5532 {
5533 "name": "Checkpoint",
5534 "description": "Checkpoint created during training runs\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Checkpoint\" />"
5535 },
5536 {
5537 "name": "PostTrainingJobArtifactsResponse",
5538 "description": "Artifacts of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobArtifactsResponse\" />"
5539 },
5540 {
5541 "name": "PostTrainingJobLogStream",
5542 "description": "Stream of logs from a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobLogStream\" />"
5543 },
5544 {
5545 "name": "PostTrainingJobStatus",
5546 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatus\" />"
5547 },
5548 {
5549 "name": "PostTrainingJobStatusResponse",
5550 "description": "Status of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatusResponse\" />"
5551 },
5552 {
5553 "name": "PostTrainingJob",
5554 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />"
5555 },
5556 {
5557 "name": "InsertDocumentsRequest",
5558 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />"
5559 },
5560 {
5561 "name": "LogSeverity",
5562 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogSeverity\" />"
5563 },
5564 {
5565 "name": "MetricEvent",
5566 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MetricEvent\" />"
5567 },
5568 {
5569 "name": "SpanEndPayload",
5570 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanEndPayload\" />"
5571 },
5572 {
5573 "name": "SpanStartPayload",
5574 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStartPayload\" />"
5575 },
5576 {
5577 "name": "SpanStatus",
5578 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStatus\" />"
5579 },
5580 {
5581 "name": "StructuredLogEvent",
5582 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StructuredLogEvent\" />"
5583 },
5584 {
5585 "name": "UnstructuredLogEvent",
5586 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UnstructuredLogEvent\" />"
5587 },
5588 {
5589 "name": "LogEventRequest",
5590 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogEventRequest\" />"
5591 },
5592 {
5593 "name": "DPOAlignmentConfig",
5594 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DPOAlignmentConfig\" />"
5595 },
5596 {
5597 "name": "OptimizerConfig",
5598 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OptimizerConfig\" />"
5599 },
5600 {
5601 "name": "RLHFAlgorithm",
5602 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RLHFAlgorithm\" />"
5603 },
5604 {
5605 "name": "TrainingConfig",
5606 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainingConfig\" />"
5607 },
5608 {
5609 "name": "PreferenceOptimizeRequest",
5610 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PreferenceOptimizeRequest\" />"
5611 },
5612 {
5613 "name": "QueryDocumentsRequest",
5614 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsRequest\" />"
5615 },
5616 {
5617 "name": "QueryDocumentsResponse",
5618 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsResponse\" />"
5619 },
5620 {
5621 "name": "DialogGenerations",
5622 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DialogGenerations\" />"
5623 },
5624 {
5625 "name": "RewardScoreRequest",
5626 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoreRequest\" />"
5627 },
5628 {
5629 "name": "RewardScoringResponse",
5630 "description": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringResponse\" />"
5631 },
5632 {
5633 "name": "ScoredDialogGenerations",
5634 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredDialogGenerations\" />"
5635 },
5636 {
5637 "name": "ScoredMessage",
5638 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredMessage\" />"
5639 },
5640 {
5641 "name": "RunShieldsRequest",
5642 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldsRequest\" />"
5643 },
5644 {
5645 "name": "RunShieldResponse",
5646 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldResponse\" />"
5647 },
5648 {
5649 "name": "DoraFinetuningConfig",
5650 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DoraFinetuningConfig\" />"
5651 },
5652 {
5653 "name": "FinetuningAlgorithm",
5654 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FinetuningAlgorithm\" />"
5655 },
5656 {
5657 "name": "LoraFinetuningConfig",
5658 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LoraFinetuningConfig\" />"
5659 },
5660 {
5661 "name": "QLoraFinetuningConfig",
5662 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QLoraFinetuningConfig\" />"
5663 },
5664 {
5665 "name": "SupervisedFineTuneRequest",
5666 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SupervisedFineTuneRequest\" />"
5667 },
5668 {
5669 "name": "SyntheticDataGenerateRequest",
5670 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerateRequest\" />"
5671 },
5672 {
5673 "name": "SyntheticDataGenerationResponse",
5674 "description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
5675 },
5676 {
5677 "name": "UpdateDocumentsRequest",
5678 "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateDocumentsRequest\" />"
5679 }
5680 ],
5681 "x-tagGroups": [
5682 {
5683 "name": "Operations",
5684 "tags": [
5685 "Agents",
5686 "BatchInference",
5687 "Datasets",
5688 "Evaluations",
5689 "Inference",
5690 "Memory",
5691 "PostTraining",
5692 "RewardScoring",
5693 "Safety",
5694 "SyntheticDataGeneration",
5695 "Telemetry"
5696 ]
5697 },
5698 {
5699 "name": "Types",
5700 "tags": [
5701 "AgentConfig",
5702 "AgentCreateResponse",
5703 "AgentSessionCreateResponse",
5704 "AgentStepResponse",
5705 "AgentTurnResponseEvent",
5706 "AgentTurnResponseStepCompletePayload",
5707 "AgentTurnResponseStepProgressPayload",
5708 "AgentTurnResponseStepStartPayload",
5709 "AgentTurnResponseStreamChunk",
5710 "AgentTurnResponseTurnCompletePayload",
5711 "AgentTurnResponseTurnStartPayload",
5712 "Attachment",
5713 "BatchChatCompletionRequest",
5714 "BatchChatCompletionResponse",
5715 "BatchCompletionRequest",
5716 "BatchCompletionResponse",
5717 "BuiltinShield",
5718 "BuiltinTool",
5719 "CancelEvaluationJobRequest",
5720 "CancelTrainingJobRequest",
5721 "ChatCompletionRequest",
5722 "ChatCompletionResponse",
5723 "ChatCompletionResponseEvent",
5724 "ChatCompletionResponseEventType",
5725 "ChatCompletionResponseStreamChunk",
5726 "Checkpoint",
5727 "CodeInterpreterToolDefinition",
5728 "CompletionMessage",
5729 "CompletionRequest",
5730 "CompletionResponse",
5731 "CompletionResponseStreamChunk",
5732 "CreateAgentRequest",
5733 "CreateAgentSessionRequest",
5734 "CreateAgentTurnRequest",
5735 "CreateDatasetRequest",
5736 "CreateMemoryBankRequest",
5737 "DPOAlignmentConfig",
5738 "DeleteAgentsRequest",
5739 "DeleteAgentsSessionRequest",
5740 "DeleteDatasetRequest",
5741 "DeleteDocumentsRequest",
5742 "DialogGenerations",
5743 "DoraFinetuningConfig",
5744 "DropMemoryBankRequest",
5745 "EmbeddingsRequest",
5746 "EmbeddingsResponse",
5747 "EvaluateQuestionAnsweringRequest",
5748 "EvaluateSummarizationRequest",
5749 "EvaluateTextGenerationRequest",
5750 "EvaluationJob",
5751 "EvaluationJobArtifactsResponse",
5752 "EvaluationJobLogStream",
5753 "EvaluationJobStatusResponse",
5754 "FinetuningAlgorithm",
5755 "FunctionCallToolDefinition",
5756 "GetAgentsSessionRequest",
5757 "GetDocumentsRequest",
5758 "InferenceStep",
5759 "InsertDocumentsRequest",
5760 "LogEventRequest",
5761 "LogSeverity",
5762 "LoraFinetuningConfig",
5763 "MemoryBank",
5764 "MemoryBankDocument",
5765 "MemoryRetrievalStep",
5766 "MetricEvent",
5767 "OnViolationAction",
5768 "OptimizerConfig",
5769 "PhotogenToolDefinition",
5770 "PostTrainingJob",
5771 "PostTrainingJobArtifactsResponse",
5772 "PostTrainingJobLogStream",
5773 "PostTrainingJobStatus",
5774 "PostTrainingJobStatusResponse",
5775 "PreferenceOptimizeRequest",
5776 "QLoraFinetuningConfig",
5777 "QueryDocumentsRequest",
5778 "QueryDocumentsResponse",
5779 "RLHFAlgorithm",
5780 "RestAPIExecutionConfig",
5781 "RestAPIMethod",
5782 "RewardScoreRequest",
5783 "RewardScoringResponse",
5784 "RunShieldResponse",
5785 "RunShieldsRequest",
5786 "SamplingParams",
5787 "SamplingStrategy",
5788 "ScoredDialogGenerations",
5789 "ScoredMessage",
5790 "SearchToolDefinition",
5791 "Session",
5792 "ShieldCallStep",
5793 "ShieldDefinition",
5794 "ShieldResponse",
5795 "SpanEndPayload",
5796 "SpanStartPayload",
5797 "SpanStatus",
5798 "StopReason",
5799 "StructuredLogEvent",
5800 "SupervisedFineTuneRequest",
5801 "SyntheticDataGenerateRequest",
5802 "SyntheticDataGenerationResponse",
5803 "SystemMessage",
5804 "TokenLogProbs",
5805 "ToolCall",
5806 "ToolCallDelta",
5807 "ToolCallParseStatus",
5808 "ToolChoice",
5809 "ToolDefinition",
5810 "ToolExecutionStep",
5811 "ToolParamDefinition",
5812 "ToolPromptFormat",
5813 "ToolResponse",
5814 "ToolResponseMessage",
5815 "Trace",
5816 "TrainEvalDataset",
5817 "TrainEvalDatasetColumnType",
5818 "TrainingConfig",
5819 "Turn",
5820 "URL",
5821 "UnstructuredLogEvent",
5822 "UpdateDocumentsRequest",
5823 "UserMessage",
5824 "WolframAlphaToolDefinition"
5825 ]
5826 }
5827 ]
5828};
5829 options = {
5830 downloadFileName: "openapi.json",
5831 expandResponses: "200",
5832 expandSingleSchemaField: true,
5833 jsonSampleExpandLevel: "all",
5834 schemaExpansionLevel: "all",
5835 };
5836 element = document.getElementById("openapi-container");
5837 Redoc.init(spec, options, element);
5838
5839 if (spec.info && spec.info.title) {
5840 document.title = spec.info.title;
5841 }
5842 });
5843 </script>
5844</head>
5845
5846<body>
5847 <div id="openapi-container"></div>
5848</body>
5849
5850</html>