Elffuss BraidHub

kikocis/llama-stack public

63314e75ef83 · 120.4 KiBRawPermalink
1components:
2 responses: {}
3 schemas:
4 AgentConfig:
5 additionalProperties: false
6 properties:
7 input_shields:
8 items:
9 $ref: '#/components/schemas/ShieldDefinition'
10 type: array
11 instructions:
12 type: string
13 model:
14 type: string
15 output_shields:
16 items:
17 $ref: '#/components/schemas/ShieldDefinition'
18 type: array
19 sampling_params:
20 $ref: '#/components/schemas/SamplingParams'
21 tool_choice:
22 $ref: '#/components/schemas/ToolChoice'
23 tool_prompt_format:
24 $ref: '#/components/schemas/ToolPromptFormat'
25 tools:
26 items:
27 oneOf:
28 - $ref: '#/components/schemas/SearchToolDefinition'
29 - $ref: '#/components/schemas/WolframAlphaToolDefinition'
30 - $ref: '#/components/schemas/PhotogenToolDefinition'
31 - $ref: '#/components/schemas/CodeInterpreterToolDefinition'
32 - $ref: '#/components/schemas/FunctionCallToolDefinition'
33 - additionalProperties: false
34 properties:
35 input_shields:
36 items:
37 $ref: '#/components/schemas/ShieldDefinition'
38 type: array
39 max_chunks:
40 type: integer
41 max_tokens_in_context:
42 type: integer
43 memory_bank_configs:
44 items:
45 oneOf:
46 - additionalProperties: false
47 properties:
48 bank_id:
49 type: string
50 type:
51 const: vector
52 type: string
53 required:
54 - bank_id
55 - type
56 type: object
57 - additionalProperties: false
58 properties:
59 bank_id:
60 type: string
61 keys:
62 items:
63 type: string
64 type: array
65 type:
66 const: keyvalue
67 type: string
68 required:
69 - bank_id
70 - type
71 - keys
72 type: object
73 - additionalProperties: false
74 properties:
75 bank_id:
76 type: string
77 type:
78 const: keyword
79 type: string
80 required:
81 - bank_id
82 - type
83 type: object
84 - additionalProperties: false
85 properties:
86 bank_id:
87 type: string
88 entities:
89 items:
90 type: string
91 type: array
92 type:
93 const: graph
94 type: string
95 required:
96 - bank_id
97 - type
98 - entities
99 type: object
100 type: array
101 output_shields:
102 items:
103 $ref: '#/components/schemas/ShieldDefinition'
104 type: array
105 query_generator_config:
106 oneOf:
107 - additionalProperties: false
108 properties:
109 sep:
110 type: string
111 type:
112 const: default
113 type: string
114 required:
115 - type
116 - sep
117 type: object
118 - additionalProperties: false
119 properties:
120 model:
121 type: string
122 template:
123 type: string
124 type:
125 const: llm
126 type: string
127 required:
128 - type
129 - model
130 - template
131 type: object
132 - additionalProperties: false
133 properties:
134 type:
135 const: custom
136 type: string
137 required:
138 - type
139 type: object
140 type:
141 const: memory
142 type: string
143 required:
144 - type
145 - memory_bank_configs
146 - query_generator_config
147 - max_tokens_in_context
148 - max_chunks
149 type: object
150 type: array
151 required:
152 - model
153 - instructions
154 type: object
155 AgenticSystemCreateResponse:
156 additionalProperties: false
157 properties:
158 agent_id:
159 type: string
160 required:
161 - agent_id
162 type: object
163 AgenticSystemSessionCreateResponse:
164 additionalProperties: false
165 properties:
166 session_id:
167 type: string
168 required:
169 - session_id
170 type: object
171 AgenticSystemStepResponse:
172 additionalProperties: false
173 properties:
174 step:
175 oneOf:
176 - $ref: '#/components/schemas/InferenceStep'
177 - $ref: '#/components/schemas/ToolExecutionStep'
178 - $ref: '#/components/schemas/ShieldCallStep'
179 - $ref: '#/components/schemas/MemoryRetrievalStep'
180 required:
181 - step
182 type: object
183 AgenticSystemTurnCreateRequest:
184 additionalProperties: false
185 properties:
186 agent_id:
187 type: string
188 attachments:
189 items:
190 $ref: '#/components/schemas/Attachment'
191 type: array
192 input_shields:
193 items:
194 $ref: '#/components/schemas/ShieldDefinition'
195 type: array
196 instructions:
197 type: string
198 messages:
199 items:
200 oneOf:
201 - $ref: '#/components/schemas/UserMessage'
202 - $ref: '#/components/schemas/ToolResponseMessage'
203 type: array
204 output_shields:
205 items:
206 $ref: '#/components/schemas/ShieldDefinition'
207 type: array
208 sampling_params:
209 $ref: '#/components/schemas/SamplingParams'
210 session_id:
211 type: string
212 stream:
213 type: boolean
214 tool_choice:
215 $ref: '#/components/schemas/ToolChoice'
216 tool_prompt_format:
217 $ref: '#/components/schemas/ToolPromptFormat'
218 tools:
219 items:
220 oneOf:
221 - $ref: '#/components/schemas/SearchToolDefinition'
222 - $ref: '#/components/schemas/WolframAlphaToolDefinition'
223 - $ref: '#/components/schemas/PhotogenToolDefinition'
224 - $ref: '#/components/schemas/CodeInterpreterToolDefinition'
225 - $ref: '#/components/schemas/FunctionCallToolDefinition'
226 - additionalProperties: false
227 properties:
228 input_shields:
229 items:
230 $ref: '#/components/schemas/ShieldDefinition'
231 type: array
232 max_chunks:
233 type: integer
234 max_tokens_in_context:
235 type: integer
236 memory_bank_configs:
237 items:
238 oneOf:
239 - additionalProperties: false
240 properties:
241 bank_id:
242 type: string
243 type:
244 const: vector
245 type: string
246 required:
247 - bank_id
248 - type
249 type: object
250 - additionalProperties: false
251 properties:
252 bank_id:
253 type: string
254 keys:
255 items:
256 type: string
257 type: array
258 type:
259 const: keyvalue
260 type: string
261 required:
262 - bank_id
263 - type
264 - keys
265 type: object
266 - additionalProperties: false
267 properties:
268 bank_id:
269 type: string
270 type:
271 const: keyword
272 type: string
273 required:
274 - bank_id
275 - type
276 type: object
277 - additionalProperties: false
278 properties:
279 bank_id:
280 type: string
281 entities:
282 items:
283 type: string
284 type: array
285 type:
286 const: graph
287 type: string
288 required:
289 - bank_id
290 - type
291 - entities
292 type: object
293 type: array
294 output_shields:
295 items:
296 $ref: '#/components/schemas/ShieldDefinition'
297 type: array
298 query_generator_config:
299 oneOf:
300 - additionalProperties: false
301 properties:
302 sep:
303 type: string
304 type:
305 const: default
306 type: string
307 required:
308 - type
309 - sep
310 type: object
311 - additionalProperties: false
312 properties:
313 model:
314 type: string
315 template:
316 type: string
317 type:
318 const: llm
319 type: string
320 required:
321 - type
322 - model
323 - template
324 type: object
325 - additionalProperties: false
326 properties:
327 type:
328 const: custom
329 type: string
330 required:
331 - type
332 type: object
333 type:
334 const: memory
335 type: string
336 required:
337 - type
338 - memory_bank_configs
339 - query_generator_config
340 - max_tokens_in_context
341 - max_chunks
342 type: object
343 type: array
344 required:
345 - agent_id
346 - session_id
347 - messages
348 type: object
349 AgenticSystemTurnCreateRequestWrapper:
350 additionalProperties: false
351 properties:
352 request:
353 $ref: '#/components/schemas/AgenticSystemTurnCreateRequest'
354 required:
355 - request
356 type: object
357 AgenticSystemTurnResponseEvent:
358 additionalProperties: false
359 properties:
360 payload:
361 oneOf:
362 - $ref: '#/components/schemas/AgenticSystemTurnResponseStepStartPayload'
363 - $ref: '#/components/schemas/AgenticSystemTurnResponseStepProgressPayload'
364 - $ref: '#/components/schemas/AgenticSystemTurnResponseStepCompletePayload'
365 - $ref: '#/components/schemas/AgenticSystemTurnResponseTurnStartPayload'
366 - $ref: '#/components/schemas/AgenticSystemTurnResponseTurnCompletePayload'
367 required:
368 - payload
369 title: Streamed agent execution response.
370 type: object
371 AgenticSystemTurnResponseStepCompletePayload:
372 additionalProperties: false
373 properties:
374 event_type:
375 const: step_complete
376 type: string
377 step_details:
378 oneOf:
379 - $ref: '#/components/schemas/InferenceStep'
380 - $ref: '#/components/schemas/ToolExecutionStep'
381 - $ref: '#/components/schemas/ShieldCallStep'
382 - $ref: '#/components/schemas/MemoryRetrievalStep'
383 step_type:
384 enum:
385 - inference
386 - tool_execution
387 - shield_call
388 - memory_retrieval
389 type: string
390 required:
391 - event_type
392 - step_type
393 - step_details
394 type: object
395 AgenticSystemTurnResponseStepProgressPayload:
396 additionalProperties: false
397 properties:
398 event_type:
399 const: step_progress
400 type: string
401 model_response_text_delta:
402 type: string
403 step_id:
404 type: string
405 step_type:
406 enum:
407 - inference
408 - tool_execution
409 - shield_call
410 - memory_retrieval
411 type: string
412 tool_call_delta:
413 $ref: '#/components/schemas/ToolCallDelta'
414 tool_response_text_delta:
415 type: string
416 required:
417 - event_type
418 - step_type
419 - step_id
420 type: object
421 AgenticSystemTurnResponseStepStartPayload:
422 additionalProperties: false
423 properties:
424 event_type:
425 const: step_start
426 type: string
427 metadata:
428 additionalProperties:
429 oneOf:
430 - type: 'null'
431 - type: boolean
432 - type: number
433 - type: string
434 - type: array
435 - type: object
436 type: object
437 step_id:
438 type: string
439 step_type:
440 enum:
441 - inference
442 - tool_execution
443 - shield_call
444 - memory_retrieval
445 type: string
446 required:
447 - event_type
448 - step_type
449 - step_id
450 type: object
451 AgenticSystemTurnResponseStreamChunk:
452 additionalProperties: false
453 properties:
454 event:
455 $ref: '#/components/schemas/AgenticSystemTurnResponseEvent'
456 required:
457 - event
458 type: object
459 AgenticSystemTurnResponseTurnCompletePayload:
460 additionalProperties: false
461 properties:
462 event_type:
463 const: turn_complete
464 type: string
465 turn:
466 $ref: '#/components/schemas/Turn'
467 required:
468 - event_type
469 - turn
470 type: object
471 AgenticSystemTurnResponseTurnStartPayload:
472 additionalProperties: false
473 properties:
474 event_type:
475 const: turn_start
476 type: string
477 turn_id:
478 type: string
479 required:
480 - event_type
481 - turn_id
482 type: object
483 Artifact:
484 additionalProperties: false
485 properties:
486 created_at:
487 format: date-time
488 type: string
489 id:
490 type: string
491 metadata:
492 additionalProperties:
493 oneOf:
494 - type: 'null'
495 - type: boolean
496 - type: number
497 - type: string
498 - type: array
499 - type: object
500 type: object
501 name:
502 type: string
503 size:
504 type: integer
505 type:
506 $ref: '#/components/schemas/ArtifactType'
507 required:
508 - id
509 - name
510 - type
511 - size
512 - created_at
513 - metadata
514 type: object
515 ArtifactType:
516 enum:
517 - model
518 - dataset
519 - checkpoint
520 - plot
521 - metric
522 - config
523 - code
524 - other
525 type: string
526 Attachment:
527 additionalProperties: false
528 properties:
529 content:
530 oneOf:
531 - type: string
532 - items:
533 type: string
534 type: array
535 - $ref: '#/components/schemas/URL'
536 mime_type:
537 type: string
538 required:
539 - content
540 - mime_type
541 type: object
542 BatchChatCompletionRequest:
543 additionalProperties: false
544 properties:
545 logprobs:
546 additionalProperties: false
547 properties:
548 top_k:
549 type: integer
550 type: object
551 messages_batch:
552 items:
553 items:
554 oneOf:
555 - $ref: '#/components/schemas/UserMessage'
556 - $ref: '#/components/schemas/SystemMessage'
557 - $ref: '#/components/schemas/ToolResponseMessage'
558 - $ref: '#/components/schemas/CompletionMessage'
559 type: array
560 type: array
561 model:
562 type: string
563 sampling_params:
564 $ref: '#/components/schemas/SamplingParams'
565 tool_choice:
566 $ref: '#/components/schemas/ToolChoice'
567 tool_prompt_format:
568 $ref: '#/components/schemas/ToolPromptFormat'
569 tools:
570 items:
571 $ref: '#/components/schemas/ToolDefinition'
572 type: array
573 required:
574 - model
575 - messages_batch
576 type: object
577 BatchChatCompletionRequestWrapper:
578 additionalProperties: false
579 properties:
580 request:
581 $ref: '#/components/schemas/BatchChatCompletionRequest'
582 required:
583 - request
584 type: object
585 BatchChatCompletionResponse:
586 additionalProperties: false
587 properties:
588 completion_message_batch:
589 items:
590 $ref: '#/components/schemas/CompletionMessage'
591 type: array
592 required:
593 - completion_message_batch
594 type: object
595 BatchCompletionRequest:
596 additionalProperties: false
597 properties:
598 content_batch:
599 items:
600 oneOf:
601 - type: string
602 - items:
603 type: string
604 type: array
605 type: array
606 logprobs:
607 additionalProperties: false
608 properties:
609 top_k:
610 type: integer
611 type: object
612 model:
613 type: string
614 sampling_params:
615 $ref: '#/components/schemas/SamplingParams'
616 required:
617 - model
618 - content_batch
619 type: object
620 BatchCompletionRequestWrapper:
621 additionalProperties: false
622 properties:
623 request:
624 $ref: '#/components/schemas/BatchCompletionRequest'
625 required:
626 - request
627 type: object
628 BatchCompletionResponse:
629 additionalProperties: false
630 properties:
631 completion_message_batch:
632 items:
633 $ref: '#/components/schemas/CompletionMessage'
634 type: array
635 required:
636 - completion_message_batch
637 type: object
638 BuiltinShield:
639 enum:
640 - llama_guard
641 - code_scanner_guard
642 - third_party_shield
643 - injection_shield
644 - jailbreak_shield
645 type: string
646 BuiltinTool:
647 enum:
648 - brave_search
649 - wolfram_alpha
650 - photogen
651 - code_interpreter
652 type: string
653 CancelEvaluationJobRequest:
654 additionalProperties: false
655 properties:
656 job_uuid:
657 type: string
658 required:
659 - job_uuid
660 type: object
661 CancelTrainingJobRequest:
662 additionalProperties: false
663 properties:
664 job_uuid:
665 type: string
666 required:
667 - job_uuid
668 type: object
669 ChatCompletionRequest:
670 additionalProperties: false
671 properties:
672 logprobs:
673 additionalProperties: false
674 properties:
675 top_k:
676 type: integer
677 type: object
678 messages:
679 items:
680 oneOf:
681 - $ref: '#/components/schemas/UserMessage'
682 - $ref: '#/components/schemas/SystemMessage'
683 - $ref: '#/components/schemas/ToolResponseMessage'
684 - $ref: '#/components/schemas/CompletionMessage'
685 type: array
686 model:
687 type: string
688 sampling_params:
689 $ref: '#/components/schemas/SamplingParams'
690 stream:
691 type: boolean
692 tool_choice:
693 $ref: '#/components/schemas/ToolChoice'
694 tool_prompt_format:
695 $ref: '#/components/schemas/ToolPromptFormat'
696 tools:
697 items:
698 $ref: '#/components/schemas/ToolDefinition'
699 type: array
700 required:
701 - model
702 - messages
703 type: object
704 ChatCompletionRequestWrapper:
705 additionalProperties: false
706 properties:
707 request:
708 $ref: '#/components/schemas/ChatCompletionRequest'
709 required:
710 - request
711 type: object
712 ChatCompletionResponseEvent:
713 additionalProperties: false
714 properties:
715 delta:
716 oneOf:
717 - type: string
718 - $ref: '#/components/schemas/ToolCallDelta'
719 event_type:
720 $ref: '#/components/schemas/ChatCompletionResponseEventType'
721 logprobs:
722 items:
723 $ref: '#/components/schemas/TokenLogProbs'
724 type: array
725 stop_reason:
726 $ref: '#/components/schemas/StopReason'
727 required:
728 - event_type
729 - delta
730 title: Chat completion response event.
731 type: object
732 ChatCompletionResponseEventType:
733 enum:
734 - start
735 - complete
736 - progress
737 type: string
738 ChatCompletionResponseStreamChunk:
739 additionalProperties: false
740 properties:
741 event:
742 $ref: '#/components/schemas/ChatCompletionResponseEvent'
743 required:
744 - event
745 title: SSE-stream of these events.
746 type: object
747 Checkpoint:
748 description: Checkpoint created during training runs
749 CodeInterpreterToolDefinition:
750 additionalProperties: false
751 properties:
752 enable_inline_code_execution:
753 type: boolean
754 input_shields:
755 items:
756 $ref: '#/components/schemas/ShieldDefinition'
757 type: array
758 output_shields:
759 items:
760 $ref: '#/components/schemas/ShieldDefinition'
761 type: array
762 remote_execution:
763 $ref: '#/components/schemas/RestAPIExecutionConfig'
764 type:
765 const: code_interpreter
766 type: string
767 required:
768 - type
769 - enable_inline_code_execution
770 type: object
771 CompletionMessage:
772 additionalProperties: false
773 properties:
774 content:
775 oneOf:
776 - type: string
777 - items:
778 type: string
779 type: array
780 role:
781 const: assistant
782 type: string
783 stop_reason:
784 $ref: '#/components/schemas/StopReason'
785 tool_calls:
786 items:
787 $ref: '#/components/schemas/ToolCall'
788 type: array
789 required:
790 - role
791 - content
792 - stop_reason
793 - tool_calls
794 type: object
795 CompletionRequest:
796 additionalProperties: false
797 properties:
798 content:
799 oneOf:
800 - type: string
801 - items:
802 type: string
803 type: array
804 logprobs:
805 additionalProperties: false
806 properties:
807 top_k:
808 type: integer
809 type: object
810 model:
811 type: string
812 sampling_params:
813 $ref: '#/components/schemas/SamplingParams'
814 stream:
815 type: boolean
816 required:
817 - model
818 - content
819 type: object
820 CompletionRequestWrapper:
821 additionalProperties: false
822 properties:
823 request:
824 $ref: '#/components/schemas/CompletionRequest'
825 required:
826 - request
827 type: object
828 CompletionResponseStreamChunk:
829 additionalProperties: false
830 properties:
831 delta:
832 type: string
833 logprobs:
834 items:
835 $ref: '#/components/schemas/TokenLogProbs'
836 type: array
837 stop_reason:
838 $ref: '#/components/schemas/StopReason'
839 required:
840 - delta
841 title: streamed completion response.
842 type: object
843 CreateAgenticSystemRequest:
844 additionalProperties: false
845 properties:
846 agent_config:
847 $ref: '#/components/schemas/AgentConfig'
848 required:
849 - agent_config
850 type: object
851 CreateAgenticSystemSessionRequest:
852 additionalProperties: false
853 properties:
854 agent_id:
855 type: string
856 session_name:
857 type: string
858 required:
859 - agent_id
860 - session_name
861 type: object
862 CreateDatasetRequest:
863 additionalProperties: false
864 properties:
865 dataset:
866 $ref: '#/components/schemas/TrainEvalDataset'
867 uuid:
868 type: string
869 required:
870 - uuid
871 - dataset
872 title: Request to create a dataset.
873 type: object
874 CreateDatasetRequestWrapper:
875 additionalProperties: false
876 properties:
877 request:
878 $ref: '#/components/schemas/CreateDatasetRequest'
879 required:
880 - request
881 type: object
882 CreateExperimentRequest:
883 additionalProperties: false
884 properties:
885 metadata:
886 additionalProperties:
887 oneOf:
888 - type: 'null'
889 - type: boolean
890 - type: number
891 - type: string
892 - type: array
893 - type: object
894 type: object
895 name:
896 type: string
897 required:
898 - name
899 type: object
900 CreateExperimentRequestWrapper:
901 additionalProperties: false
902 properties:
903 request:
904 $ref: '#/components/schemas/CreateExperimentRequest'
905 required:
906 - request
907 type: object
908 CreateMemoryBankRequest:
909 additionalProperties: false
910 properties:
911 config:
912 oneOf:
913 - additionalProperties: false
914 properties:
915 chunk_size_in_tokens:
916 type: integer
917 embedding_model:
918 type: string
919 overlap_size_in_tokens:
920 type: integer
921 type:
922 const: vector
923 type: string
924 required:
925 - type
926 - embedding_model
927 - chunk_size_in_tokens
928 type: object
929 - additionalProperties: false
930 properties:
931 type:
932 const: keyvalue
933 type: string
934 required:
935 - type
936 type: object
937 - additionalProperties: false
938 properties:
939 type:
940 const: keyword
941 type: string
942 required:
943 - type
944 type: object
945 - additionalProperties: false
946 properties:
947 type:
948 const: graph
949 type: string
950 required:
951 - type
952 type: object
953 name:
954 type: string
955 url:
956 $ref: '#/components/schemas/URL'
957 required:
958 - name
959 - config
960 type: object
961 CreateRunRequest:
962 additionalProperties: false
963 properties:
964 experiment_id:
965 type: string
966 metadata:
967 additionalProperties:
968 oneOf:
969 - type: 'null'
970 - type: boolean
971 - type: number
972 - type: string
973 - type: array
974 - type: object
975 type: object
976 required:
977 - experiment_id
978 type: object
979 CreateRunRequestWrapper:
980 additionalProperties: false
981 properties:
982 request:
983 $ref: '#/components/schemas/CreateRunRequest'
984 required:
985 - request
986 type: object
987 DPOAlignmentConfig:
988 additionalProperties: false
989 properties:
990 epsilon:
991 type: number
992 gamma:
993 type: number
994 reward_clip:
995 type: number
996 reward_scale:
997 type: number
998 required:
999 - reward_scale
1000 - reward_clip
1001 - epsilon
1002 - gamma
1003 type: object
1004 DeleteAgenticSystemRequest:
1005 additionalProperties: false
1006 properties:
1007 agent_id:
1008 type: string
1009 required:
1010 - agent_id
1011 type: object
1012 DeleteAgenticSystemSessionRequest:
1013 additionalProperties: false
1014 properties:
1015 agent_id:
1016 type: string
1017 session_id:
1018 type: string
1019 required:
1020 - agent_id
1021 - session_id
1022 type: object
1023 DeleteDatasetRequest:
1024 additionalProperties: false
1025 properties:
1026 dataset_uuid:
1027 type: string
1028 required:
1029 - dataset_uuid
1030 type: object
1031 DeleteDocumentsRequest:
1032 additionalProperties: false
1033 properties:
1034 bank_id:
1035 type: string
1036 document_ids:
1037 items:
1038 type: string
1039 type: array
1040 required:
1041 - bank_id
1042 - document_ids
1043 type: object
1044 DialogGenerations:
1045 additionalProperties: false
1046 properties:
1047 dialog:
1048 items:
1049 oneOf:
1050 - $ref: '#/components/schemas/UserMessage'
1051 - $ref: '#/components/schemas/SystemMessage'
1052 - $ref: '#/components/schemas/ToolResponseMessage'
1053 - $ref: '#/components/schemas/CompletionMessage'
1054 type: array
1055 sampled_generations:
1056 items:
1057 oneOf:
1058 - $ref: '#/components/schemas/UserMessage'
1059 - $ref: '#/components/schemas/SystemMessage'
1060 - $ref: '#/components/schemas/ToolResponseMessage'
1061 - $ref: '#/components/schemas/CompletionMessage'
1062 type: array
1063 required:
1064 - dialog
1065 - sampled_generations
1066 type: object
1067 DoraFinetuningConfig:
1068 additionalProperties: false
1069 properties:
1070 alpha:
1071 type: integer
1072 apply_lora_to_mlp:
1073 type: boolean
1074 apply_lora_to_output:
1075 type: boolean
1076 lora_attn_modules:
1077 items:
1078 type: string
1079 type: array
1080 rank:
1081 type: integer
1082 required:
1083 - lora_attn_modules
1084 - apply_lora_to_mlp
1085 - apply_lora_to_output
1086 - rank
1087 - alpha
1088 type: object
1089 DropMemoryBankRequest:
1090 additionalProperties: false
1091 properties:
1092 bank_id:
1093 type: string
1094 required:
1095 - bank_id
1096 type: object
1097 EmbeddingsRequest:
1098 additionalProperties: false
1099 properties:
1100 contents:
1101 items:
1102 oneOf:
1103 - type: string
1104 - items:
1105 type: string
1106 type: array
1107 type: array
1108 model:
1109 type: string
1110 required:
1111 - model
1112 - contents
1113 type: object
1114 EmbeddingsResponse:
1115 additionalProperties: false
1116 properties:
1117 embeddings:
1118 items:
1119 items:
1120 type: number
1121 type: array
1122 type: array
1123 required:
1124 - embeddings
1125 type: object
1126 EvaluateQuestionAnsweringRequest:
1127 additionalProperties: false
1128 properties:
1129 checkpoint:
1130 $ref: '#/components/schemas/Checkpoint'
1131 dataset:
1132 $ref: '#/components/schemas/TrainEvalDataset'
1133 job_uuid:
1134 type: string
1135 metrics:
1136 items:
1137 enum:
1138 - em
1139 - f1
1140 type: string
1141 type: array
1142 sampling_params:
1143 $ref: '#/components/schemas/SamplingParams'
1144 required:
1145 - job_uuid
1146 - dataset
1147 - checkpoint
1148 - sampling_params
1149 - metrics
1150 title: Request to evaluate question answering.
1151 type: object
1152 EvaluateQuestionAnsweringRequestWrapper:
1153 additionalProperties: false
1154 properties:
1155 request:
1156 $ref: '#/components/schemas/EvaluateQuestionAnsweringRequest'
1157 required:
1158 - request
1159 type: object
1160 EvaluateSummarizationRequest:
1161 additionalProperties: false
1162 properties:
1163 checkpoint:
1164 $ref: '#/components/schemas/Checkpoint'
1165 dataset:
1166 $ref: '#/components/schemas/TrainEvalDataset'
1167 job_uuid:
1168 type: string
1169 metrics:
1170 items:
1171 enum:
1172 - rouge
1173 - bleu
1174 type: string
1175 type: array
1176 sampling_params:
1177 $ref: '#/components/schemas/SamplingParams'
1178 required:
1179 - job_uuid
1180 - dataset
1181 - checkpoint
1182 - sampling_params
1183 - metrics
1184 title: Request to evaluate summarization.
1185 type: object
1186 EvaluateSummarizationRequestWrapper:
1187 additionalProperties: false
1188 properties:
1189 request:
1190 $ref: '#/components/schemas/EvaluateSummarizationRequest'
1191 required:
1192 - request
1193 type: object
1194 EvaluateTextGenerationRequest:
1195 additionalProperties: false
1196 properties:
1197 checkpoint:
1198 $ref: '#/components/schemas/Checkpoint'
1199 dataset:
1200 $ref: '#/components/schemas/TrainEvalDataset'
1201 job_uuid:
1202 type: string
1203 metrics:
1204 items:
1205 enum:
1206 - perplexity
1207 - rouge
1208 - bleu
1209 type: string
1210 type: array
1211 sampling_params:
1212 $ref: '#/components/schemas/SamplingParams'
1213 required:
1214 - job_uuid
1215 - dataset
1216 - checkpoint
1217 - sampling_params
1218 - metrics
1219 title: Request to evaluate text generation.
1220 type: object
1221 EvaluateTextGenerationRequestWrapper:
1222 additionalProperties: false
1223 properties:
1224 request:
1225 $ref: '#/components/schemas/EvaluateTextGenerationRequest'
1226 required:
1227 - request
1228 type: object
1229 EvaluationJob:
1230 additionalProperties: false
1231 properties:
1232 job_uuid:
1233 type: string
1234 required:
1235 - job_uuid
1236 type: object
1237 EvaluationJobArtifactsResponse:
1238 additionalProperties: false
1239 properties:
1240 job_uuid:
1241 type: string
1242 required:
1243 - job_uuid
1244 title: Artifacts of a evaluation job.
1245 type: object
1246 EvaluationJobLogStream:
1247 additionalProperties: false
1248 properties:
1249 job_uuid:
1250 type: string
1251 required:
1252 - job_uuid
1253 type: object
1254 EvaluationJobStatusResponse:
1255 additionalProperties: false
1256 properties:
1257 job_uuid:
1258 type: string
1259 required:
1260 - job_uuid
1261 type: object
1262 Experiment:
1263 additionalProperties: false
1264 properties:
1265 created_at:
1266 format: date-time
1267 type: string
1268 id:
1269 type: string
1270 metadata:
1271 additionalProperties:
1272 oneOf:
1273 - type: 'null'
1274 - type: boolean
1275 - type: number
1276 - type: string
1277 - type: array
1278 - type: object
1279 type: object
1280 name:
1281 type: string
1282 status:
1283 $ref: '#/components/schemas/ExperimentStatus'
1284 updated_at:
1285 format: date-time
1286 type: string
1287 required:
1288 - id
1289 - name
1290 - status
1291 - created_at
1292 - updated_at
1293 - metadata
1294 type: object
1295 ExperimentStatus:
1296 enum:
1297 - not_started
1298 - running
1299 - completed
1300 - failed
1301 type: string
1302 FinetuningAlgorithm:
1303 enum:
1304 - full
1305 - lora
1306 - qlora
1307 - dora
1308 type: string
1309 FunctionCallToolDefinition:
1310 additionalProperties: false
1311 properties:
1312 description:
1313 type: string
1314 function_name:
1315 type: string
1316 input_shields:
1317 items:
1318 $ref: '#/components/schemas/ShieldDefinition'
1319 type: array
1320 output_shields:
1321 items:
1322 $ref: '#/components/schemas/ShieldDefinition'
1323 type: array
1324 parameters:
1325 additionalProperties:
1326 $ref: '#/components/schemas/ToolParamDefinition'
1327 type: object
1328 remote_execution:
1329 $ref: '#/components/schemas/RestAPIExecutionConfig'
1330 type:
1331 const: function_call
1332 type: string
1333 required:
1334 - type
1335 - function_name
1336 - description
1337 - parameters
1338 type: object
1339 GetAgenticSystemSessionRequest:
1340 additionalProperties: false
1341 properties:
1342 turn_ids:
1343 items:
1344 type: string
1345 type: array
1346 type: object
1347 GetDocumentsRequest:
1348 additionalProperties: false
1349 properties:
1350 document_ids:
1351 items:
1352 type: string
1353 type: array
1354 required:
1355 - document_ids
1356 type: object
1357 InferenceStep:
1358 additionalProperties: false
1359 properties:
1360 completed_at:
1361 format: date-time
1362 type: string
1363 model_response:
1364 $ref: '#/components/schemas/CompletionMessage'
1365 started_at:
1366 format: date-time
1367 type: string
1368 step_id:
1369 type: string
1370 step_type:
1371 const: inference
1372 type: string
1373 turn_id:
1374 type: string
1375 required:
1376 - turn_id
1377 - step_id
1378 - step_type
1379 - model_response
1380 type: object
1381 InsertDocumentsRequest:
1382 additionalProperties: false
1383 properties:
1384 bank_id:
1385 type: string
1386 documents:
1387 items:
1388 $ref: '#/components/schemas/MemoryBankDocument'
1389 type: array
1390 ttl_seconds:
1391 type: integer
1392 required:
1393 - bank_id
1394 - documents
1395 type: object
1396 ListArtifactsRequest:
1397 additionalProperties: false
1398 properties:
1399 experiment_id:
1400 type: string
1401 required:
1402 - experiment_id
1403 type: object
1404 Log:
1405 additionalProperties: false
1406 properties:
1407 additional_info:
1408 additionalProperties:
1409 oneOf:
1410 - type: 'null'
1411 - type: boolean
1412 - type: number
1413 - type: string
1414 - type: array
1415 - type: object
1416 type: object
1417 level:
1418 type: string
1419 message:
1420 type: string
1421 timestamp:
1422 format: date-time
1423 type: string
1424 required:
1425 - message
1426 - level
1427 - timestamp
1428 - additional_info
1429 type: object
1430 LogMessagesRequest:
1431 additionalProperties: false
1432 properties:
1433 logs:
1434 items:
1435 $ref: '#/components/schemas/Log'
1436 type: array
1437 run_id:
1438 type: string
1439 required:
1440 - logs
1441 type: object
1442 LogMessagesRequestWrapper:
1443 additionalProperties: false
1444 properties:
1445 request:
1446 $ref: '#/components/schemas/LogMessagesRequest'
1447 required:
1448 - request
1449 type: object
1450 LogMetricsRequest:
1451 additionalProperties: false
1452 properties:
1453 metrics:
1454 items:
1455 $ref: '#/components/schemas/Metric'
1456 type: array
1457 run_id:
1458 type: string
1459 required:
1460 - run_id
1461 - metrics
1462 type: object
1463 LogMetricsRequestWrapper:
1464 additionalProperties: false
1465 properties:
1466 request:
1467 $ref: '#/components/schemas/LogMetricsRequest'
1468 required:
1469 - request
1470 type: object
1471 LogSearchRequest:
1472 additionalProperties: false
1473 properties:
1474 filters:
1475 additionalProperties:
1476 oneOf:
1477 - type: 'null'
1478 - type: boolean
1479 - type: number
1480 - type: string
1481 - type: array
1482 - type: object
1483 type: object
1484 query:
1485 type: string
1486 required:
1487 - query
1488 type: object
1489 LogSearchRequestWrapper:
1490 additionalProperties: false
1491 properties:
1492 request:
1493 $ref: '#/components/schemas/LogSearchRequest'
1494 required:
1495 - request
1496 type: object
1497 LoraFinetuningConfig:
1498 additionalProperties: false
1499 properties:
1500 alpha:
1501 type: integer
1502 apply_lora_to_mlp:
1503 type: boolean
1504 apply_lora_to_output:
1505 type: boolean
1506 lora_attn_modules:
1507 items:
1508 type: string
1509 type: array
1510 rank:
1511 type: integer
1512 required:
1513 - lora_attn_modules
1514 - apply_lora_to_mlp
1515 - apply_lora_to_output
1516 - rank
1517 - alpha
1518 type: object
1519 MemoryBank:
1520 additionalProperties: false
1521 properties:
1522 bank_id:
1523 type: string
1524 config:
1525 oneOf:
1526 - additionalProperties: false
1527 properties:
1528 chunk_size_in_tokens:
1529 type: integer
1530 embedding_model:
1531 type: string
1532 overlap_size_in_tokens:
1533 type: integer
1534 type:
1535 const: vector
1536 type: string
1537 required:
1538 - type
1539 - embedding_model
1540 - chunk_size_in_tokens
1541 type: object
1542 - additionalProperties: false
1543 properties:
1544 type:
1545 const: keyvalue
1546 type: string
1547 required:
1548 - type
1549 type: object
1550 - additionalProperties: false
1551 properties:
1552 type:
1553 const: keyword
1554 type: string
1555 required:
1556 - type
1557 type: object
1558 - additionalProperties: false
1559 properties:
1560 type:
1561 const: graph
1562 type: string
1563 required:
1564 - type
1565 type: object
1566 name:
1567 type: string
1568 url:
1569 $ref: '#/components/schemas/URL'
1570 required:
1571 - bank_id
1572 - name
1573 - config
1574 type: object
1575 MemoryBankDocument:
1576 additionalProperties: false
1577 properties:
1578 content:
1579 oneOf:
1580 - type: string
1581 - items:
1582 type: string
1583 type: array
1584 - $ref: '#/components/schemas/URL'
1585 document_id:
1586 type: string
1587 metadata:
1588 additionalProperties:
1589 oneOf:
1590 - type: 'null'
1591 - type: boolean
1592 - type: number
1593 - type: string
1594 - type: array
1595 - type: object
1596 type: object
1597 mime_type:
1598 type: string
1599 required:
1600 - document_id
1601 - content
1602 - mime_type
1603 - metadata
1604 type: object
1605 MemoryRetrievalStep:
1606 additionalProperties: false
1607 properties:
1608 completed_at:
1609 format: date-time
1610 type: string
1611 inserted_context:
1612 oneOf:
1613 - type: string
1614 - items:
1615 type: string
1616 type: array
1617 memory_bank_ids:
1618 items:
1619 type: string
1620 type: array
1621 started_at:
1622 format: date-time
1623 type: string
1624 step_id:
1625 type: string
1626 step_type:
1627 const: memory_retrieval
1628 type: string
1629 turn_id:
1630 type: string
1631 required:
1632 - turn_id
1633 - step_id
1634 - step_type
1635 - memory_bank_ids
1636 - inserted_context
1637 type: object
1638 Metric:
1639 additionalProperties: false
1640 properties:
1641 name:
1642 type: string
1643 run_id:
1644 type: string
1645 timestamp:
1646 format: date-time
1647 type: string
1648 value:
1649 oneOf:
1650 - type: number
1651 - type: integer
1652 - type: string
1653 - type: boolean
1654 required:
1655 - name
1656 - value
1657 - timestamp
1658 - run_id
1659 type: object
1660 OnViolationAction:
1661 enum:
1662 - 0
1663 - 1
1664 - 2
1665 type: integer
1666 OptimizerConfig:
1667 additionalProperties: false
1668 properties:
1669 lr:
1670 type: number
1671 lr_min:
1672 type: number
1673 optimizer_type:
1674 enum:
1675 - adam
1676 - adamw
1677 - sgd
1678 type: string
1679 weight_decay:
1680 type: number
1681 required:
1682 - optimizer_type
1683 - lr
1684 - lr_min
1685 - weight_decay
1686 type: object
1687 PhotogenToolDefinition:
1688 additionalProperties: false
1689 properties:
1690 input_shields:
1691 items:
1692 $ref: '#/components/schemas/ShieldDefinition'
1693 type: array
1694 output_shields:
1695 items:
1696 $ref: '#/components/schemas/ShieldDefinition'
1697 type: array
1698 remote_execution:
1699 $ref: '#/components/schemas/RestAPIExecutionConfig'
1700 type:
1701 const: photogen
1702 type: string
1703 required:
1704 - type
1705 type: object
1706 PostTrainingJob:
1707 additionalProperties: false
1708 properties:
1709 job_uuid:
1710 type: string
1711 required:
1712 - job_uuid
1713 type: object
1714 PostTrainingJobArtifactsResponse:
1715 additionalProperties: false
1716 properties:
1717 checkpoints:
1718 items:
1719 $ref: '#/components/schemas/Checkpoint'
1720 type: array
1721 job_uuid:
1722 type: string
1723 required:
1724 - job_uuid
1725 - checkpoints
1726 title: Artifacts of a finetuning job.
1727 type: object
1728 PostTrainingJobLogStream:
1729 additionalProperties: false
1730 properties:
1731 job_uuid:
1732 type: string
1733 log_lines:
1734 items:
1735 type: string
1736 type: array
1737 required:
1738 - job_uuid
1739 - log_lines
1740 title: Stream of logs from a finetuning job.
1741 type: object
1742 PostTrainingJobStatus:
1743 enum:
1744 - running
1745 - completed
1746 - failed
1747 - scheduled
1748 type: string
1749 PostTrainingJobStatusResponse:
1750 additionalProperties: false
1751 properties:
1752 checkpoints:
1753 items:
1754 $ref: '#/components/schemas/Checkpoint'
1755 type: array
1756 completed_at:
1757 format: date-time
1758 type: string
1759 job_uuid:
1760 type: string
1761 resources_allocated:
1762 additionalProperties:
1763 oneOf:
1764 - type: 'null'
1765 - type: boolean
1766 - type: number
1767 - type: string
1768 - type: array
1769 - type: object
1770 type: object
1771 scheduled_at:
1772 format: date-time
1773 type: string
1774 started_at:
1775 format: date-time
1776 type: string
1777 status:
1778 $ref: '#/components/schemas/PostTrainingJobStatus'
1779 required:
1780 - job_uuid
1781 - status
1782 - checkpoints
1783 title: Status of a finetuning job.
1784 type: object
1785 PostTrainingRLHFRequest:
1786 additionalProperties: false
1787 properties:
1788 algorithm:
1789 $ref: '#/components/schemas/RLHFAlgorithm'
1790 algorithm_config:
1791 $ref: '#/components/schemas/DPOAlignmentConfig'
1792 dataset:
1793 $ref: '#/components/schemas/TrainEvalDataset'
1794 finetuned_model:
1795 $ref: '#/components/schemas/URL'
1796 hyperparam_search_config:
1797 additionalProperties:
1798 oneOf:
1799 - type: 'null'
1800 - type: boolean
1801 - type: number
1802 - type: string
1803 - type: array
1804 - type: object
1805 type: object
1806 job_uuid:
1807 type: string
1808 logger_config:
1809 additionalProperties:
1810 oneOf:
1811 - type: 'null'
1812 - type: boolean
1813 - type: number
1814 - type: string
1815 - type: array
1816 - type: object
1817 type: object
1818 optimizer_config:
1819 $ref: '#/components/schemas/OptimizerConfig'
1820 training_config:
1821 $ref: '#/components/schemas/TrainingConfig'
1822 validation_dataset:
1823 $ref: '#/components/schemas/TrainEvalDataset'
1824 required:
1825 - job_uuid
1826 - finetuned_model
1827 - dataset
1828 - validation_dataset
1829 - algorithm
1830 - algorithm_config
1831 - optimizer_config
1832 - training_config
1833 - hyperparam_search_config
1834 - logger_config
1835 title: Request to finetune a model.
1836 type: object
1837 PostTrainingRLHFRequestWrapper:
1838 additionalProperties: false
1839 properties:
1840 request:
1841 $ref: '#/components/schemas/PostTrainingRLHFRequest'
1842 required:
1843 - request
1844 type: object
1845 PostTrainingSFTRequest:
1846 additionalProperties: false
1847 properties:
1848 algorithm:
1849 $ref: '#/components/schemas/FinetuningAlgorithm'
1850 algorithm_config:
1851 oneOf:
1852 - $ref: '#/components/schemas/LoraFinetuningConfig'
1853 - $ref: '#/components/schemas/QLoraFinetuningConfig'
1854 - $ref: '#/components/schemas/DoraFinetuningConfig'
1855 dataset:
1856 $ref: '#/components/schemas/TrainEvalDataset'
1857 hyperparam_search_config:
1858 additionalProperties:
1859 oneOf:
1860 - type: 'null'
1861 - type: boolean
1862 - type: number
1863 - type: string
1864 - type: array
1865 - type: object
1866 type: object
1867 job_uuid:
1868 type: string
1869 logger_config:
1870 additionalProperties:
1871 oneOf:
1872 - type: 'null'
1873 - type: boolean
1874 - type: number
1875 - type: string
1876 - type: array
1877 - type: object
1878 type: object
1879 model:
1880 type: string
1881 optimizer_config:
1882 $ref: '#/components/schemas/OptimizerConfig'
1883 training_config:
1884 $ref: '#/components/schemas/TrainingConfig'
1885 validation_dataset:
1886 $ref: '#/components/schemas/TrainEvalDataset'
1887 required:
1888 - job_uuid
1889 - model
1890 - dataset
1891 - validation_dataset
1892 - algorithm
1893 - algorithm_config
1894 - optimizer_config
1895 - training_config
1896 - hyperparam_search_config
1897 - logger_config
1898 title: Request to finetune a model.
1899 type: object
1900 PostTrainingSFTRequestWrapper:
1901 additionalProperties: false
1902 properties:
1903 request:
1904 $ref: '#/components/schemas/PostTrainingSFTRequest'
1905 required:
1906 - request
1907 type: object
1908 QLoraFinetuningConfig:
1909 additionalProperties: false
1910 properties:
1911 alpha:
1912 type: integer
1913 apply_lora_to_mlp:
1914 type: boolean
1915 apply_lora_to_output:
1916 type: boolean
1917 lora_attn_modules:
1918 items:
1919 type: string
1920 type: array
1921 rank:
1922 type: integer
1923 required:
1924 - lora_attn_modules
1925 - apply_lora_to_mlp
1926 - apply_lora_to_output
1927 - rank
1928 - alpha
1929 type: object
1930 QueryDocumentsRequest:
1931 additionalProperties: false
1932 properties:
1933 bank_id:
1934 type: string
1935 params:
1936 additionalProperties:
1937 oneOf:
1938 - type: 'null'
1939 - type: boolean
1940 - type: number
1941 - type: string
1942 - type: array
1943 - type: object
1944 type: object
1945 query:
1946 oneOf:
1947 - type: string
1948 - items:
1949 type: string
1950 type: array
1951 required:
1952 - bank_id
1953 - query
1954 type: object
1955 QueryDocumentsResponse:
1956 additionalProperties: false
1957 properties:
1958 chunks:
1959 items:
1960 additionalProperties: false
1961 properties:
1962 content:
1963 oneOf:
1964 - type: string
1965 - items:
1966 type: string
1967 type: array
1968 document_id:
1969 type: string
1970 token_count:
1971 type: integer
1972 required:
1973 - content
1974 - token_count
1975 - document_id
1976 type: object
1977 type: array
1978 scores:
1979 items:
1980 type: number
1981 type: array
1982 required:
1983 - chunks
1984 - scores
1985 type: object
1986 RLHFAlgorithm:
1987 enum:
1988 - dpo
1989 type: string
1990 RestAPIExecutionConfig:
1991 additionalProperties: false
1992 properties:
1993 body:
1994 additionalProperties:
1995 oneOf:
1996 - type: 'null'
1997 - type: boolean
1998 - type: number
1999 - type: string
2000 - type: array
2001 - type: object
2002 type: object
2003 headers:
2004 additionalProperties:
2005 oneOf:
2006 - type: 'null'
2007 - type: boolean
2008 - type: number
2009 - type: string
2010 - type: array
2011 - type: object
2012 type: object
2013 method:
2014 $ref: '#/components/schemas/RestAPIMethod'
2015 params:
2016 additionalProperties:
2017 oneOf:
2018 - type: 'null'
2019 - type: boolean
2020 - type: number
2021 - type: string
2022 - type: array
2023 - type: object
2024 type: object
2025 url:
2026 $ref: '#/components/schemas/URL'
2027 required:
2028 - url
2029 - method
2030 type: object
2031 RestAPIMethod:
2032 enum:
2033 - GET
2034 - POST
2035 - PUT
2036 - DELETE
2037 type: string
2038 RewardScoringRequest:
2039 additionalProperties: false
2040 properties:
2041 dialog_generations:
2042 items:
2043 $ref: '#/components/schemas/DialogGenerations'
2044 type: array
2045 model:
2046 type: string
2047 required:
2048 - dialog_generations
2049 - model
2050 title: Request to score a reward function. A list of prompts and a list of responses
2051 per prompt.
2052 type: object
2053 RewardScoringRequestWrapper:
2054 additionalProperties: false
2055 properties:
2056 request:
2057 $ref: '#/components/schemas/RewardScoringRequest'
2058 required:
2059 - request
2060 type: object
2061 RewardScoringResponse:
2062 additionalProperties: false
2063 properties:
2064 scored_generations:
2065 items:
2066 $ref: '#/components/schemas/ScoredDialogGenerations'
2067 type: array
2068 required:
2069 - scored_generations
2070 title: Response from the reward scoring. Batch of (prompt, response, score)
2071 tuples that pass the threshold.
2072 type: object
2073 Run:
2074 additionalProperties: false
2075 properties:
2076 ended_at:
2077 format: date-time
2078 type: string
2079 experiment_id:
2080 type: string
2081 id:
2082 type: string
2083 metadata:
2084 additionalProperties:
2085 oneOf:
2086 - type: 'null'
2087 - type: boolean
2088 - type: number
2089 - type: string
2090 - type: array
2091 - type: object
2092 type: object
2093 started_at:
2094 format: date-time
2095 type: string
2096 status:
2097 type: string
2098 required:
2099 - id
2100 - experiment_id
2101 - status
2102 - started_at
2103 - metadata
2104 type: object
2105 RunShieldRequest:
2106 additionalProperties: false
2107 properties:
2108 messages:
2109 items:
2110 oneOf:
2111 - $ref: '#/components/schemas/UserMessage'
2112 - $ref: '#/components/schemas/SystemMessage'
2113 - $ref: '#/components/schemas/ToolResponseMessage'
2114 - $ref: '#/components/schemas/CompletionMessage'
2115 type: array
2116 shields:
2117 items:
2118 $ref: '#/components/schemas/ShieldDefinition'
2119 type: array
2120 required:
2121 - messages
2122 - shields
2123 type: object
2124 RunShieldRequestWrapper:
2125 additionalProperties: false
2126 properties:
2127 request:
2128 $ref: '#/components/schemas/RunShieldRequest'
2129 required:
2130 - request
2131 type: object
2132 RunShieldResponse:
2133 additionalProperties: false
2134 properties:
2135 responses:
2136 items:
2137 $ref: '#/components/schemas/ShieldResponse'
2138 type: array
2139 required:
2140 - responses
2141 type: object
2142 SamplingParams:
2143 additionalProperties: false
2144 properties:
2145 max_tokens:
2146 type: integer
2147 repetition_penalty:
2148 type: number
2149 strategy:
2150 $ref: '#/components/schemas/SamplingStrategy'
2151 temperature:
2152 type: number
2153 top_k:
2154 type: integer
2155 top_p:
2156 type: number
2157 required:
2158 - strategy
2159 type: object
2160 SamplingStrategy:
2161 enum:
2162 - greedy
2163 - top_p
2164 - top_k
2165 type: string
2166 ScoredDialogGenerations:
2167 additionalProperties: false
2168 properties:
2169 dialog:
2170 items:
2171 oneOf:
2172 - $ref: '#/components/schemas/UserMessage'
2173 - $ref: '#/components/schemas/SystemMessage'
2174 - $ref: '#/components/schemas/ToolResponseMessage'
2175 - $ref: '#/components/schemas/CompletionMessage'
2176 type: array
2177 scored_generations:
2178 items:
2179 $ref: '#/components/schemas/ScoredMessage'
2180 type: array
2181 required:
2182 - dialog
2183 - scored_generations
2184 type: object
2185 ScoredMessage:
2186 additionalProperties: false
2187 properties:
2188 message:
2189 oneOf:
2190 - $ref: '#/components/schemas/UserMessage'
2191 - $ref: '#/components/schemas/SystemMessage'
2192 - $ref: '#/components/schemas/ToolResponseMessage'
2193 - $ref: '#/components/schemas/CompletionMessage'
2194 score:
2195 type: number
2196 required:
2197 - message
2198 - score
2199 type: object
2200 SearchToolDefinition:
2201 additionalProperties: false
2202 properties:
2203 engine:
2204 enum:
2205 - bing
2206 - brave
2207 type: string
2208 input_shields:
2209 items:
2210 $ref: '#/components/schemas/ShieldDefinition'
2211 type: array
2212 output_shields:
2213 items:
2214 $ref: '#/components/schemas/ShieldDefinition'
2215 type: array
2216 remote_execution:
2217 $ref: '#/components/schemas/RestAPIExecutionConfig'
2218 type:
2219 const: brave_search
2220 type: string
2221 required:
2222 - type
2223 - engine
2224 type: object
2225 Session:
2226 additionalProperties: false
2227 properties:
2228 memory_bank:
2229 $ref: '#/components/schemas/MemoryBank'
2230 session_id:
2231 type: string
2232 session_name:
2233 type: string
2234 started_at:
2235 format: date-time
2236 type: string
2237 turns:
2238 items:
2239 $ref: '#/components/schemas/Turn'
2240 type: array
2241 required:
2242 - session_id
2243 - session_name
2244 - turns
2245 - started_at
2246 title: A single session of an interaction with an Agentic System.
2247 type: object
2248 ShieldCallStep:
2249 additionalProperties: false
2250 properties:
2251 completed_at:
2252 format: date-time
2253 type: string
2254 response:
2255 $ref: '#/components/schemas/ShieldResponse'
2256 started_at:
2257 format: date-time
2258 type: string
2259 step_id:
2260 type: string
2261 step_type:
2262 const: shield_call
2263 type: string
2264 turn_id:
2265 type: string
2266 required:
2267 - turn_id
2268 - step_id
2269 - step_type
2270 - response
2271 type: object
2272 ShieldDefinition:
2273 additionalProperties: false
2274 properties:
2275 description:
2276 type: string
2277 execution_config:
2278 $ref: '#/components/schemas/RestAPIExecutionConfig'
2279 on_violation_action:
2280 $ref: '#/components/schemas/OnViolationAction'
2281 parameters:
2282 additionalProperties:
2283 $ref: '#/components/schemas/ToolParamDefinition'
2284 type: object
2285 shield_type:
2286 oneOf:
2287 - $ref: '#/components/schemas/BuiltinShield'
2288 - type: string
2289 required:
2290 - shield_type
2291 - on_violation_action
2292 type: object
2293 ShieldResponse:
2294 additionalProperties: false
2295 properties:
2296 is_violation:
2297 type: boolean
2298 shield_type:
2299 oneOf:
2300 - $ref: '#/components/schemas/BuiltinShield'
2301 - type: string
2302 violation_return_message:
2303 type: string
2304 violation_type:
2305 type: string
2306 required:
2307 - shield_type
2308 - is_violation
2309 type: object
2310 StopReason:
2311 enum:
2312 - end_of_turn
2313 - end_of_message
2314 - out_of_tokens
2315 type: string
2316 SyntheticDataGenerationRequest:
2317 additionalProperties: false
2318 properties:
2319 dialogs:
2320 items:
2321 oneOf:
2322 - $ref: '#/components/schemas/UserMessage'
2323 - $ref: '#/components/schemas/SystemMessage'
2324 - $ref: '#/components/schemas/ToolResponseMessage'
2325 - $ref: '#/components/schemas/CompletionMessage'
2326 type: array
2327 filtering_function:
2328 enum:
2329 - none
2330 - random
2331 - top_k
2332 - top_p
2333 - top_k_top_p
2334 - sigmoid
2335 title: The type of filtering function.
2336 type: string
2337 model:
2338 type: string
2339 required:
2340 - dialogs
2341 - filtering_function
2342 title: Request to generate synthetic data. A small batch of prompts and a filtering
2343 function
2344 type: object
2345 SyntheticDataGenerationRequestWrapper:
2346 additionalProperties: false
2347 properties:
2348 request:
2349 $ref: '#/components/schemas/SyntheticDataGenerationRequest'
2350 required:
2351 - request
2352 type: object
2353 SyntheticDataGenerationResponse:
2354 additionalProperties: false
2355 properties:
2356 statistics:
2357 additionalProperties:
2358 oneOf:
2359 - type: 'null'
2360 - type: boolean
2361 - type: number
2362 - type: string
2363 - type: array
2364 - type: object
2365 type: object
2366 synthetic_data:
2367 items:
2368 $ref: '#/components/schemas/ScoredDialogGenerations'
2369 type: array
2370 required:
2371 - synthetic_data
2372 title: Response from the synthetic data generation. Batch of (prompt, response,
2373 score) tuples that pass the threshold.
2374 type: object
2375 SystemMessage:
2376 additionalProperties: false
2377 properties:
2378 content:
2379 oneOf:
2380 - type: string
2381 - items:
2382 type: string
2383 type: array
2384 role:
2385 const: system
2386 type: string
2387 required:
2388 - role
2389 - content
2390 type: object
2391 TokenLogProbs:
2392 additionalProperties: false
2393 properties:
2394 logprobs_by_token:
2395 additionalProperties:
2396 type: number
2397 type: object
2398 required:
2399 - logprobs_by_token
2400 type: object
2401 ToolCall:
2402 additionalProperties: false
2403 properties:
2404 arguments:
2405 additionalProperties:
2406 oneOf:
2407 - type: string
2408 - type: integer
2409 - type: number
2410 - type: boolean
2411 - type: 'null'
2412 - items:
2413 oneOf:
2414 - type: string
2415 - type: integer
2416 - type: number
2417 - type: boolean
2418 - type: 'null'
2419 type: array
2420 - additionalProperties:
2421 oneOf:
2422 - type: string
2423 - type: integer
2424 - type: number
2425 - type: boolean
2426 - type: 'null'
2427 type: object
2428 type: object
2429 call_id:
2430 type: string
2431 tool_name:
2432 oneOf:
2433 - $ref: '#/components/schemas/BuiltinTool'
2434 - type: string
2435 required:
2436 - call_id
2437 - tool_name
2438 - arguments
2439 type: object
2440 ToolCallDelta:
2441 additionalProperties: false
2442 properties:
2443 content:
2444 oneOf:
2445 - type: string
2446 - $ref: '#/components/schemas/ToolCall'
2447 parse_status:
2448 $ref: '#/components/schemas/ToolCallParseStatus'
2449 required:
2450 - content
2451 - parse_status
2452 type: object
2453 ToolCallParseStatus:
2454 enum:
2455 - started
2456 - in_progress
2457 - failure
2458 - success
2459 type: string
2460 ToolChoice:
2461 enum:
2462 - auto
2463 - required
2464 type: string
2465 ToolDefinition:
2466 additionalProperties: false
2467 properties:
2468 description:
2469 type: string
2470 parameters:
2471 additionalProperties:
2472 $ref: '#/components/schemas/ToolParamDefinition'
2473 type: object
2474 tool_name:
2475 oneOf:
2476 - $ref: '#/components/schemas/BuiltinTool'
2477 - type: string
2478 required:
2479 - tool_name
2480 type: object
2481 ToolExecutionStep:
2482 additionalProperties: false
2483 properties:
2484 completed_at:
2485 format: date-time
2486 type: string
2487 started_at:
2488 format: date-time
2489 type: string
2490 step_id:
2491 type: string
2492 step_type:
2493 const: tool_execution
2494 type: string
2495 tool_calls:
2496 items:
2497 $ref: '#/components/schemas/ToolCall'
2498 type: array
2499 tool_responses:
2500 items:
2501 $ref: '#/components/schemas/ToolResponse'
2502 type: array
2503 turn_id:
2504 type: string
2505 required:
2506 - turn_id
2507 - step_id
2508 - step_type
2509 - tool_calls
2510 - tool_responses
2511 type: object
2512 ToolParamDefinition:
2513 additionalProperties: false
2514 properties:
2515 description:
2516 type: string
2517 param_type:
2518 type: string
2519 required:
2520 type: boolean
2521 required:
2522 - param_type
2523 type: object
2524 ToolPromptFormat:
2525 description: "`json` --\n Refers to the json format for calling tools.\n\
2526 \ The json format takes the form like\n {\n \"type\": \"function\"\
2527 ,\n \"function\" : {\n \"name\": \"function_name\",\n \
2528 \ \"description\": \"function_description\",\n \"parameters\"\
2529 : {...}\n }\n }\n\n`function_tag` --\n This is an example of\
2530 \ how you could define\n your own user defined format for making tool calls.\n\
2531 \ The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\
2532 \nThe detailed prompts for each of these formats are added to llama cli"
2533 enum:
2534 - json
2535 - function_tag
2536 title: This Enum refers to the prompt format for calling custom / zero shot
2537 tools
2538 type: string
2539 ToolResponse:
2540 additionalProperties: false
2541 properties:
2542 call_id:
2543 type: string
2544 content:
2545 oneOf:
2546 - type: string
2547 - items:
2548 type: string
2549 type: array
2550 tool_name:
2551 oneOf:
2552 - $ref: '#/components/schemas/BuiltinTool'
2553 - type: string
2554 required:
2555 - call_id
2556 - tool_name
2557 - content
2558 type: object
2559 ToolResponseMessage:
2560 additionalProperties: false
2561 properties:
2562 call_id:
2563 type: string
2564 content:
2565 oneOf:
2566 - type: string
2567 - items:
2568 type: string
2569 type: array
2570 role:
2571 const: ipython
2572 type: string
2573 tool_name:
2574 oneOf:
2575 - $ref: '#/components/schemas/BuiltinTool'
2576 - type: string
2577 required:
2578 - role
2579 - call_id
2580 - tool_name
2581 - content
2582 type: object
2583 TrainEvalDataset:
2584 additionalProperties: false
2585 properties:
2586 columns:
2587 additionalProperties:
2588 $ref: '#/components/schemas/TrainEvalDatasetColumnType'
2589 type: object
2590 content_url:
2591 $ref: '#/components/schemas/URL'
2592 metadata:
2593 additionalProperties:
2594 oneOf:
2595 - type: 'null'
2596 - type: boolean
2597 - type: number
2598 - type: string
2599 - type: array
2600 - type: object
2601 type: object
2602 required:
2603 - columns
2604 - content_url
2605 title: Dataset to be used for training or evaluating language models.
2606 type: object
2607 TrainEvalDatasetColumnType:
2608 enum:
2609 - dialog
2610 - text
2611 - media
2612 - number
2613 - json
2614 type: string
2615 TrainingConfig:
2616 additionalProperties: false
2617 properties:
2618 batch_size:
2619 type: integer
2620 enable_activation_checkpointing:
2621 type: boolean
2622 fsdp_cpu_offload:
2623 type: boolean
2624 memory_efficient_fsdp_wrap:
2625 type: boolean
2626 n_epochs:
2627 type: integer
2628 n_iters:
2629 type: integer
2630 shuffle:
2631 type: boolean
2632 required:
2633 - n_epochs
2634 - batch_size
2635 - shuffle
2636 - n_iters
2637 - enable_activation_checkpointing
2638 - memory_efficient_fsdp_wrap
2639 - fsdp_cpu_offload
2640 type: object
2641 Turn:
2642 additionalProperties: false
2643 properties:
2644 completed_at:
2645 format: date-time
2646 type: string
2647 input_messages:
2648 items:
2649 oneOf:
2650 - $ref: '#/components/schemas/UserMessage'
2651 - $ref: '#/components/schemas/ToolResponseMessage'
2652 type: array
2653 output_attachments:
2654 items:
2655 $ref: '#/components/schemas/Attachment'
2656 type: array
2657 output_message:
2658 $ref: '#/components/schemas/CompletionMessage'
2659 session_id:
2660 type: string
2661 started_at:
2662 format: date-time
2663 type: string
2664 steps:
2665 items:
2666 oneOf:
2667 - $ref: '#/components/schemas/InferenceStep'
2668 - $ref: '#/components/schemas/ToolExecutionStep'
2669 - $ref: '#/components/schemas/ShieldCallStep'
2670 - $ref: '#/components/schemas/MemoryRetrievalStep'
2671 type: array
2672 turn_id:
2673 type: string
2674 required:
2675 - turn_id
2676 - session_id
2677 - input_messages
2678 - steps
2679 - output_message
2680 - output_attachments
2681 - started_at
2682 title: A single turn in an interaction with an Agentic System.
2683 type: object
2684 URL:
2685 format: uri
2686 pattern: ^(https?://|file://|data:)
2687 type: string
2688 UpdateDocumentsRequest:
2689 additionalProperties: false
2690 properties:
2691 bank_id:
2692 type: string
2693 documents:
2694 items:
2695 $ref: '#/components/schemas/MemoryBankDocument'
2696 type: array
2697 required:
2698 - bank_id
2699 - documents
2700 type: object
2701 UpdateExperimentRequest:
2702 additionalProperties: false
2703 properties:
2704 experiment_id:
2705 type: string
2706 metadata:
2707 additionalProperties:
2708 oneOf:
2709 - type: 'null'
2710 - type: boolean
2711 - type: number
2712 - type: string
2713 - type: array
2714 - type: object
2715 type: object
2716 status:
2717 $ref: '#/components/schemas/ExperimentStatus'
2718 required:
2719 - experiment_id
2720 type: object
2721 UpdateExperimentRequestWrapper:
2722 additionalProperties: false
2723 properties:
2724 request:
2725 $ref: '#/components/schemas/UpdateExperimentRequest'
2726 required:
2727 - request
2728 type: object
2729 UpdateRunRequest:
2730 additionalProperties: false
2731 properties:
2732 ended_at:
2733 format: date-time
2734 type: string
2735 metadata:
2736 additionalProperties:
2737 oneOf:
2738 - type: 'null'
2739 - type: boolean
2740 - type: number
2741 - type: string
2742 - type: array
2743 - type: object
2744 type: object
2745 run_id:
2746 type: string
2747 status:
2748 type: string
2749 required:
2750 - run_id
2751 type: object
2752 UpdateRunRequestWrapper:
2753 additionalProperties: false
2754 properties:
2755 request:
2756 $ref: '#/components/schemas/UpdateRunRequest'
2757 required:
2758 - request
2759 type: object
2760 UploadArtifactRequest:
2761 additionalProperties: false
2762 properties:
2763 artifact_type:
2764 type: string
2765 content:
2766 contentEncoding: base64
2767 type: string
2768 experiment_id:
2769 type: string
2770 metadata:
2771 additionalProperties:
2772 oneOf:
2773 - type: 'null'
2774 - type: boolean
2775 - type: number
2776 - type: string
2777 - type: array
2778 - type: object
2779 type: object
2780 name:
2781 type: string
2782 required:
2783 - experiment_id
2784 - name
2785 - artifact_type
2786 - content
2787 type: object
2788 UploadArtifactRequestWrapper:
2789 additionalProperties: false
2790 properties:
2791 request:
2792 $ref: '#/components/schemas/UploadArtifactRequest'
2793 required:
2794 - request
2795 type: object
2796 UserMessage:
2797 additionalProperties: false
2798 properties:
2799 content:
2800 oneOf:
2801 - type: string
2802 - items:
2803 type: string
2804 type: array
2805 context:
2806 oneOf:
2807 - type: string
2808 - items:
2809 type: string
2810 type: array
2811 role:
2812 const: user
2813 type: string
2814 required:
2815 - role
2816 - content
2817 type: object
2818 WolframAlphaToolDefinition:
2819 additionalProperties: false
2820 properties:
2821 input_shields:
2822 items:
2823 $ref: '#/components/schemas/ShieldDefinition'
2824 type: array
2825 output_shields:
2826 items:
2827 $ref: '#/components/schemas/ShieldDefinition'
2828 type: array
2829 remote_execution:
2830 $ref: '#/components/schemas/RestAPIExecutionConfig'
2831 type:
2832 const: wolfram_alpha
2833 type: string
2834 required:
2835 - type
2836 type: object
2837info:
2838 description: "This is the specification of the llama stack that provides\n \
2839 \ a set of endpoints and their corresponding interfaces that are tailored\
2840 \ to\n best leverage Llama Models. The specification is still in\
2841 \ draft and subject to change.\n Generated at 2024-09-10 16:42:15.870336"
2842 title: '[DRAFT] Llama Stack Specification'
2843 version: 0.0.1
2844jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
2845openapi: 3.1.0
2846paths:
2847 /agentic_system/create:
2848 post:
2849 parameters: []
2850 requestBody:
2851 content:
2852 application/json:
2853 schema:
2854 $ref: '#/components/schemas/CreateAgenticSystemRequest'
2855 required: true
2856 responses:
2857 '200':
2858 content:
2859 application/json:
2860 schema:
2861 $ref: '#/components/schemas/AgenticSystemCreateResponse'
2862 description: OK
2863 tags:
2864 - AgenticSystem
2865 /agentic_system/delete:
2866 post:
2867 parameters: []
2868 requestBody:
2869 content:
2870 application/json:
2871 schema:
2872 $ref: '#/components/schemas/DeleteAgenticSystemRequest'
2873 required: true
2874 responses:
2875 '200':
2876 description: OK
2877 tags:
2878 - AgenticSystem
2879 /agentic_system/session/create:
2880 post:
2881 parameters: []
2882 requestBody:
2883 content:
2884 application/json:
2885 schema:
2886 $ref: '#/components/schemas/CreateAgenticSystemSessionRequest'
2887 required: true
2888 responses:
2889 '200':
2890 content:
2891 application/json:
2892 schema:
2893 $ref: '#/components/schemas/AgenticSystemSessionCreateResponse'
2894 description: OK
2895 tags:
2896 - AgenticSystem
2897 /agentic_system/session/delete:
2898 post:
2899 parameters: []
2900 requestBody:
2901 content:
2902 application/json:
2903 schema:
2904 $ref: '#/components/schemas/DeleteAgenticSystemSessionRequest'
2905 required: true
2906 responses:
2907 '200':
2908 description: OK
2909 tags:
2910 - AgenticSystem
2911 /agentic_system/session/get:
2912 post:
2913 parameters:
2914 - in: query
2915 name: agent_id
2916 required: true
2917 schema:
2918 type: string
2919 - in: query
2920 name: session_id
2921 required: true
2922 schema:
2923 type: string
2924 requestBody:
2925 content:
2926 application/json:
2927 schema:
2928 $ref: '#/components/schemas/GetAgenticSystemSessionRequest'
2929 required: true
2930 responses:
2931 '200':
2932 content:
2933 application/json:
2934 schema:
2935 $ref: '#/components/schemas/Session'
2936 description: OK
2937 tags:
2938 - AgenticSystem
2939 /agentic_system/step/get:
2940 get:
2941 parameters:
2942 - in: query
2943 name: agent_id
2944 required: true
2945 schema:
2946 type: string
2947 - in: query
2948 name: turn_id
2949 required: true
2950 schema:
2951 type: string
2952 - in: query
2953 name: step_id
2954 required: true
2955 schema:
2956 type: string
2957 responses:
2958 '200':
2959 content:
2960 application/json:
2961 schema:
2962 $ref: '#/components/schemas/AgenticSystemStepResponse'
2963 description: OK
2964 tags:
2965 - AgenticSystem
2966 /agentic_system/turn/create:
2967 post:
2968 parameters: []
2969 requestBody:
2970 content:
2971 application/json:
2972 schema:
2973 $ref: '#/components/schemas/AgenticSystemTurnCreateRequestWrapper'
2974 required: true
2975 responses:
2976 '200':
2977 content:
2978 text/event-stream:
2979 schema:
2980 $ref: '#/components/schemas/AgenticSystemTurnResponseStreamChunk'
2981 description: OK
2982 tags:
2983 - AgenticSystem
2984 /agentic_system/turn/get:
2985 get:
2986 parameters:
2987 - in: query
2988 name: agent_id
2989 required: true
2990 schema:
2991 type: string
2992 - in: query
2993 name: turn_id
2994 required: true
2995 schema:
2996 type: string
2997 responses:
2998 '200':
2999 content:
3000 application/json:
3001 schema:
3002 $ref: '#/components/schemas/Turn'
3003 description: OK
3004 tags:
3005 - AgenticSystem
3006 /artifacts/get:
3007 get:
3008 parameters:
3009 - in: query
3010 name: artifact_id
3011 required: true
3012 schema:
3013 type: string
3014 responses:
3015 '200':
3016 content:
3017 application/json:
3018 schema:
3019 $ref: '#/components/schemas/Artifact'
3020 description: OK
3021 tags:
3022 - Telemetry
3023 /batch_inference/chat_completion:
3024 post:
3025 parameters: []
3026 requestBody:
3027 content:
3028 application/json:
3029 schema:
3030 $ref: '#/components/schemas/BatchChatCompletionRequestWrapper'
3031 required: true
3032 responses:
3033 '200':
3034 content:
3035 application/json:
3036 schema:
3037 $ref: '#/components/schemas/BatchChatCompletionResponse'
3038 description: OK
3039 tags:
3040 - BatchInference
3041 /batch_inference/completion:
3042 post:
3043 parameters: []
3044 requestBody:
3045 content:
3046 application/json:
3047 schema:
3048 $ref: '#/components/schemas/BatchCompletionRequestWrapper'
3049 required: true
3050 responses:
3051 '200':
3052 content:
3053 application/json:
3054 schema:
3055 $ref: '#/components/schemas/BatchCompletionResponse'
3056 description: OK
3057 tags:
3058 - BatchInference
3059 /datasets/create:
3060 post:
3061 parameters: []
3062 requestBody:
3063 content:
3064 application/json:
3065 schema:
3066 $ref: '#/components/schemas/CreateDatasetRequestWrapper'
3067 required: true
3068 responses:
3069 '200':
3070 description: OK
3071 tags:
3072 - Datasets
3073 /datasets/delete:
3074 post:
3075 parameters: []
3076 requestBody:
3077 content:
3078 application/json:
3079 schema:
3080 $ref: '#/components/schemas/DeleteDatasetRequest'
3081 required: true
3082 responses:
3083 '200':
3084 description: OK
3085 tags:
3086 - Datasets
3087 /datasets/get:
3088 get:
3089 parameters:
3090 - in: query
3091 name: dataset_uuid
3092 required: true
3093 schema:
3094 type: string
3095 responses:
3096 '200':
3097 content:
3098 application/json:
3099 schema:
3100 $ref: '#/components/schemas/TrainEvalDataset'
3101 description: OK
3102 tags:
3103 - Datasets
3104 /evaluate/job/artifacts:
3105 get:
3106 parameters:
3107 - in: query
3108 name: job_uuid
3109 required: true
3110 schema:
3111 type: string
3112 responses:
3113 '200':
3114 content:
3115 application/json:
3116 schema:
3117 $ref: '#/components/schemas/EvaluationJobArtifactsResponse'
3118 description: OK
3119 tags:
3120 - Evaluations
3121 /evaluate/job/cancel:
3122 post:
3123 parameters: []
3124 requestBody:
3125 content:
3126 application/json:
3127 schema:
3128 $ref: '#/components/schemas/CancelEvaluationJobRequest'
3129 required: true
3130 responses:
3131 '200':
3132 description: OK
3133 tags:
3134 - Evaluations
3135 /evaluate/job/logs:
3136 get:
3137 parameters:
3138 - in: query
3139 name: job_uuid
3140 required: true
3141 schema:
3142 type: string
3143 responses:
3144 '200':
3145 content:
3146 application/json:
3147 schema:
3148 $ref: '#/components/schemas/EvaluationJobLogStream'
3149 description: OK
3150 tags:
3151 - Evaluations
3152 /evaluate/job/status:
3153 get:
3154 parameters:
3155 - in: query
3156 name: job_uuid
3157 required: true
3158 schema:
3159 type: string
3160 responses:
3161 '200':
3162 content:
3163 application/json:
3164 schema:
3165 $ref: '#/components/schemas/EvaluationJobStatusResponse'
3166 description: OK
3167 tags:
3168 - Evaluations
3169 /evaluate/jobs:
3170 get:
3171 parameters: []
3172 responses:
3173 '200':
3174 content:
3175 application/jsonl:
3176 schema:
3177 $ref: '#/components/schemas/EvaluationJob'
3178 description: OK
3179 tags:
3180 - Evaluations
3181 /evaluate/question_answering/:
3182 post:
3183 parameters: []
3184 requestBody:
3185 content:
3186 application/json:
3187 schema:
3188 $ref: '#/components/schemas/EvaluateQuestionAnsweringRequestWrapper'
3189 required: true
3190 responses:
3191 '200':
3192 content:
3193 application/json:
3194 schema:
3195 $ref: '#/components/schemas/EvaluationJob'
3196 description: OK
3197 tags:
3198 - Evaluations
3199 /evaluate/summarization/:
3200 post:
3201 parameters: []
3202 requestBody:
3203 content:
3204 application/json:
3205 schema:
3206 $ref: '#/components/schemas/EvaluateSummarizationRequestWrapper'
3207 required: true
3208 responses:
3209 '200':
3210 content:
3211 application/json:
3212 schema:
3213 $ref: '#/components/schemas/EvaluationJob'
3214 description: OK
3215 tags:
3216 - Evaluations
3217 /evaluate/text_generation/:
3218 post:
3219 parameters: []
3220 requestBody:
3221 content:
3222 application/json:
3223 schema:
3224 $ref: '#/components/schemas/EvaluateTextGenerationRequestWrapper'
3225 required: true
3226 responses:
3227 '200':
3228 content:
3229 application/json:
3230 schema:
3231 $ref: '#/components/schemas/EvaluationJob'
3232 description: OK
3233 tags:
3234 - Evaluations
3235 /experiments/artifacts/get:
3236 post:
3237 parameters: []
3238 requestBody:
3239 content:
3240 application/json:
3241 schema:
3242 $ref: '#/components/schemas/ListArtifactsRequest'
3243 required: true
3244 responses:
3245 '200':
3246 content:
3247 application/jsonl:
3248 schema:
3249 $ref: '#/components/schemas/Artifact'
3250 description: OK
3251 tags:
3252 - Telemetry
3253 /experiments/artifacts/upload:
3254 post:
3255 parameters: []
3256 requestBody:
3257 content:
3258 application/json:
3259 schema:
3260 $ref: '#/components/schemas/UploadArtifactRequestWrapper'
3261 required: true
3262 responses:
3263 '200':
3264 content:
3265 application/json:
3266 schema:
3267 $ref: '#/components/schemas/Artifact'
3268 description: OK
3269 tags:
3270 - Telemetry
3271 /experiments/create:
3272 post:
3273 parameters: []
3274 requestBody:
3275 content:
3276 application/json:
3277 schema:
3278 $ref: '#/components/schemas/CreateExperimentRequestWrapper'
3279 required: true
3280 responses:
3281 '200':
3282 content:
3283 application/json:
3284 schema:
3285 $ref: '#/components/schemas/Experiment'
3286 description: OK
3287 tags:
3288 - Telemetry
3289 /experiments/create_run:
3290 post:
3291 parameters: []
3292 requestBody:
3293 content:
3294 application/json:
3295 schema:
3296 $ref: '#/components/schemas/CreateRunRequestWrapper'
3297 required: true
3298 responses:
3299 '200':
3300 content:
3301 application/json:
3302 schema:
3303 $ref: '#/components/schemas/Run'
3304 description: OK
3305 tags:
3306 - Telemetry
3307 /experiments/get:
3308 get:
3309 parameters:
3310 - in: query
3311 name: experiment_id
3312 required: true
3313 schema:
3314 type: string
3315 responses:
3316 '200':
3317 content:
3318 application/json:
3319 schema:
3320 $ref: '#/components/schemas/Experiment'
3321 description: OK
3322 tags:
3323 - Telemetry
3324 /experiments/list:
3325 get:
3326 parameters: []
3327 responses:
3328 '200':
3329 content:
3330 application/jsonl:
3331 schema:
3332 $ref: '#/components/schemas/Experiment'
3333 description: OK
3334 tags:
3335 - Telemetry
3336 /experiments/update:
3337 post:
3338 parameters: []
3339 requestBody:
3340 content:
3341 application/json:
3342 schema:
3343 $ref: '#/components/schemas/UpdateExperimentRequestWrapper'
3344 required: true
3345 responses:
3346 '200':
3347 content:
3348 application/json:
3349 schema:
3350 $ref: '#/components/schemas/Experiment'
3351 description: OK
3352 tags:
3353 - Telemetry
3354 /inference/chat_completion:
3355 post:
3356 parameters: []
3357 requestBody:
3358 content:
3359 application/json:
3360 schema:
3361 $ref: '#/components/schemas/ChatCompletionRequestWrapper'
3362 required: true
3363 responses:
3364 '200':
3365 content:
3366 text/event-stream:
3367 schema:
3368 $ref: '#/components/schemas/ChatCompletionResponseStreamChunk'
3369 description: SSE-stream of these events.
3370 tags:
3371 - Inference
3372 /inference/completion:
3373 post:
3374 parameters: []
3375 requestBody:
3376 content:
3377 application/json:
3378 schema:
3379 $ref: '#/components/schemas/CompletionRequestWrapper'
3380 required: true
3381 responses:
3382 '200':
3383 content:
3384 application/json:
3385 schema:
3386 $ref: '#/components/schemas/CompletionResponseStreamChunk'
3387 description: streamed completion response.
3388 tags:
3389 - Inference
3390 /inference/embeddings:
3391 post:
3392 parameters: []
3393 requestBody:
3394 content:
3395 application/json:
3396 schema:
3397 $ref: '#/components/schemas/EmbeddingsRequest'
3398 required: true
3399 responses:
3400 '200':
3401 content:
3402 application/json:
3403 schema:
3404 $ref: '#/components/schemas/EmbeddingsResponse'
3405 description: OK
3406 tags:
3407 - Inference
3408 /logging/get_logs:
3409 post:
3410 parameters: []
3411 requestBody:
3412 content:
3413 application/json:
3414 schema:
3415 $ref: '#/components/schemas/LogSearchRequestWrapper'
3416 required: true
3417 responses:
3418 '200':
3419 content:
3420 application/jsonl:
3421 schema:
3422 $ref: '#/components/schemas/Log'
3423 description: OK
3424 tags:
3425 - Telemetry
3426 /logging/log_messages:
3427 post:
3428 parameters: []
3429 requestBody:
3430 content:
3431 application/json:
3432 schema:
3433 $ref: '#/components/schemas/LogMessagesRequestWrapper'
3434 required: true
3435 responses:
3436 '200':
3437 description: OK
3438 tags:
3439 - Telemetry
3440 /memory_bank/documents/delete:
3441 post:
3442 parameters: []
3443 requestBody:
3444 content:
3445 application/json:
3446 schema:
3447 $ref: '#/components/schemas/DeleteDocumentsRequest'
3448 required: true
3449 responses:
3450 '200':
3451 description: OK
3452 tags:
3453 - Memory
3454 /memory_bank/documents/get:
3455 post:
3456 parameters:
3457 - in: query
3458 name: bank_id
3459 required: true
3460 schema:
3461 type: string
3462 requestBody:
3463 content:
3464 application/json:
3465 schema:
3466 $ref: '#/components/schemas/GetDocumentsRequest'
3467 required: true
3468 responses:
3469 '200':
3470 content:
3471 application/jsonl:
3472 schema:
3473 $ref: '#/components/schemas/MemoryBankDocument'
3474 description: OK
3475 tags:
3476 - Memory
3477 /memory_bank/insert:
3478 post:
3479 parameters: []
3480 requestBody:
3481 content:
3482 application/json:
3483 schema:
3484 $ref: '#/components/schemas/InsertDocumentsRequest'
3485 required: true
3486 responses:
3487 '200':
3488 description: OK
3489 tags:
3490 - Memory
3491 /memory_bank/query:
3492 post:
3493 parameters: []
3494 requestBody:
3495 content:
3496 application/json:
3497 schema:
3498 $ref: '#/components/schemas/QueryDocumentsRequest'
3499 required: true
3500 responses:
3501 '200':
3502 content:
3503 application/json:
3504 schema:
3505 $ref: '#/components/schemas/QueryDocumentsResponse'
3506 description: OK
3507 tags:
3508 - Memory
3509 /memory_bank/update:
3510 post:
3511 parameters: []
3512 requestBody:
3513 content:
3514 application/json:
3515 schema:
3516 $ref: '#/components/schemas/UpdateDocumentsRequest'
3517 required: true
3518 responses:
3519 '200':
3520 description: OK
3521 tags:
3522 - Memory
3523 /memory_banks/create:
3524 post:
3525 parameters: []
3526 requestBody:
3527 content:
3528 application/json:
3529 schema:
3530 $ref: '#/components/schemas/CreateMemoryBankRequest'
3531 required: true
3532 responses:
3533 '200':
3534 content:
3535 application/json:
3536 schema:
3537 $ref: '#/components/schemas/MemoryBank'
3538 description: OK
3539 tags:
3540 - Memory
3541 /memory_banks/drop:
3542 post:
3543 parameters: []
3544 requestBody:
3545 content:
3546 application/json:
3547 schema:
3548 $ref: '#/components/schemas/DropMemoryBankRequest'
3549 required: true
3550 responses:
3551 '200':
3552 content:
3553 application/json:
3554 schema:
3555 type: string
3556 description: OK
3557 tags:
3558 - Memory
3559 /memory_banks/get:
3560 get:
3561 parameters:
3562 - in: query
3563 name: bank_id
3564 required: true
3565 schema:
3566 type: string
3567 responses:
3568 '200':
3569 content:
3570 application/json:
3571 schema:
3572 oneOf:
3573 - $ref: '#/components/schemas/MemoryBank'
3574 - type: 'null'
3575 description: OK
3576 tags:
3577 - Memory
3578 /memory_banks/list:
3579 get:
3580 parameters: []
3581 responses:
3582 '200':
3583 content:
3584 application/jsonl:
3585 schema:
3586 $ref: '#/components/schemas/MemoryBank'
3587 description: OK
3588 tags:
3589 - Memory
3590 /post_training/job/artifacts:
3591 get:
3592 parameters:
3593 - in: query
3594 name: job_uuid
3595 required: true
3596 schema:
3597 type: string
3598 responses:
3599 '200':
3600 content:
3601 application/json:
3602 schema:
3603 $ref: '#/components/schemas/PostTrainingJobArtifactsResponse'
3604 description: OK
3605 tags:
3606 - PostTraining
3607 /post_training/job/cancel:
3608 post:
3609 parameters: []
3610 requestBody:
3611 content:
3612 application/json:
3613 schema:
3614 $ref: '#/components/schemas/CancelTrainingJobRequest'
3615 required: true
3616 responses:
3617 '200':
3618 description: OK
3619 tags:
3620 - PostTraining
3621 /post_training/job/logs:
3622 get:
3623 parameters:
3624 - in: query
3625 name: job_uuid
3626 required: true
3627 schema:
3628 type: string
3629 responses:
3630 '200':
3631 content:
3632 application/json:
3633 schema:
3634 $ref: '#/components/schemas/PostTrainingJobLogStream'
3635 description: OK
3636 tags:
3637 - PostTraining
3638 /post_training/job/status:
3639 get:
3640 parameters:
3641 - in: query
3642 name: job_uuid
3643 required: true
3644 schema:
3645 type: string
3646 responses:
3647 '200':
3648 content:
3649 application/json:
3650 schema:
3651 $ref: '#/components/schemas/PostTrainingJobStatusResponse'
3652 description: OK
3653 tags:
3654 - PostTraining
3655 /post_training/jobs:
3656 get:
3657 parameters: []
3658 responses:
3659 '200':
3660 content:
3661 application/jsonl:
3662 schema:
3663 $ref: '#/components/schemas/PostTrainingJob'
3664 description: OK
3665 tags:
3666 - PostTraining
3667 /post_training/preference_optimize:
3668 post:
3669 parameters: []
3670 requestBody:
3671 content:
3672 application/json:
3673 schema:
3674 $ref: '#/components/schemas/PostTrainingRLHFRequestWrapper'
3675 required: true
3676 responses:
3677 '200':
3678 content:
3679 application/json:
3680 schema:
3681 $ref: '#/components/schemas/PostTrainingJob'
3682 description: OK
3683 tags:
3684 - PostTraining
3685 /post_training/supervised_fine_tune:
3686 post:
3687 parameters: []
3688 requestBody:
3689 content:
3690 application/json:
3691 schema:
3692 $ref: '#/components/schemas/PostTrainingSFTRequestWrapper'
3693 required: true
3694 responses:
3695 '200':
3696 content:
3697 application/json:
3698 schema:
3699 $ref: '#/components/schemas/PostTrainingJob'
3700 description: OK
3701 tags:
3702 - PostTraining
3703 /reward_scoring/score:
3704 post:
3705 parameters: []
3706 requestBody:
3707 content:
3708 application/json:
3709 schema:
3710 $ref: '#/components/schemas/RewardScoringRequestWrapper'
3711 required: true
3712 responses:
3713 '200':
3714 content:
3715 application/json:
3716 schema:
3717 $ref: '#/components/schemas/RewardScoringResponse'
3718 description: OK
3719 tags:
3720 - RewardScoring
3721 /runs/log_metrics:
3722 post:
3723 parameters: []
3724 requestBody:
3725 content:
3726 application/json:
3727 schema:
3728 $ref: '#/components/schemas/LogMetricsRequestWrapper'
3729 required: true
3730 responses:
3731 '200':
3732 description: OK
3733 tags:
3734 - Telemetry
3735 /runs/metrics:
3736 get:
3737 parameters:
3738 - in: query
3739 name: run_id
3740 required: true
3741 schema:
3742 type: string
3743 responses:
3744 '200':
3745 content:
3746 application/jsonl:
3747 schema:
3748 $ref: '#/components/schemas/Metric'
3749 description: OK
3750 tags:
3751 - Telemetry
3752 /runs/update:
3753 post:
3754 parameters: []
3755 requestBody:
3756 content:
3757 application/json:
3758 schema:
3759 $ref: '#/components/schemas/UpdateRunRequestWrapper'
3760 required: true
3761 responses:
3762 '200':
3763 content:
3764 application/json:
3765 schema:
3766 $ref: '#/components/schemas/Run'
3767 description: OK
3768 tags:
3769 - Telemetry
3770 /safety/run_shields:
3771 post:
3772 parameters: []
3773 requestBody:
3774 content:
3775 application/json:
3776 schema:
3777 $ref: '#/components/schemas/RunShieldRequestWrapper'
3778 required: true
3779 responses:
3780 '200':
3781 content:
3782 application/json:
3783 schema:
3784 $ref: '#/components/schemas/RunShieldResponse'
3785 description: OK
3786 tags:
3787 - Safety
3788 /synthetic_data_generation/generate:
3789 post:
3790 parameters: []
3791 requestBody:
3792 content:
3793 application/json:
3794 schema:
3795 $ref: '#/components/schemas/SyntheticDataGenerationRequestWrapper'
3796 required: true
3797 responses:
3798 '200':
3799 content:
3800 application/json:
3801 schema:
3802 $ref: '#/components/schemas/SyntheticDataGenerationResponse'
3803 description: OK
3804 tags:
3805 - SyntheticDataGeneration
3806security:
3807- Default: []
3808servers:
3809- url: http://any-hosted-llama-stack.com
3810tags:
3811- name: BatchInference
3812- name: Safety
3813- name: Telemetry
3814- name: RewardScoring
3815- name: Memory
3816- name: SyntheticDataGeneration
3817- name: Inference
3818- name: Evaluations
3819- name: PostTraining
3820- name: Datasets
3821- name: AgenticSystem
3822- description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequest"
3823 />
3824 name: BatchChatCompletionRequest
3825- description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
3826 name: BuiltinTool
3827- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"
3828 />
3829 name: CompletionMessage
3830- description: <SchemaDefinition schemaRef="#/components/schemas/SamplingParams" />
3831 name: SamplingParams
3832- description: <SchemaDefinition schemaRef="#/components/schemas/SamplingStrategy"
3833 />
3834 name: SamplingStrategy
3835- description: <SchemaDefinition schemaRef="#/components/schemas/StopReason" />
3836 name: StopReason
3837- description: <SchemaDefinition schemaRef="#/components/schemas/SystemMessage" />
3838 name: SystemMessage
3839- description: <SchemaDefinition schemaRef="#/components/schemas/ToolCall" />
3840 name: ToolCall
3841- description: <SchemaDefinition schemaRef="#/components/schemas/ToolChoice" />
3842 name: ToolChoice
3843- description: <SchemaDefinition schemaRef="#/components/schemas/ToolDefinition" />
3844 name: ToolDefinition
3845- description: <SchemaDefinition schemaRef="#/components/schemas/ToolParamDefinition"
3846 />
3847 name: ToolParamDefinition
3848- description: "This Enum refers to the prompt format for calling custom / zero shot\
3849 \ tools\n\n`json` --\n Refers to the json format for calling tools.\n The\
3850 \ json format takes the form like\n {\n \"type\": \"function\",\n \
3851 \ \"function\" : {\n \"name\": \"function_name\",\n \
3852 \ \"description\": \"function_description\",\n \"parameters\": {...}\n\
3853 \ }\n }\n\n`function_tag` --\n This is an example of how you could\
3854 \ define\n your own user defined format for making tool calls.\n The function_tag\
3855 \ format looks like this,\n <function=function_name>(parameters)</function>\n\
3856 \nThe detailed prompts for each of these formats are added to llama cli\n\n<SchemaDefinition\
3857 \ schemaRef=\"#/components/schemas/ToolPromptFormat\" />"
3858 name: ToolPromptFormat
3859- description: <SchemaDefinition schemaRef="#/components/schemas/ToolResponseMessage"
3860 />
3861 name: ToolResponseMessage
3862- description: <SchemaDefinition schemaRef="#/components/schemas/UserMessage" />
3863 name: UserMessage
3864- description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequestWrapper"
3865 />
3866 name: BatchChatCompletionRequestWrapper
3867- description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionResponse"
3868 />
3869 name: BatchChatCompletionResponse
3870- description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionRequest"
3871 />
3872 name: BatchCompletionRequest
3873- description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionRequestWrapper"
3874 />
3875 name: BatchCompletionRequestWrapper
3876- description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionResponse"
3877 />
3878 name: BatchCompletionResponse
3879- description: <SchemaDefinition schemaRef="#/components/schemas/CancelEvaluationJobRequest"
3880 />
3881 name: CancelEvaluationJobRequest
3882- description: <SchemaDefinition schemaRef="#/components/schemas/CancelTrainingJobRequest"
3883 />
3884 name: CancelTrainingJobRequest
3885- description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequest"
3886 />
3887 name: ChatCompletionRequest
3888- description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequestWrapper"
3889 />
3890 name: ChatCompletionRequestWrapper
3891- description: 'Chat completion response event.
3892
3893
3894 <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionResponseEvent"
3895 />'
3896 name: ChatCompletionResponseEvent
3897- description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionResponseEventType"
3898 />
3899 name: ChatCompletionResponseEventType
3900- description: 'SSE-stream of these events.
3901
3902
3903 <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionResponseStreamChunk"
3904 />'
3905 name: ChatCompletionResponseStreamChunk
3906- description: <SchemaDefinition schemaRef="#/components/schemas/TokenLogProbs" />
3907 name: TokenLogProbs
3908- description: <SchemaDefinition schemaRef="#/components/schemas/ToolCallDelta" />
3909 name: ToolCallDelta
3910- description: <SchemaDefinition schemaRef="#/components/schemas/ToolCallParseStatus"
3911 />
3912 name: ToolCallParseStatus
3913- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionRequest"
3914 />
3915 name: CompletionRequest
3916- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionRequestWrapper"
3917 />
3918 name: CompletionRequestWrapper
3919- description: 'streamed completion response.
3920
3921
3922 <SchemaDefinition schemaRef="#/components/schemas/CompletionResponseStreamChunk"
3923 />'
3924 name: CompletionResponseStreamChunk
3925- description: <SchemaDefinition schemaRef="#/components/schemas/AgentConfig" />
3926 name: AgentConfig
3927- description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinShield" />
3928 name: BuiltinShield
3929- description: <SchemaDefinition schemaRef="#/components/schemas/CodeInterpreterToolDefinition"
3930 />
3931 name: CodeInterpreterToolDefinition
3932- description: <SchemaDefinition schemaRef="#/components/schemas/FunctionCallToolDefinition"
3933 />
3934 name: FunctionCallToolDefinition
3935- description: <SchemaDefinition schemaRef="#/components/schemas/OnViolationAction"
3936 />
3937 name: OnViolationAction
3938- description: <SchemaDefinition schemaRef="#/components/schemas/PhotogenToolDefinition"
3939 />
3940 name: PhotogenToolDefinition
3941- description: <SchemaDefinition schemaRef="#/components/schemas/RestAPIExecutionConfig"
3942 />
3943 name: RestAPIExecutionConfig
3944- description: <SchemaDefinition schemaRef="#/components/schemas/RestAPIMethod" />
3945 name: RestAPIMethod
3946- description: <SchemaDefinition schemaRef="#/components/schemas/SearchToolDefinition"
3947 />
3948 name: SearchToolDefinition
3949- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldDefinition"
3950 />
3951 name: ShieldDefinition
3952- description: <SchemaDefinition schemaRef="#/components/schemas/URL" />
3953 name: URL
3954- description: <SchemaDefinition schemaRef="#/components/schemas/WolframAlphaToolDefinition"
3955 />
3956 name: WolframAlphaToolDefinition
3957- description: <SchemaDefinition schemaRef="#/components/schemas/CreateAgenticSystemRequest"
3958 />
3959 name: CreateAgenticSystemRequest
3960- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemCreateResponse"
3961 />
3962 name: AgenticSystemCreateResponse
3963- description: <SchemaDefinition schemaRef="#/components/schemas/CreateAgenticSystemSessionRequest"
3964 />
3965 name: CreateAgenticSystemSessionRequest
3966- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemSessionCreateResponse"
3967 />
3968 name: AgenticSystemSessionCreateResponse
3969- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnCreateRequest"
3970 />
3971 name: AgenticSystemTurnCreateRequest
3972- description: <SchemaDefinition schemaRef="#/components/schemas/Attachment" />
3973 name: Attachment
3974- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnCreateRequestWrapper"
3975 />
3976 name: AgenticSystemTurnCreateRequestWrapper
3977- description: 'Streamed agent execution response.
3978
3979
3980 <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseEvent"
3981 />'
3982 name: AgenticSystemTurnResponseEvent
3983- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseStepCompletePayload"
3984 />
3985 name: AgenticSystemTurnResponseStepCompletePayload
3986- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseStepProgressPayload"
3987 />
3988 name: AgenticSystemTurnResponseStepProgressPayload
3989- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseStepStartPayload"
3990 />
3991 name: AgenticSystemTurnResponseStepStartPayload
3992- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseStreamChunk"
3993 />
3994 name: AgenticSystemTurnResponseStreamChunk
3995- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseTurnCompletePayload"
3996 />
3997 name: AgenticSystemTurnResponseTurnCompletePayload
3998- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemTurnResponseTurnStartPayload"
3999 />
4000 name: AgenticSystemTurnResponseTurnStartPayload
4001- description: <SchemaDefinition schemaRef="#/components/schemas/InferenceStep" />
4002 name: InferenceStep
4003- description: <SchemaDefinition schemaRef="#/components/schemas/MemoryRetrievalStep"
4004 />
4005 name: MemoryRetrievalStep
4006- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldCallStep" />
4007 name: ShieldCallStep
4008- description: <SchemaDefinition schemaRef="#/components/schemas/ShieldResponse" />
4009 name: ShieldResponse
4010- description: <SchemaDefinition schemaRef="#/components/schemas/ToolExecutionStep"
4011 />
4012 name: ToolExecutionStep
4013- description: <SchemaDefinition schemaRef="#/components/schemas/ToolResponse" />
4014 name: ToolResponse
4015- description: 'A single turn in an interaction with an Agentic System.
4016
4017
4018 <SchemaDefinition schemaRef="#/components/schemas/Turn" />'
4019 name: Turn
4020- description: 'Request to create a dataset.
4021
4022
4023 <SchemaDefinition schemaRef="#/components/schemas/CreateDatasetRequest" />'
4024 name: CreateDatasetRequest
4025- description: 'Dataset to be used for training or evaluating language models.
4026
4027
4028 <SchemaDefinition schemaRef="#/components/schemas/TrainEvalDataset" />'
4029 name: TrainEvalDataset
4030- description: <SchemaDefinition schemaRef="#/components/schemas/TrainEvalDatasetColumnType"
4031 />
4032 name: TrainEvalDatasetColumnType
4033- description: <SchemaDefinition schemaRef="#/components/schemas/CreateDatasetRequestWrapper"
4034 />
4035 name: CreateDatasetRequestWrapper
4036- description: <SchemaDefinition schemaRef="#/components/schemas/CreateExperimentRequest"
4037 />
4038 name: CreateExperimentRequest
4039- description: <SchemaDefinition schemaRef="#/components/schemas/CreateExperimentRequestWrapper"
4040 />
4041 name: CreateExperimentRequestWrapper
4042- description: <SchemaDefinition schemaRef="#/components/schemas/Experiment" />
4043 name: Experiment
4044- description: <SchemaDefinition schemaRef="#/components/schemas/ExperimentStatus"
4045 />
4046 name: ExperimentStatus
4047- description: <SchemaDefinition schemaRef="#/components/schemas/CreateMemoryBankRequest"
4048 />
4049 name: CreateMemoryBankRequest
4050- description: <SchemaDefinition schemaRef="#/components/schemas/MemoryBank" />
4051 name: MemoryBank
4052- description: <SchemaDefinition schemaRef="#/components/schemas/CreateRunRequest"
4053 />
4054 name: CreateRunRequest
4055- description: <SchemaDefinition schemaRef="#/components/schemas/CreateRunRequestWrapper"
4056 />
4057 name: CreateRunRequestWrapper
4058- description: <SchemaDefinition schemaRef="#/components/schemas/Run" />
4059 name: Run
4060- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteAgenticSystemRequest"
4061 />
4062 name: DeleteAgenticSystemRequest
4063- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteAgenticSystemSessionRequest"
4064 />
4065 name: DeleteAgenticSystemSessionRequest
4066- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteDatasetRequest"
4067 />
4068 name: DeleteDatasetRequest
4069- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteDocumentsRequest"
4070 />
4071 name: DeleteDocumentsRequest
4072- description: <SchemaDefinition schemaRef="#/components/schemas/DropMemoryBankRequest"
4073 />
4074 name: DropMemoryBankRequest
4075- description: <SchemaDefinition schemaRef="#/components/schemas/EmbeddingsRequest"
4076 />
4077 name: EmbeddingsRequest
4078- description: <SchemaDefinition schemaRef="#/components/schemas/EmbeddingsResponse"
4079 />
4080 name: EmbeddingsResponse
4081- description: 'Checkpoint created during training runs
4082
4083
4084 <SchemaDefinition schemaRef="#/components/schemas/Checkpoint" />'
4085 name: Checkpoint
4086- description: 'Request to evaluate question answering.
4087
4088
4089 <SchemaDefinition schemaRef="#/components/schemas/EvaluateQuestionAnsweringRequest"
4090 />'
4091 name: EvaluateQuestionAnsweringRequest
4092- description: <SchemaDefinition schemaRef="#/components/schemas/EvaluateQuestionAnsweringRequestWrapper"
4093 />
4094 name: EvaluateQuestionAnsweringRequestWrapper
4095- description: <SchemaDefinition schemaRef="#/components/schemas/EvaluationJob" />
4096 name: EvaluationJob
4097- description: 'Request to evaluate summarization.
4098
4099
4100 <SchemaDefinition schemaRef="#/components/schemas/EvaluateSummarizationRequest"
4101 />'
4102 name: EvaluateSummarizationRequest
4103- description: <SchemaDefinition schemaRef="#/components/schemas/EvaluateSummarizationRequestWrapper"
4104 />
4105 name: EvaluateSummarizationRequestWrapper
4106- description: 'Request to evaluate text generation.
4107
4108
4109 <SchemaDefinition schemaRef="#/components/schemas/EvaluateTextGenerationRequest"
4110 />'
4111 name: EvaluateTextGenerationRequest
4112- description: <SchemaDefinition schemaRef="#/components/schemas/EvaluateTextGenerationRequestWrapper"
4113 />
4114 name: EvaluateTextGenerationRequestWrapper
4115- description: <SchemaDefinition schemaRef="#/components/schemas/GetAgenticSystemSessionRequest"
4116 />
4117 name: GetAgenticSystemSessionRequest
4118- description: 'A single session of an interaction with an Agentic System.
4119
4120
4121 <SchemaDefinition schemaRef="#/components/schemas/Session" />'
4122 name: Session
4123- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemStepResponse"
4124 />
4125 name: AgenticSystemStepResponse
4126- description: <SchemaDefinition schemaRef="#/components/schemas/Artifact" />
4127 name: Artifact
4128- description: <SchemaDefinition schemaRef="#/components/schemas/ArtifactType" />
4129 name: ArtifactType
4130- description: <SchemaDefinition schemaRef="#/components/schemas/GetDocumentsRequest"
4131 />
4132 name: GetDocumentsRequest
4133- description: <SchemaDefinition schemaRef="#/components/schemas/MemoryBankDocument"
4134 />
4135 name: MemoryBankDocument
4136- description: 'Artifacts of a evaluation job.
4137
4138
4139 <SchemaDefinition schemaRef="#/components/schemas/EvaluationJobArtifactsResponse"
4140 />'
4141 name: EvaluationJobArtifactsResponse
4142- description: <SchemaDefinition schemaRef="#/components/schemas/EvaluationJobLogStream"
4143 />
4144 name: EvaluationJobLogStream
4145- description: <SchemaDefinition schemaRef="#/components/schemas/EvaluationJobStatusResponse"
4146 />
4147 name: EvaluationJobStatusResponse
4148- description: <SchemaDefinition schemaRef="#/components/schemas/LogSearchRequest"
4149 />
4150 name: LogSearchRequest
4151- description: <SchemaDefinition schemaRef="#/components/schemas/LogSearchRequestWrapper"
4152 />
4153 name: LogSearchRequestWrapper
4154- description: <SchemaDefinition schemaRef="#/components/schemas/Log" />
4155 name: Log
4156- description: <SchemaDefinition schemaRef="#/components/schemas/Metric" />
4157 name: Metric
4158- description: 'Artifacts of a finetuning job.
4159
4160
4161 <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJobArtifactsResponse"
4162 />'
4163 name: PostTrainingJobArtifactsResponse
4164- description: 'Stream of logs from a finetuning job.
4165
4166
4167 <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJobLogStream" />'
4168 name: PostTrainingJobLogStream
4169- description: <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJobStatus"
4170 />
4171 name: PostTrainingJobStatus
4172- description: 'Status of a finetuning job.
4173
4174
4175 <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJobStatusResponse"
4176 />'
4177 name: PostTrainingJobStatusResponse
4178- description: <SchemaDefinition schemaRef="#/components/schemas/PostTrainingJob"
4179 />
4180 name: PostTrainingJob
4181- description: <SchemaDefinition schemaRef="#/components/schemas/InsertDocumentsRequest"
4182 />
4183 name: InsertDocumentsRequest
4184- description: <SchemaDefinition schemaRef="#/components/schemas/ListArtifactsRequest"
4185 />
4186 name: ListArtifactsRequest
4187- description: <SchemaDefinition schemaRef="#/components/schemas/LogMessagesRequest"
4188 />
4189 name: LogMessagesRequest
4190- description: <SchemaDefinition schemaRef="#/components/schemas/LogMessagesRequestWrapper"
4191 />
4192 name: LogMessagesRequestWrapper
4193- description: <SchemaDefinition schemaRef="#/components/schemas/LogMetricsRequest"
4194 />
4195 name: LogMetricsRequest
4196- description: <SchemaDefinition schemaRef="#/components/schemas/LogMetricsRequestWrapper"
4197 />
4198 name: LogMetricsRequestWrapper
4199- description: <SchemaDefinition schemaRef="#/components/schemas/DPOAlignmentConfig"
4200 />
4201 name: DPOAlignmentConfig
4202- description: <SchemaDefinition schemaRef="#/components/schemas/OptimizerConfig"
4203 />
4204 name: OptimizerConfig
4205- description: 'Request to finetune a model.
4206
4207
4208 <SchemaDefinition schemaRef="#/components/schemas/PostTrainingRLHFRequest" />'
4209 name: PostTrainingRLHFRequest
4210- description: <SchemaDefinition schemaRef="#/components/schemas/RLHFAlgorithm" />
4211 name: RLHFAlgorithm
4212- description: <SchemaDefinition schemaRef="#/components/schemas/TrainingConfig" />
4213 name: TrainingConfig
4214- description: <SchemaDefinition schemaRef="#/components/schemas/PostTrainingRLHFRequestWrapper"
4215 />
4216 name: PostTrainingRLHFRequestWrapper
4217- description: <SchemaDefinition schemaRef="#/components/schemas/QueryDocumentsRequest"
4218 />
4219 name: QueryDocumentsRequest
4220- description: <SchemaDefinition schemaRef="#/components/schemas/QueryDocumentsResponse"
4221 />
4222 name: QueryDocumentsResponse
4223- description: <SchemaDefinition schemaRef="#/components/schemas/DialogGenerations"
4224 />
4225 name: DialogGenerations
4226- description: 'Request to score a reward function. A list of prompts and a list of
4227 responses per prompt.
4228
4229
4230 <SchemaDefinition schemaRef="#/components/schemas/RewardScoringRequest" />'
4231 name: RewardScoringRequest
4232- description: <SchemaDefinition schemaRef="#/components/schemas/RewardScoringRequestWrapper"
4233 />
4234 name: RewardScoringRequestWrapper
4235- description: 'Response from the reward scoring. Batch of (prompt, response, score)
4236 tuples that pass the threshold.
4237
4238
4239 <SchemaDefinition schemaRef="#/components/schemas/RewardScoringResponse" />'
4240 name: RewardScoringResponse
4241- description: <SchemaDefinition schemaRef="#/components/schemas/ScoredDialogGenerations"
4242 />
4243 name: ScoredDialogGenerations
4244- description: <SchemaDefinition schemaRef="#/components/schemas/ScoredMessage" />
4245 name: ScoredMessage
4246- description: <SchemaDefinition schemaRef="#/components/schemas/RunShieldRequest"
4247 />
4248 name: RunShieldRequest
4249- description: <SchemaDefinition schemaRef="#/components/schemas/RunShieldRequestWrapper"
4250 />
4251 name: RunShieldRequestWrapper
4252- description: <SchemaDefinition schemaRef="#/components/schemas/RunShieldResponse"
4253 />
4254 name: RunShieldResponse
4255- description: <SchemaDefinition schemaRef="#/components/schemas/DoraFinetuningConfig"
4256 />
4257 name: DoraFinetuningConfig
4258- description: <SchemaDefinition schemaRef="#/components/schemas/FinetuningAlgorithm"
4259 />
4260 name: FinetuningAlgorithm
4261- description: <SchemaDefinition schemaRef="#/components/schemas/LoraFinetuningConfig"
4262 />
4263 name: LoraFinetuningConfig
4264- description: 'Request to finetune a model.
4265
4266
4267 <SchemaDefinition schemaRef="#/components/schemas/PostTrainingSFTRequest" />'
4268 name: PostTrainingSFTRequest
4269- description: <SchemaDefinition schemaRef="#/components/schemas/QLoraFinetuningConfig"
4270 />
4271 name: QLoraFinetuningConfig
4272- description: <SchemaDefinition schemaRef="#/components/schemas/PostTrainingSFTRequestWrapper"
4273 />
4274 name: PostTrainingSFTRequestWrapper
4275- description: 'Request to generate synthetic data. A small batch of prompts and a
4276 filtering function
4277
4278
4279 <SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerationRequest"
4280 />'
4281 name: SyntheticDataGenerationRequest
4282- description: <SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerationRequestWrapper"
4283 />
4284 name: SyntheticDataGenerationRequestWrapper
4285- description: 'Response from the synthetic data generation. Batch of (prompt, response,
4286 score) tuples that pass the threshold.
4287
4288
4289 <SchemaDefinition schemaRef="#/components/schemas/SyntheticDataGenerationResponse"
4290 />'
4291 name: SyntheticDataGenerationResponse
4292- description: <SchemaDefinition schemaRef="#/components/schemas/UpdateDocumentsRequest"
4293 />
4294 name: UpdateDocumentsRequest
4295- description: <SchemaDefinition schemaRef="#/components/schemas/UpdateExperimentRequest"
4296 />
4297 name: UpdateExperimentRequest
4298- description: <SchemaDefinition schemaRef="#/components/schemas/UpdateExperimentRequestWrapper"
4299 />
4300 name: UpdateExperimentRequestWrapper
4301- description: <SchemaDefinition schemaRef="#/components/schemas/UpdateRunRequest"
4302 />
4303 name: UpdateRunRequest
4304- description: <SchemaDefinition schemaRef="#/components/schemas/UpdateRunRequestWrapper"
4305 />
4306 name: UpdateRunRequestWrapper
4307- description: <SchemaDefinition schemaRef="#/components/schemas/UploadArtifactRequest"
4308 />
4309 name: UploadArtifactRequest
4310- description: <SchemaDefinition schemaRef="#/components/schemas/UploadArtifactRequestWrapper"
4311 />
4312 name: UploadArtifactRequestWrapper
4313x-tagGroups:
4314- name: Operations
4315 tags:
4316 - AgenticSystem
4317 - BatchInference
4318 - Datasets
4319 - Evaluations
4320 - Inference
4321 - Memory
4322 - PostTraining
4323 - RewardScoring
4324 - Safety
4325 - SyntheticDataGeneration
4326 - Telemetry
4327- name: Types
4328 tags:
4329 - AgentConfig
4330 - AgenticSystemCreateResponse
4331 - AgenticSystemSessionCreateResponse
4332 - AgenticSystemStepResponse
4333 - AgenticSystemTurnCreateRequest
4334 - AgenticSystemTurnCreateRequestWrapper
4335 - AgenticSystemTurnResponseEvent
4336 - AgenticSystemTurnResponseStepCompletePayload
4337 - AgenticSystemTurnResponseStepProgressPayload
4338 - AgenticSystemTurnResponseStepStartPayload
4339 - AgenticSystemTurnResponseStreamChunk
4340 - AgenticSystemTurnResponseTurnCompletePayload
4341 - AgenticSystemTurnResponseTurnStartPayload
4342 - Artifact
4343 - ArtifactType
4344 - Attachment
4345 - BatchChatCompletionRequest
4346 - BatchChatCompletionRequestWrapper
4347 - BatchChatCompletionResponse
4348 - BatchCompletionRequest
4349 - BatchCompletionRequestWrapper
4350 - BatchCompletionResponse
4351 - BuiltinShield
4352 - BuiltinTool
4353 - CancelEvaluationJobRequest
4354 - CancelTrainingJobRequest
4355 - ChatCompletionRequest
4356 - ChatCompletionRequestWrapper
4357 - ChatCompletionResponseEvent
4358 - ChatCompletionResponseEventType
4359 - ChatCompletionResponseStreamChunk
4360 - Checkpoint
4361 - CodeInterpreterToolDefinition
4362 - CompletionMessage
4363 - CompletionRequest
4364 - CompletionRequestWrapper
4365 - CompletionResponseStreamChunk
4366 - CreateAgenticSystemRequest
4367 - CreateAgenticSystemSessionRequest
4368 - CreateDatasetRequest
4369 - CreateDatasetRequestWrapper
4370 - CreateExperimentRequest
4371 - CreateExperimentRequestWrapper
4372 - CreateMemoryBankRequest
4373 - CreateRunRequest
4374 - CreateRunRequestWrapper
4375 - DPOAlignmentConfig
4376 - DeleteAgenticSystemRequest
4377 - DeleteAgenticSystemSessionRequest
4378 - DeleteDatasetRequest
4379 - DeleteDocumentsRequest
4380 - DialogGenerations
4381 - DoraFinetuningConfig
4382 - DropMemoryBankRequest
4383 - EmbeddingsRequest
4384 - EmbeddingsResponse
4385 - EvaluateQuestionAnsweringRequest
4386 - EvaluateQuestionAnsweringRequestWrapper
4387 - EvaluateSummarizationRequest
4388 - EvaluateSummarizationRequestWrapper
4389 - EvaluateTextGenerationRequest
4390 - EvaluateTextGenerationRequestWrapper
4391 - EvaluationJob
4392 - EvaluationJobArtifactsResponse
4393 - EvaluationJobLogStream
4394 - EvaluationJobStatusResponse
4395 - Experiment
4396 - ExperimentStatus
4397 - FinetuningAlgorithm
4398 - FunctionCallToolDefinition
4399 - GetAgenticSystemSessionRequest
4400 - GetDocumentsRequest
4401 - InferenceStep
4402 - InsertDocumentsRequest
4403 - ListArtifactsRequest
4404 - Log
4405 - LogMessagesRequest
4406 - LogMessagesRequestWrapper
4407 - LogMetricsRequest
4408 - LogMetricsRequestWrapper
4409 - LogSearchRequest
4410 - LogSearchRequestWrapper
4411 - LoraFinetuningConfig
4412 - MemoryBank
4413 - MemoryBankDocument
4414 - MemoryRetrievalStep
4415 - Metric
4416 - OnViolationAction
4417 - OptimizerConfig
4418 - PhotogenToolDefinition
4419 - PostTrainingJob
4420 - PostTrainingJobArtifactsResponse
4421 - PostTrainingJobLogStream
4422 - PostTrainingJobStatus
4423 - PostTrainingJobStatusResponse
4424 - PostTrainingRLHFRequest
4425 - PostTrainingRLHFRequestWrapper
4426 - PostTrainingSFTRequest
4427 - PostTrainingSFTRequestWrapper
4428 - QLoraFinetuningConfig
4429 - QueryDocumentsRequest
4430 - QueryDocumentsResponse
4431 - RLHFAlgorithm
4432 - RestAPIExecutionConfig
4433 - RestAPIMethod
4434 - RewardScoringRequest
4435 - RewardScoringRequestWrapper
4436 - RewardScoringResponse
4437 - Run
4438 - RunShieldRequest
4439 - RunShieldRequestWrapper
4440 - RunShieldResponse
4441 - SamplingParams
4442 - SamplingStrategy
4443 - ScoredDialogGenerations
4444 - ScoredMessage
4445 - SearchToolDefinition
4446 - Session
4447 - ShieldCallStep
4448 - ShieldDefinition
4449 - ShieldResponse
4450 - StopReason
4451 - SyntheticDataGenerationRequest
4452 - SyntheticDataGenerationRequestWrapper
4453 - SyntheticDataGenerationResponse
4454 - SystemMessage
4455 - TokenLogProbs
4456 - ToolCall
4457 - ToolCallDelta
4458 - ToolCallParseStatus
4459 - ToolChoice
4460 - ToolDefinition
4461 - ToolExecutionStep
4462 - ToolParamDefinition
4463 - ToolPromptFormat
4464 - ToolResponse
4465 - ToolResponseMessage
4466 - TrainEvalDataset
4467 - TrainEvalDatasetColumnType
4468 - TrainingConfig
4469 - Turn
4470 - URL
4471 - UpdateDocumentsRequest
4472 - UpdateExperimentRequest
4473 - UpdateExperimentRequestWrapper
4474 - UpdateRunRequest
4475 - UpdateRunRequestWrapper
4476 - UploadArtifactRequest
4477 - UploadArtifactRequestWrapper
4478 - UserMessage
4479 - WolframAlphaToolDefinition