Elffuss BraidHub

kikocis/llama-stack public

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