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