Elffuss BraidHub

kikocis/llama-stack public

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