Elffuss BraidHub

kikocis/llama-stack public

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