Elffuss BraidHub

kikocis/llama-stack public

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