Elffuss BraidHub

kikocis/llama-stack public

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