| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="utf-8" /> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | <title>OpenAPI specification</title> |
| 8 | <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> |
| 9 | <style> |
| 10 | body { |
| 11 | margin: 0; |
| 12 | padding: 0; |
| 13 | } |
| 14 | |
| 15 | </style> |
| 16 | <script defer="defer" src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script> |
| 17 | <script defer="defer"> |
| 18 | document.addEventListener("DOMContentLoaded", function () { |
| 19 | spec = { |
| 20 | "openapi": "3.1.0", |
| 21 | "info": { |
| 22 | "title": "[DRAFT] Llama Stack Specification", |
| 23 | "version": "0.0.1", |
| 24 | "description": "This is the specification of the llama stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. The specification is still in draft and subject to change.\n Generated at 2024-09-23 16:58:41.469308" |
| 25 | }, |
| 26 | "servers": [ |
| 27 | { |
| 28 | "url": "http://any-hosted-llama-stack.com" |
| 29 | } |
| 30 | ], |
| 31 | "paths": { |
| 32 | "/batch_inference/chat_completion": { |
| 33 | "post": { |
| 34 | "responses": { |
| 35 | "200": { |
| 36 | "description": "OK", |
| 37 | "content": { |
| 38 | "application/json": { |
| 39 | "schema": { |
| 40 | "$ref": "#/components/schemas/BatchChatCompletionResponse" |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | }, |
| 46 | "tags": [ |
| 47 | "BatchInference" |
| 48 | ], |
| 49 | "parameters": [ |
| 50 | { |
| 51 | "name": "X-LlamaStack-ProviderData", |
| 52 | "in": "header", |
| 53 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 54 | "required": false, |
| 55 | "schema": { |
| 56 | "type": "string" |
| 57 | } |
| 58 | } |
| 59 | ], |
| 60 | "requestBody": { |
| 61 | "content": { |
| 62 | "application/json": { |
| 63 | "schema": { |
| 64 | "$ref": "#/components/schemas/BatchChatCompletionRequest" |
| 65 | } |
| 66 | } |
| 67 | }, |
| 68 | "required": true |
| 69 | } |
| 70 | } |
| 71 | }, |
| 72 | "/batch_inference/completion": { |
| 73 | "post": { |
| 74 | "responses": { |
| 75 | "200": { |
| 76 | "description": "OK", |
| 77 | "content": { |
| 78 | "application/json": { |
| 79 | "schema": { |
| 80 | "$ref": "#/components/schemas/BatchCompletionResponse" |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | }, |
| 86 | "tags": [ |
| 87 | "BatchInference" |
| 88 | ], |
| 89 | "parameters": [ |
| 90 | { |
| 91 | "name": "X-LlamaStack-ProviderData", |
| 92 | "in": "header", |
| 93 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 94 | "required": false, |
| 95 | "schema": { |
| 96 | "type": "string" |
| 97 | } |
| 98 | } |
| 99 | ], |
| 100 | "requestBody": { |
| 101 | "content": { |
| 102 | "application/json": { |
| 103 | "schema": { |
| 104 | "$ref": "#/components/schemas/BatchCompletionRequest" |
| 105 | } |
| 106 | } |
| 107 | }, |
| 108 | "required": true |
| 109 | } |
| 110 | } |
| 111 | }, |
| 112 | "/evaluate/job/cancel": { |
| 113 | "post": { |
| 114 | "responses": { |
| 115 | "200": { |
| 116 | "description": "OK" |
| 117 | } |
| 118 | }, |
| 119 | "tags": [ |
| 120 | "Evaluations" |
| 121 | ], |
| 122 | "parameters": [ |
| 123 | { |
| 124 | "name": "X-LlamaStack-ProviderData", |
| 125 | "in": "header", |
| 126 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 127 | "required": false, |
| 128 | "schema": { |
| 129 | "type": "string" |
| 130 | } |
| 131 | } |
| 132 | ], |
| 133 | "requestBody": { |
| 134 | "content": { |
| 135 | "application/json": { |
| 136 | "schema": { |
| 137 | "$ref": "#/components/schemas/CancelEvaluationJobRequest" |
| 138 | } |
| 139 | } |
| 140 | }, |
| 141 | "required": true |
| 142 | } |
| 143 | } |
| 144 | }, |
| 145 | "/post_training/job/cancel": { |
| 146 | "post": { |
| 147 | "responses": { |
| 148 | "200": { |
| 149 | "description": "OK" |
| 150 | } |
| 151 | }, |
| 152 | "tags": [ |
| 153 | "PostTraining" |
| 154 | ], |
| 155 | "parameters": [ |
| 156 | { |
| 157 | "name": "X-LlamaStack-ProviderData", |
| 158 | "in": "header", |
| 159 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 160 | "required": false, |
| 161 | "schema": { |
| 162 | "type": "string" |
| 163 | } |
| 164 | } |
| 165 | ], |
| 166 | "requestBody": { |
| 167 | "content": { |
| 168 | "application/json": { |
| 169 | "schema": { |
| 170 | "$ref": "#/components/schemas/CancelTrainingJobRequest" |
| 171 | } |
| 172 | } |
| 173 | }, |
| 174 | "required": true |
| 175 | } |
| 176 | } |
| 177 | }, |
| 178 | "/inference/chat_completion": { |
| 179 | "post": { |
| 180 | "responses": { |
| 181 | "200": { |
| 182 | "description": "Chat completion response. **OR** SSE-stream of these events.", |
| 183 | "content": { |
| 184 | "text/event-stream": { |
| 185 | "schema": { |
| 186 | "oneOf": [ |
| 187 | { |
| 188 | "$ref": "#/components/schemas/ChatCompletionResponse" |
| 189 | }, |
| 190 | { |
| 191 | "$ref": "#/components/schemas/ChatCompletionResponseStreamChunk" |
| 192 | } |
| 193 | ] |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | }, |
| 199 | "tags": [ |
| 200 | "Inference" |
| 201 | ], |
| 202 | "parameters": [ |
| 203 | { |
| 204 | "name": "X-LlamaStack-ProviderData", |
| 205 | "in": "header", |
| 206 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 207 | "required": false, |
| 208 | "schema": { |
| 209 | "type": "string" |
| 210 | } |
| 211 | } |
| 212 | ], |
| 213 | "requestBody": { |
| 214 | "content": { |
| 215 | "application/json": { |
| 216 | "schema": { |
| 217 | "$ref": "#/components/schemas/ChatCompletionRequest" |
| 218 | } |
| 219 | } |
| 220 | }, |
| 221 | "required": true |
| 222 | } |
| 223 | } |
| 224 | }, |
| 225 | "/inference/completion": { |
| 226 | "post": { |
| 227 | "responses": { |
| 228 | "200": { |
| 229 | "description": "Completion response. **OR** streamed completion response.", |
| 230 | "content": { |
| 231 | "application/json": { |
| 232 | "schema": { |
| 233 | "oneOf": [ |
| 234 | { |
| 235 | "$ref": "#/components/schemas/CompletionResponse" |
| 236 | }, |
| 237 | { |
| 238 | "$ref": "#/components/schemas/CompletionResponseStreamChunk" |
| 239 | } |
| 240 | ] |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | }, |
| 246 | "tags": [ |
| 247 | "Inference" |
| 248 | ], |
| 249 | "parameters": [ |
| 250 | { |
| 251 | "name": "X-LlamaStack-ProviderData", |
| 252 | "in": "header", |
| 253 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 254 | "required": false, |
| 255 | "schema": { |
| 256 | "type": "string" |
| 257 | } |
| 258 | } |
| 259 | ], |
| 260 | "requestBody": { |
| 261 | "content": { |
| 262 | "application/json": { |
| 263 | "schema": { |
| 264 | "$ref": "#/components/schemas/CompletionRequest" |
| 265 | } |
| 266 | } |
| 267 | }, |
| 268 | "required": true |
| 269 | } |
| 270 | } |
| 271 | }, |
| 272 | "/agents/create": { |
| 273 | "post": { |
| 274 | "responses": { |
| 275 | "200": { |
| 276 | "description": "OK", |
| 277 | "content": { |
| 278 | "application/json": { |
| 279 | "schema": { |
| 280 | "$ref": "#/components/schemas/AgentCreateResponse" |
| 281 | } |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | }, |
| 286 | "tags": [ |
| 287 | "Agents" |
| 288 | ], |
| 289 | "parameters": [ |
| 290 | { |
| 291 | "name": "X-LlamaStack-ProviderData", |
| 292 | "in": "header", |
| 293 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 294 | "required": false, |
| 295 | "schema": { |
| 296 | "type": "string" |
| 297 | } |
| 298 | } |
| 299 | ], |
| 300 | "requestBody": { |
| 301 | "content": { |
| 302 | "application/json": { |
| 303 | "schema": { |
| 304 | "$ref": "#/components/schemas/CreateAgentRequest" |
| 305 | } |
| 306 | } |
| 307 | }, |
| 308 | "required": true |
| 309 | } |
| 310 | } |
| 311 | }, |
| 312 | "/agents/session/create": { |
| 313 | "post": { |
| 314 | "responses": { |
| 315 | "200": { |
| 316 | "description": "OK", |
| 317 | "content": { |
| 318 | "application/json": { |
| 319 | "schema": { |
| 320 | "$ref": "#/components/schemas/AgentSessionCreateResponse" |
| 321 | } |
| 322 | } |
| 323 | } |
| 324 | } |
| 325 | }, |
| 326 | "tags": [ |
| 327 | "Agents" |
| 328 | ], |
| 329 | "parameters": [ |
| 330 | { |
| 331 | "name": "X-LlamaStack-ProviderData", |
| 332 | "in": "header", |
| 333 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 334 | "required": false, |
| 335 | "schema": { |
| 336 | "type": "string" |
| 337 | } |
| 338 | } |
| 339 | ], |
| 340 | "requestBody": { |
| 341 | "content": { |
| 342 | "application/json": { |
| 343 | "schema": { |
| 344 | "$ref": "#/components/schemas/CreateAgentSessionRequest" |
| 345 | } |
| 346 | } |
| 347 | }, |
| 348 | "required": true |
| 349 | } |
| 350 | } |
| 351 | }, |
| 352 | "/agents/turn/create": { |
| 353 | "post": { |
| 354 | "responses": { |
| 355 | "200": { |
| 356 | "description": "OK", |
| 357 | "content": { |
| 358 | "application/json": { |
| 359 | "schema": { |
| 360 | "$ref": "#/components/schemas/AgentTurnResponseStreamChunk" |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | } |
| 365 | }, |
| 366 | "tags": [ |
| 367 | "Agents" |
| 368 | ], |
| 369 | "parameters": [ |
| 370 | { |
| 371 | "name": "X-LlamaStack-ProviderData", |
| 372 | "in": "header", |
| 373 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 374 | "required": false, |
| 375 | "schema": { |
| 376 | "type": "string" |
| 377 | } |
| 378 | } |
| 379 | ], |
| 380 | "requestBody": { |
| 381 | "content": { |
| 382 | "application/json": { |
| 383 | "schema": { |
| 384 | "$ref": "#/components/schemas/CreateAgentTurnRequest" |
| 385 | } |
| 386 | } |
| 387 | }, |
| 388 | "required": true |
| 389 | } |
| 390 | } |
| 391 | }, |
| 392 | "/datasets/create": { |
| 393 | "post": { |
| 394 | "responses": { |
| 395 | "200": { |
| 396 | "description": "OK" |
| 397 | } |
| 398 | }, |
| 399 | "tags": [ |
| 400 | "Datasets" |
| 401 | ], |
| 402 | "parameters": [ |
| 403 | { |
| 404 | "name": "X-LlamaStack-ProviderData", |
| 405 | "in": "header", |
| 406 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 407 | "required": false, |
| 408 | "schema": { |
| 409 | "type": "string" |
| 410 | } |
| 411 | } |
| 412 | ], |
| 413 | "requestBody": { |
| 414 | "content": { |
| 415 | "application/json": { |
| 416 | "schema": { |
| 417 | "$ref": "#/components/schemas/CreateDatasetRequest" |
| 418 | } |
| 419 | } |
| 420 | }, |
| 421 | "required": true |
| 422 | } |
| 423 | } |
| 424 | }, |
| 425 | "/memory/create": { |
| 426 | "post": { |
| 427 | "responses": { |
| 428 | "200": { |
| 429 | "description": "OK", |
| 430 | "content": { |
| 431 | "application/json": { |
| 432 | "schema": { |
| 433 | "$ref": "#/components/schemas/MemoryBank" |
| 434 | } |
| 435 | } |
| 436 | } |
| 437 | } |
| 438 | }, |
| 439 | "tags": [ |
| 440 | "Memory" |
| 441 | ], |
| 442 | "parameters": [ |
| 443 | { |
| 444 | "name": "X-LlamaStack-ProviderData", |
| 445 | "in": "header", |
| 446 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 447 | "required": false, |
| 448 | "schema": { |
| 449 | "type": "string" |
| 450 | } |
| 451 | } |
| 452 | ], |
| 453 | "requestBody": { |
| 454 | "content": { |
| 455 | "application/json": { |
| 456 | "schema": { |
| 457 | "$ref": "#/components/schemas/CreateMemoryBankRequest" |
| 458 | } |
| 459 | } |
| 460 | }, |
| 461 | "required": true |
| 462 | } |
| 463 | } |
| 464 | }, |
| 465 | "/agents/delete": { |
| 466 | "post": { |
| 467 | "responses": { |
| 468 | "200": { |
| 469 | "description": "OK" |
| 470 | } |
| 471 | }, |
| 472 | "tags": [ |
| 473 | "Agents" |
| 474 | ], |
| 475 | "parameters": [ |
| 476 | { |
| 477 | "name": "X-LlamaStack-ProviderData", |
| 478 | "in": "header", |
| 479 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 480 | "required": false, |
| 481 | "schema": { |
| 482 | "type": "string" |
| 483 | } |
| 484 | } |
| 485 | ], |
| 486 | "requestBody": { |
| 487 | "content": { |
| 488 | "application/json": { |
| 489 | "schema": { |
| 490 | "$ref": "#/components/schemas/DeleteAgentsRequest" |
| 491 | } |
| 492 | } |
| 493 | }, |
| 494 | "required": true |
| 495 | } |
| 496 | } |
| 497 | }, |
| 498 | "/agents/session/delete": { |
| 499 | "post": { |
| 500 | "responses": { |
| 501 | "200": { |
| 502 | "description": "OK" |
| 503 | } |
| 504 | }, |
| 505 | "tags": [ |
| 506 | "Agents" |
| 507 | ], |
| 508 | "parameters": [ |
| 509 | { |
| 510 | "name": "X-LlamaStack-ProviderData", |
| 511 | "in": "header", |
| 512 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 513 | "required": false, |
| 514 | "schema": { |
| 515 | "type": "string" |
| 516 | } |
| 517 | } |
| 518 | ], |
| 519 | "requestBody": { |
| 520 | "content": { |
| 521 | "application/json": { |
| 522 | "schema": { |
| 523 | "$ref": "#/components/schemas/DeleteAgentsSessionRequest" |
| 524 | } |
| 525 | } |
| 526 | }, |
| 527 | "required": true |
| 528 | } |
| 529 | } |
| 530 | }, |
| 531 | "/datasets/delete": { |
| 532 | "post": { |
| 533 | "responses": { |
| 534 | "200": { |
| 535 | "description": "OK" |
| 536 | } |
| 537 | }, |
| 538 | "tags": [ |
| 539 | "Datasets" |
| 540 | ], |
| 541 | "parameters": [ |
| 542 | { |
| 543 | "name": "X-LlamaStack-ProviderData", |
| 544 | "in": "header", |
| 545 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 546 | "required": false, |
| 547 | "schema": { |
| 548 | "type": "string" |
| 549 | } |
| 550 | } |
| 551 | ], |
| 552 | "requestBody": { |
| 553 | "content": { |
| 554 | "application/json": { |
| 555 | "schema": { |
| 556 | "$ref": "#/components/schemas/DeleteDatasetRequest" |
| 557 | } |
| 558 | } |
| 559 | }, |
| 560 | "required": true |
| 561 | } |
| 562 | } |
| 563 | }, |
| 564 | "/memory/documents/delete": { |
| 565 | "post": { |
| 566 | "responses": { |
| 567 | "200": { |
| 568 | "description": "OK" |
| 569 | } |
| 570 | }, |
| 571 | "tags": [ |
| 572 | "Memory" |
| 573 | ], |
| 574 | "parameters": [ |
| 575 | { |
| 576 | "name": "X-LlamaStack-ProviderData", |
| 577 | "in": "header", |
| 578 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 579 | "required": false, |
| 580 | "schema": { |
| 581 | "type": "string" |
| 582 | } |
| 583 | } |
| 584 | ], |
| 585 | "requestBody": { |
| 586 | "content": { |
| 587 | "application/json": { |
| 588 | "schema": { |
| 589 | "$ref": "#/components/schemas/DeleteDocumentsRequest" |
| 590 | } |
| 591 | } |
| 592 | }, |
| 593 | "required": true |
| 594 | } |
| 595 | } |
| 596 | }, |
| 597 | "/memory/drop": { |
| 598 | "post": { |
| 599 | "responses": { |
| 600 | "200": { |
| 601 | "description": "OK", |
| 602 | "content": { |
| 603 | "application/json": { |
| 604 | "schema": { |
| 605 | "type": "string" |
| 606 | } |
| 607 | } |
| 608 | } |
| 609 | } |
| 610 | }, |
| 611 | "tags": [ |
| 612 | "Memory" |
| 613 | ], |
| 614 | "parameters": [ |
| 615 | { |
| 616 | "name": "X-LlamaStack-ProviderData", |
| 617 | "in": "header", |
| 618 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 619 | "required": false, |
| 620 | "schema": { |
| 621 | "type": "string" |
| 622 | } |
| 623 | } |
| 624 | ], |
| 625 | "requestBody": { |
| 626 | "content": { |
| 627 | "application/json": { |
| 628 | "schema": { |
| 629 | "$ref": "#/components/schemas/DropMemoryBankRequest" |
| 630 | } |
| 631 | } |
| 632 | }, |
| 633 | "required": true |
| 634 | } |
| 635 | } |
| 636 | }, |
| 637 | "/inference/embeddings": { |
| 638 | "post": { |
| 639 | "responses": { |
| 640 | "200": { |
| 641 | "description": "OK", |
| 642 | "content": { |
| 643 | "application/json": { |
| 644 | "schema": { |
| 645 | "$ref": "#/components/schemas/EmbeddingsResponse" |
| 646 | } |
| 647 | } |
| 648 | } |
| 649 | } |
| 650 | }, |
| 651 | "tags": [ |
| 652 | "Inference" |
| 653 | ], |
| 654 | "parameters": [ |
| 655 | { |
| 656 | "name": "X-LlamaStack-ProviderData", |
| 657 | "in": "header", |
| 658 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 659 | "required": false, |
| 660 | "schema": { |
| 661 | "type": "string" |
| 662 | } |
| 663 | } |
| 664 | ], |
| 665 | "requestBody": { |
| 666 | "content": { |
| 667 | "application/json": { |
| 668 | "schema": { |
| 669 | "$ref": "#/components/schemas/EmbeddingsRequest" |
| 670 | } |
| 671 | } |
| 672 | }, |
| 673 | "required": true |
| 674 | } |
| 675 | } |
| 676 | }, |
| 677 | "/evaluate/question_answering/": { |
| 678 | "post": { |
| 679 | "responses": { |
| 680 | "200": { |
| 681 | "description": "OK", |
| 682 | "content": { |
| 683 | "application/json": { |
| 684 | "schema": { |
| 685 | "$ref": "#/components/schemas/EvaluationJob" |
| 686 | } |
| 687 | } |
| 688 | } |
| 689 | } |
| 690 | }, |
| 691 | "tags": [ |
| 692 | "Evaluations" |
| 693 | ], |
| 694 | "parameters": [ |
| 695 | { |
| 696 | "name": "X-LlamaStack-ProviderData", |
| 697 | "in": "header", |
| 698 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 699 | "required": false, |
| 700 | "schema": { |
| 701 | "type": "string" |
| 702 | } |
| 703 | } |
| 704 | ], |
| 705 | "requestBody": { |
| 706 | "content": { |
| 707 | "application/json": { |
| 708 | "schema": { |
| 709 | "$ref": "#/components/schemas/EvaluateQuestionAnsweringRequest" |
| 710 | } |
| 711 | } |
| 712 | }, |
| 713 | "required": true |
| 714 | } |
| 715 | } |
| 716 | }, |
| 717 | "/evaluate/summarization/": { |
| 718 | "post": { |
| 719 | "responses": { |
| 720 | "200": { |
| 721 | "description": "OK", |
| 722 | "content": { |
| 723 | "application/json": { |
| 724 | "schema": { |
| 725 | "$ref": "#/components/schemas/EvaluationJob" |
| 726 | } |
| 727 | } |
| 728 | } |
| 729 | } |
| 730 | }, |
| 731 | "tags": [ |
| 732 | "Evaluations" |
| 733 | ], |
| 734 | "parameters": [ |
| 735 | { |
| 736 | "name": "X-LlamaStack-ProviderData", |
| 737 | "in": "header", |
| 738 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 739 | "required": false, |
| 740 | "schema": { |
| 741 | "type": "string" |
| 742 | } |
| 743 | } |
| 744 | ], |
| 745 | "requestBody": { |
| 746 | "content": { |
| 747 | "application/json": { |
| 748 | "schema": { |
| 749 | "$ref": "#/components/schemas/EvaluateSummarizationRequest" |
| 750 | } |
| 751 | } |
| 752 | }, |
| 753 | "required": true |
| 754 | } |
| 755 | } |
| 756 | }, |
| 757 | "/evaluate/text_generation/": { |
| 758 | "post": { |
| 759 | "responses": { |
| 760 | "200": { |
| 761 | "description": "OK", |
| 762 | "content": { |
| 763 | "application/json": { |
| 764 | "schema": { |
| 765 | "$ref": "#/components/schemas/EvaluationJob" |
| 766 | } |
| 767 | } |
| 768 | } |
| 769 | } |
| 770 | }, |
| 771 | "tags": [ |
| 772 | "Evaluations" |
| 773 | ], |
| 774 | "parameters": [ |
| 775 | { |
| 776 | "name": "X-LlamaStack-ProviderData", |
| 777 | "in": "header", |
| 778 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 779 | "required": false, |
| 780 | "schema": { |
| 781 | "type": "string" |
| 782 | } |
| 783 | } |
| 784 | ], |
| 785 | "requestBody": { |
| 786 | "content": { |
| 787 | "application/json": { |
| 788 | "schema": { |
| 789 | "$ref": "#/components/schemas/EvaluateTextGenerationRequest" |
| 790 | } |
| 791 | } |
| 792 | }, |
| 793 | "required": true |
| 794 | } |
| 795 | } |
| 796 | }, |
| 797 | "/agents/session/get": { |
| 798 | "post": { |
| 799 | "responses": { |
| 800 | "200": { |
| 801 | "description": "OK", |
| 802 | "content": { |
| 803 | "application/json": { |
| 804 | "schema": { |
| 805 | "$ref": "#/components/schemas/Session" |
| 806 | } |
| 807 | } |
| 808 | } |
| 809 | } |
| 810 | }, |
| 811 | "tags": [ |
| 812 | "Agents" |
| 813 | ], |
| 814 | "parameters": [ |
| 815 | { |
| 816 | "name": "agent_id", |
| 817 | "in": "query", |
| 818 | "required": true, |
| 819 | "schema": { |
| 820 | "type": "string" |
| 821 | } |
| 822 | }, |
| 823 | { |
| 824 | "name": "session_id", |
| 825 | "in": "query", |
| 826 | "required": true, |
| 827 | "schema": { |
| 828 | "type": "string" |
| 829 | } |
| 830 | }, |
| 831 | { |
| 832 | "name": "X-LlamaStack-ProviderData", |
| 833 | "in": "header", |
| 834 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 835 | "required": false, |
| 836 | "schema": { |
| 837 | "type": "string" |
| 838 | } |
| 839 | } |
| 840 | ], |
| 841 | "requestBody": { |
| 842 | "content": { |
| 843 | "application/json": { |
| 844 | "schema": { |
| 845 | "$ref": "#/components/schemas/GetAgentsSessionRequest" |
| 846 | } |
| 847 | } |
| 848 | }, |
| 849 | "required": true |
| 850 | } |
| 851 | } |
| 852 | }, |
| 853 | "/agents/step/get": { |
| 854 | "get": { |
| 855 | "responses": { |
| 856 | "200": { |
| 857 | "description": "OK", |
| 858 | "content": { |
| 859 | "application/json": { |
| 860 | "schema": { |
| 861 | "$ref": "#/components/schemas/AgentStepResponse" |
| 862 | } |
| 863 | } |
| 864 | } |
| 865 | } |
| 866 | }, |
| 867 | "tags": [ |
| 868 | "Agents" |
| 869 | ], |
| 870 | "parameters": [ |
| 871 | { |
| 872 | "name": "agent_id", |
| 873 | "in": "query", |
| 874 | "required": true, |
| 875 | "schema": { |
| 876 | "type": "string" |
| 877 | } |
| 878 | }, |
| 879 | { |
| 880 | "name": "turn_id", |
| 881 | "in": "query", |
| 882 | "required": true, |
| 883 | "schema": { |
| 884 | "type": "string" |
| 885 | } |
| 886 | }, |
| 887 | { |
| 888 | "name": "step_id", |
| 889 | "in": "query", |
| 890 | "required": true, |
| 891 | "schema": { |
| 892 | "type": "string" |
| 893 | } |
| 894 | }, |
| 895 | { |
| 896 | "name": "X-LlamaStack-ProviderData", |
| 897 | "in": "header", |
| 898 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 899 | "required": false, |
| 900 | "schema": { |
| 901 | "type": "string" |
| 902 | } |
| 903 | } |
| 904 | ] |
| 905 | } |
| 906 | }, |
| 907 | "/agents/turn/get": { |
| 908 | "get": { |
| 909 | "responses": { |
| 910 | "200": { |
| 911 | "description": "OK", |
| 912 | "content": { |
| 913 | "application/json": { |
| 914 | "schema": { |
| 915 | "$ref": "#/components/schemas/Turn" |
| 916 | } |
| 917 | } |
| 918 | } |
| 919 | } |
| 920 | }, |
| 921 | "tags": [ |
| 922 | "Agents" |
| 923 | ], |
| 924 | "parameters": [ |
| 925 | { |
| 926 | "name": "agent_id", |
| 927 | "in": "query", |
| 928 | "required": true, |
| 929 | "schema": { |
| 930 | "type": "string" |
| 931 | } |
| 932 | }, |
| 933 | { |
| 934 | "name": "turn_id", |
| 935 | "in": "query", |
| 936 | "required": true, |
| 937 | "schema": { |
| 938 | "type": "string" |
| 939 | } |
| 940 | }, |
| 941 | { |
| 942 | "name": "X-LlamaStack-ProviderData", |
| 943 | "in": "header", |
| 944 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 945 | "required": false, |
| 946 | "schema": { |
| 947 | "type": "string" |
| 948 | } |
| 949 | } |
| 950 | ] |
| 951 | } |
| 952 | }, |
| 953 | "/datasets/get": { |
| 954 | "get": { |
| 955 | "responses": { |
| 956 | "200": { |
| 957 | "description": "OK", |
| 958 | "content": { |
| 959 | "application/json": { |
| 960 | "schema": { |
| 961 | "$ref": "#/components/schemas/TrainEvalDataset" |
| 962 | } |
| 963 | } |
| 964 | } |
| 965 | } |
| 966 | }, |
| 967 | "tags": [ |
| 968 | "Datasets" |
| 969 | ], |
| 970 | "parameters": [ |
| 971 | { |
| 972 | "name": "dataset_uuid", |
| 973 | "in": "query", |
| 974 | "required": true, |
| 975 | "schema": { |
| 976 | "type": "string" |
| 977 | } |
| 978 | }, |
| 979 | { |
| 980 | "name": "X-LlamaStack-ProviderData", |
| 981 | "in": "header", |
| 982 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 983 | "required": false, |
| 984 | "schema": { |
| 985 | "type": "string" |
| 986 | } |
| 987 | } |
| 988 | ] |
| 989 | } |
| 990 | }, |
| 991 | "/memory/documents/get": { |
| 992 | "post": { |
| 993 | "responses": { |
| 994 | "200": { |
| 995 | "description": "OK", |
| 996 | "content": { |
| 997 | "application/jsonl": { |
| 998 | "schema": { |
| 999 | "$ref": "#/components/schemas/MemoryBankDocument" |
| 1000 | } |
| 1001 | } |
| 1002 | } |
| 1003 | } |
| 1004 | }, |
| 1005 | "tags": [ |
| 1006 | "Memory" |
| 1007 | ], |
| 1008 | "parameters": [ |
| 1009 | { |
| 1010 | "name": "bank_id", |
| 1011 | "in": "query", |
| 1012 | "required": true, |
| 1013 | "schema": { |
| 1014 | "type": "string" |
| 1015 | } |
| 1016 | }, |
| 1017 | { |
| 1018 | "name": "X-LlamaStack-ProviderData", |
| 1019 | "in": "header", |
| 1020 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1021 | "required": false, |
| 1022 | "schema": { |
| 1023 | "type": "string" |
| 1024 | } |
| 1025 | } |
| 1026 | ], |
| 1027 | "requestBody": { |
| 1028 | "content": { |
| 1029 | "application/json": { |
| 1030 | "schema": { |
| 1031 | "$ref": "#/components/schemas/GetDocumentsRequest" |
| 1032 | } |
| 1033 | } |
| 1034 | }, |
| 1035 | "required": true |
| 1036 | } |
| 1037 | } |
| 1038 | }, |
| 1039 | "/evaluate/job/artifacts": { |
| 1040 | "get": { |
| 1041 | "responses": { |
| 1042 | "200": { |
| 1043 | "description": "OK", |
| 1044 | "content": { |
| 1045 | "application/json": { |
| 1046 | "schema": { |
| 1047 | "$ref": "#/components/schemas/EvaluationJobArtifactsResponse" |
| 1048 | } |
| 1049 | } |
| 1050 | } |
| 1051 | } |
| 1052 | }, |
| 1053 | "tags": [ |
| 1054 | "Evaluations" |
| 1055 | ], |
| 1056 | "parameters": [ |
| 1057 | { |
| 1058 | "name": "job_uuid", |
| 1059 | "in": "query", |
| 1060 | "required": true, |
| 1061 | "schema": { |
| 1062 | "type": "string" |
| 1063 | } |
| 1064 | }, |
| 1065 | { |
| 1066 | "name": "X-LlamaStack-ProviderData", |
| 1067 | "in": "header", |
| 1068 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1069 | "required": false, |
| 1070 | "schema": { |
| 1071 | "type": "string" |
| 1072 | } |
| 1073 | } |
| 1074 | ] |
| 1075 | } |
| 1076 | }, |
| 1077 | "/evaluate/job/logs": { |
| 1078 | "get": { |
| 1079 | "responses": { |
| 1080 | "200": { |
| 1081 | "description": "OK", |
| 1082 | "content": { |
| 1083 | "application/json": { |
| 1084 | "schema": { |
| 1085 | "$ref": "#/components/schemas/EvaluationJobLogStream" |
| 1086 | } |
| 1087 | } |
| 1088 | } |
| 1089 | } |
| 1090 | }, |
| 1091 | "tags": [ |
| 1092 | "Evaluations" |
| 1093 | ], |
| 1094 | "parameters": [ |
| 1095 | { |
| 1096 | "name": "job_uuid", |
| 1097 | "in": "query", |
| 1098 | "required": true, |
| 1099 | "schema": { |
| 1100 | "type": "string" |
| 1101 | } |
| 1102 | }, |
| 1103 | { |
| 1104 | "name": "X-LlamaStack-ProviderData", |
| 1105 | "in": "header", |
| 1106 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1107 | "required": false, |
| 1108 | "schema": { |
| 1109 | "type": "string" |
| 1110 | } |
| 1111 | } |
| 1112 | ] |
| 1113 | } |
| 1114 | }, |
| 1115 | "/evaluate/job/status": { |
| 1116 | "get": { |
| 1117 | "responses": { |
| 1118 | "200": { |
| 1119 | "description": "OK", |
| 1120 | "content": { |
| 1121 | "application/json": { |
| 1122 | "schema": { |
| 1123 | "$ref": "#/components/schemas/EvaluationJobStatusResponse" |
| 1124 | } |
| 1125 | } |
| 1126 | } |
| 1127 | } |
| 1128 | }, |
| 1129 | "tags": [ |
| 1130 | "Evaluations" |
| 1131 | ], |
| 1132 | "parameters": [ |
| 1133 | { |
| 1134 | "name": "job_uuid", |
| 1135 | "in": "query", |
| 1136 | "required": true, |
| 1137 | "schema": { |
| 1138 | "type": "string" |
| 1139 | } |
| 1140 | }, |
| 1141 | { |
| 1142 | "name": "X-LlamaStack-ProviderData", |
| 1143 | "in": "header", |
| 1144 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1145 | "required": false, |
| 1146 | "schema": { |
| 1147 | "type": "string" |
| 1148 | } |
| 1149 | } |
| 1150 | ] |
| 1151 | } |
| 1152 | }, |
| 1153 | "/evaluate/jobs": { |
| 1154 | "get": { |
| 1155 | "responses": { |
| 1156 | "200": { |
| 1157 | "description": "OK", |
| 1158 | "content": { |
| 1159 | "application/jsonl": { |
| 1160 | "schema": { |
| 1161 | "$ref": "#/components/schemas/EvaluationJob" |
| 1162 | } |
| 1163 | } |
| 1164 | } |
| 1165 | } |
| 1166 | }, |
| 1167 | "tags": [ |
| 1168 | "Evaluations" |
| 1169 | ], |
| 1170 | "parameters": [ |
| 1171 | { |
| 1172 | "name": "X-LlamaStack-ProviderData", |
| 1173 | "in": "header", |
| 1174 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1175 | "required": false, |
| 1176 | "schema": { |
| 1177 | "type": "string" |
| 1178 | } |
| 1179 | } |
| 1180 | ] |
| 1181 | } |
| 1182 | }, |
| 1183 | "/memory/get": { |
| 1184 | "get": { |
| 1185 | "responses": { |
| 1186 | "200": { |
| 1187 | "description": "OK", |
| 1188 | "content": { |
| 1189 | "application/json": { |
| 1190 | "schema": { |
| 1191 | "oneOf": [ |
| 1192 | { |
| 1193 | "$ref": "#/components/schemas/MemoryBank" |
| 1194 | }, |
| 1195 | { |
| 1196 | "type": "null" |
| 1197 | } |
| 1198 | ] |
| 1199 | } |
| 1200 | } |
| 1201 | } |
| 1202 | } |
| 1203 | }, |
| 1204 | "tags": [ |
| 1205 | "Memory" |
| 1206 | ], |
| 1207 | "parameters": [ |
| 1208 | { |
| 1209 | "name": "bank_id", |
| 1210 | "in": "query", |
| 1211 | "required": true, |
| 1212 | "schema": { |
| 1213 | "type": "string" |
| 1214 | } |
| 1215 | }, |
| 1216 | { |
| 1217 | "name": "X-LlamaStack-ProviderData", |
| 1218 | "in": "header", |
| 1219 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1220 | "required": false, |
| 1221 | "schema": { |
| 1222 | "type": "string" |
| 1223 | } |
| 1224 | } |
| 1225 | ] |
| 1226 | } |
| 1227 | }, |
| 1228 | "/models/get": { |
| 1229 | "get": { |
| 1230 | "responses": { |
| 1231 | "200": { |
| 1232 | "description": "OK", |
| 1233 | "content": { |
| 1234 | "application/json": { |
| 1235 | "schema": { |
| 1236 | "oneOf": [ |
| 1237 | { |
| 1238 | "$ref": "#/components/schemas/ModelServingSpec" |
| 1239 | }, |
| 1240 | { |
| 1241 | "type": "null" |
| 1242 | } |
| 1243 | ] |
| 1244 | } |
| 1245 | } |
| 1246 | } |
| 1247 | } |
| 1248 | }, |
| 1249 | "tags": [ |
| 1250 | "Models" |
| 1251 | ], |
| 1252 | "parameters": [ |
| 1253 | { |
| 1254 | "name": "core_model_id", |
| 1255 | "in": "query", |
| 1256 | "required": true, |
| 1257 | "schema": { |
| 1258 | "type": "string" |
| 1259 | } |
| 1260 | }, |
| 1261 | { |
| 1262 | "name": "X-LlamaStack-ProviderData", |
| 1263 | "in": "header", |
| 1264 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1265 | "required": false, |
| 1266 | "schema": { |
| 1267 | "type": "string" |
| 1268 | } |
| 1269 | } |
| 1270 | ] |
| 1271 | } |
| 1272 | }, |
| 1273 | "/memory_banks/get": { |
| 1274 | "get": { |
| 1275 | "responses": { |
| 1276 | "200": { |
| 1277 | "description": "OK", |
| 1278 | "content": { |
| 1279 | "application/json": { |
| 1280 | "schema": { |
| 1281 | "oneOf": [ |
| 1282 | { |
| 1283 | "$ref": "#/components/schemas/MemoryBankSpec" |
| 1284 | }, |
| 1285 | { |
| 1286 | "type": "null" |
| 1287 | } |
| 1288 | ] |
| 1289 | } |
| 1290 | } |
| 1291 | } |
| 1292 | } |
| 1293 | }, |
| 1294 | "tags": [ |
| 1295 | "MemoryBanks" |
| 1296 | ], |
| 1297 | "parameters": [ |
| 1298 | { |
| 1299 | "name": "bank_type", |
| 1300 | "in": "query", |
| 1301 | "required": true, |
| 1302 | "schema": { |
| 1303 | "$ref": "#/components/schemas/MemoryBankType" |
| 1304 | } |
| 1305 | }, |
| 1306 | { |
| 1307 | "name": "X-LlamaStack-ProviderData", |
| 1308 | "in": "header", |
| 1309 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1310 | "required": false, |
| 1311 | "schema": { |
| 1312 | "type": "string" |
| 1313 | } |
| 1314 | } |
| 1315 | ] |
| 1316 | } |
| 1317 | }, |
| 1318 | "/shields/get": { |
| 1319 | "get": { |
| 1320 | "responses": { |
| 1321 | "200": { |
| 1322 | "description": "OK", |
| 1323 | "content": { |
| 1324 | "application/json": { |
| 1325 | "schema": { |
| 1326 | "oneOf": [ |
| 1327 | { |
| 1328 | "$ref": "#/components/schemas/ShieldSpec" |
| 1329 | }, |
| 1330 | { |
| 1331 | "type": "null" |
| 1332 | } |
| 1333 | ] |
| 1334 | } |
| 1335 | } |
| 1336 | } |
| 1337 | } |
| 1338 | }, |
| 1339 | "tags": [ |
| 1340 | "Shields" |
| 1341 | ], |
| 1342 | "parameters": [ |
| 1343 | { |
| 1344 | "name": "shield_type", |
| 1345 | "in": "query", |
| 1346 | "required": true, |
| 1347 | "schema": { |
| 1348 | "type": "string" |
| 1349 | } |
| 1350 | }, |
| 1351 | { |
| 1352 | "name": "X-LlamaStack-ProviderData", |
| 1353 | "in": "header", |
| 1354 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1355 | "required": false, |
| 1356 | "schema": { |
| 1357 | "type": "string" |
| 1358 | } |
| 1359 | } |
| 1360 | ] |
| 1361 | } |
| 1362 | }, |
| 1363 | "/telemetry/get_trace": { |
| 1364 | "get": { |
| 1365 | "responses": { |
| 1366 | "200": { |
| 1367 | "description": "OK", |
| 1368 | "content": { |
| 1369 | "application/json": { |
| 1370 | "schema": { |
| 1371 | "$ref": "#/components/schemas/Trace" |
| 1372 | } |
| 1373 | } |
| 1374 | } |
| 1375 | } |
| 1376 | }, |
| 1377 | "tags": [ |
| 1378 | "Telemetry" |
| 1379 | ], |
| 1380 | "parameters": [ |
| 1381 | { |
| 1382 | "name": "trace_id", |
| 1383 | "in": "query", |
| 1384 | "required": true, |
| 1385 | "schema": { |
| 1386 | "type": "string" |
| 1387 | } |
| 1388 | }, |
| 1389 | { |
| 1390 | "name": "X-LlamaStack-ProviderData", |
| 1391 | "in": "header", |
| 1392 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1393 | "required": false, |
| 1394 | "schema": { |
| 1395 | "type": "string" |
| 1396 | } |
| 1397 | } |
| 1398 | ] |
| 1399 | } |
| 1400 | }, |
| 1401 | "/post_training/job/artifacts": { |
| 1402 | "get": { |
| 1403 | "responses": { |
| 1404 | "200": { |
| 1405 | "description": "OK", |
| 1406 | "content": { |
| 1407 | "application/json": { |
| 1408 | "schema": { |
| 1409 | "$ref": "#/components/schemas/PostTrainingJobArtifactsResponse" |
| 1410 | } |
| 1411 | } |
| 1412 | } |
| 1413 | } |
| 1414 | }, |
| 1415 | "tags": [ |
| 1416 | "PostTraining" |
| 1417 | ], |
| 1418 | "parameters": [ |
| 1419 | { |
| 1420 | "name": "job_uuid", |
| 1421 | "in": "query", |
| 1422 | "required": true, |
| 1423 | "schema": { |
| 1424 | "type": "string" |
| 1425 | } |
| 1426 | }, |
| 1427 | { |
| 1428 | "name": "X-LlamaStack-ProviderData", |
| 1429 | "in": "header", |
| 1430 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1431 | "required": false, |
| 1432 | "schema": { |
| 1433 | "type": "string" |
| 1434 | } |
| 1435 | } |
| 1436 | ] |
| 1437 | } |
| 1438 | }, |
| 1439 | "/post_training/job/logs": { |
| 1440 | "get": { |
| 1441 | "responses": { |
| 1442 | "200": { |
| 1443 | "description": "OK", |
| 1444 | "content": { |
| 1445 | "application/json": { |
| 1446 | "schema": { |
| 1447 | "$ref": "#/components/schemas/PostTrainingJobLogStream" |
| 1448 | } |
| 1449 | } |
| 1450 | } |
| 1451 | } |
| 1452 | }, |
| 1453 | "tags": [ |
| 1454 | "PostTraining" |
| 1455 | ], |
| 1456 | "parameters": [ |
| 1457 | { |
| 1458 | "name": "job_uuid", |
| 1459 | "in": "query", |
| 1460 | "required": true, |
| 1461 | "schema": { |
| 1462 | "type": "string" |
| 1463 | } |
| 1464 | }, |
| 1465 | { |
| 1466 | "name": "X-LlamaStack-ProviderData", |
| 1467 | "in": "header", |
| 1468 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1469 | "required": false, |
| 1470 | "schema": { |
| 1471 | "type": "string" |
| 1472 | } |
| 1473 | } |
| 1474 | ] |
| 1475 | } |
| 1476 | }, |
| 1477 | "/post_training/job/status": { |
| 1478 | "get": { |
| 1479 | "responses": { |
| 1480 | "200": { |
| 1481 | "description": "OK", |
| 1482 | "content": { |
| 1483 | "application/json": { |
| 1484 | "schema": { |
| 1485 | "$ref": "#/components/schemas/PostTrainingJobStatusResponse" |
| 1486 | } |
| 1487 | } |
| 1488 | } |
| 1489 | } |
| 1490 | }, |
| 1491 | "tags": [ |
| 1492 | "PostTraining" |
| 1493 | ], |
| 1494 | "parameters": [ |
| 1495 | { |
| 1496 | "name": "job_uuid", |
| 1497 | "in": "query", |
| 1498 | "required": true, |
| 1499 | "schema": { |
| 1500 | "type": "string" |
| 1501 | } |
| 1502 | }, |
| 1503 | { |
| 1504 | "name": "X-LlamaStack-ProviderData", |
| 1505 | "in": "header", |
| 1506 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1507 | "required": false, |
| 1508 | "schema": { |
| 1509 | "type": "string" |
| 1510 | } |
| 1511 | } |
| 1512 | ] |
| 1513 | } |
| 1514 | }, |
| 1515 | "/post_training/jobs": { |
| 1516 | "get": { |
| 1517 | "responses": { |
| 1518 | "200": { |
| 1519 | "description": "OK", |
| 1520 | "content": { |
| 1521 | "application/jsonl": { |
| 1522 | "schema": { |
| 1523 | "$ref": "#/components/schemas/PostTrainingJob" |
| 1524 | } |
| 1525 | } |
| 1526 | } |
| 1527 | } |
| 1528 | }, |
| 1529 | "tags": [ |
| 1530 | "PostTraining" |
| 1531 | ], |
| 1532 | "parameters": [ |
| 1533 | { |
| 1534 | "name": "X-LlamaStack-ProviderData", |
| 1535 | "in": "header", |
| 1536 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1537 | "required": false, |
| 1538 | "schema": { |
| 1539 | "type": "string" |
| 1540 | } |
| 1541 | } |
| 1542 | ] |
| 1543 | } |
| 1544 | }, |
| 1545 | "/memory/insert": { |
| 1546 | "post": { |
| 1547 | "responses": { |
| 1548 | "200": { |
| 1549 | "description": "OK" |
| 1550 | } |
| 1551 | }, |
| 1552 | "tags": [ |
| 1553 | "Memory" |
| 1554 | ], |
| 1555 | "parameters": [ |
| 1556 | { |
| 1557 | "name": "X-LlamaStack-ProviderData", |
| 1558 | "in": "header", |
| 1559 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1560 | "required": false, |
| 1561 | "schema": { |
| 1562 | "type": "string" |
| 1563 | } |
| 1564 | } |
| 1565 | ], |
| 1566 | "requestBody": { |
| 1567 | "content": { |
| 1568 | "application/json": { |
| 1569 | "schema": { |
| 1570 | "$ref": "#/components/schemas/InsertDocumentsRequest" |
| 1571 | } |
| 1572 | } |
| 1573 | }, |
| 1574 | "required": true |
| 1575 | } |
| 1576 | } |
| 1577 | }, |
| 1578 | "/memory_banks/list": { |
| 1579 | "get": { |
| 1580 | "responses": { |
| 1581 | "200": { |
| 1582 | "description": "OK", |
| 1583 | "content": { |
| 1584 | "application/jsonl": { |
| 1585 | "schema": { |
| 1586 | "$ref": "#/components/schemas/MemoryBankSpec" |
| 1587 | } |
| 1588 | } |
| 1589 | } |
| 1590 | } |
| 1591 | }, |
| 1592 | "tags": [ |
| 1593 | "MemoryBanks" |
| 1594 | ], |
| 1595 | "parameters": [ |
| 1596 | { |
| 1597 | "name": "X-LlamaStack-ProviderData", |
| 1598 | "in": "header", |
| 1599 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1600 | "required": false, |
| 1601 | "schema": { |
| 1602 | "type": "string" |
| 1603 | } |
| 1604 | } |
| 1605 | ] |
| 1606 | } |
| 1607 | }, |
| 1608 | "/memory/list": { |
| 1609 | "get": { |
| 1610 | "responses": { |
| 1611 | "200": { |
| 1612 | "description": "OK", |
| 1613 | "content": { |
| 1614 | "application/jsonl": { |
| 1615 | "schema": { |
| 1616 | "$ref": "#/components/schemas/MemoryBank" |
| 1617 | } |
| 1618 | } |
| 1619 | } |
| 1620 | } |
| 1621 | }, |
| 1622 | "tags": [ |
| 1623 | "Memory" |
| 1624 | ], |
| 1625 | "parameters": [ |
| 1626 | { |
| 1627 | "name": "X-LlamaStack-ProviderData", |
| 1628 | "in": "header", |
| 1629 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1630 | "required": false, |
| 1631 | "schema": { |
| 1632 | "type": "string" |
| 1633 | } |
| 1634 | } |
| 1635 | ] |
| 1636 | } |
| 1637 | }, |
| 1638 | "/models/list": { |
| 1639 | "get": { |
| 1640 | "responses": { |
| 1641 | "200": { |
| 1642 | "description": "OK", |
| 1643 | "content": { |
| 1644 | "application/jsonl": { |
| 1645 | "schema": { |
| 1646 | "$ref": "#/components/schemas/ModelServingSpec" |
| 1647 | } |
| 1648 | } |
| 1649 | } |
| 1650 | } |
| 1651 | }, |
| 1652 | "tags": [ |
| 1653 | "Models" |
| 1654 | ], |
| 1655 | "parameters": [ |
| 1656 | { |
| 1657 | "name": "X-LlamaStack-ProviderData", |
| 1658 | "in": "header", |
| 1659 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1660 | "required": false, |
| 1661 | "schema": { |
| 1662 | "type": "string" |
| 1663 | } |
| 1664 | } |
| 1665 | ] |
| 1666 | } |
| 1667 | }, |
| 1668 | "/shields/list": { |
| 1669 | "get": { |
| 1670 | "responses": { |
| 1671 | "200": { |
| 1672 | "description": "OK", |
| 1673 | "content": { |
| 1674 | "application/jsonl": { |
| 1675 | "schema": { |
| 1676 | "$ref": "#/components/schemas/ShieldSpec" |
| 1677 | } |
| 1678 | } |
| 1679 | } |
| 1680 | } |
| 1681 | }, |
| 1682 | "tags": [ |
| 1683 | "Shields" |
| 1684 | ], |
| 1685 | "parameters": [ |
| 1686 | { |
| 1687 | "name": "X-LlamaStack-ProviderData", |
| 1688 | "in": "header", |
| 1689 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1690 | "required": false, |
| 1691 | "schema": { |
| 1692 | "type": "string" |
| 1693 | } |
| 1694 | } |
| 1695 | ] |
| 1696 | } |
| 1697 | }, |
| 1698 | "/telemetry/log_event": { |
| 1699 | "post": { |
| 1700 | "responses": { |
| 1701 | "200": { |
| 1702 | "description": "OK" |
| 1703 | } |
| 1704 | }, |
| 1705 | "tags": [ |
| 1706 | "Telemetry" |
| 1707 | ], |
| 1708 | "parameters": [ |
| 1709 | { |
| 1710 | "name": "X-LlamaStack-ProviderData", |
| 1711 | "in": "header", |
| 1712 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1713 | "required": false, |
| 1714 | "schema": { |
| 1715 | "type": "string" |
| 1716 | } |
| 1717 | } |
| 1718 | ], |
| 1719 | "requestBody": { |
| 1720 | "content": { |
| 1721 | "application/json": { |
| 1722 | "schema": { |
| 1723 | "$ref": "#/components/schemas/LogEventRequest" |
| 1724 | } |
| 1725 | } |
| 1726 | }, |
| 1727 | "required": true |
| 1728 | } |
| 1729 | } |
| 1730 | }, |
| 1731 | "/post_training/preference_optimize": { |
| 1732 | "post": { |
| 1733 | "responses": { |
| 1734 | "200": { |
| 1735 | "description": "OK", |
| 1736 | "content": { |
| 1737 | "application/json": { |
| 1738 | "schema": { |
| 1739 | "$ref": "#/components/schemas/PostTrainingJob" |
| 1740 | } |
| 1741 | } |
| 1742 | } |
| 1743 | } |
| 1744 | }, |
| 1745 | "tags": [ |
| 1746 | "PostTraining" |
| 1747 | ], |
| 1748 | "parameters": [ |
| 1749 | { |
| 1750 | "name": "X-LlamaStack-ProviderData", |
| 1751 | "in": "header", |
| 1752 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1753 | "required": false, |
| 1754 | "schema": { |
| 1755 | "type": "string" |
| 1756 | } |
| 1757 | } |
| 1758 | ], |
| 1759 | "requestBody": { |
| 1760 | "content": { |
| 1761 | "application/json": { |
| 1762 | "schema": { |
| 1763 | "$ref": "#/components/schemas/PreferenceOptimizeRequest" |
| 1764 | } |
| 1765 | } |
| 1766 | }, |
| 1767 | "required": true |
| 1768 | } |
| 1769 | } |
| 1770 | }, |
| 1771 | "/memory/query": { |
| 1772 | "post": { |
| 1773 | "responses": { |
| 1774 | "200": { |
| 1775 | "description": "OK", |
| 1776 | "content": { |
| 1777 | "application/json": { |
| 1778 | "schema": { |
| 1779 | "$ref": "#/components/schemas/QueryDocumentsResponse" |
| 1780 | } |
| 1781 | } |
| 1782 | } |
| 1783 | } |
| 1784 | }, |
| 1785 | "tags": [ |
| 1786 | "Memory" |
| 1787 | ], |
| 1788 | "parameters": [ |
| 1789 | { |
| 1790 | "name": "X-LlamaStack-ProviderData", |
| 1791 | "in": "header", |
| 1792 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1793 | "required": false, |
| 1794 | "schema": { |
| 1795 | "type": "string" |
| 1796 | } |
| 1797 | } |
| 1798 | ], |
| 1799 | "requestBody": { |
| 1800 | "content": { |
| 1801 | "application/json": { |
| 1802 | "schema": { |
| 1803 | "$ref": "#/components/schemas/QueryDocumentsRequest" |
| 1804 | } |
| 1805 | } |
| 1806 | }, |
| 1807 | "required": true |
| 1808 | } |
| 1809 | } |
| 1810 | }, |
| 1811 | "/reward_scoring/score": { |
| 1812 | "post": { |
| 1813 | "responses": { |
| 1814 | "200": { |
| 1815 | "description": "OK", |
| 1816 | "content": { |
| 1817 | "application/json": { |
| 1818 | "schema": { |
| 1819 | "$ref": "#/components/schemas/RewardScoringResponse" |
| 1820 | } |
| 1821 | } |
| 1822 | } |
| 1823 | } |
| 1824 | }, |
| 1825 | "tags": [ |
| 1826 | "RewardScoring" |
| 1827 | ], |
| 1828 | "parameters": [ |
| 1829 | { |
| 1830 | "name": "X-LlamaStack-ProviderData", |
| 1831 | "in": "header", |
| 1832 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1833 | "required": false, |
| 1834 | "schema": { |
| 1835 | "type": "string" |
| 1836 | } |
| 1837 | } |
| 1838 | ], |
| 1839 | "requestBody": { |
| 1840 | "content": { |
| 1841 | "application/json": { |
| 1842 | "schema": { |
| 1843 | "$ref": "#/components/schemas/RewardScoreRequest" |
| 1844 | } |
| 1845 | } |
| 1846 | }, |
| 1847 | "required": true |
| 1848 | } |
| 1849 | } |
| 1850 | }, |
| 1851 | "/safety/run_shield": { |
| 1852 | "post": { |
| 1853 | "responses": { |
| 1854 | "200": { |
| 1855 | "description": "OK", |
| 1856 | "content": { |
| 1857 | "application/json": { |
| 1858 | "schema": { |
| 1859 | "$ref": "#/components/schemas/RunShieldResponse" |
| 1860 | } |
| 1861 | } |
| 1862 | } |
| 1863 | } |
| 1864 | }, |
| 1865 | "tags": [ |
| 1866 | "Safety" |
| 1867 | ], |
| 1868 | "parameters": [ |
| 1869 | { |
| 1870 | "name": "X-LlamaStack-ProviderData", |
| 1871 | "in": "header", |
| 1872 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1873 | "required": false, |
| 1874 | "schema": { |
| 1875 | "type": "string" |
| 1876 | } |
| 1877 | } |
| 1878 | ], |
| 1879 | "requestBody": { |
| 1880 | "content": { |
| 1881 | "application/json": { |
| 1882 | "schema": { |
| 1883 | "$ref": "#/components/schemas/RunShieldRequest" |
| 1884 | } |
| 1885 | } |
| 1886 | }, |
| 1887 | "required": true |
| 1888 | } |
| 1889 | } |
| 1890 | }, |
| 1891 | "/post_training/supervised_fine_tune": { |
| 1892 | "post": { |
| 1893 | "responses": { |
| 1894 | "200": { |
| 1895 | "description": "OK", |
| 1896 | "content": { |
| 1897 | "application/json": { |
| 1898 | "schema": { |
| 1899 | "$ref": "#/components/schemas/PostTrainingJob" |
| 1900 | } |
| 1901 | } |
| 1902 | } |
| 1903 | } |
| 1904 | }, |
| 1905 | "tags": [ |
| 1906 | "PostTraining" |
| 1907 | ], |
| 1908 | "parameters": [ |
| 1909 | { |
| 1910 | "name": "X-LlamaStack-ProviderData", |
| 1911 | "in": "header", |
| 1912 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1913 | "required": false, |
| 1914 | "schema": { |
| 1915 | "type": "string" |
| 1916 | } |
| 1917 | } |
| 1918 | ], |
| 1919 | "requestBody": { |
| 1920 | "content": { |
| 1921 | "application/json": { |
| 1922 | "schema": { |
| 1923 | "$ref": "#/components/schemas/SupervisedFineTuneRequest" |
| 1924 | } |
| 1925 | } |
| 1926 | }, |
| 1927 | "required": true |
| 1928 | } |
| 1929 | } |
| 1930 | }, |
| 1931 | "/synthetic_data_generation/generate": { |
| 1932 | "post": { |
| 1933 | "responses": { |
| 1934 | "200": { |
| 1935 | "description": "OK", |
| 1936 | "content": { |
| 1937 | "application/json": { |
| 1938 | "schema": { |
| 1939 | "$ref": "#/components/schemas/SyntheticDataGenerationResponse" |
| 1940 | } |
| 1941 | } |
| 1942 | } |
| 1943 | } |
| 1944 | }, |
| 1945 | "tags": [ |
| 1946 | "SyntheticDataGeneration" |
| 1947 | ], |
| 1948 | "parameters": [ |
| 1949 | { |
| 1950 | "name": "X-LlamaStack-ProviderData", |
| 1951 | "in": "header", |
| 1952 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1953 | "required": false, |
| 1954 | "schema": { |
| 1955 | "type": "string" |
| 1956 | } |
| 1957 | } |
| 1958 | ], |
| 1959 | "requestBody": { |
| 1960 | "content": { |
| 1961 | "application/json": { |
| 1962 | "schema": { |
| 1963 | "$ref": "#/components/schemas/SyntheticDataGenerateRequest" |
| 1964 | } |
| 1965 | } |
| 1966 | }, |
| 1967 | "required": true |
| 1968 | } |
| 1969 | } |
| 1970 | }, |
| 1971 | "/memory/update": { |
| 1972 | "post": { |
| 1973 | "responses": { |
| 1974 | "200": { |
| 1975 | "description": "OK" |
| 1976 | } |
| 1977 | }, |
| 1978 | "tags": [ |
| 1979 | "Memory" |
| 1980 | ], |
| 1981 | "parameters": [ |
| 1982 | { |
| 1983 | "name": "X-LlamaStack-ProviderData", |
| 1984 | "in": "header", |
| 1985 | "description": "JSON-encoded provider data which will be made available to the adapter servicing the API", |
| 1986 | "required": false, |
| 1987 | "schema": { |
| 1988 | "type": "string" |
| 1989 | } |
| 1990 | } |
| 1991 | ], |
| 1992 | "requestBody": { |
| 1993 | "content": { |
| 1994 | "application/json": { |
| 1995 | "schema": { |
| 1996 | "$ref": "#/components/schemas/UpdateDocumentsRequest" |
| 1997 | } |
| 1998 | } |
| 1999 | }, |
| 2000 | "required": true |
| 2001 | } |
| 2002 | } |
| 2003 | } |
| 2004 | }, |
| 2005 | "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", |
| 2006 | "components": { |
| 2007 | "schemas": { |
| 2008 | "BuiltinTool": { |
| 2009 | "type": "string", |
| 2010 | "enum": [ |
| 2011 | "brave_search", |
| 2012 | "wolfram_alpha", |
| 2013 | "photogen", |
| 2014 | "code_interpreter" |
| 2015 | ] |
| 2016 | }, |
| 2017 | "CompletionMessage": { |
| 2018 | "type": "object", |
| 2019 | "properties": { |
| 2020 | "role": { |
| 2021 | "type": "string", |
| 2022 | "const": "assistant", |
| 2023 | "default": "assistant" |
| 2024 | }, |
| 2025 | "content": { |
| 2026 | "oneOf": [ |
| 2027 | { |
| 2028 | "type": "string" |
| 2029 | }, |
| 2030 | { |
| 2031 | "$ref": "#/components/schemas/ImageMedia" |
| 2032 | }, |
| 2033 | { |
| 2034 | "type": "array", |
| 2035 | "items": { |
| 2036 | "oneOf": [ |
| 2037 | { |
| 2038 | "type": "string" |
| 2039 | }, |
| 2040 | { |
| 2041 | "$ref": "#/components/schemas/ImageMedia" |
| 2042 | } |
| 2043 | ] |
| 2044 | } |
| 2045 | } |
| 2046 | ] |
| 2047 | }, |
| 2048 | "stop_reason": { |
| 2049 | "$ref": "#/components/schemas/StopReason" |
| 2050 | }, |
| 2051 | "tool_calls": { |
| 2052 | "type": "array", |
| 2053 | "items": { |
| 2054 | "$ref": "#/components/schemas/ToolCall" |
| 2055 | } |
| 2056 | } |
| 2057 | }, |
| 2058 | "additionalProperties": false, |
| 2059 | "required": [ |
| 2060 | "role", |
| 2061 | "content", |
| 2062 | "stop_reason", |
| 2063 | "tool_calls" |
| 2064 | ] |
| 2065 | }, |
| 2066 | "ImageMedia": { |
| 2067 | "type": "object", |
| 2068 | "properties": { |
| 2069 | "image": { |
| 2070 | "oneOf": [ |
| 2071 | { |
| 2072 | "type": "object", |
| 2073 | "properties": { |
| 2074 | "format": { |
| 2075 | "type": "string" |
| 2076 | }, |
| 2077 | "format_description": { |
| 2078 | "type": "string" |
| 2079 | } |
| 2080 | }, |
| 2081 | "additionalProperties": false, |
| 2082 | "title": "This class represents an image object. To create" |
| 2083 | }, |
| 2084 | { |
| 2085 | "$ref": "#/components/schemas/URL" |
| 2086 | } |
| 2087 | ] |
| 2088 | } |
| 2089 | }, |
| 2090 | "additionalProperties": false, |
| 2091 | "required": [ |
| 2092 | "image" |
| 2093 | ] |
| 2094 | }, |
| 2095 | "SamplingParams": { |
| 2096 | "type": "object", |
| 2097 | "properties": { |
| 2098 | "strategy": { |
| 2099 | "$ref": "#/components/schemas/SamplingStrategy", |
| 2100 | "default": "greedy" |
| 2101 | }, |
| 2102 | "temperature": { |
| 2103 | "type": "number", |
| 2104 | "default": 0.0 |
| 2105 | }, |
| 2106 | "top_p": { |
| 2107 | "type": "number", |
| 2108 | "default": 0.95 |
| 2109 | }, |
| 2110 | "top_k": { |
| 2111 | "type": "integer", |
| 2112 | "default": 0 |
| 2113 | }, |
| 2114 | "max_tokens": { |
| 2115 | "type": "integer", |
| 2116 | "default": 0 |
| 2117 | }, |
| 2118 | "repetition_penalty": { |
| 2119 | "type": "number", |
| 2120 | "default": 1.0 |
| 2121 | } |
| 2122 | }, |
| 2123 | "additionalProperties": false, |
| 2124 | "required": [ |
| 2125 | "strategy" |
| 2126 | ] |
| 2127 | }, |
| 2128 | "SamplingStrategy": { |
| 2129 | "type": "string", |
| 2130 | "enum": [ |
| 2131 | "greedy", |
| 2132 | "top_p", |
| 2133 | "top_k" |
| 2134 | ] |
| 2135 | }, |
| 2136 | "StopReason": { |
| 2137 | "type": "string", |
| 2138 | "enum": [ |
| 2139 | "end_of_turn", |
| 2140 | "end_of_message", |
| 2141 | "out_of_tokens" |
| 2142 | ] |
| 2143 | }, |
| 2144 | "SystemMessage": { |
| 2145 | "type": "object", |
| 2146 | "properties": { |
| 2147 | "role": { |
| 2148 | "type": "string", |
| 2149 | "const": "system", |
| 2150 | "default": "system" |
| 2151 | }, |
| 2152 | "content": { |
| 2153 | "oneOf": [ |
| 2154 | { |
| 2155 | "type": "string" |
| 2156 | }, |
| 2157 | { |
| 2158 | "$ref": "#/components/schemas/ImageMedia" |
| 2159 | }, |
| 2160 | { |
| 2161 | "type": "array", |
| 2162 | "items": { |
| 2163 | "oneOf": [ |
| 2164 | { |
| 2165 | "type": "string" |
| 2166 | }, |
| 2167 | { |
| 2168 | "$ref": "#/components/schemas/ImageMedia" |
| 2169 | } |
| 2170 | ] |
| 2171 | } |
| 2172 | } |
| 2173 | ] |
| 2174 | } |
| 2175 | }, |
| 2176 | "additionalProperties": false, |
| 2177 | "required": [ |
| 2178 | "role", |
| 2179 | "content" |
| 2180 | ] |
| 2181 | }, |
| 2182 | "ToolCall": { |
| 2183 | "type": "object", |
| 2184 | "properties": { |
| 2185 | "call_id": { |
| 2186 | "type": "string" |
| 2187 | }, |
| 2188 | "tool_name": { |
| 2189 | "oneOf": [ |
| 2190 | { |
| 2191 | "$ref": "#/components/schemas/BuiltinTool" |
| 2192 | }, |
| 2193 | { |
| 2194 | "type": "string" |
| 2195 | } |
| 2196 | ] |
| 2197 | }, |
| 2198 | "arguments": { |
| 2199 | "type": "object", |
| 2200 | "additionalProperties": { |
| 2201 | "oneOf": [ |
| 2202 | { |
| 2203 | "type": "string" |
| 2204 | }, |
| 2205 | { |
| 2206 | "type": "integer" |
| 2207 | }, |
| 2208 | { |
| 2209 | "type": "number" |
| 2210 | }, |
| 2211 | { |
| 2212 | "type": "boolean" |
| 2213 | }, |
| 2214 | { |
| 2215 | "type": "null" |
| 2216 | }, |
| 2217 | { |
| 2218 | "type": "array", |
| 2219 | "items": { |
| 2220 | "oneOf": [ |
| 2221 | { |
| 2222 | "type": "string" |
| 2223 | }, |
| 2224 | { |
| 2225 | "type": "integer" |
| 2226 | }, |
| 2227 | { |
| 2228 | "type": "number" |
| 2229 | }, |
| 2230 | { |
| 2231 | "type": "boolean" |
| 2232 | }, |
| 2233 | { |
| 2234 | "type": "null" |
| 2235 | } |
| 2236 | ] |
| 2237 | } |
| 2238 | }, |
| 2239 | { |
| 2240 | "type": "object", |
| 2241 | "additionalProperties": { |
| 2242 | "oneOf": [ |
| 2243 | { |
| 2244 | "type": "string" |
| 2245 | }, |
| 2246 | { |
| 2247 | "type": "integer" |
| 2248 | }, |
| 2249 | { |
| 2250 | "type": "number" |
| 2251 | }, |
| 2252 | { |
| 2253 | "type": "boolean" |
| 2254 | }, |
| 2255 | { |
| 2256 | "type": "null" |
| 2257 | } |
| 2258 | ] |
| 2259 | } |
| 2260 | } |
| 2261 | ] |
| 2262 | } |
| 2263 | } |
| 2264 | }, |
| 2265 | "additionalProperties": false, |
| 2266 | "required": [ |
| 2267 | "call_id", |
| 2268 | "tool_name", |
| 2269 | "arguments" |
| 2270 | ] |
| 2271 | }, |
| 2272 | "ToolChoice": { |
| 2273 | "type": "string", |
| 2274 | "enum": [ |
| 2275 | "auto", |
| 2276 | "required" |
| 2277 | ] |
| 2278 | }, |
| 2279 | "ToolDefinition": { |
| 2280 | "type": "object", |
| 2281 | "properties": { |
| 2282 | "tool_name": { |
| 2283 | "oneOf": [ |
| 2284 | { |
| 2285 | "$ref": "#/components/schemas/BuiltinTool" |
| 2286 | }, |
| 2287 | { |
| 2288 | "type": "string" |
| 2289 | } |
| 2290 | ] |
| 2291 | }, |
| 2292 | "description": { |
| 2293 | "type": "string" |
| 2294 | }, |
| 2295 | "parameters": { |
| 2296 | "type": "object", |
| 2297 | "additionalProperties": { |
| 2298 | "$ref": "#/components/schemas/ToolParamDefinition" |
| 2299 | } |
| 2300 | } |
| 2301 | }, |
| 2302 | "additionalProperties": false, |
| 2303 | "required": [ |
| 2304 | "tool_name" |
| 2305 | ] |
| 2306 | }, |
| 2307 | "ToolParamDefinition": { |
| 2308 | "type": "object", |
| 2309 | "properties": { |
| 2310 | "param_type": { |
| 2311 | "type": "string" |
| 2312 | }, |
| 2313 | "description": { |
| 2314 | "type": "string" |
| 2315 | }, |
| 2316 | "required": { |
| 2317 | "type": "boolean", |
| 2318 | "default": true |
| 2319 | }, |
| 2320 | "default": { |
| 2321 | "oneOf": [ |
| 2322 | { |
| 2323 | "type": "null" |
| 2324 | }, |
| 2325 | { |
| 2326 | "type": "boolean" |
| 2327 | }, |
| 2328 | { |
| 2329 | "type": "number" |
| 2330 | }, |
| 2331 | { |
| 2332 | "type": "string" |
| 2333 | }, |
| 2334 | { |
| 2335 | "type": "array" |
| 2336 | }, |
| 2337 | { |
| 2338 | "type": "object" |
| 2339 | } |
| 2340 | ] |
| 2341 | } |
| 2342 | }, |
| 2343 | "additionalProperties": false, |
| 2344 | "required": [ |
| 2345 | "param_type" |
| 2346 | ] |
| 2347 | }, |
| 2348 | "ToolPromptFormat": { |
| 2349 | "type": "string", |
| 2350 | "enum": [ |
| 2351 | "json", |
| 2352 | "function_tag", |
| 2353 | "python_list" |
| 2354 | ], |
| 2355 | "title": "This Enum refers to the prompt format for calling custom / zero shot tools", |
| 2356 | "description": "`json` --\n Refers to the json format for calling tools.\n The json format takes the form like\n {\n \"type\": \"function\",\n \"function\" : {\n \"name\": \"function_name\",\n \"description\": \"function_description\",\n \"parameters\": {...}\n }\n }\n\n`function_tag` --\n This is an example of how you could define\n your own user defined format for making tool calls.\n The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\nThe detailed prompts for each of these formats are added to llama cli" |
| 2357 | }, |
| 2358 | "ToolResponseMessage": { |
| 2359 | "type": "object", |
| 2360 | "properties": { |
| 2361 | "role": { |
| 2362 | "type": "string", |
| 2363 | "const": "ipython", |
| 2364 | "default": "ipython" |
| 2365 | }, |
| 2366 | "call_id": { |
| 2367 | "type": "string" |
| 2368 | }, |
| 2369 | "tool_name": { |
| 2370 | "oneOf": [ |
| 2371 | { |
| 2372 | "$ref": "#/components/schemas/BuiltinTool" |
| 2373 | }, |
| 2374 | { |
| 2375 | "type": "string" |
| 2376 | } |
| 2377 | ] |
| 2378 | }, |
| 2379 | "content": { |
| 2380 | "oneOf": [ |
| 2381 | { |
| 2382 | "type": "string" |
| 2383 | }, |
| 2384 | { |
| 2385 | "$ref": "#/components/schemas/ImageMedia" |
| 2386 | }, |
| 2387 | { |
| 2388 | "type": "array", |
| 2389 | "items": { |
| 2390 | "oneOf": [ |
| 2391 | { |
| 2392 | "type": "string" |
| 2393 | }, |
| 2394 | { |
| 2395 | "$ref": "#/components/schemas/ImageMedia" |
| 2396 | } |
| 2397 | ] |
| 2398 | } |
| 2399 | } |
| 2400 | ] |
| 2401 | } |
| 2402 | }, |
| 2403 | "additionalProperties": false, |
| 2404 | "required": [ |
| 2405 | "role", |
| 2406 | "call_id", |
| 2407 | "tool_name", |
| 2408 | "content" |
| 2409 | ] |
| 2410 | }, |
| 2411 | "URL": { |
| 2412 | "type": "string", |
| 2413 | "format": "uri", |
| 2414 | "pattern": "^(https?://|file://|data:)" |
| 2415 | }, |
| 2416 | "UserMessage": { |
| 2417 | "type": "object", |
| 2418 | "properties": { |
| 2419 | "role": { |
| 2420 | "type": "string", |
| 2421 | "const": "user", |
| 2422 | "default": "user" |
| 2423 | }, |
| 2424 | "content": { |
| 2425 | "oneOf": [ |
| 2426 | { |
| 2427 | "type": "string" |
| 2428 | }, |
| 2429 | { |
| 2430 | "$ref": "#/components/schemas/ImageMedia" |
| 2431 | }, |
| 2432 | { |
| 2433 | "type": "array", |
| 2434 | "items": { |
| 2435 | "oneOf": [ |
| 2436 | { |
| 2437 | "type": "string" |
| 2438 | }, |
| 2439 | { |
| 2440 | "$ref": "#/components/schemas/ImageMedia" |
| 2441 | } |
| 2442 | ] |
| 2443 | } |
| 2444 | } |
| 2445 | ] |
| 2446 | }, |
| 2447 | "context": { |
| 2448 | "oneOf": [ |
| 2449 | { |
| 2450 | "type": "string" |
| 2451 | }, |
| 2452 | { |
| 2453 | "$ref": "#/components/schemas/ImageMedia" |
| 2454 | }, |
| 2455 | { |
| 2456 | "type": "array", |
| 2457 | "items": { |
| 2458 | "oneOf": [ |
| 2459 | { |
| 2460 | "type": "string" |
| 2461 | }, |
| 2462 | { |
| 2463 | "$ref": "#/components/schemas/ImageMedia" |
| 2464 | } |
| 2465 | ] |
| 2466 | } |
| 2467 | } |
| 2468 | ] |
| 2469 | } |
| 2470 | }, |
| 2471 | "additionalProperties": false, |
| 2472 | "required": [ |
| 2473 | "role", |
| 2474 | "content" |
| 2475 | ] |
| 2476 | }, |
| 2477 | "BatchChatCompletionRequest": { |
| 2478 | "type": "object", |
| 2479 | "properties": { |
| 2480 | "model": { |
| 2481 | "type": "string" |
| 2482 | }, |
| 2483 | "messages_batch": { |
| 2484 | "type": "array", |
| 2485 | "items": { |
| 2486 | "type": "array", |
| 2487 | "items": { |
| 2488 | "oneOf": [ |
| 2489 | { |
| 2490 | "$ref": "#/components/schemas/UserMessage" |
| 2491 | }, |
| 2492 | { |
| 2493 | "$ref": "#/components/schemas/SystemMessage" |
| 2494 | }, |
| 2495 | { |
| 2496 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 2497 | }, |
| 2498 | { |
| 2499 | "$ref": "#/components/schemas/CompletionMessage" |
| 2500 | } |
| 2501 | ] |
| 2502 | } |
| 2503 | } |
| 2504 | }, |
| 2505 | "sampling_params": { |
| 2506 | "$ref": "#/components/schemas/SamplingParams" |
| 2507 | }, |
| 2508 | "tools": { |
| 2509 | "type": "array", |
| 2510 | "items": { |
| 2511 | "$ref": "#/components/schemas/ToolDefinition" |
| 2512 | } |
| 2513 | }, |
| 2514 | "tool_choice": { |
| 2515 | "$ref": "#/components/schemas/ToolChoice" |
| 2516 | }, |
| 2517 | "tool_prompt_format": { |
| 2518 | "$ref": "#/components/schemas/ToolPromptFormat" |
| 2519 | }, |
| 2520 | "logprobs": { |
| 2521 | "type": "object", |
| 2522 | "properties": { |
| 2523 | "top_k": { |
| 2524 | "type": "integer", |
| 2525 | "default": 0 |
| 2526 | } |
| 2527 | }, |
| 2528 | "additionalProperties": false |
| 2529 | } |
| 2530 | }, |
| 2531 | "additionalProperties": false, |
| 2532 | "required": [ |
| 2533 | "model", |
| 2534 | "messages_batch" |
| 2535 | ] |
| 2536 | }, |
| 2537 | "BatchChatCompletionResponse": { |
| 2538 | "type": "object", |
| 2539 | "properties": { |
| 2540 | "completion_message_batch": { |
| 2541 | "type": "array", |
| 2542 | "items": { |
| 2543 | "$ref": "#/components/schemas/CompletionMessage" |
| 2544 | } |
| 2545 | } |
| 2546 | }, |
| 2547 | "additionalProperties": false, |
| 2548 | "required": [ |
| 2549 | "completion_message_batch" |
| 2550 | ] |
| 2551 | }, |
| 2552 | "BatchCompletionRequest": { |
| 2553 | "type": "object", |
| 2554 | "properties": { |
| 2555 | "model": { |
| 2556 | "type": "string" |
| 2557 | }, |
| 2558 | "content_batch": { |
| 2559 | "type": "array", |
| 2560 | "items": { |
| 2561 | "oneOf": [ |
| 2562 | { |
| 2563 | "type": "string" |
| 2564 | }, |
| 2565 | { |
| 2566 | "$ref": "#/components/schemas/ImageMedia" |
| 2567 | }, |
| 2568 | { |
| 2569 | "type": "array", |
| 2570 | "items": { |
| 2571 | "oneOf": [ |
| 2572 | { |
| 2573 | "type": "string" |
| 2574 | }, |
| 2575 | { |
| 2576 | "$ref": "#/components/schemas/ImageMedia" |
| 2577 | } |
| 2578 | ] |
| 2579 | } |
| 2580 | } |
| 2581 | ] |
| 2582 | } |
| 2583 | }, |
| 2584 | "sampling_params": { |
| 2585 | "$ref": "#/components/schemas/SamplingParams" |
| 2586 | }, |
| 2587 | "logprobs": { |
| 2588 | "type": "object", |
| 2589 | "properties": { |
| 2590 | "top_k": { |
| 2591 | "type": "integer", |
| 2592 | "default": 0 |
| 2593 | } |
| 2594 | }, |
| 2595 | "additionalProperties": false |
| 2596 | } |
| 2597 | }, |
| 2598 | "additionalProperties": false, |
| 2599 | "required": [ |
| 2600 | "model", |
| 2601 | "content_batch" |
| 2602 | ] |
| 2603 | }, |
| 2604 | "BatchCompletionResponse": { |
| 2605 | "type": "object", |
| 2606 | "properties": { |
| 2607 | "completion_message_batch": { |
| 2608 | "type": "array", |
| 2609 | "items": { |
| 2610 | "$ref": "#/components/schemas/CompletionMessage" |
| 2611 | } |
| 2612 | } |
| 2613 | }, |
| 2614 | "additionalProperties": false, |
| 2615 | "required": [ |
| 2616 | "completion_message_batch" |
| 2617 | ] |
| 2618 | }, |
| 2619 | "CancelEvaluationJobRequest": { |
| 2620 | "type": "object", |
| 2621 | "properties": { |
| 2622 | "job_uuid": { |
| 2623 | "type": "string" |
| 2624 | } |
| 2625 | }, |
| 2626 | "additionalProperties": false, |
| 2627 | "required": [ |
| 2628 | "job_uuid" |
| 2629 | ] |
| 2630 | }, |
| 2631 | "CancelTrainingJobRequest": { |
| 2632 | "type": "object", |
| 2633 | "properties": { |
| 2634 | "job_uuid": { |
| 2635 | "type": "string" |
| 2636 | } |
| 2637 | }, |
| 2638 | "additionalProperties": false, |
| 2639 | "required": [ |
| 2640 | "job_uuid" |
| 2641 | ] |
| 2642 | }, |
| 2643 | "ChatCompletionRequest": { |
| 2644 | "type": "object", |
| 2645 | "properties": { |
| 2646 | "model": { |
| 2647 | "type": "string" |
| 2648 | }, |
| 2649 | "messages": { |
| 2650 | "type": "array", |
| 2651 | "items": { |
| 2652 | "oneOf": [ |
| 2653 | { |
| 2654 | "$ref": "#/components/schemas/UserMessage" |
| 2655 | }, |
| 2656 | { |
| 2657 | "$ref": "#/components/schemas/SystemMessage" |
| 2658 | }, |
| 2659 | { |
| 2660 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 2661 | }, |
| 2662 | { |
| 2663 | "$ref": "#/components/schemas/CompletionMessage" |
| 2664 | } |
| 2665 | ] |
| 2666 | } |
| 2667 | }, |
| 2668 | "sampling_params": { |
| 2669 | "$ref": "#/components/schemas/SamplingParams" |
| 2670 | }, |
| 2671 | "tools": { |
| 2672 | "type": "array", |
| 2673 | "items": { |
| 2674 | "$ref": "#/components/schemas/ToolDefinition" |
| 2675 | } |
| 2676 | }, |
| 2677 | "tool_choice": { |
| 2678 | "$ref": "#/components/schemas/ToolChoice" |
| 2679 | }, |
| 2680 | "tool_prompt_format": { |
| 2681 | "$ref": "#/components/schemas/ToolPromptFormat" |
| 2682 | }, |
| 2683 | "stream": { |
| 2684 | "type": "boolean" |
| 2685 | }, |
| 2686 | "logprobs": { |
| 2687 | "type": "object", |
| 2688 | "properties": { |
| 2689 | "top_k": { |
| 2690 | "type": "integer", |
| 2691 | "default": 0 |
| 2692 | } |
| 2693 | }, |
| 2694 | "additionalProperties": false |
| 2695 | } |
| 2696 | }, |
| 2697 | "additionalProperties": false, |
| 2698 | "required": [ |
| 2699 | "model", |
| 2700 | "messages" |
| 2701 | ] |
| 2702 | }, |
| 2703 | "ChatCompletionResponse": { |
| 2704 | "type": "object", |
| 2705 | "properties": { |
| 2706 | "completion_message": { |
| 2707 | "$ref": "#/components/schemas/CompletionMessage" |
| 2708 | }, |
| 2709 | "logprobs": { |
| 2710 | "type": "array", |
| 2711 | "items": { |
| 2712 | "$ref": "#/components/schemas/TokenLogProbs" |
| 2713 | } |
| 2714 | } |
| 2715 | }, |
| 2716 | "additionalProperties": false, |
| 2717 | "required": [ |
| 2718 | "completion_message" |
| 2719 | ], |
| 2720 | "title": "Chat completion response." |
| 2721 | }, |
| 2722 | "ChatCompletionResponseEvent": { |
| 2723 | "type": "object", |
| 2724 | "properties": { |
| 2725 | "event_type": { |
| 2726 | "$ref": "#/components/schemas/ChatCompletionResponseEventType" |
| 2727 | }, |
| 2728 | "delta": { |
| 2729 | "oneOf": [ |
| 2730 | { |
| 2731 | "type": "string" |
| 2732 | }, |
| 2733 | { |
| 2734 | "$ref": "#/components/schemas/ToolCallDelta" |
| 2735 | } |
| 2736 | ] |
| 2737 | }, |
| 2738 | "logprobs": { |
| 2739 | "type": "array", |
| 2740 | "items": { |
| 2741 | "$ref": "#/components/schemas/TokenLogProbs" |
| 2742 | } |
| 2743 | }, |
| 2744 | "stop_reason": { |
| 2745 | "$ref": "#/components/schemas/StopReason" |
| 2746 | } |
| 2747 | }, |
| 2748 | "additionalProperties": false, |
| 2749 | "required": [ |
| 2750 | "event_type", |
| 2751 | "delta" |
| 2752 | ], |
| 2753 | "title": "Chat completion response event." |
| 2754 | }, |
| 2755 | "ChatCompletionResponseEventType": { |
| 2756 | "type": "string", |
| 2757 | "enum": [ |
| 2758 | "start", |
| 2759 | "complete", |
| 2760 | "progress" |
| 2761 | ] |
| 2762 | }, |
| 2763 | "ChatCompletionResponseStreamChunk": { |
| 2764 | "type": "object", |
| 2765 | "properties": { |
| 2766 | "event": { |
| 2767 | "$ref": "#/components/schemas/ChatCompletionResponseEvent" |
| 2768 | } |
| 2769 | }, |
| 2770 | "additionalProperties": false, |
| 2771 | "required": [ |
| 2772 | "event" |
| 2773 | ], |
| 2774 | "title": "SSE-stream of these events." |
| 2775 | }, |
| 2776 | "TokenLogProbs": { |
| 2777 | "type": "object", |
| 2778 | "properties": { |
| 2779 | "logprobs_by_token": { |
| 2780 | "type": "object", |
| 2781 | "additionalProperties": { |
| 2782 | "type": "number" |
| 2783 | } |
| 2784 | } |
| 2785 | }, |
| 2786 | "additionalProperties": false, |
| 2787 | "required": [ |
| 2788 | "logprobs_by_token" |
| 2789 | ] |
| 2790 | }, |
| 2791 | "ToolCallDelta": { |
| 2792 | "type": "object", |
| 2793 | "properties": { |
| 2794 | "content": { |
| 2795 | "oneOf": [ |
| 2796 | { |
| 2797 | "type": "string" |
| 2798 | }, |
| 2799 | { |
| 2800 | "$ref": "#/components/schemas/ToolCall" |
| 2801 | } |
| 2802 | ] |
| 2803 | }, |
| 2804 | "parse_status": { |
| 2805 | "$ref": "#/components/schemas/ToolCallParseStatus" |
| 2806 | } |
| 2807 | }, |
| 2808 | "additionalProperties": false, |
| 2809 | "required": [ |
| 2810 | "content", |
| 2811 | "parse_status" |
| 2812 | ] |
| 2813 | }, |
| 2814 | "ToolCallParseStatus": { |
| 2815 | "type": "string", |
| 2816 | "enum": [ |
| 2817 | "started", |
| 2818 | "in_progress", |
| 2819 | "failure", |
| 2820 | "success" |
| 2821 | ] |
| 2822 | }, |
| 2823 | "CompletionRequest": { |
| 2824 | "type": "object", |
| 2825 | "properties": { |
| 2826 | "model": { |
| 2827 | "type": "string" |
| 2828 | }, |
| 2829 | "content": { |
| 2830 | "oneOf": [ |
| 2831 | { |
| 2832 | "type": "string" |
| 2833 | }, |
| 2834 | { |
| 2835 | "$ref": "#/components/schemas/ImageMedia" |
| 2836 | }, |
| 2837 | { |
| 2838 | "type": "array", |
| 2839 | "items": { |
| 2840 | "oneOf": [ |
| 2841 | { |
| 2842 | "type": "string" |
| 2843 | }, |
| 2844 | { |
| 2845 | "$ref": "#/components/schemas/ImageMedia" |
| 2846 | } |
| 2847 | ] |
| 2848 | } |
| 2849 | } |
| 2850 | ] |
| 2851 | }, |
| 2852 | "sampling_params": { |
| 2853 | "$ref": "#/components/schemas/SamplingParams" |
| 2854 | }, |
| 2855 | "stream": { |
| 2856 | "type": "boolean" |
| 2857 | }, |
| 2858 | "logprobs": { |
| 2859 | "type": "object", |
| 2860 | "properties": { |
| 2861 | "top_k": { |
| 2862 | "type": "integer", |
| 2863 | "default": 0 |
| 2864 | } |
| 2865 | }, |
| 2866 | "additionalProperties": false |
| 2867 | } |
| 2868 | }, |
| 2869 | "additionalProperties": false, |
| 2870 | "required": [ |
| 2871 | "model", |
| 2872 | "content" |
| 2873 | ] |
| 2874 | }, |
| 2875 | "CompletionResponse": { |
| 2876 | "type": "object", |
| 2877 | "properties": { |
| 2878 | "completion_message": { |
| 2879 | "$ref": "#/components/schemas/CompletionMessage" |
| 2880 | }, |
| 2881 | "logprobs": { |
| 2882 | "type": "array", |
| 2883 | "items": { |
| 2884 | "$ref": "#/components/schemas/TokenLogProbs" |
| 2885 | } |
| 2886 | } |
| 2887 | }, |
| 2888 | "additionalProperties": false, |
| 2889 | "required": [ |
| 2890 | "completion_message" |
| 2891 | ], |
| 2892 | "title": "Completion response." |
| 2893 | }, |
| 2894 | "CompletionResponseStreamChunk": { |
| 2895 | "type": "object", |
| 2896 | "properties": { |
| 2897 | "delta": { |
| 2898 | "type": "string" |
| 2899 | }, |
| 2900 | "stop_reason": { |
| 2901 | "$ref": "#/components/schemas/StopReason" |
| 2902 | }, |
| 2903 | "logprobs": { |
| 2904 | "type": "array", |
| 2905 | "items": { |
| 2906 | "$ref": "#/components/schemas/TokenLogProbs" |
| 2907 | } |
| 2908 | } |
| 2909 | }, |
| 2910 | "additionalProperties": false, |
| 2911 | "required": [ |
| 2912 | "delta" |
| 2913 | ], |
| 2914 | "title": "streamed completion response." |
| 2915 | }, |
| 2916 | "AgentConfig": { |
| 2917 | "type": "object", |
| 2918 | "properties": { |
| 2919 | "sampling_params": { |
| 2920 | "$ref": "#/components/schemas/SamplingParams" |
| 2921 | }, |
| 2922 | "input_shields": { |
| 2923 | "type": "array", |
| 2924 | "items": { |
| 2925 | "type": "string" |
| 2926 | } |
| 2927 | }, |
| 2928 | "output_shields": { |
| 2929 | "type": "array", |
| 2930 | "items": { |
| 2931 | "type": "string" |
| 2932 | } |
| 2933 | }, |
| 2934 | "tools": { |
| 2935 | "type": "array", |
| 2936 | "items": { |
| 2937 | "oneOf": [ |
| 2938 | { |
| 2939 | "$ref": "#/components/schemas/SearchToolDefinition" |
| 2940 | }, |
| 2941 | { |
| 2942 | "$ref": "#/components/schemas/WolframAlphaToolDefinition" |
| 2943 | }, |
| 2944 | { |
| 2945 | "$ref": "#/components/schemas/PhotogenToolDefinition" |
| 2946 | }, |
| 2947 | { |
| 2948 | "$ref": "#/components/schemas/CodeInterpreterToolDefinition" |
| 2949 | }, |
| 2950 | { |
| 2951 | "$ref": "#/components/schemas/FunctionCallToolDefinition" |
| 2952 | }, |
| 2953 | { |
| 2954 | "$ref": "#/components/schemas/MemoryToolDefinition" |
| 2955 | } |
| 2956 | ] |
| 2957 | } |
| 2958 | }, |
| 2959 | "tool_choice": { |
| 2960 | "$ref": "#/components/schemas/ToolChoice", |
| 2961 | "default": "auto" |
| 2962 | }, |
| 2963 | "tool_prompt_format": { |
| 2964 | "$ref": "#/components/schemas/ToolPromptFormat", |
| 2965 | "default": "json" |
| 2966 | }, |
| 2967 | "max_infer_iters": { |
| 2968 | "type": "integer", |
| 2969 | "default": 10 |
| 2970 | }, |
| 2971 | "model": { |
| 2972 | "type": "string" |
| 2973 | }, |
| 2974 | "instructions": { |
| 2975 | "type": "string" |
| 2976 | }, |
| 2977 | "enable_session_persistence": { |
| 2978 | "type": "boolean" |
| 2979 | } |
| 2980 | }, |
| 2981 | "additionalProperties": false, |
| 2982 | "required": [ |
| 2983 | "max_infer_iters", |
| 2984 | "model", |
| 2985 | "instructions", |
| 2986 | "enable_session_persistence" |
| 2987 | ] |
| 2988 | }, |
| 2989 | "CodeInterpreterToolDefinition": { |
| 2990 | "type": "object", |
| 2991 | "properties": { |
| 2992 | "input_shields": { |
| 2993 | "type": "array", |
| 2994 | "items": { |
| 2995 | "type": "string" |
| 2996 | } |
| 2997 | }, |
| 2998 | "output_shields": { |
| 2999 | "type": "array", |
| 3000 | "items": { |
| 3001 | "type": "string" |
| 3002 | } |
| 3003 | }, |
| 3004 | "type": { |
| 3005 | "type": "string", |
| 3006 | "const": "code_interpreter", |
| 3007 | "default": "code_interpreter" |
| 3008 | }, |
| 3009 | "enable_inline_code_execution": { |
| 3010 | "type": "boolean", |
| 3011 | "default": true |
| 3012 | }, |
| 3013 | "remote_execution": { |
| 3014 | "$ref": "#/components/schemas/RestAPIExecutionConfig" |
| 3015 | } |
| 3016 | }, |
| 3017 | "additionalProperties": false, |
| 3018 | "required": [ |
| 3019 | "type", |
| 3020 | "enable_inline_code_execution" |
| 3021 | ] |
| 3022 | }, |
| 3023 | "FunctionCallToolDefinition": { |
| 3024 | "type": "object", |
| 3025 | "properties": { |
| 3026 | "input_shields": { |
| 3027 | "type": "array", |
| 3028 | "items": { |
| 3029 | "type": "string" |
| 3030 | } |
| 3031 | }, |
| 3032 | "output_shields": { |
| 3033 | "type": "array", |
| 3034 | "items": { |
| 3035 | "type": "string" |
| 3036 | } |
| 3037 | }, |
| 3038 | "type": { |
| 3039 | "type": "string", |
| 3040 | "const": "function_call", |
| 3041 | "default": "function_call" |
| 3042 | }, |
| 3043 | "function_name": { |
| 3044 | "type": "string" |
| 3045 | }, |
| 3046 | "description": { |
| 3047 | "type": "string" |
| 3048 | }, |
| 3049 | "parameters": { |
| 3050 | "type": "object", |
| 3051 | "additionalProperties": { |
| 3052 | "$ref": "#/components/schemas/ToolParamDefinition" |
| 3053 | } |
| 3054 | }, |
| 3055 | "remote_execution": { |
| 3056 | "$ref": "#/components/schemas/RestAPIExecutionConfig" |
| 3057 | } |
| 3058 | }, |
| 3059 | "additionalProperties": false, |
| 3060 | "required": [ |
| 3061 | "type", |
| 3062 | "function_name", |
| 3063 | "description", |
| 3064 | "parameters" |
| 3065 | ] |
| 3066 | }, |
| 3067 | "MemoryToolDefinition": { |
| 3068 | "type": "object", |
| 3069 | "properties": { |
| 3070 | "input_shields": { |
| 3071 | "type": "array", |
| 3072 | "items": { |
| 3073 | "type": "string" |
| 3074 | } |
| 3075 | }, |
| 3076 | "output_shields": { |
| 3077 | "type": "array", |
| 3078 | "items": { |
| 3079 | "type": "string" |
| 3080 | } |
| 3081 | }, |
| 3082 | "type": { |
| 3083 | "type": "string", |
| 3084 | "const": "memory", |
| 3085 | "default": "memory" |
| 3086 | }, |
| 3087 | "memory_bank_configs": { |
| 3088 | "type": "array", |
| 3089 | "items": { |
| 3090 | "oneOf": [ |
| 3091 | { |
| 3092 | "type": "object", |
| 3093 | "properties": { |
| 3094 | "bank_id": { |
| 3095 | "type": "string" |
| 3096 | }, |
| 3097 | "type": { |
| 3098 | "type": "string", |
| 3099 | "const": "vector", |
| 3100 | "default": "vector" |
| 3101 | } |
| 3102 | }, |
| 3103 | "additionalProperties": false, |
| 3104 | "required": [ |
| 3105 | "bank_id", |
| 3106 | "type" |
| 3107 | ] |
| 3108 | }, |
| 3109 | { |
| 3110 | "type": "object", |
| 3111 | "properties": { |
| 3112 | "bank_id": { |
| 3113 | "type": "string" |
| 3114 | }, |
| 3115 | "type": { |
| 3116 | "type": "string", |
| 3117 | "const": "keyvalue", |
| 3118 | "default": "keyvalue" |
| 3119 | }, |
| 3120 | "keys": { |
| 3121 | "type": "array", |
| 3122 | "items": { |
| 3123 | "type": "string" |
| 3124 | } |
| 3125 | } |
| 3126 | }, |
| 3127 | "additionalProperties": false, |
| 3128 | "required": [ |
| 3129 | "bank_id", |
| 3130 | "type", |
| 3131 | "keys" |
| 3132 | ] |
| 3133 | }, |
| 3134 | { |
| 3135 | "type": "object", |
| 3136 | "properties": { |
| 3137 | "bank_id": { |
| 3138 | "type": "string" |
| 3139 | }, |
| 3140 | "type": { |
| 3141 | "type": "string", |
| 3142 | "const": "keyword", |
| 3143 | "default": "keyword" |
| 3144 | } |
| 3145 | }, |
| 3146 | "additionalProperties": false, |
| 3147 | "required": [ |
| 3148 | "bank_id", |
| 3149 | "type" |
| 3150 | ] |
| 3151 | }, |
| 3152 | { |
| 3153 | "type": "object", |
| 3154 | "properties": { |
| 3155 | "bank_id": { |
| 3156 | "type": "string" |
| 3157 | }, |
| 3158 | "type": { |
| 3159 | "type": "string", |
| 3160 | "const": "graph", |
| 3161 | "default": "graph" |
| 3162 | }, |
| 3163 | "entities": { |
| 3164 | "type": "array", |
| 3165 | "items": { |
| 3166 | "type": "string" |
| 3167 | } |
| 3168 | } |
| 3169 | }, |
| 3170 | "additionalProperties": false, |
| 3171 | "required": [ |
| 3172 | "bank_id", |
| 3173 | "type", |
| 3174 | "entities" |
| 3175 | ] |
| 3176 | } |
| 3177 | ] |
| 3178 | } |
| 3179 | }, |
| 3180 | "query_generator_config": { |
| 3181 | "oneOf": [ |
| 3182 | { |
| 3183 | "type": "object", |
| 3184 | "properties": { |
| 3185 | "type": { |
| 3186 | "type": "string", |
| 3187 | "const": "default", |
| 3188 | "default": "default" |
| 3189 | }, |
| 3190 | "sep": { |
| 3191 | "type": "string", |
| 3192 | "default": " " |
| 3193 | } |
| 3194 | }, |
| 3195 | "additionalProperties": false, |
| 3196 | "required": [ |
| 3197 | "type", |
| 3198 | "sep" |
| 3199 | ] |
| 3200 | }, |
| 3201 | { |
| 3202 | "type": "object", |
| 3203 | "properties": { |
| 3204 | "type": { |
| 3205 | "type": "string", |
| 3206 | "const": "llm", |
| 3207 | "default": "llm" |
| 3208 | }, |
| 3209 | "model": { |
| 3210 | "type": "string" |
| 3211 | }, |
| 3212 | "template": { |
| 3213 | "type": "string" |
| 3214 | } |
| 3215 | }, |
| 3216 | "additionalProperties": false, |
| 3217 | "required": [ |
| 3218 | "type", |
| 3219 | "model", |
| 3220 | "template" |
| 3221 | ] |
| 3222 | }, |
| 3223 | { |
| 3224 | "type": "object", |
| 3225 | "properties": { |
| 3226 | "type": { |
| 3227 | "type": "string", |
| 3228 | "const": "custom", |
| 3229 | "default": "custom" |
| 3230 | } |
| 3231 | }, |
| 3232 | "additionalProperties": false, |
| 3233 | "required": [ |
| 3234 | "type" |
| 3235 | ] |
| 3236 | } |
| 3237 | ] |
| 3238 | }, |
| 3239 | "max_tokens_in_context": { |
| 3240 | "type": "integer", |
| 3241 | "default": 4096 |
| 3242 | }, |
| 3243 | "max_chunks": { |
| 3244 | "type": "integer", |
| 3245 | "default": 10 |
| 3246 | } |
| 3247 | }, |
| 3248 | "additionalProperties": false, |
| 3249 | "required": [ |
| 3250 | "type", |
| 3251 | "memory_bank_configs", |
| 3252 | "query_generator_config", |
| 3253 | "max_tokens_in_context", |
| 3254 | "max_chunks" |
| 3255 | ] |
| 3256 | }, |
| 3257 | "PhotogenToolDefinition": { |
| 3258 | "type": "object", |
| 3259 | "properties": { |
| 3260 | "input_shields": { |
| 3261 | "type": "array", |
| 3262 | "items": { |
| 3263 | "type": "string" |
| 3264 | } |
| 3265 | }, |
| 3266 | "output_shields": { |
| 3267 | "type": "array", |
| 3268 | "items": { |
| 3269 | "type": "string" |
| 3270 | } |
| 3271 | }, |
| 3272 | "type": { |
| 3273 | "type": "string", |
| 3274 | "const": "photogen", |
| 3275 | "default": "photogen" |
| 3276 | }, |
| 3277 | "remote_execution": { |
| 3278 | "$ref": "#/components/schemas/RestAPIExecutionConfig" |
| 3279 | } |
| 3280 | }, |
| 3281 | "additionalProperties": false, |
| 3282 | "required": [ |
| 3283 | "type" |
| 3284 | ] |
| 3285 | }, |
| 3286 | "RestAPIExecutionConfig": { |
| 3287 | "type": "object", |
| 3288 | "properties": { |
| 3289 | "url": { |
| 3290 | "$ref": "#/components/schemas/URL" |
| 3291 | }, |
| 3292 | "method": { |
| 3293 | "$ref": "#/components/schemas/RestAPIMethod" |
| 3294 | }, |
| 3295 | "params": { |
| 3296 | "type": "object", |
| 3297 | "additionalProperties": { |
| 3298 | "oneOf": [ |
| 3299 | { |
| 3300 | "type": "null" |
| 3301 | }, |
| 3302 | { |
| 3303 | "type": "boolean" |
| 3304 | }, |
| 3305 | { |
| 3306 | "type": "number" |
| 3307 | }, |
| 3308 | { |
| 3309 | "type": "string" |
| 3310 | }, |
| 3311 | { |
| 3312 | "type": "array" |
| 3313 | }, |
| 3314 | { |
| 3315 | "type": "object" |
| 3316 | } |
| 3317 | ] |
| 3318 | } |
| 3319 | }, |
| 3320 | "headers": { |
| 3321 | "type": "object", |
| 3322 | "additionalProperties": { |
| 3323 | "oneOf": [ |
| 3324 | { |
| 3325 | "type": "null" |
| 3326 | }, |
| 3327 | { |
| 3328 | "type": "boolean" |
| 3329 | }, |
| 3330 | { |
| 3331 | "type": "number" |
| 3332 | }, |
| 3333 | { |
| 3334 | "type": "string" |
| 3335 | }, |
| 3336 | { |
| 3337 | "type": "array" |
| 3338 | }, |
| 3339 | { |
| 3340 | "type": "object" |
| 3341 | } |
| 3342 | ] |
| 3343 | } |
| 3344 | }, |
| 3345 | "body": { |
| 3346 | "type": "object", |
| 3347 | "additionalProperties": { |
| 3348 | "oneOf": [ |
| 3349 | { |
| 3350 | "type": "null" |
| 3351 | }, |
| 3352 | { |
| 3353 | "type": "boolean" |
| 3354 | }, |
| 3355 | { |
| 3356 | "type": "number" |
| 3357 | }, |
| 3358 | { |
| 3359 | "type": "string" |
| 3360 | }, |
| 3361 | { |
| 3362 | "type": "array" |
| 3363 | }, |
| 3364 | { |
| 3365 | "type": "object" |
| 3366 | } |
| 3367 | ] |
| 3368 | } |
| 3369 | } |
| 3370 | }, |
| 3371 | "additionalProperties": false, |
| 3372 | "required": [ |
| 3373 | "url", |
| 3374 | "method" |
| 3375 | ] |
| 3376 | }, |
| 3377 | "RestAPIMethod": { |
| 3378 | "type": "string", |
| 3379 | "enum": [ |
| 3380 | "GET", |
| 3381 | "POST", |
| 3382 | "PUT", |
| 3383 | "DELETE" |
| 3384 | ] |
| 3385 | }, |
| 3386 | "SearchToolDefinition": { |
| 3387 | "type": "object", |
| 3388 | "properties": { |
| 3389 | "input_shields": { |
| 3390 | "type": "array", |
| 3391 | "items": { |
| 3392 | "type": "string" |
| 3393 | } |
| 3394 | }, |
| 3395 | "output_shields": { |
| 3396 | "type": "array", |
| 3397 | "items": { |
| 3398 | "type": "string" |
| 3399 | } |
| 3400 | }, |
| 3401 | "type": { |
| 3402 | "type": "string", |
| 3403 | "const": "brave_search", |
| 3404 | "default": "brave_search" |
| 3405 | }, |
| 3406 | "api_key": { |
| 3407 | "type": "string" |
| 3408 | }, |
| 3409 | "engine": { |
| 3410 | "type": "string", |
| 3411 | "enum": [ |
| 3412 | "bing", |
| 3413 | "brave" |
| 3414 | ], |
| 3415 | "default": "brave" |
| 3416 | }, |
| 3417 | "remote_execution": { |
| 3418 | "$ref": "#/components/schemas/RestAPIExecutionConfig" |
| 3419 | } |
| 3420 | }, |
| 3421 | "additionalProperties": false, |
| 3422 | "required": [ |
| 3423 | "type", |
| 3424 | "api_key", |
| 3425 | "engine" |
| 3426 | ] |
| 3427 | }, |
| 3428 | "WolframAlphaToolDefinition": { |
| 3429 | "type": "object", |
| 3430 | "properties": { |
| 3431 | "input_shields": { |
| 3432 | "type": "array", |
| 3433 | "items": { |
| 3434 | "type": "string" |
| 3435 | } |
| 3436 | }, |
| 3437 | "output_shields": { |
| 3438 | "type": "array", |
| 3439 | "items": { |
| 3440 | "type": "string" |
| 3441 | } |
| 3442 | }, |
| 3443 | "type": { |
| 3444 | "type": "string", |
| 3445 | "const": "wolfram_alpha", |
| 3446 | "default": "wolfram_alpha" |
| 3447 | }, |
| 3448 | "api_key": { |
| 3449 | "type": "string" |
| 3450 | }, |
| 3451 | "remote_execution": { |
| 3452 | "$ref": "#/components/schemas/RestAPIExecutionConfig" |
| 3453 | } |
| 3454 | }, |
| 3455 | "additionalProperties": false, |
| 3456 | "required": [ |
| 3457 | "type", |
| 3458 | "api_key" |
| 3459 | ] |
| 3460 | }, |
| 3461 | "CreateAgentRequest": { |
| 3462 | "type": "object", |
| 3463 | "properties": { |
| 3464 | "agent_config": { |
| 3465 | "$ref": "#/components/schemas/AgentConfig" |
| 3466 | } |
| 3467 | }, |
| 3468 | "additionalProperties": false, |
| 3469 | "required": [ |
| 3470 | "agent_config" |
| 3471 | ] |
| 3472 | }, |
| 3473 | "AgentCreateResponse": { |
| 3474 | "type": "object", |
| 3475 | "properties": { |
| 3476 | "agent_id": { |
| 3477 | "type": "string" |
| 3478 | } |
| 3479 | }, |
| 3480 | "additionalProperties": false, |
| 3481 | "required": [ |
| 3482 | "agent_id" |
| 3483 | ] |
| 3484 | }, |
| 3485 | "CreateAgentSessionRequest": { |
| 3486 | "type": "object", |
| 3487 | "properties": { |
| 3488 | "agent_id": { |
| 3489 | "type": "string" |
| 3490 | }, |
| 3491 | "session_name": { |
| 3492 | "type": "string" |
| 3493 | } |
| 3494 | }, |
| 3495 | "additionalProperties": false, |
| 3496 | "required": [ |
| 3497 | "agent_id", |
| 3498 | "session_name" |
| 3499 | ] |
| 3500 | }, |
| 3501 | "AgentSessionCreateResponse": { |
| 3502 | "type": "object", |
| 3503 | "properties": { |
| 3504 | "session_id": { |
| 3505 | "type": "string" |
| 3506 | } |
| 3507 | }, |
| 3508 | "additionalProperties": false, |
| 3509 | "required": [ |
| 3510 | "session_id" |
| 3511 | ] |
| 3512 | }, |
| 3513 | "Attachment": { |
| 3514 | "type": "object", |
| 3515 | "properties": { |
| 3516 | "content": { |
| 3517 | "oneOf": [ |
| 3518 | { |
| 3519 | "type": "string" |
| 3520 | }, |
| 3521 | { |
| 3522 | "$ref": "#/components/schemas/ImageMedia" |
| 3523 | }, |
| 3524 | { |
| 3525 | "type": "array", |
| 3526 | "items": { |
| 3527 | "oneOf": [ |
| 3528 | { |
| 3529 | "type": "string" |
| 3530 | }, |
| 3531 | { |
| 3532 | "$ref": "#/components/schemas/ImageMedia" |
| 3533 | } |
| 3534 | ] |
| 3535 | } |
| 3536 | }, |
| 3537 | { |
| 3538 | "$ref": "#/components/schemas/URL" |
| 3539 | } |
| 3540 | ] |
| 3541 | }, |
| 3542 | "mime_type": { |
| 3543 | "type": "string" |
| 3544 | } |
| 3545 | }, |
| 3546 | "additionalProperties": false, |
| 3547 | "required": [ |
| 3548 | "content", |
| 3549 | "mime_type" |
| 3550 | ] |
| 3551 | }, |
| 3552 | "CreateAgentTurnRequest": { |
| 3553 | "type": "object", |
| 3554 | "properties": { |
| 3555 | "agent_id": { |
| 3556 | "type": "string" |
| 3557 | }, |
| 3558 | "session_id": { |
| 3559 | "type": "string" |
| 3560 | }, |
| 3561 | "messages": { |
| 3562 | "type": "array", |
| 3563 | "items": { |
| 3564 | "oneOf": [ |
| 3565 | { |
| 3566 | "$ref": "#/components/schemas/UserMessage" |
| 3567 | }, |
| 3568 | { |
| 3569 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 3570 | } |
| 3571 | ] |
| 3572 | } |
| 3573 | }, |
| 3574 | "attachments": { |
| 3575 | "type": "array", |
| 3576 | "items": { |
| 3577 | "$ref": "#/components/schemas/Attachment" |
| 3578 | } |
| 3579 | }, |
| 3580 | "stream": { |
| 3581 | "type": "boolean" |
| 3582 | } |
| 3583 | }, |
| 3584 | "additionalProperties": false, |
| 3585 | "required": [ |
| 3586 | "agent_id", |
| 3587 | "session_id", |
| 3588 | "messages" |
| 3589 | ] |
| 3590 | }, |
| 3591 | "AgentTurnResponseEvent": { |
| 3592 | "type": "object", |
| 3593 | "properties": { |
| 3594 | "payload": { |
| 3595 | "oneOf": [ |
| 3596 | { |
| 3597 | "$ref": "#/components/schemas/AgentTurnResponseStepStartPayload" |
| 3598 | }, |
| 3599 | { |
| 3600 | "$ref": "#/components/schemas/AgentTurnResponseStepProgressPayload" |
| 3601 | }, |
| 3602 | { |
| 3603 | "$ref": "#/components/schemas/AgentTurnResponseStepCompletePayload" |
| 3604 | }, |
| 3605 | { |
| 3606 | "$ref": "#/components/schemas/AgentTurnResponseTurnStartPayload" |
| 3607 | }, |
| 3608 | { |
| 3609 | "$ref": "#/components/schemas/AgentTurnResponseTurnCompletePayload" |
| 3610 | } |
| 3611 | ] |
| 3612 | } |
| 3613 | }, |
| 3614 | "additionalProperties": false, |
| 3615 | "required": [ |
| 3616 | "payload" |
| 3617 | ], |
| 3618 | "title": "Streamed agent execution response." |
| 3619 | }, |
| 3620 | "AgentTurnResponseStepCompletePayload": { |
| 3621 | "type": "object", |
| 3622 | "properties": { |
| 3623 | "event_type": { |
| 3624 | "type": "string", |
| 3625 | "const": "step_complete", |
| 3626 | "default": "step_complete" |
| 3627 | }, |
| 3628 | "step_type": { |
| 3629 | "type": "string", |
| 3630 | "enum": [ |
| 3631 | "inference", |
| 3632 | "tool_execution", |
| 3633 | "shield_call", |
| 3634 | "memory_retrieval" |
| 3635 | ] |
| 3636 | }, |
| 3637 | "step_details": { |
| 3638 | "oneOf": [ |
| 3639 | { |
| 3640 | "$ref": "#/components/schemas/InferenceStep" |
| 3641 | }, |
| 3642 | { |
| 3643 | "$ref": "#/components/schemas/ToolExecutionStep" |
| 3644 | }, |
| 3645 | { |
| 3646 | "$ref": "#/components/schemas/ShieldCallStep" |
| 3647 | }, |
| 3648 | { |
| 3649 | "$ref": "#/components/schemas/MemoryRetrievalStep" |
| 3650 | } |
| 3651 | ] |
| 3652 | } |
| 3653 | }, |
| 3654 | "additionalProperties": false, |
| 3655 | "required": [ |
| 3656 | "event_type", |
| 3657 | "step_type", |
| 3658 | "step_details" |
| 3659 | ] |
| 3660 | }, |
| 3661 | "AgentTurnResponseStepProgressPayload": { |
| 3662 | "type": "object", |
| 3663 | "properties": { |
| 3664 | "event_type": { |
| 3665 | "type": "string", |
| 3666 | "const": "step_progress", |
| 3667 | "default": "step_progress" |
| 3668 | }, |
| 3669 | "step_type": { |
| 3670 | "type": "string", |
| 3671 | "enum": [ |
| 3672 | "inference", |
| 3673 | "tool_execution", |
| 3674 | "shield_call", |
| 3675 | "memory_retrieval" |
| 3676 | ] |
| 3677 | }, |
| 3678 | "step_id": { |
| 3679 | "type": "string" |
| 3680 | }, |
| 3681 | "model_response_text_delta": { |
| 3682 | "type": "string" |
| 3683 | }, |
| 3684 | "tool_call_delta": { |
| 3685 | "$ref": "#/components/schemas/ToolCallDelta" |
| 3686 | }, |
| 3687 | "tool_response_text_delta": { |
| 3688 | "type": "string" |
| 3689 | } |
| 3690 | }, |
| 3691 | "additionalProperties": false, |
| 3692 | "required": [ |
| 3693 | "event_type", |
| 3694 | "step_type", |
| 3695 | "step_id" |
| 3696 | ] |
| 3697 | }, |
| 3698 | "AgentTurnResponseStepStartPayload": { |
| 3699 | "type": "object", |
| 3700 | "properties": { |
| 3701 | "event_type": { |
| 3702 | "type": "string", |
| 3703 | "const": "step_start", |
| 3704 | "default": "step_start" |
| 3705 | }, |
| 3706 | "step_type": { |
| 3707 | "type": "string", |
| 3708 | "enum": [ |
| 3709 | "inference", |
| 3710 | "tool_execution", |
| 3711 | "shield_call", |
| 3712 | "memory_retrieval" |
| 3713 | ] |
| 3714 | }, |
| 3715 | "step_id": { |
| 3716 | "type": "string" |
| 3717 | }, |
| 3718 | "metadata": { |
| 3719 | "type": "object", |
| 3720 | "additionalProperties": { |
| 3721 | "oneOf": [ |
| 3722 | { |
| 3723 | "type": "null" |
| 3724 | }, |
| 3725 | { |
| 3726 | "type": "boolean" |
| 3727 | }, |
| 3728 | { |
| 3729 | "type": "number" |
| 3730 | }, |
| 3731 | { |
| 3732 | "type": "string" |
| 3733 | }, |
| 3734 | { |
| 3735 | "type": "array" |
| 3736 | }, |
| 3737 | { |
| 3738 | "type": "object" |
| 3739 | } |
| 3740 | ] |
| 3741 | } |
| 3742 | } |
| 3743 | }, |
| 3744 | "additionalProperties": false, |
| 3745 | "required": [ |
| 3746 | "event_type", |
| 3747 | "step_type", |
| 3748 | "step_id" |
| 3749 | ] |
| 3750 | }, |
| 3751 | "AgentTurnResponseStreamChunk": { |
| 3752 | "type": "object", |
| 3753 | "properties": { |
| 3754 | "event": { |
| 3755 | "$ref": "#/components/schemas/AgentTurnResponseEvent" |
| 3756 | } |
| 3757 | }, |
| 3758 | "additionalProperties": false, |
| 3759 | "required": [ |
| 3760 | "event" |
| 3761 | ] |
| 3762 | }, |
| 3763 | "AgentTurnResponseTurnCompletePayload": { |
| 3764 | "type": "object", |
| 3765 | "properties": { |
| 3766 | "event_type": { |
| 3767 | "type": "string", |
| 3768 | "const": "turn_complete", |
| 3769 | "default": "turn_complete" |
| 3770 | }, |
| 3771 | "turn": { |
| 3772 | "$ref": "#/components/schemas/Turn" |
| 3773 | } |
| 3774 | }, |
| 3775 | "additionalProperties": false, |
| 3776 | "required": [ |
| 3777 | "event_type", |
| 3778 | "turn" |
| 3779 | ] |
| 3780 | }, |
| 3781 | "AgentTurnResponseTurnStartPayload": { |
| 3782 | "type": "object", |
| 3783 | "properties": { |
| 3784 | "event_type": { |
| 3785 | "type": "string", |
| 3786 | "const": "turn_start", |
| 3787 | "default": "turn_start" |
| 3788 | }, |
| 3789 | "turn_id": { |
| 3790 | "type": "string" |
| 3791 | } |
| 3792 | }, |
| 3793 | "additionalProperties": false, |
| 3794 | "required": [ |
| 3795 | "event_type", |
| 3796 | "turn_id" |
| 3797 | ] |
| 3798 | }, |
| 3799 | "InferenceStep": { |
| 3800 | "type": "object", |
| 3801 | "properties": { |
| 3802 | "turn_id": { |
| 3803 | "type": "string" |
| 3804 | }, |
| 3805 | "step_id": { |
| 3806 | "type": "string" |
| 3807 | }, |
| 3808 | "started_at": { |
| 3809 | "type": "string", |
| 3810 | "format": "date-time" |
| 3811 | }, |
| 3812 | "completed_at": { |
| 3813 | "type": "string", |
| 3814 | "format": "date-time" |
| 3815 | }, |
| 3816 | "step_type": { |
| 3817 | "type": "string", |
| 3818 | "const": "inference", |
| 3819 | "default": "inference" |
| 3820 | }, |
| 3821 | "model_response": { |
| 3822 | "$ref": "#/components/schemas/CompletionMessage" |
| 3823 | } |
| 3824 | }, |
| 3825 | "additionalProperties": false, |
| 3826 | "required": [ |
| 3827 | "turn_id", |
| 3828 | "step_id", |
| 3829 | "step_type", |
| 3830 | "model_response" |
| 3831 | ] |
| 3832 | }, |
| 3833 | "MemoryRetrievalStep": { |
| 3834 | "type": "object", |
| 3835 | "properties": { |
| 3836 | "turn_id": { |
| 3837 | "type": "string" |
| 3838 | }, |
| 3839 | "step_id": { |
| 3840 | "type": "string" |
| 3841 | }, |
| 3842 | "started_at": { |
| 3843 | "type": "string", |
| 3844 | "format": "date-time" |
| 3845 | }, |
| 3846 | "completed_at": { |
| 3847 | "type": "string", |
| 3848 | "format": "date-time" |
| 3849 | }, |
| 3850 | "step_type": { |
| 3851 | "type": "string", |
| 3852 | "const": "memory_retrieval", |
| 3853 | "default": "memory_retrieval" |
| 3854 | }, |
| 3855 | "memory_bank_ids": { |
| 3856 | "type": "array", |
| 3857 | "items": { |
| 3858 | "type": "string" |
| 3859 | } |
| 3860 | }, |
| 3861 | "inserted_context": { |
| 3862 | "oneOf": [ |
| 3863 | { |
| 3864 | "type": "string" |
| 3865 | }, |
| 3866 | { |
| 3867 | "$ref": "#/components/schemas/ImageMedia" |
| 3868 | }, |
| 3869 | { |
| 3870 | "type": "array", |
| 3871 | "items": { |
| 3872 | "oneOf": [ |
| 3873 | { |
| 3874 | "type": "string" |
| 3875 | }, |
| 3876 | { |
| 3877 | "$ref": "#/components/schemas/ImageMedia" |
| 3878 | } |
| 3879 | ] |
| 3880 | } |
| 3881 | } |
| 3882 | ] |
| 3883 | } |
| 3884 | }, |
| 3885 | "additionalProperties": false, |
| 3886 | "required": [ |
| 3887 | "turn_id", |
| 3888 | "step_id", |
| 3889 | "step_type", |
| 3890 | "memory_bank_ids", |
| 3891 | "inserted_context" |
| 3892 | ] |
| 3893 | }, |
| 3894 | "SafetyViolation": { |
| 3895 | "type": "object", |
| 3896 | "properties": { |
| 3897 | "violation_level": { |
| 3898 | "$ref": "#/components/schemas/ViolationLevel" |
| 3899 | }, |
| 3900 | "user_message": { |
| 3901 | "type": "string" |
| 3902 | }, |
| 3903 | "metadata": { |
| 3904 | "type": "object", |
| 3905 | "additionalProperties": { |
| 3906 | "oneOf": [ |
| 3907 | { |
| 3908 | "type": "null" |
| 3909 | }, |
| 3910 | { |
| 3911 | "type": "boolean" |
| 3912 | }, |
| 3913 | { |
| 3914 | "type": "number" |
| 3915 | }, |
| 3916 | { |
| 3917 | "type": "string" |
| 3918 | }, |
| 3919 | { |
| 3920 | "type": "array" |
| 3921 | }, |
| 3922 | { |
| 3923 | "type": "object" |
| 3924 | } |
| 3925 | ] |
| 3926 | } |
| 3927 | } |
| 3928 | }, |
| 3929 | "additionalProperties": false, |
| 3930 | "required": [ |
| 3931 | "violation_level", |
| 3932 | "metadata" |
| 3933 | ] |
| 3934 | }, |
| 3935 | "ShieldCallStep": { |
| 3936 | "type": "object", |
| 3937 | "properties": { |
| 3938 | "turn_id": { |
| 3939 | "type": "string" |
| 3940 | }, |
| 3941 | "step_id": { |
| 3942 | "type": "string" |
| 3943 | }, |
| 3944 | "started_at": { |
| 3945 | "type": "string", |
| 3946 | "format": "date-time" |
| 3947 | }, |
| 3948 | "completed_at": { |
| 3949 | "type": "string", |
| 3950 | "format": "date-time" |
| 3951 | }, |
| 3952 | "step_type": { |
| 3953 | "type": "string", |
| 3954 | "const": "shield_call", |
| 3955 | "default": "shield_call" |
| 3956 | }, |
| 3957 | "violation": { |
| 3958 | "$ref": "#/components/schemas/SafetyViolation" |
| 3959 | } |
| 3960 | }, |
| 3961 | "additionalProperties": false, |
| 3962 | "required": [ |
| 3963 | "turn_id", |
| 3964 | "step_id", |
| 3965 | "step_type" |
| 3966 | ] |
| 3967 | }, |
| 3968 | "ToolExecutionStep": { |
| 3969 | "type": "object", |
| 3970 | "properties": { |
| 3971 | "turn_id": { |
| 3972 | "type": "string" |
| 3973 | }, |
| 3974 | "step_id": { |
| 3975 | "type": "string" |
| 3976 | }, |
| 3977 | "started_at": { |
| 3978 | "type": "string", |
| 3979 | "format": "date-time" |
| 3980 | }, |
| 3981 | "completed_at": { |
| 3982 | "type": "string", |
| 3983 | "format": "date-time" |
| 3984 | }, |
| 3985 | "step_type": { |
| 3986 | "type": "string", |
| 3987 | "const": "tool_execution", |
| 3988 | "default": "tool_execution" |
| 3989 | }, |
| 3990 | "tool_calls": { |
| 3991 | "type": "array", |
| 3992 | "items": { |
| 3993 | "$ref": "#/components/schemas/ToolCall" |
| 3994 | } |
| 3995 | }, |
| 3996 | "tool_responses": { |
| 3997 | "type": "array", |
| 3998 | "items": { |
| 3999 | "$ref": "#/components/schemas/ToolResponse" |
| 4000 | } |
| 4001 | } |
| 4002 | }, |
| 4003 | "additionalProperties": false, |
| 4004 | "required": [ |
| 4005 | "turn_id", |
| 4006 | "step_id", |
| 4007 | "step_type", |
| 4008 | "tool_calls", |
| 4009 | "tool_responses" |
| 4010 | ] |
| 4011 | }, |
| 4012 | "ToolResponse": { |
| 4013 | "type": "object", |
| 4014 | "properties": { |
| 4015 | "call_id": { |
| 4016 | "type": "string" |
| 4017 | }, |
| 4018 | "tool_name": { |
| 4019 | "oneOf": [ |
| 4020 | { |
| 4021 | "$ref": "#/components/schemas/BuiltinTool" |
| 4022 | }, |
| 4023 | { |
| 4024 | "type": "string" |
| 4025 | } |
| 4026 | ] |
| 4027 | }, |
| 4028 | "content": { |
| 4029 | "oneOf": [ |
| 4030 | { |
| 4031 | "type": "string" |
| 4032 | }, |
| 4033 | { |
| 4034 | "$ref": "#/components/schemas/ImageMedia" |
| 4035 | }, |
| 4036 | { |
| 4037 | "type": "array", |
| 4038 | "items": { |
| 4039 | "oneOf": [ |
| 4040 | { |
| 4041 | "type": "string" |
| 4042 | }, |
| 4043 | { |
| 4044 | "$ref": "#/components/schemas/ImageMedia" |
| 4045 | } |
| 4046 | ] |
| 4047 | } |
| 4048 | } |
| 4049 | ] |
| 4050 | } |
| 4051 | }, |
| 4052 | "additionalProperties": false, |
| 4053 | "required": [ |
| 4054 | "call_id", |
| 4055 | "tool_name", |
| 4056 | "content" |
| 4057 | ] |
| 4058 | }, |
| 4059 | "Turn": { |
| 4060 | "type": "object", |
| 4061 | "properties": { |
| 4062 | "turn_id": { |
| 4063 | "type": "string" |
| 4064 | }, |
| 4065 | "session_id": { |
| 4066 | "type": "string" |
| 4067 | }, |
| 4068 | "input_messages": { |
| 4069 | "type": "array", |
| 4070 | "items": { |
| 4071 | "oneOf": [ |
| 4072 | { |
| 4073 | "$ref": "#/components/schemas/UserMessage" |
| 4074 | }, |
| 4075 | { |
| 4076 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 4077 | } |
| 4078 | ] |
| 4079 | } |
| 4080 | }, |
| 4081 | "steps": { |
| 4082 | "type": "array", |
| 4083 | "items": { |
| 4084 | "oneOf": [ |
| 4085 | { |
| 4086 | "$ref": "#/components/schemas/InferenceStep" |
| 4087 | }, |
| 4088 | { |
| 4089 | "$ref": "#/components/schemas/ToolExecutionStep" |
| 4090 | }, |
| 4091 | { |
| 4092 | "$ref": "#/components/schemas/ShieldCallStep" |
| 4093 | }, |
| 4094 | { |
| 4095 | "$ref": "#/components/schemas/MemoryRetrievalStep" |
| 4096 | } |
| 4097 | ] |
| 4098 | } |
| 4099 | }, |
| 4100 | "output_message": { |
| 4101 | "$ref": "#/components/schemas/CompletionMessage" |
| 4102 | }, |
| 4103 | "output_attachments": { |
| 4104 | "type": "array", |
| 4105 | "items": { |
| 4106 | "$ref": "#/components/schemas/Attachment" |
| 4107 | } |
| 4108 | }, |
| 4109 | "started_at": { |
| 4110 | "type": "string", |
| 4111 | "format": "date-time" |
| 4112 | }, |
| 4113 | "completed_at": { |
| 4114 | "type": "string", |
| 4115 | "format": "date-time" |
| 4116 | } |
| 4117 | }, |
| 4118 | "additionalProperties": false, |
| 4119 | "required": [ |
| 4120 | "turn_id", |
| 4121 | "session_id", |
| 4122 | "input_messages", |
| 4123 | "steps", |
| 4124 | "output_message", |
| 4125 | "output_attachments", |
| 4126 | "started_at" |
| 4127 | ], |
| 4128 | "title": "A single turn in an interaction with an Agentic System." |
| 4129 | }, |
| 4130 | "ViolationLevel": { |
| 4131 | "type": "string", |
| 4132 | "enum": [ |
| 4133 | "info", |
| 4134 | "warn", |
| 4135 | "error" |
| 4136 | ] |
| 4137 | }, |
| 4138 | "TrainEvalDataset": { |
| 4139 | "type": "object", |
| 4140 | "properties": { |
| 4141 | "columns": { |
| 4142 | "type": "object", |
| 4143 | "additionalProperties": { |
| 4144 | "$ref": "#/components/schemas/TrainEvalDatasetColumnType" |
| 4145 | } |
| 4146 | }, |
| 4147 | "content_url": { |
| 4148 | "$ref": "#/components/schemas/URL" |
| 4149 | }, |
| 4150 | "metadata": { |
| 4151 | "type": "object", |
| 4152 | "additionalProperties": { |
| 4153 | "oneOf": [ |
| 4154 | { |
| 4155 | "type": "null" |
| 4156 | }, |
| 4157 | { |
| 4158 | "type": "boolean" |
| 4159 | }, |
| 4160 | { |
| 4161 | "type": "number" |
| 4162 | }, |
| 4163 | { |
| 4164 | "type": "string" |
| 4165 | }, |
| 4166 | { |
| 4167 | "type": "array" |
| 4168 | }, |
| 4169 | { |
| 4170 | "type": "object" |
| 4171 | } |
| 4172 | ] |
| 4173 | } |
| 4174 | } |
| 4175 | }, |
| 4176 | "additionalProperties": false, |
| 4177 | "required": [ |
| 4178 | "columns", |
| 4179 | "content_url" |
| 4180 | ], |
| 4181 | "title": "Dataset to be used for training or evaluating language models." |
| 4182 | }, |
| 4183 | "TrainEvalDatasetColumnType": { |
| 4184 | "type": "string", |
| 4185 | "enum": [ |
| 4186 | "dialog", |
| 4187 | "text", |
| 4188 | "media", |
| 4189 | "number", |
| 4190 | "json" |
| 4191 | ] |
| 4192 | }, |
| 4193 | "CreateDatasetRequest": { |
| 4194 | "type": "object", |
| 4195 | "properties": { |
| 4196 | "uuid": { |
| 4197 | "type": "string" |
| 4198 | }, |
| 4199 | "dataset": { |
| 4200 | "$ref": "#/components/schemas/TrainEvalDataset" |
| 4201 | } |
| 4202 | }, |
| 4203 | "additionalProperties": false, |
| 4204 | "required": [ |
| 4205 | "uuid", |
| 4206 | "dataset" |
| 4207 | ] |
| 4208 | }, |
| 4209 | "CreateMemoryBankRequest": { |
| 4210 | "type": "object", |
| 4211 | "properties": { |
| 4212 | "name": { |
| 4213 | "type": "string" |
| 4214 | }, |
| 4215 | "config": { |
| 4216 | "oneOf": [ |
| 4217 | { |
| 4218 | "type": "object", |
| 4219 | "properties": { |
| 4220 | "type": { |
| 4221 | "type": "string", |
| 4222 | "const": "vector", |
| 4223 | "default": "vector" |
| 4224 | }, |
| 4225 | "embedding_model": { |
| 4226 | "type": "string" |
| 4227 | }, |
| 4228 | "chunk_size_in_tokens": { |
| 4229 | "type": "integer" |
| 4230 | }, |
| 4231 | "overlap_size_in_tokens": { |
| 4232 | "type": "integer" |
| 4233 | } |
| 4234 | }, |
| 4235 | "additionalProperties": false, |
| 4236 | "required": [ |
| 4237 | "type", |
| 4238 | "embedding_model", |
| 4239 | "chunk_size_in_tokens" |
| 4240 | ] |
| 4241 | }, |
| 4242 | { |
| 4243 | "type": "object", |
| 4244 | "properties": { |
| 4245 | "type": { |
| 4246 | "type": "string", |
| 4247 | "const": "keyvalue", |
| 4248 | "default": "keyvalue" |
| 4249 | } |
| 4250 | }, |
| 4251 | "additionalProperties": false, |
| 4252 | "required": [ |
| 4253 | "type" |
| 4254 | ] |
| 4255 | }, |
| 4256 | { |
| 4257 | "type": "object", |
| 4258 | "properties": { |
| 4259 | "type": { |
| 4260 | "type": "string", |
| 4261 | "const": "keyword", |
| 4262 | "default": "keyword" |
| 4263 | } |
| 4264 | }, |
| 4265 | "additionalProperties": false, |
| 4266 | "required": [ |
| 4267 | "type" |
| 4268 | ] |
| 4269 | }, |
| 4270 | { |
| 4271 | "type": "object", |
| 4272 | "properties": { |
| 4273 | "type": { |
| 4274 | "type": "string", |
| 4275 | "const": "graph", |
| 4276 | "default": "graph" |
| 4277 | } |
| 4278 | }, |
| 4279 | "additionalProperties": false, |
| 4280 | "required": [ |
| 4281 | "type" |
| 4282 | ] |
| 4283 | } |
| 4284 | ] |
| 4285 | }, |
| 4286 | "url": { |
| 4287 | "$ref": "#/components/schemas/URL" |
| 4288 | } |
| 4289 | }, |
| 4290 | "additionalProperties": false, |
| 4291 | "required": [ |
| 4292 | "name", |
| 4293 | "config" |
| 4294 | ] |
| 4295 | }, |
| 4296 | "MemoryBank": { |
| 4297 | "type": "object", |
| 4298 | "properties": { |
| 4299 | "bank_id": { |
| 4300 | "type": "string" |
| 4301 | }, |
| 4302 | "name": { |
| 4303 | "type": "string" |
| 4304 | }, |
| 4305 | "config": { |
| 4306 | "oneOf": [ |
| 4307 | { |
| 4308 | "type": "object", |
| 4309 | "properties": { |
| 4310 | "type": { |
| 4311 | "type": "string", |
| 4312 | "const": "vector", |
| 4313 | "default": "vector" |
| 4314 | }, |
| 4315 | "embedding_model": { |
| 4316 | "type": "string" |
| 4317 | }, |
| 4318 | "chunk_size_in_tokens": { |
| 4319 | "type": "integer" |
| 4320 | }, |
| 4321 | "overlap_size_in_tokens": { |
| 4322 | "type": "integer" |
| 4323 | } |
| 4324 | }, |
| 4325 | "additionalProperties": false, |
| 4326 | "required": [ |
| 4327 | "type", |
| 4328 | "embedding_model", |
| 4329 | "chunk_size_in_tokens" |
| 4330 | ] |
| 4331 | }, |
| 4332 | { |
| 4333 | "type": "object", |
| 4334 | "properties": { |
| 4335 | "type": { |
| 4336 | "type": "string", |
| 4337 | "const": "keyvalue", |
| 4338 | "default": "keyvalue" |
| 4339 | } |
| 4340 | }, |
| 4341 | "additionalProperties": false, |
| 4342 | "required": [ |
| 4343 | "type" |
| 4344 | ] |
| 4345 | }, |
| 4346 | { |
| 4347 | "type": "object", |
| 4348 | "properties": { |
| 4349 | "type": { |
| 4350 | "type": "string", |
| 4351 | "const": "keyword", |
| 4352 | "default": "keyword" |
| 4353 | } |
| 4354 | }, |
| 4355 | "additionalProperties": false, |
| 4356 | "required": [ |
| 4357 | "type" |
| 4358 | ] |
| 4359 | }, |
| 4360 | { |
| 4361 | "type": "object", |
| 4362 | "properties": { |
| 4363 | "type": { |
| 4364 | "type": "string", |
| 4365 | "const": "graph", |
| 4366 | "default": "graph" |
| 4367 | } |
| 4368 | }, |
| 4369 | "additionalProperties": false, |
| 4370 | "required": [ |
| 4371 | "type" |
| 4372 | ] |
| 4373 | } |
| 4374 | ] |
| 4375 | }, |
| 4376 | "url": { |
| 4377 | "$ref": "#/components/schemas/URL" |
| 4378 | } |
| 4379 | }, |
| 4380 | "additionalProperties": false, |
| 4381 | "required": [ |
| 4382 | "bank_id", |
| 4383 | "name", |
| 4384 | "config" |
| 4385 | ] |
| 4386 | }, |
| 4387 | "DeleteAgentsRequest": { |
| 4388 | "type": "object", |
| 4389 | "properties": { |
| 4390 | "agent_id": { |
| 4391 | "type": "string" |
| 4392 | } |
| 4393 | }, |
| 4394 | "additionalProperties": false, |
| 4395 | "required": [ |
| 4396 | "agent_id" |
| 4397 | ] |
| 4398 | }, |
| 4399 | "DeleteAgentsSessionRequest": { |
| 4400 | "type": "object", |
| 4401 | "properties": { |
| 4402 | "agent_id": { |
| 4403 | "type": "string" |
| 4404 | }, |
| 4405 | "session_id": { |
| 4406 | "type": "string" |
| 4407 | } |
| 4408 | }, |
| 4409 | "additionalProperties": false, |
| 4410 | "required": [ |
| 4411 | "agent_id", |
| 4412 | "session_id" |
| 4413 | ] |
| 4414 | }, |
| 4415 | "DeleteDatasetRequest": { |
| 4416 | "type": "object", |
| 4417 | "properties": { |
| 4418 | "dataset_uuid": { |
| 4419 | "type": "string" |
| 4420 | } |
| 4421 | }, |
| 4422 | "additionalProperties": false, |
| 4423 | "required": [ |
| 4424 | "dataset_uuid" |
| 4425 | ] |
| 4426 | }, |
| 4427 | "DeleteDocumentsRequest": { |
| 4428 | "type": "object", |
| 4429 | "properties": { |
| 4430 | "bank_id": { |
| 4431 | "type": "string" |
| 4432 | }, |
| 4433 | "document_ids": { |
| 4434 | "type": "array", |
| 4435 | "items": { |
| 4436 | "type": "string" |
| 4437 | } |
| 4438 | } |
| 4439 | }, |
| 4440 | "additionalProperties": false, |
| 4441 | "required": [ |
| 4442 | "bank_id", |
| 4443 | "document_ids" |
| 4444 | ] |
| 4445 | }, |
| 4446 | "DropMemoryBankRequest": { |
| 4447 | "type": "object", |
| 4448 | "properties": { |
| 4449 | "bank_id": { |
| 4450 | "type": "string" |
| 4451 | } |
| 4452 | }, |
| 4453 | "additionalProperties": false, |
| 4454 | "required": [ |
| 4455 | "bank_id" |
| 4456 | ] |
| 4457 | }, |
| 4458 | "EmbeddingsRequest": { |
| 4459 | "type": "object", |
| 4460 | "properties": { |
| 4461 | "model": { |
| 4462 | "type": "string" |
| 4463 | }, |
| 4464 | "contents": { |
| 4465 | "type": "array", |
| 4466 | "items": { |
| 4467 | "oneOf": [ |
| 4468 | { |
| 4469 | "type": "string" |
| 4470 | }, |
| 4471 | { |
| 4472 | "$ref": "#/components/schemas/ImageMedia" |
| 4473 | }, |
| 4474 | { |
| 4475 | "type": "array", |
| 4476 | "items": { |
| 4477 | "oneOf": [ |
| 4478 | { |
| 4479 | "type": "string" |
| 4480 | }, |
| 4481 | { |
| 4482 | "$ref": "#/components/schemas/ImageMedia" |
| 4483 | } |
| 4484 | ] |
| 4485 | } |
| 4486 | } |
| 4487 | ] |
| 4488 | } |
| 4489 | } |
| 4490 | }, |
| 4491 | "additionalProperties": false, |
| 4492 | "required": [ |
| 4493 | "model", |
| 4494 | "contents" |
| 4495 | ] |
| 4496 | }, |
| 4497 | "EmbeddingsResponse": { |
| 4498 | "type": "object", |
| 4499 | "properties": { |
| 4500 | "embeddings": { |
| 4501 | "type": "array", |
| 4502 | "items": { |
| 4503 | "type": "array", |
| 4504 | "items": { |
| 4505 | "type": "number" |
| 4506 | } |
| 4507 | } |
| 4508 | } |
| 4509 | }, |
| 4510 | "additionalProperties": false, |
| 4511 | "required": [ |
| 4512 | "embeddings" |
| 4513 | ] |
| 4514 | }, |
| 4515 | "EvaluateQuestionAnsweringRequest": { |
| 4516 | "type": "object", |
| 4517 | "properties": { |
| 4518 | "metrics": { |
| 4519 | "type": "array", |
| 4520 | "items": { |
| 4521 | "type": "string", |
| 4522 | "enum": [ |
| 4523 | "em", |
| 4524 | "f1" |
| 4525 | ] |
| 4526 | } |
| 4527 | } |
| 4528 | }, |
| 4529 | "additionalProperties": false, |
| 4530 | "required": [ |
| 4531 | "metrics" |
| 4532 | ] |
| 4533 | }, |
| 4534 | "EvaluationJob": { |
| 4535 | "type": "object", |
| 4536 | "properties": { |
| 4537 | "job_uuid": { |
| 4538 | "type": "string" |
| 4539 | } |
| 4540 | }, |
| 4541 | "additionalProperties": false, |
| 4542 | "required": [ |
| 4543 | "job_uuid" |
| 4544 | ] |
| 4545 | }, |
| 4546 | "EvaluateSummarizationRequest": { |
| 4547 | "type": "object", |
| 4548 | "properties": { |
| 4549 | "metrics": { |
| 4550 | "type": "array", |
| 4551 | "items": { |
| 4552 | "type": "string", |
| 4553 | "enum": [ |
| 4554 | "rouge", |
| 4555 | "bleu" |
| 4556 | ] |
| 4557 | } |
| 4558 | } |
| 4559 | }, |
| 4560 | "additionalProperties": false, |
| 4561 | "required": [ |
| 4562 | "metrics" |
| 4563 | ] |
| 4564 | }, |
| 4565 | "EvaluateTextGenerationRequest": { |
| 4566 | "type": "object", |
| 4567 | "properties": { |
| 4568 | "metrics": { |
| 4569 | "type": "array", |
| 4570 | "items": { |
| 4571 | "type": "string", |
| 4572 | "enum": [ |
| 4573 | "perplexity", |
| 4574 | "rouge", |
| 4575 | "bleu" |
| 4576 | ] |
| 4577 | } |
| 4578 | } |
| 4579 | }, |
| 4580 | "additionalProperties": false, |
| 4581 | "required": [ |
| 4582 | "metrics" |
| 4583 | ] |
| 4584 | }, |
| 4585 | "GetAgentsSessionRequest": { |
| 4586 | "type": "object", |
| 4587 | "properties": { |
| 4588 | "turn_ids": { |
| 4589 | "type": "array", |
| 4590 | "items": { |
| 4591 | "type": "string" |
| 4592 | } |
| 4593 | } |
| 4594 | }, |
| 4595 | "additionalProperties": false |
| 4596 | }, |
| 4597 | "Session": { |
| 4598 | "type": "object", |
| 4599 | "properties": { |
| 4600 | "session_id": { |
| 4601 | "type": "string" |
| 4602 | }, |
| 4603 | "session_name": { |
| 4604 | "type": "string" |
| 4605 | }, |
| 4606 | "turns": { |
| 4607 | "type": "array", |
| 4608 | "items": { |
| 4609 | "$ref": "#/components/schemas/Turn" |
| 4610 | } |
| 4611 | }, |
| 4612 | "started_at": { |
| 4613 | "type": "string", |
| 4614 | "format": "date-time" |
| 4615 | }, |
| 4616 | "memory_bank": { |
| 4617 | "$ref": "#/components/schemas/MemoryBank" |
| 4618 | } |
| 4619 | }, |
| 4620 | "additionalProperties": false, |
| 4621 | "required": [ |
| 4622 | "session_id", |
| 4623 | "session_name", |
| 4624 | "turns", |
| 4625 | "started_at" |
| 4626 | ], |
| 4627 | "title": "A single session of an interaction with an Agentic System." |
| 4628 | }, |
| 4629 | "AgentStepResponse": { |
| 4630 | "type": "object", |
| 4631 | "properties": { |
| 4632 | "step": { |
| 4633 | "oneOf": [ |
| 4634 | { |
| 4635 | "$ref": "#/components/schemas/InferenceStep" |
| 4636 | }, |
| 4637 | { |
| 4638 | "$ref": "#/components/schemas/ToolExecutionStep" |
| 4639 | }, |
| 4640 | { |
| 4641 | "$ref": "#/components/schemas/ShieldCallStep" |
| 4642 | }, |
| 4643 | { |
| 4644 | "$ref": "#/components/schemas/MemoryRetrievalStep" |
| 4645 | } |
| 4646 | ] |
| 4647 | } |
| 4648 | }, |
| 4649 | "additionalProperties": false, |
| 4650 | "required": [ |
| 4651 | "step" |
| 4652 | ] |
| 4653 | }, |
| 4654 | "GetDocumentsRequest": { |
| 4655 | "type": "object", |
| 4656 | "properties": { |
| 4657 | "document_ids": { |
| 4658 | "type": "array", |
| 4659 | "items": { |
| 4660 | "type": "string" |
| 4661 | } |
| 4662 | } |
| 4663 | }, |
| 4664 | "additionalProperties": false, |
| 4665 | "required": [ |
| 4666 | "document_ids" |
| 4667 | ] |
| 4668 | }, |
| 4669 | "MemoryBankDocument": { |
| 4670 | "type": "object", |
| 4671 | "properties": { |
| 4672 | "document_id": { |
| 4673 | "type": "string" |
| 4674 | }, |
| 4675 | "content": { |
| 4676 | "oneOf": [ |
| 4677 | { |
| 4678 | "type": "string" |
| 4679 | }, |
| 4680 | { |
| 4681 | "$ref": "#/components/schemas/ImageMedia" |
| 4682 | }, |
| 4683 | { |
| 4684 | "type": "array", |
| 4685 | "items": { |
| 4686 | "oneOf": [ |
| 4687 | { |
| 4688 | "type": "string" |
| 4689 | }, |
| 4690 | { |
| 4691 | "$ref": "#/components/schemas/ImageMedia" |
| 4692 | } |
| 4693 | ] |
| 4694 | } |
| 4695 | }, |
| 4696 | { |
| 4697 | "$ref": "#/components/schemas/URL" |
| 4698 | } |
| 4699 | ] |
| 4700 | }, |
| 4701 | "mime_type": { |
| 4702 | "type": "string" |
| 4703 | }, |
| 4704 | "metadata": { |
| 4705 | "type": "object", |
| 4706 | "additionalProperties": { |
| 4707 | "oneOf": [ |
| 4708 | { |
| 4709 | "type": "null" |
| 4710 | }, |
| 4711 | { |
| 4712 | "type": "boolean" |
| 4713 | }, |
| 4714 | { |
| 4715 | "type": "number" |
| 4716 | }, |
| 4717 | { |
| 4718 | "type": "string" |
| 4719 | }, |
| 4720 | { |
| 4721 | "type": "array" |
| 4722 | }, |
| 4723 | { |
| 4724 | "type": "object" |
| 4725 | } |
| 4726 | ] |
| 4727 | } |
| 4728 | } |
| 4729 | }, |
| 4730 | "additionalProperties": false, |
| 4731 | "required": [ |
| 4732 | "document_id", |
| 4733 | "content", |
| 4734 | "metadata" |
| 4735 | ] |
| 4736 | }, |
| 4737 | "EvaluationJobArtifactsResponse": { |
| 4738 | "type": "object", |
| 4739 | "properties": { |
| 4740 | "job_uuid": { |
| 4741 | "type": "string" |
| 4742 | } |
| 4743 | }, |
| 4744 | "additionalProperties": false, |
| 4745 | "required": [ |
| 4746 | "job_uuid" |
| 4747 | ], |
| 4748 | "title": "Artifacts of a evaluation job." |
| 4749 | }, |
| 4750 | "EvaluationJobLogStream": { |
| 4751 | "type": "object", |
| 4752 | "properties": { |
| 4753 | "job_uuid": { |
| 4754 | "type": "string" |
| 4755 | } |
| 4756 | }, |
| 4757 | "additionalProperties": false, |
| 4758 | "required": [ |
| 4759 | "job_uuid" |
| 4760 | ] |
| 4761 | }, |
| 4762 | "EvaluationJobStatusResponse": { |
| 4763 | "type": "object", |
| 4764 | "properties": { |
| 4765 | "job_uuid": { |
| 4766 | "type": "string" |
| 4767 | } |
| 4768 | }, |
| 4769 | "additionalProperties": false, |
| 4770 | "required": [ |
| 4771 | "job_uuid" |
| 4772 | ] |
| 4773 | }, |
| 4774 | "Model": { |
| 4775 | "description": "The model family and SKU of the model along with other parameters corresponding to the model." |
| 4776 | }, |
| 4777 | "ModelServingSpec": { |
| 4778 | "type": "object", |
| 4779 | "properties": { |
| 4780 | "llama_model": { |
| 4781 | "$ref": "#/components/schemas/Model" |
| 4782 | }, |
| 4783 | "provider_config": { |
| 4784 | "type": "object", |
| 4785 | "properties": { |
| 4786 | "provider_id": { |
| 4787 | "type": "string" |
| 4788 | }, |
| 4789 | "config": { |
| 4790 | "type": "object", |
| 4791 | "additionalProperties": { |
| 4792 | "oneOf": [ |
| 4793 | { |
| 4794 | "type": "null" |
| 4795 | }, |
| 4796 | { |
| 4797 | "type": "boolean" |
| 4798 | }, |
| 4799 | { |
| 4800 | "type": "number" |
| 4801 | }, |
| 4802 | { |
| 4803 | "type": "string" |
| 4804 | }, |
| 4805 | { |
| 4806 | "type": "array" |
| 4807 | }, |
| 4808 | { |
| 4809 | "type": "object" |
| 4810 | } |
| 4811 | ] |
| 4812 | } |
| 4813 | } |
| 4814 | }, |
| 4815 | "additionalProperties": false, |
| 4816 | "required": [ |
| 4817 | "provider_id", |
| 4818 | "config" |
| 4819 | ] |
| 4820 | } |
| 4821 | }, |
| 4822 | "additionalProperties": false, |
| 4823 | "required": [ |
| 4824 | "llama_model", |
| 4825 | "provider_config" |
| 4826 | ] |
| 4827 | }, |
| 4828 | "MemoryBankType": { |
| 4829 | "type": "string", |
| 4830 | "enum": [ |
| 4831 | "vector", |
| 4832 | "keyvalue", |
| 4833 | "keyword", |
| 4834 | "graph" |
| 4835 | ] |
| 4836 | }, |
| 4837 | "MemoryBankSpec": { |
| 4838 | "type": "object", |
| 4839 | "properties": { |
| 4840 | "bank_type": { |
| 4841 | "$ref": "#/components/schemas/MemoryBankType" |
| 4842 | }, |
| 4843 | "provider_config": { |
| 4844 | "type": "object", |
| 4845 | "properties": { |
| 4846 | "provider_id": { |
| 4847 | "type": "string" |
| 4848 | }, |
| 4849 | "config": { |
| 4850 | "type": "object", |
| 4851 | "additionalProperties": { |
| 4852 | "oneOf": [ |
| 4853 | { |
| 4854 | "type": "null" |
| 4855 | }, |
| 4856 | { |
| 4857 | "type": "boolean" |
| 4858 | }, |
| 4859 | { |
| 4860 | "type": "number" |
| 4861 | }, |
| 4862 | { |
| 4863 | "type": "string" |
| 4864 | }, |
| 4865 | { |
| 4866 | "type": "array" |
| 4867 | }, |
| 4868 | { |
| 4869 | "type": "object" |
| 4870 | } |
| 4871 | ] |
| 4872 | } |
| 4873 | } |
| 4874 | }, |
| 4875 | "additionalProperties": false, |
| 4876 | "required": [ |
| 4877 | "provider_id", |
| 4878 | "config" |
| 4879 | ] |
| 4880 | } |
| 4881 | }, |
| 4882 | "additionalProperties": false, |
| 4883 | "required": [ |
| 4884 | "bank_type", |
| 4885 | "provider_config" |
| 4886 | ] |
| 4887 | }, |
| 4888 | "ShieldSpec": { |
| 4889 | "type": "object", |
| 4890 | "properties": { |
| 4891 | "shield_type": { |
| 4892 | "type": "string" |
| 4893 | }, |
| 4894 | "provider_config": { |
| 4895 | "type": "object", |
| 4896 | "properties": { |
| 4897 | "provider_id": { |
| 4898 | "type": "string" |
| 4899 | }, |
| 4900 | "config": { |
| 4901 | "type": "object", |
| 4902 | "additionalProperties": { |
| 4903 | "oneOf": [ |
| 4904 | { |
| 4905 | "type": "null" |
| 4906 | }, |
| 4907 | { |
| 4908 | "type": "boolean" |
| 4909 | }, |
| 4910 | { |
| 4911 | "type": "number" |
| 4912 | }, |
| 4913 | { |
| 4914 | "type": "string" |
| 4915 | }, |
| 4916 | { |
| 4917 | "type": "array" |
| 4918 | }, |
| 4919 | { |
| 4920 | "type": "object" |
| 4921 | } |
| 4922 | ] |
| 4923 | } |
| 4924 | } |
| 4925 | }, |
| 4926 | "additionalProperties": false, |
| 4927 | "required": [ |
| 4928 | "provider_id", |
| 4929 | "config" |
| 4930 | ] |
| 4931 | } |
| 4932 | }, |
| 4933 | "additionalProperties": false, |
| 4934 | "required": [ |
| 4935 | "shield_type", |
| 4936 | "provider_config" |
| 4937 | ] |
| 4938 | }, |
| 4939 | "Trace": { |
| 4940 | "type": "object", |
| 4941 | "properties": { |
| 4942 | "trace_id": { |
| 4943 | "type": "string" |
| 4944 | }, |
| 4945 | "root_span_id": { |
| 4946 | "type": "string" |
| 4947 | }, |
| 4948 | "start_time": { |
| 4949 | "type": "string", |
| 4950 | "format": "date-time" |
| 4951 | }, |
| 4952 | "end_time": { |
| 4953 | "type": "string", |
| 4954 | "format": "date-time" |
| 4955 | } |
| 4956 | }, |
| 4957 | "additionalProperties": false, |
| 4958 | "required": [ |
| 4959 | "trace_id", |
| 4960 | "root_span_id", |
| 4961 | "start_time" |
| 4962 | ] |
| 4963 | }, |
| 4964 | "Checkpoint": { |
| 4965 | "description": "Checkpoint created during training runs" |
| 4966 | }, |
| 4967 | "PostTrainingJobArtifactsResponse": { |
| 4968 | "type": "object", |
| 4969 | "properties": { |
| 4970 | "job_uuid": { |
| 4971 | "type": "string" |
| 4972 | }, |
| 4973 | "checkpoints": { |
| 4974 | "type": "array", |
| 4975 | "items": { |
| 4976 | "$ref": "#/components/schemas/Checkpoint" |
| 4977 | } |
| 4978 | } |
| 4979 | }, |
| 4980 | "additionalProperties": false, |
| 4981 | "required": [ |
| 4982 | "job_uuid", |
| 4983 | "checkpoints" |
| 4984 | ], |
| 4985 | "title": "Artifacts of a finetuning job." |
| 4986 | }, |
| 4987 | "PostTrainingJobLogStream": { |
| 4988 | "type": "object", |
| 4989 | "properties": { |
| 4990 | "job_uuid": { |
| 4991 | "type": "string" |
| 4992 | }, |
| 4993 | "log_lines": { |
| 4994 | "type": "array", |
| 4995 | "items": { |
| 4996 | "type": "string" |
| 4997 | } |
| 4998 | } |
| 4999 | }, |
| 5000 | "additionalProperties": false, |
| 5001 | "required": [ |
| 5002 | "job_uuid", |
| 5003 | "log_lines" |
| 5004 | ], |
| 5005 | "title": "Stream of logs from a finetuning job." |
| 5006 | }, |
| 5007 | "PostTrainingJobStatus": { |
| 5008 | "type": "string", |
| 5009 | "enum": [ |
| 5010 | "running", |
| 5011 | "completed", |
| 5012 | "failed", |
| 5013 | "scheduled" |
| 5014 | ] |
| 5015 | }, |
| 5016 | "PostTrainingJobStatusResponse": { |
| 5017 | "type": "object", |
| 5018 | "properties": { |
| 5019 | "job_uuid": { |
| 5020 | "type": "string" |
| 5021 | }, |
| 5022 | "status": { |
| 5023 | "$ref": "#/components/schemas/PostTrainingJobStatus" |
| 5024 | }, |
| 5025 | "scheduled_at": { |
| 5026 | "type": "string", |
| 5027 | "format": "date-time" |
| 5028 | }, |
| 5029 | "started_at": { |
| 5030 | "type": "string", |
| 5031 | "format": "date-time" |
| 5032 | }, |
| 5033 | "completed_at": { |
| 5034 | "type": "string", |
| 5035 | "format": "date-time" |
| 5036 | }, |
| 5037 | "resources_allocated": { |
| 5038 | "type": "object", |
| 5039 | "additionalProperties": { |
| 5040 | "oneOf": [ |
| 5041 | { |
| 5042 | "type": "null" |
| 5043 | }, |
| 5044 | { |
| 5045 | "type": "boolean" |
| 5046 | }, |
| 5047 | { |
| 5048 | "type": "number" |
| 5049 | }, |
| 5050 | { |
| 5051 | "type": "string" |
| 5052 | }, |
| 5053 | { |
| 5054 | "type": "array" |
| 5055 | }, |
| 5056 | { |
| 5057 | "type": "object" |
| 5058 | } |
| 5059 | ] |
| 5060 | } |
| 5061 | }, |
| 5062 | "checkpoints": { |
| 5063 | "type": "array", |
| 5064 | "items": { |
| 5065 | "$ref": "#/components/schemas/Checkpoint" |
| 5066 | } |
| 5067 | } |
| 5068 | }, |
| 5069 | "additionalProperties": false, |
| 5070 | "required": [ |
| 5071 | "job_uuid", |
| 5072 | "status", |
| 5073 | "checkpoints" |
| 5074 | ], |
| 5075 | "title": "Status of a finetuning job." |
| 5076 | }, |
| 5077 | "PostTrainingJob": { |
| 5078 | "type": "object", |
| 5079 | "properties": { |
| 5080 | "job_uuid": { |
| 5081 | "type": "string" |
| 5082 | } |
| 5083 | }, |
| 5084 | "additionalProperties": false, |
| 5085 | "required": [ |
| 5086 | "job_uuid" |
| 5087 | ] |
| 5088 | }, |
| 5089 | "InsertDocumentsRequest": { |
| 5090 | "type": "object", |
| 5091 | "properties": { |
| 5092 | "bank_id": { |
| 5093 | "type": "string" |
| 5094 | }, |
| 5095 | "documents": { |
| 5096 | "type": "array", |
| 5097 | "items": { |
| 5098 | "$ref": "#/components/schemas/MemoryBankDocument" |
| 5099 | } |
| 5100 | }, |
| 5101 | "ttl_seconds": { |
| 5102 | "type": "integer" |
| 5103 | } |
| 5104 | }, |
| 5105 | "additionalProperties": false, |
| 5106 | "required": [ |
| 5107 | "bank_id", |
| 5108 | "documents" |
| 5109 | ] |
| 5110 | }, |
| 5111 | "LogSeverity": { |
| 5112 | "type": "string", |
| 5113 | "enum": [ |
| 5114 | "verbose", |
| 5115 | "debug", |
| 5116 | "info", |
| 5117 | "warn", |
| 5118 | "error", |
| 5119 | "critical" |
| 5120 | ] |
| 5121 | }, |
| 5122 | "MetricEvent": { |
| 5123 | "type": "object", |
| 5124 | "properties": { |
| 5125 | "trace_id": { |
| 5126 | "type": "string" |
| 5127 | }, |
| 5128 | "span_id": { |
| 5129 | "type": "string" |
| 5130 | }, |
| 5131 | "timestamp": { |
| 5132 | "type": "string", |
| 5133 | "format": "date-time" |
| 5134 | }, |
| 5135 | "attributes": { |
| 5136 | "type": "object", |
| 5137 | "additionalProperties": { |
| 5138 | "oneOf": [ |
| 5139 | { |
| 5140 | "type": "null" |
| 5141 | }, |
| 5142 | { |
| 5143 | "type": "boolean" |
| 5144 | }, |
| 5145 | { |
| 5146 | "type": "number" |
| 5147 | }, |
| 5148 | { |
| 5149 | "type": "string" |
| 5150 | }, |
| 5151 | { |
| 5152 | "type": "array" |
| 5153 | }, |
| 5154 | { |
| 5155 | "type": "object" |
| 5156 | } |
| 5157 | ] |
| 5158 | } |
| 5159 | }, |
| 5160 | "type": { |
| 5161 | "type": "string", |
| 5162 | "const": "metric", |
| 5163 | "default": "metric" |
| 5164 | }, |
| 5165 | "metric": { |
| 5166 | "type": "string" |
| 5167 | }, |
| 5168 | "value": { |
| 5169 | "oneOf": [ |
| 5170 | { |
| 5171 | "type": "integer" |
| 5172 | }, |
| 5173 | { |
| 5174 | "type": "number" |
| 5175 | } |
| 5176 | ] |
| 5177 | }, |
| 5178 | "unit": { |
| 5179 | "type": "string" |
| 5180 | } |
| 5181 | }, |
| 5182 | "additionalProperties": false, |
| 5183 | "required": [ |
| 5184 | "trace_id", |
| 5185 | "span_id", |
| 5186 | "timestamp", |
| 5187 | "type", |
| 5188 | "metric", |
| 5189 | "value", |
| 5190 | "unit" |
| 5191 | ] |
| 5192 | }, |
| 5193 | "SpanEndPayload": { |
| 5194 | "type": "object", |
| 5195 | "properties": { |
| 5196 | "type": { |
| 5197 | "type": "string", |
| 5198 | "const": "span_end", |
| 5199 | "default": "span_end" |
| 5200 | }, |
| 5201 | "status": { |
| 5202 | "$ref": "#/components/schemas/SpanStatus" |
| 5203 | } |
| 5204 | }, |
| 5205 | "additionalProperties": false, |
| 5206 | "required": [ |
| 5207 | "type", |
| 5208 | "status" |
| 5209 | ] |
| 5210 | }, |
| 5211 | "SpanStartPayload": { |
| 5212 | "type": "object", |
| 5213 | "properties": { |
| 5214 | "type": { |
| 5215 | "type": "string", |
| 5216 | "const": "span_start", |
| 5217 | "default": "span_start" |
| 5218 | }, |
| 5219 | "name": { |
| 5220 | "type": "string" |
| 5221 | }, |
| 5222 | "parent_span_id": { |
| 5223 | "type": "string" |
| 5224 | } |
| 5225 | }, |
| 5226 | "additionalProperties": false, |
| 5227 | "required": [ |
| 5228 | "type", |
| 5229 | "name" |
| 5230 | ] |
| 5231 | }, |
| 5232 | "SpanStatus": { |
| 5233 | "type": "string", |
| 5234 | "enum": [ |
| 5235 | "ok", |
| 5236 | "error" |
| 5237 | ] |
| 5238 | }, |
| 5239 | "StructuredLogEvent": { |
| 5240 | "type": "object", |
| 5241 | "properties": { |
| 5242 | "trace_id": { |
| 5243 | "type": "string" |
| 5244 | }, |
| 5245 | "span_id": { |
| 5246 | "type": "string" |
| 5247 | }, |
| 5248 | "timestamp": { |
| 5249 | "type": "string", |
| 5250 | "format": "date-time" |
| 5251 | }, |
| 5252 | "attributes": { |
| 5253 | "type": "object", |
| 5254 | "additionalProperties": { |
| 5255 | "oneOf": [ |
| 5256 | { |
| 5257 | "type": "null" |
| 5258 | }, |
| 5259 | { |
| 5260 | "type": "boolean" |
| 5261 | }, |
| 5262 | { |
| 5263 | "type": "number" |
| 5264 | }, |
| 5265 | { |
| 5266 | "type": "string" |
| 5267 | }, |
| 5268 | { |
| 5269 | "type": "array" |
| 5270 | }, |
| 5271 | { |
| 5272 | "type": "object" |
| 5273 | } |
| 5274 | ] |
| 5275 | } |
| 5276 | }, |
| 5277 | "type": { |
| 5278 | "type": "string", |
| 5279 | "const": "structured_log", |
| 5280 | "default": "structured_log" |
| 5281 | }, |
| 5282 | "payload": { |
| 5283 | "oneOf": [ |
| 5284 | { |
| 5285 | "$ref": "#/components/schemas/SpanStartPayload" |
| 5286 | }, |
| 5287 | { |
| 5288 | "$ref": "#/components/schemas/SpanEndPayload" |
| 5289 | } |
| 5290 | ] |
| 5291 | } |
| 5292 | }, |
| 5293 | "additionalProperties": false, |
| 5294 | "required": [ |
| 5295 | "trace_id", |
| 5296 | "span_id", |
| 5297 | "timestamp", |
| 5298 | "type", |
| 5299 | "payload" |
| 5300 | ] |
| 5301 | }, |
| 5302 | "UnstructuredLogEvent": { |
| 5303 | "type": "object", |
| 5304 | "properties": { |
| 5305 | "trace_id": { |
| 5306 | "type": "string" |
| 5307 | }, |
| 5308 | "span_id": { |
| 5309 | "type": "string" |
| 5310 | }, |
| 5311 | "timestamp": { |
| 5312 | "type": "string", |
| 5313 | "format": "date-time" |
| 5314 | }, |
| 5315 | "attributes": { |
| 5316 | "type": "object", |
| 5317 | "additionalProperties": { |
| 5318 | "oneOf": [ |
| 5319 | { |
| 5320 | "type": "null" |
| 5321 | }, |
| 5322 | { |
| 5323 | "type": "boolean" |
| 5324 | }, |
| 5325 | { |
| 5326 | "type": "number" |
| 5327 | }, |
| 5328 | { |
| 5329 | "type": "string" |
| 5330 | }, |
| 5331 | { |
| 5332 | "type": "array" |
| 5333 | }, |
| 5334 | { |
| 5335 | "type": "object" |
| 5336 | } |
| 5337 | ] |
| 5338 | } |
| 5339 | }, |
| 5340 | "type": { |
| 5341 | "type": "string", |
| 5342 | "const": "unstructured_log", |
| 5343 | "default": "unstructured_log" |
| 5344 | }, |
| 5345 | "message": { |
| 5346 | "type": "string" |
| 5347 | }, |
| 5348 | "severity": { |
| 5349 | "$ref": "#/components/schemas/LogSeverity" |
| 5350 | } |
| 5351 | }, |
| 5352 | "additionalProperties": false, |
| 5353 | "required": [ |
| 5354 | "trace_id", |
| 5355 | "span_id", |
| 5356 | "timestamp", |
| 5357 | "type", |
| 5358 | "message", |
| 5359 | "severity" |
| 5360 | ] |
| 5361 | }, |
| 5362 | "LogEventRequest": { |
| 5363 | "type": "object", |
| 5364 | "properties": { |
| 5365 | "event": { |
| 5366 | "oneOf": [ |
| 5367 | { |
| 5368 | "$ref": "#/components/schemas/UnstructuredLogEvent" |
| 5369 | }, |
| 5370 | { |
| 5371 | "$ref": "#/components/schemas/MetricEvent" |
| 5372 | }, |
| 5373 | { |
| 5374 | "$ref": "#/components/schemas/StructuredLogEvent" |
| 5375 | } |
| 5376 | ] |
| 5377 | } |
| 5378 | }, |
| 5379 | "additionalProperties": false, |
| 5380 | "required": [ |
| 5381 | "event" |
| 5382 | ] |
| 5383 | }, |
| 5384 | "DPOAlignmentConfig": { |
| 5385 | "type": "object", |
| 5386 | "properties": { |
| 5387 | "reward_scale": { |
| 5388 | "type": "number" |
| 5389 | }, |
| 5390 | "reward_clip": { |
| 5391 | "type": "number" |
| 5392 | }, |
| 5393 | "epsilon": { |
| 5394 | "type": "number" |
| 5395 | }, |
| 5396 | "gamma": { |
| 5397 | "type": "number" |
| 5398 | } |
| 5399 | }, |
| 5400 | "additionalProperties": false, |
| 5401 | "required": [ |
| 5402 | "reward_scale", |
| 5403 | "reward_clip", |
| 5404 | "epsilon", |
| 5405 | "gamma" |
| 5406 | ] |
| 5407 | }, |
| 5408 | "OptimizerConfig": { |
| 5409 | "type": "object", |
| 5410 | "properties": { |
| 5411 | "optimizer_type": { |
| 5412 | "type": "string", |
| 5413 | "enum": [ |
| 5414 | "adam", |
| 5415 | "adamw", |
| 5416 | "sgd" |
| 5417 | ] |
| 5418 | }, |
| 5419 | "lr": { |
| 5420 | "type": "number" |
| 5421 | }, |
| 5422 | "lr_min": { |
| 5423 | "type": "number" |
| 5424 | }, |
| 5425 | "weight_decay": { |
| 5426 | "type": "number" |
| 5427 | } |
| 5428 | }, |
| 5429 | "additionalProperties": false, |
| 5430 | "required": [ |
| 5431 | "optimizer_type", |
| 5432 | "lr", |
| 5433 | "lr_min", |
| 5434 | "weight_decay" |
| 5435 | ] |
| 5436 | }, |
| 5437 | "RLHFAlgorithm": { |
| 5438 | "type": "string", |
| 5439 | "enum": [ |
| 5440 | "dpo" |
| 5441 | ] |
| 5442 | }, |
| 5443 | "TrainingConfig": { |
| 5444 | "type": "object", |
| 5445 | "properties": { |
| 5446 | "n_epochs": { |
| 5447 | "type": "integer" |
| 5448 | }, |
| 5449 | "batch_size": { |
| 5450 | "type": "integer" |
| 5451 | }, |
| 5452 | "shuffle": { |
| 5453 | "type": "boolean" |
| 5454 | }, |
| 5455 | "n_iters": { |
| 5456 | "type": "integer" |
| 5457 | }, |
| 5458 | "enable_activation_checkpointing": { |
| 5459 | "type": "boolean" |
| 5460 | }, |
| 5461 | "memory_efficient_fsdp_wrap": { |
| 5462 | "type": "boolean" |
| 5463 | }, |
| 5464 | "fsdp_cpu_offload": { |
| 5465 | "type": "boolean" |
| 5466 | } |
| 5467 | }, |
| 5468 | "additionalProperties": false, |
| 5469 | "required": [ |
| 5470 | "n_epochs", |
| 5471 | "batch_size", |
| 5472 | "shuffle", |
| 5473 | "n_iters", |
| 5474 | "enable_activation_checkpointing", |
| 5475 | "memory_efficient_fsdp_wrap", |
| 5476 | "fsdp_cpu_offload" |
| 5477 | ] |
| 5478 | }, |
| 5479 | "PreferenceOptimizeRequest": { |
| 5480 | "type": "object", |
| 5481 | "properties": { |
| 5482 | "job_uuid": { |
| 5483 | "type": "string" |
| 5484 | }, |
| 5485 | "finetuned_model": { |
| 5486 | "$ref": "#/components/schemas/URL" |
| 5487 | }, |
| 5488 | "dataset": { |
| 5489 | "$ref": "#/components/schemas/TrainEvalDataset" |
| 5490 | }, |
| 5491 | "validation_dataset": { |
| 5492 | "$ref": "#/components/schemas/TrainEvalDataset" |
| 5493 | }, |
| 5494 | "algorithm": { |
| 5495 | "$ref": "#/components/schemas/RLHFAlgorithm" |
| 5496 | }, |
| 5497 | "algorithm_config": { |
| 5498 | "$ref": "#/components/schemas/DPOAlignmentConfig" |
| 5499 | }, |
| 5500 | "optimizer_config": { |
| 5501 | "$ref": "#/components/schemas/OptimizerConfig" |
| 5502 | }, |
| 5503 | "training_config": { |
| 5504 | "$ref": "#/components/schemas/TrainingConfig" |
| 5505 | }, |
| 5506 | "hyperparam_search_config": { |
| 5507 | "type": "object", |
| 5508 | "additionalProperties": { |
| 5509 | "oneOf": [ |
| 5510 | { |
| 5511 | "type": "null" |
| 5512 | }, |
| 5513 | { |
| 5514 | "type": "boolean" |
| 5515 | }, |
| 5516 | { |
| 5517 | "type": "number" |
| 5518 | }, |
| 5519 | { |
| 5520 | "type": "string" |
| 5521 | }, |
| 5522 | { |
| 5523 | "type": "array" |
| 5524 | }, |
| 5525 | { |
| 5526 | "type": "object" |
| 5527 | } |
| 5528 | ] |
| 5529 | } |
| 5530 | }, |
| 5531 | "logger_config": { |
| 5532 | "type": "object", |
| 5533 | "additionalProperties": { |
| 5534 | "oneOf": [ |
| 5535 | { |
| 5536 | "type": "null" |
| 5537 | }, |
| 5538 | { |
| 5539 | "type": "boolean" |
| 5540 | }, |
| 5541 | { |
| 5542 | "type": "number" |
| 5543 | }, |
| 5544 | { |
| 5545 | "type": "string" |
| 5546 | }, |
| 5547 | { |
| 5548 | "type": "array" |
| 5549 | }, |
| 5550 | { |
| 5551 | "type": "object" |
| 5552 | } |
| 5553 | ] |
| 5554 | } |
| 5555 | } |
| 5556 | }, |
| 5557 | "additionalProperties": false, |
| 5558 | "required": [ |
| 5559 | "job_uuid", |
| 5560 | "finetuned_model", |
| 5561 | "dataset", |
| 5562 | "validation_dataset", |
| 5563 | "algorithm", |
| 5564 | "algorithm_config", |
| 5565 | "optimizer_config", |
| 5566 | "training_config", |
| 5567 | "hyperparam_search_config", |
| 5568 | "logger_config" |
| 5569 | ] |
| 5570 | }, |
| 5571 | "QueryDocumentsRequest": { |
| 5572 | "type": "object", |
| 5573 | "properties": { |
| 5574 | "bank_id": { |
| 5575 | "type": "string" |
| 5576 | }, |
| 5577 | "query": { |
| 5578 | "oneOf": [ |
| 5579 | { |
| 5580 | "type": "string" |
| 5581 | }, |
| 5582 | { |
| 5583 | "$ref": "#/components/schemas/ImageMedia" |
| 5584 | }, |
| 5585 | { |
| 5586 | "type": "array", |
| 5587 | "items": { |
| 5588 | "oneOf": [ |
| 5589 | { |
| 5590 | "type": "string" |
| 5591 | }, |
| 5592 | { |
| 5593 | "$ref": "#/components/schemas/ImageMedia" |
| 5594 | } |
| 5595 | ] |
| 5596 | } |
| 5597 | } |
| 5598 | ] |
| 5599 | }, |
| 5600 | "params": { |
| 5601 | "type": "object", |
| 5602 | "additionalProperties": { |
| 5603 | "oneOf": [ |
| 5604 | { |
| 5605 | "type": "null" |
| 5606 | }, |
| 5607 | { |
| 5608 | "type": "boolean" |
| 5609 | }, |
| 5610 | { |
| 5611 | "type": "number" |
| 5612 | }, |
| 5613 | { |
| 5614 | "type": "string" |
| 5615 | }, |
| 5616 | { |
| 5617 | "type": "array" |
| 5618 | }, |
| 5619 | { |
| 5620 | "type": "object" |
| 5621 | } |
| 5622 | ] |
| 5623 | } |
| 5624 | } |
| 5625 | }, |
| 5626 | "additionalProperties": false, |
| 5627 | "required": [ |
| 5628 | "bank_id", |
| 5629 | "query" |
| 5630 | ] |
| 5631 | }, |
| 5632 | "QueryDocumentsResponse": { |
| 5633 | "type": "object", |
| 5634 | "properties": { |
| 5635 | "chunks": { |
| 5636 | "type": "array", |
| 5637 | "items": { |
| 5638 | "type": "object", |
| 5639 | "properties": { |
| 5640 | "content": { |
| 5641 | "oneOf": [ |
| 5642 | { |
| 5643 | "type": "string" |
| 5644 | }, |
| 5645 | { |
| 5646 | "$ref": "#/components/schemas/ImageMedia" |
| 5647 | }, |
| 5648 | { |
| 5649 | "type": "array", |
| 5650 | "items": { |
| 5651 | "oneOf": [ |
| 5652 | { |
| 5653 | "type": "string" |
| 5654 | }, |
| 5655 | { |
| 5656 | "$ref": "#/components/schemas/ImageMedia" |
| 5657 | } |
| 5658 | ] |
| 5659 | } |
| 5660 | } |
| 5661 | ] |
| 5662 | }, |
| 5663 | "token_count": { |
| 5664 | "type": "integer" |
| 5665 | }, |
| 5666 | "document_id": { |
| 5667 | "type": "string" |
| 5668 | } |
| 5669 | }, |
| 5670 | "additionalProperties": false, |
| 5671 | "required": [ |
| 5672 | "content", |
| 5673 | "token_count", |
| 5674 | "document_id" |
| 5675 | ] |
| 5676 | } |
| 5677 | }, |
| 5678 | "scores": { |
| 5679 | "type": "array", |
| 5680 | "items": { |
| 5681 | "type": "number" |
| 5682 | } |
| 5683 | } |
| 5684 | }, |
| 5685 | "additionalProperties": false, |
| 5686 | "required": [ |
| 5687 | "chunks", |
| 5688 | "scores" |
| 5689 | ] |
| 5690 | }, |
| 5691 | "DialogGenerations": { |
| 5692 | "type": "object", |
| 5693 | "properties": { |
| 5694 | "dialog": { |
| 5695 | "type": "array", |
| 5696 | "items": { |
| 5697 | "oneOf": [ |
| 5698 | { |
| 5699 | "$ref": "#/components/schemas/UserMessage" |
| 5700 | }, |
| 5701 | { |
| 5702 | "$ref": "#/components/schemas/SystemMessage" |
| 5703 | }, |
| 5704 | { |
| 5705 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 5706 | }, |
| 5707 | { |
| 5708 | "$ref": "#/components/schemas/CompletionMessage" |
| 5709 | } |
| 5710 | ] |
| 5711 | } |
| 5712 | }, |
| 5713 | "sampled_generations": { |
| 5714 | "type": "array", |
| 5715 | "items": { |
| 5716 | "oneOf": [ |
| 5717 | { |
| 5718 | "$ref": "#/components/schemas/UserMessage" |
| 5719 | }, |
| 5720 | { |
| 5721 | "$ref": "#/components/schemas/SystemMessage" |
| 5722 | }, |
| 5723 | { |
| 5724 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 5725 | }, |
| 5726 | { |
| 5727 | "$ref": "#/components/schemas/CompletionMessage" |
| 5728 | } |
| 5729 | ] |
| 5730 | } |
| 5731 | } |
| 5732 | }, |
| 5733 | "additionalProperties": false, |
| 5734 | "required": [ |
| 5735 | "dialog", |
| 5736 | "sampled_generations" |
| 5737 | ] |
| 5738 | }, |
| 5739 | "RewardScoreRequest": { |
| 5740 | "type": "object", |
| 5741 | "properties": { |
| 5742 | "dialog_generations": { |
| 5743 | "type": "array", |
| 5744 | "items": { |
| 5745 | "$ref": "#/components/schemas/DialogGenerations" |
| 5746 | } |
| 5747 | }, |
| 5748 | "model": { |
| 5749 | "type": "string" |
| 5750 | } |
| 5751 | }, |
| 5752 | "additionalProperties": false, |
| 5753 | "required": [ |
| 5754 | "dialog_generations", |
| 5755 | "model" |
| 5756 | ] |
| 5757 | }, |
| 5758 | "RewardScoringResponse": { |
| 5759 | "type": "object", |
| 5760 | "properties": { |
| 5761 | "scored_generations": { |
| 5762 | "type": "array", |
| 5763 | "items": { |
| 5764 | "$ref": "#/components/schemas/ScoredDialogGenerations" |
| 5765 | } |
| 5766 | } |
| 5767 | }, |
| 5768 | "additionalProperties": false, |
| 5769 | "required": [ |
| 5770 | "scored_generations" |
| 5771 | ], |
| 5772 | "title": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold." |
| 5773 | }, |
| 5774 | "ScoredDialogGenerations": { |
| 5775 | "type": "object", |
| 5776 | "properties": { |
| 5777 | "dialog": { |
| 5778 | "type": "array", |
| 5779 | "items": { |
| 5780 | "oneOf": [ |
| 5781 | { |
| 5782 | "$ref": "#/components/schemas/UserMessage" |
| 5783 | }, |
| 5784 | { |
| 5785 | "$ref": "#/components/schemas/SystemMessage" |
| 5786 | }, |
| 5787 | { |
| 5788 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 5789 | }, |
| 5790 | { |
| 5791 | "$ref": "#/components/schemas/CompletionMessage" |
| 5792 | } |
| 5793 | ] |
| 5794 | } |
| 5795 | }, |
| 5796 | "scored_generations": { |
| 5797 | "type": "array", |
| 5798 | "items": { |
| 5799 | "$ref": "#/components/schemas/ScoredMessage" |
| 5800 | } |
| 5801 | } |
| 5802 | }, |
| 5803 | "additionalProperties": false, |
| 5804 | "required": [ |
| 5805 | "dialog", |
| 5806 | "scored_generations" |
| 5807 | ] |
| 5808 | }, |
| 5809 | "ScoredMessage": { |
| 5810 | "type": "object", |
| 5811 | "properties": { |
| 5812 | "message": { |
| 5813 | "oneOf": [ |
| 5814 | { |
| 5815 | "$ref": "#/components/schemas/UserMessage" |
| 5816 | }, |
| 5817 | { |
| 5818 | "$ref": "#/components/schemas/SystemMessage" |
| 5819 | }, |
| 5820 | { |
| 5821 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 5822 | }, |
| 5823 | { |
| 5824 | "$ref": "#/components/schemas/CompletionMessage" |
| 5825 | } |
| 5826 | ] |
| 5827 | }, |
| 5828 | "score": { |
| 5829 | "type": "number" |
| 5830 | } |
| 5831 | }, |
| 5832 | "additionalProperties": false, |
| 5833 | "required": [ |
| 5834 | "message", |
| 5835 | "score" |
| 5836 | ] |
| 5837 | }, |
| 5838 | "RunShieldRequest": { |
| 5839 | "type": "object", |
| 5840 | "properties": { |
| 5841 | "shield_type": { |
| 5842 | "type": "string" |
| 5843 | }, |
| 5844 | "messages": { |
| 5845 | "type": "array", |
| 5846 | "items": { |
| 5847 | "oneOf": [ |
| 5848 | { |
| 5849 | "$ref": "#/components/schemas/UserMessage" |
| 5850 | }, |
| 5851 | { |
| 5852 | "$ref": "#/components/schemas/SystemMessage" |
| 5853 | }, |
| 5854 | { |
| 5855 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 5856 | }, |
| 5857 | { |
| 5858 | "$ref": "#/components/schemas/CompletionMessage" |
| 5859 | } |
| 5860 | ] |
| 5861 | } |
| 5862 | }, |
| 5863 | "params": { |
| 5864 | "type": "object", |
| 5865 | "additionalProperties": { |
| 5866 | "oneOf": [ |
| 5867 | { |
| 5868 | "type": "null" |
| 5869 | }, |
| 5870 | { |
| 5871 | "type": "boolean" |
| 5872 | }, |
| 5873 | { |
| 5874 | "type": "number" |
| 5875 | }, |
| 5876 | { |
| 5877 | "type": "string" |
| 5878 | }, |
| 5879 | { |
| 5880 | "type": "array" |
| 5881 | }, |
| 5882 | { |
| 5883 | "type": "object" |
| 5884 | } |
| 5885 | ] |
| 5886 | } |
| 5887 | } |
| 5888 | }, |
| 5889 | "additionalProperties": false, |
| 5890 | "required": [ |
| 5891 | "shield_type", |
| 5892 | "messages", |
| 5893 | "params" |
| 5894 | ] |
| 5895 | }, |
| 5896 | "RunShieldResponse": { |
| 5897 | "type": "object", |
| 5898 | "properties": { |
| 5899 | "violation": { |
| 5900 | "$ref": "#/components/schemas/SafetyViolation" |
| 5901 | } |
| 5902 | }, |
| 5903 | "additionalProperties": false |
| 5904 | }, |
| 5905 | "DoraFinetuningConfig": { |
| 5906 | "type": "object", |
| 5907 | "properties": { |
| 5908 | "lora_attn_modules": { |
| 5909 | "type": "array", |
| 5910 | "items": { |
| 5911 | "type": "string" |
| 5912 | } |
| 5913 | }, |
| 5914 | "apply_lora_to_mlp": { |
| 5915 | "type": "boolean" |
| 5916 | }, |
| 5917 | "apply_lora_to_output": { |
| 5918 | "type": "boolean" |
| 5919 | }, |
| 5920 | "rank": { |
| 5921 | "type": "integer" |
| 5922 | }, |
| 5923 | "alpha": { |
| 5924 | "type": "integer" |
| 5925 | } |
| 5926 | }, |
| 5927 | "additionalProperties": false, |
| 5928 | "required": [ |
| 5929 | "lora_attn_modules", |
| 5930 | "apply_lora_to_mlp", |
| 5931 | "apply_lora_to_output", |
| 5932 | "rank", |
| 5933 | "alpha" |
| 5934 | ] |
| 5935 | }, |
| 5936 | "FinetuningAlgorithm": { |
| 5937 | "type": "string", |
| 5938 | "enum": [ |
| 5939 | "full", |
| 5940 | "lora", |
| 5941 | "qlora", |
| 5942 | "dora" |
| 5943 | ] |
| 5944 | }, |
| 5945 | "LoraFinetuningConfig": { |
| 5946 | "type": "object", |
| 5947 | "properties": { |
| 5948 | "lora_attn_modules": { |
| 5949 | "type": "array", |
| 5950 | "items": { |
| 5951 | "type": "string" |
| 5952 | } |
| 5953 | }, |
| 5954 | "apply_lora_to_mlp": { |
| 5955 | "type": "boolean" |
| 5956 | }, |
| 5957 | "apply_lora_to_output": { |
| 5958 | "type": "boolean" |
| 5959 | }, |
| 5960 | "rank": { |
| 5961 | "type": "integer" |
| 5962 | }, |
| 5963 | "alpha": { |
| 5964 | "type": "integer" |
| 5965 | } |
| 5966 | }, |
| 5967 | "additionalProperties": false, |
| 5968 | "required": [ |
| 5969 | "lora_attn_modules", |
| 5970 | "apply_lora_to_mlp", |
| 5971 | "apply_lora_to_output", |
| 5972 | "rank", |
| 5973 | "alpha" |
| 5974 | ] |
| 5975 | }, |
| 5976 | "QLoraFinetuningConfig": { |
| 5977 | "type": "object", |
| 5978 | "properties": { |
| 5979 | "lora_attn_modules": { |
| 5980 | "type": "array", |
| 5981 | "items": { |
| 5982 | "type": "string" |
| 5983 | } |
| 5984 | }, |
| 5985 | "apply_lora_to_mlp": { |
| 5986 | "type": "boolean" |
| 5987 | }, |
| 5988 | "apply_lora_to_output": { |
| 5989 | "type": "boolean" |
| 5990 | }, |
| 5991 | "rank": { |
| 5992 | "type": "integer" |
| 5993 | }, |
| 5994 | "alpha": { |
| 5995 | "type": "integer" |
| 5996 | } |
| 5997 | }, |
| 5998 | "additionalProperties": false, |
| 5999 | "required": [ |
| 6000 | "lora_attn_modules", |
| 6001 | "apply_lora_to_mlp", |
| 6002 | "apply_lora_to_output", |
| 6003 | "rank", |
| 6004 | "alpha" |
| 6005 | ] |
| 6006 | }, |
| 6007 | "SupervisedFineTuneRequest": { |
| 6008 | "type": "object", |
| 6009 | "properties": { |
| 6010 | "job_uuid": { |
| 6011 | "type": "string" |
| 6012 | }, |
| 6013 | "model": { |
| 6014 | "type": "string" |
| 6015 | }, |
| 6016 | "dataset": { |
| 6017 | "$ref": "#/components/schemas/TrainEvalDataset" |
| 6018 | }, |
| 6019 | "validation_dataset": { |
| 6020 | "$ref": "#/components/schemas/TrainEvalDataset" |
| 6021 | }, |
| 6022 | "algorithm": { |
| 6023 | "$ref": "#/components/schemas/FinetuningAlgorithm" |
| 6024 | }, |
| 6025 | "algorithm_config": { |
| 6026 | "oneOf": [ |
| 6027 | { |
| 6028 | "$ref": "#/components/schemas/LoraFinetuningConfig" |
| 6029 | }, |
| 6030 | { |
| 6031 | "$ref": "#/components/schemas/QLoraFinetuningConfig" |
| 6032 | }, |
| 6033 | { |
| 6034 | "$ref": "#/components/schemas/DoraFinetuningConfig" |
| 6035 | } |
| 6036 | ] |
| 6037 | }, |
| 6038 | "optimizer_config": { |
| 6039 | "$ref": "#/components/schemas/OptimizerConfig" |
| 6040 | }, |
| 6041 | "training_config": { |
| 6042 | "$ref": "#/components/schemas/TrainingConfig" |
| 6043 | }, |
| 6044 | "hyperparam_search_config": { |
| 6045 | "type": "object", |
| 6046 | "additionalProperties": { |
| 6047 | "oneOf": [ |
| 6048 | { |
| 6049 | "type": "null" |
| 6050 | }, |
| 6051 | { |
| 6052 | "type": "boolean" |
| 6053 | }, |
| 6054 | { |
| 6055 | "type": "number" |
| 6056 | }, |
| 6057 | { |
| 6058 | "type": "string" |
| 6059 | }, |
| 6060 | { |
| 6061 | "type": "array" |
| 6062 | }, |
| 6063 | { |
| 6064 | "type": "object" |
| 6065 | } |
| 6066 | ] |
| 6067 | } |
| 6068 | }, |
| 6069 | "logger_config": { |
| 6070 | "type": "object", |
| 6071 | "additionalProperties": { |
| 6072 | "oneOf": [ |
| 6073 | { |
| 6074 | "type": "null" |
| 6075 | }, |
| 6076 | { |
| 6077 | "type": "boolean" |
| 6078 | }, |
| 6079 | { |
| 6080 | "type": "number" |
| 6081 | }, |
| 6082 | { |
| 6083 | "type": "string" |
| 6084 | }, |
| 6085 | { |
| 6086 | "type": "array" |
| 6087 | }, |
| 6088 | { |
| 6089 | "type": "object" |
| 6090 | } |
| 6091 | ] |
| 6092 | } |
| 6093 | } |
| 6094 | }, |
| 6095 | "additionalProperties": false, |
| 6096 | "required": [ |
| 6097 | "job_uuid", |
| 6098 | "model", |
| 6099 | "dataset", |
| 6100 | "validation_dataset", |
| 6101 | "algorithm", |
| 6102 | "algorithm_config", |
| 6103 | "optimizer_config", |
| 6104 | "training_config", |
| 6105 | "hyperparam_search_config", |
| 6106 | "logger_config" |
| 6107 | ] |
| 6108 | }, |
| 6109 | "SyntheticDataGenerateRequest": { |
| 6110 | "type": "object", |
| 6111 | "properties": { |
| 6112 | "dialogs": { |
| 6113 | "type": "array", |
| 6114 | "items": { |
| 6115 | "oneOf": [ |
| 6116 | { |
| 6117 | "$ref": "#/components/schemas/UserMessage" |
| 6118 | }, |
| 6119 | { |
| 6120 | "$ref": "#/components/schemas/SystemMessage" |
| 6121 | }, |
| 6122 | { |
| 6123 | "$ref": "#/components/schemas/ToolResponseMessage" |
| 6124 | }, |
| 6125 | { |
| 6126 | "$ref": "#/components/schemas/CompletionMessage" |
| 6127 | } |
| 6128 | ] |
| 6129 | } |
| 6130 | }, |
| 6131 | "filtering_function": { |
| 6132 | "type": "string", |
| 6133 | "enum": [ |
| 6134 | "none", |
| 6135 | "random", |
| 6136 | "top_k", |
| 6137 | "top_p", |
| 6138 | "top_k_top_p", |
| 6139 | "sigmoid" |
| 6140 | ], |
| 6141 | "title": "The type of filtering function." |
| 6142 | }, |
| 6143 | "model": { |
| 6144 | "type": "string" |
| 6145 | } |
| 6146 | }, |
| 6147 | "additionalProperties": false, |
| 6148 | "required": [ |
| 6149 | "dialogs", |
| 6150 | "filtering_function" |
| 6151 | ] |
| 6152 | }, |
| 6153 | "SyntheticDataGenerationResponse": { |
| 6154 | "type": "object", |
| 6155 | "properties": { |
| 6156 | "synthetic_data": { |
| 6157 | "type": "array", |
| 6158 | "items": { |
| 6159 | "$ref": "#/components/schemas/ScoredDialogGenerations" |
| 6160 | } |
| 6161 | }, |
| 6162 | "statistics": { |
| 6163 | "type": "object", |
| 6164 | "additionalProperties": { |
| 6165 | "oneOf": [ |
| 6166 | { |
| 6167 | "type": "null" |
| 6168 | }, |
| 6169 | { |
| 6170 | "type": "boolean" |
| 6171 | }, |
| 6172 | { |
| 6173 | "type": "number" |
| 6174 | }, |
| 6175 | { |
| 6176 | "type": "string" |
| 6177 | }, |
| 6178 | { |
| 6179 | "type": "array" |
| 6180 | }, |
| 6181 | { |
| 6182 | "type": "object" |
| 6183 | } |
| 6184 | ] |
| 6185 | } |
| 6186 | } |
| 6187 | }, |
| 6188 | "additionalProperties": false, |
| 6189 | "required": [ |
| 6190 | "synthetic_data" |
| 6191 | ], |
| 6192 | "title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold." |
| 6193 | }, |
| 6194 | "UpdateDocumentsRequest": { |
| 6195 | "type": "object", |
| 6196 | "properties": { |
| 6197 | "bank_id": { |
| 6198 | "type": "string" |
| 6199 | }, |
| 6200 | "documents": { |
| 6201 | "type": "array", |
| 6202 | "items": { |
| 6203 | "$ref": "#/components/schemas/MemoryBankDocument" |
| 6204 | } |
| 6205 | } |
| 6206 | }, |
| 6207 | "additionalProperties": false, |
| 6208 | "required": [ |
| 6209 | "bank_id", |
| 6210 | "documents" |
| 6211 | ] |
| 6212 | } |
| 6213 | }, |
| 6214 | "responses": {} |
| 6215 | }, |
| 6216 | "security": [ |
| 6217 | { |
| 6218 | "Default": [] |
| 6219 | } |
| 6220 | ], |
| 6221 | "tags": [ |
| 6222 | { |
| 6223 | "name": "Shields" |
| 6224 | }, |
| 6225 | { |
| 6226 | "name": "BatchInference" |
| 6227 | }, |
| 6228 | { |
| 6229 | "name": "RewardScoring" |
| 6230 | }, |
| 6231 | { |
| 6232 | "name": "SyntheticDataGeneration" |
| 6233 | }, |
| 6234 | { |
| 6235 | "name": "Agents" |
| 6236 | }, |
| 6237 | { |
| 6238 | "name": "MemoryBanks" |
| 6239 | }, |
| 6240 | { |
| 6241 | "name": "Safety" |
| 6242 | }, |
| 6243 | { |
| 6244 | "name": "Models" |
| 6245 | }, |
| 6246 | { |
| 6247 | "name": "Inference" |
| 6248 | }, |
| 6249 | { |
| 6250 | "name": "Memory" |
| 6251 | }, |
| 6252 | { |
| 6253 | "name": "Telemetry" |
| 6254 | }, |
| 6255 | { |
| 6256 | "name": "PostTraining" |
| 6257 | }, |
| 6258 | { |
| 6259 | "name": "Datasets" |
| 6260 | }, |
| 6261 | { |
| 6262 | "name": "Evaluations" |
| 6263 | }, |
| 6264 | { |
| 6265 | "name": "BuiltinTool", |
| 6266 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />" |
| 6267 | }, |
| 6268 | { |
| 6269 | "name": "CompletionMessage", |
| 6270 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionMessage\" />" |
| 6271 | }, |
| 6272 | { |
| 6273 | "name": "ImageMedia", |
| 6274 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ImageMedia\" />" |
| 6275 | }, |
| 6276 | { |
| 6277 | "name": "SamplingParams", |
| 6278 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingParams\" />" |
| 6279 | }, |
| 6280 | { |
| 6281 | "name": "SamplingStrategy", |
| 6282 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingStrategy\" />" |
| 6283 | }, |
| 6284 | { |
| 6285 | "name": "StopReason", |
| 6286 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StopReason\" />" |
| 6287 | }, |
| 6288 | { |
| 6289 | "name": "SystemMessage", |
| 6290 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SystemMessage\" />" |
| 6291 | }, |
| 6292 | { |
| 6293 | "name": "ToolCall", |
| 6294 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCall\" />" |
| 6295 | }, |
| 6296 | { |
| 6297 | "name": "ToolChoice", |
| 6298 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolChoice\" />" |
| 6299 | }, |
| 6300 | { |
| 6301 | "name": "ToolDefinition", |
| 6302 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolDefinition\" />" |
| 6303 | }, |
| 6304 | { |
| 6305 | "name": "ToolParamDefinition", |
| 6306 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolParamDefinition\" />" |
| 6307 | }, |
| 6308 | { |
| 6309 | "name": "ToolPromptFormat", |
| 6310 | "description": "This Enum refers to the prompt format for calling custom / zero shot tools\n\n`json` --\n Refers to the json format for calling tools.\n The json format takes the form like\n {\n \"type\": \"function\",\n \"function\" : {\n \"name\": \"function_name\",\n \"description\": \"function_description\",\n \"parameters\": {...}\n }\n }\n\n`function_tag` --\n This is an example of how you could define\n your own user defined format for making tool calls.\n The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\nThe detailed prompts for each of these formats are added to llama cli\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ToolPromptFormat\" />" |
| 6311 | }, |
| 6312 | { |
| 6313 | "name": "ToolResponseMessage", |
| 6314 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponseMessage\" />" |
| 6315 | }, |
| 6316 | { |
| 6317 | "name": "URL", |
| 6318 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/URL\" />" |
| 6319 | }, |
| 6320 | { |
| 6321 | "name": "UserMessage", |
| 6322 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UserMessage\" />" |
| 6323 | }, |
| 6324 | { |
| 6325 | "name": "BatchChatCompletionRequest", |
| 6326 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />" |
| 6327 | }, |
| 6328 | { |
| 6329 | "name": "BatchChatCompletionResponse", |
| 6330 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionResponse\" />" |
| 6331 | }, |
| 6332 | { |
| 6333 | "name": "BatchCompletionRequest", |
| 6334 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionRequest\" />" |
| 6335 | }, |
| 6336 | { |
| 6337 | "name": "BatchCompletionResponse", |
| 6338 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />" |
| 6339 | }, |
| 6340 | { |
| 6341 | "name": "CancelEvaluationJobRequest", |
| 6342 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelEvaluationJobRequest\" />" |
| 6343 | }, |
| 6344 | { |
| 6345 | "name": "CancelTrainingJobRequest", |
| 6346 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelTrainingJobRequest\" />" |
| 6347 | }, |
| 6348 | { |
| 6349 | "name": "ChatCompletionRequest", |
| 6350 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />" |
| 6351 | }, |
| 6352 | { |
| 6353 | "name": "ChatCompletionResponse", |
| 6354 | "description": "Chat completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponse\" />" |
| 6355 | }, |
| 6356 | { |
| 6357 | "name": "ChatCompletionResponseEvent", |
| 6358 | "description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />" |
| 6359 | }, |
| 6360 | { |
| 6361 | "name": "ChatCompletionResponseEventType", |
| 6362 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEventType\" />" |
| 6363 | }, |
| 6364 | { |
| 6365 | "name": "ChatCompletionResponseStreamChunk", |
| 6366 | "description": "SSE-stream of these events.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseStreamChunk\" />" |
| 6367 | }, |
| 6368 | { |
| 6369 | "name": "TokenLogProbs", |
| 6370 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TokenLogProbs\" />" |
| 6371 | }, |
| 6372 | { |
| 6373 | "name": "ToolCallDelta", |
| 6374 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallDelta\" />" |
| 6375 | }, |
| 6376 | { |
| 6377 | "name": "ToolCallParseStatus", |
| 6378 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallParseStatus\" />" |
| 6379 | }, |
| 6380 | { |
| 6381 | "name": "CompletionRequest", |
| 6382 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />" |
| 6383 | }, |
| 6384 | { |
| 6385 | "name": "CompletionResponse", |
| 6386 | "description": "Completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponse\" />" |
| 6387 | }, |
| 6388 | { |
| 6389 | "name": "CompletionResponseStreamChunk", |
| 6390 | "description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />" |
| 6391 | }, |
| 6392 | { |
| 6393 | "name": "AgentConfig", |
| 6394 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentConfig\" />" |
| 6395 | }, |
| 6396 | { |
| 6397 | "name": "CodeInterpreterToolDefinition", |
| 6398 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CodeInterpreterToolDefinition\" />" |
| 6399 | }, |
| 6400 | { |
| 6401 | "name": "FunctionCallToolDefinition", |
| 6402 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FunctionCallToolDefinition\" />" |
| 6403 | }, |
| 6404 | { |
| 6405 | "name": "MemoryToolDefinition", |
| 6406 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryToolDefinition\" />" |
| 6407 | }, |
| 6408 | { |
| 6409 | "name": "PhotogenToolDefinition", |
| 6410 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PhotogenToolDefinition\" />" |
| 6411 | }, |
| 6412 | { |
| 6413 | "name": "RestAPIExecutionConfig", |
| 6414 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIExecutionConfig\" />" |
| 6415 | }, |
| 6416 | { |
| 6417 | "name": "RestAPIMethod", |
| 6418 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RestAPIMethod\" />" |
| 6419 | }, |
| 6420 | { |
| 6421 | "name": "SearchToolDefinition", |
| 6422 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SearchToolDefinition\" />" |
| 6423 | }, |
| 6424 | { |
| 6425 | "name": "WolframAlphaToolDefinition", |
| 6426 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/WolframAlphaToolDefinition\" />" |
| 6427 | }, |
| 6428 | { |
| 6429 | "name": "CreateAgentRequest", |
| 6430 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentRequest\" />" |
| 6431 | }, |
| 6432 | { |
| 6433 | "name": "AgentCreateResponse", |
| 6434 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentCreateResponse\" />" |
| 6435 | }, |
| 6436 | { |
| 6437 | "name": "CreateAgentSessionRequest", |
| 6438 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentSessionRequest\" />" |
| 6439 | }, |
| 6440 | { |
| 6441 | "name": "AgentSessionCreateResponse", |
| 6442 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentSessionCreateResponse\" />" |
| 6443 | }, |
| 6444 | { |
| 6445 | "name": "Attachment", |
| 6446 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Attachment\" />" |
| 6447 | }, |
| 6448 | { |
| 6449 | "name": "CreateAgentTurnRequest", |
| 6450 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentTurnRequest\" />" |
| 6451 | }, |
| 6452 | { |
| 6453 | "name": "AgentTurnResponseEvent", |
| 6454 | "description": "Streamed agent execution response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseEvent\" />" |
| 6455 | }, |
| 6456 | { |
| 6457 | "name": "AgentTurnResponseStepCompletePayload", |
| 6458 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepCompletePayload\" />" |
| 6459 | }, |
| 6460 | { |
| 6461 | "name": "AgentTurnResponseStepProgressPayload", |
| 6462 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepProgressPayload\" />" |
| 6463 | }, |
| 6464 | { |
| 6465 | "name": "AgentTurnResponseStepStartPayload", |
| 6466 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepStartPayload\" />" |
| 6467 | }, |
| 6468 | { |
| 6469 | "name": "AgentTurnResponseStreamChunk", |
| 6470 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStreamChunk\" />" |
| 6471 | }, |
| 6472 | { |
| 6473 | "name": "AgentTurnResponseTurnCompletePayload", |
| 6474 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseTurnCompletePayload\" />" |
| 6475 | }, |
| 6476 | { |
| 6477 | "name": "AgentTurnResponseTurnStartPayload", |
| 6478 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseTurnStartPayload\" />" |
| 6479 | }, |
| 6480 | { |
| 6481 | "name": "InferenceStep", |
| 6482 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InferenceStep\" />" |
| 6483 | }, |
| 6484 | { |
| 6485 | "name": "MemoryRetrievalStep", |
| 6486 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryRetrievalStep\" />" |
| 6487 | }, |
| 6488 | { |
| 6489 | "name": "SafetyViolation", |
| 6490 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SafetyViolation\" />" |
| 6491 | }, |
| 6492 | { |
| 6493 | "name": "ShieldCallStep", |
| 6494 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldCallStep\" />" |
| 6495 | }, |
| 6496 | { |
| 6497 | "name": "ToolExecutionStep", |
| 6498 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolExecutionStep\" />" |
| 6499 | }, |
| 6500 | { |
| 6501 | "name": "ToolResponse", |
| 6502 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponse\" />" |
| 6503 | }, |
| 6504 | { |
| 6505 | "name": "Turn", |
| 6506 | "description": "A single turn in an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Turn\" />" |
| 6507 | }, |
| 6508 | { |
| 6509 | "name": "ViolationLevel", |
| 6510 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ViolationLevel\" />" |
| 6511 | }, |
| 6512 | { |
| 6513 | "name": "TrainEvalDataset", |
| 6514 | "description": "Dataset to be used for training or evaluating language models.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDataset\" />" |
| 6515 | }, |
| 6516 | { |
| 6517 | "name": "TrainEvalDatasetColumnType", |
| 6518 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainEvalDatasetColumnType\" />" |
| 6519 | }, |
| 6520 | { |
| 6521 | "name": "CreateDatasetRequest", |
| 6522 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateDatasetRequest\" />" |
| 6523 | }, |
| 6524 | { |
| 6525 | "name": "CreateMemoryBankRequest", |
| 6526 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateMemoryBankRequest\" />" |
| 6527 | }, |
| 6528 | { |
| 6529 | "name": "MemoryBank", |
| 6530 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBank\" />" |
| 6531 | }, |
| 6532 | { |
| 6533 | "name": "DeleteAgentsRequest", |
| 6534 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgentsRequest\" />" |
| 6535 | }, |
| 6536 | { |
| 6537 | "name": "DeleteAgentsSessionRequest", |
| 6538 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgentsSessionRequest\" />" |
| 6539 | }, |
| 6540 | { |
| 6541 | "name": "DeleteDatasetRequest", |
| 6542 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDatasetRequest\" />" |
| 6543 | }, |
| 6544 | { |
| 6545 | "name": "DeleteDocumentsRequest", |
| 6546 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDocumentsRequest\" />" |
| 6547 | }, |
| 6548 | { |
| 6549 | "name": "DropMemoryBankRequest", |
| 6550 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DropMemoryBankRequest\" />" |
| 6551 | }, |
| 6552 | { |
| 6553 | "name": "EmbeddingsRequest", |
| 6554 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />" |
| 6555 | }, |
| 6556 | { |
| 6557 | "name": "EmbeddingsResponse", |
| 6558 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsResponse\" />" |
| 6559 | }, |
| 6560 | { |
| 6561 | "name": "EvaluateQuestionAnsweringRequest", |
| 6562 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateQuestionAnsweringRequest\" />" |
| 6563 | }, |
| 6564 | { |
| 6565 | "name": "EvaluationJob", |
| 6566 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJob\" />" |
| 6567 | }, |
| 6568 | { |
| 6569 | "name": "EvaluateSummarizationRequest", |
| 6570 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateSummarizationRequest\" />" |
| 6571 | }, |
| 6572 | { |
| 6573 | "name": "EvaluateTextGenerationRequest", |
| 6574 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequest\" />" |
| 6575 | }, |
| 6576 | { |
| 6577 | "name": "GetAgentsSessionRequest", |
| 6578 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetAgentsSessionRequest\" />" |
| 6579 | }, |
| 6580 | { |
| 6581 | "name": "Session", |
| 6582 | "description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />" |
| 6583 | }, |
| 6584 | { |
| 6585 | "name": "AgentStepResponse", |
| 6586 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentStepResponse\" />" |
| 6587 | }, |
| 6588 | { |
| 6589 | "name": "GetDocumentsRequest", |
| 6590 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetDocumentsRequest\" />" |
| 6591 | }, |
| 6592 | { |
| 6593 | "name": "MemoryBankDocument", |
| 6594 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankDocument\" />" |
| 6595 | }, |
| 6596 | { |
| 6597 | "name": "EvaluationJobArtifactsResponse", |
| 6598 | "description": "Artifacts of a evaluation job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobArtifactsResponse\" />" |
| 6599 | }, |
| 6600 | { |
| 6601 | "name": "EvaluationJobLogStream", |
| 6602 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobLogStream\" />" |
| 6603 | }, |
| 6604 | { |
| 6605 | "name": "EvaluationJobStatusResponse", |
| 6606 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluationJobStatusResponse\" />" |
| 6607 | }, |
| 6608 | { |
| 6609 | "name": "Model", |
| 6610 | "description": "The model family and SKU of the model along with other parameters corresponding to the model.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Model\" />" |
| 6611 | }, |
| 6612 | { |
| 6613 | "name": "ModelServingSpec", |
| 6614 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ModelServingSpec\" />" |
| 6615 | }, |
| 6616 | { |
| 6617 | "name": "MemoryBankType", |
| 6618 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankType\" />" |
| 6619 | }, |
| 6620 | { |
| 6621 | "name": "MemoryBankSpec", |
| 6622 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankSpec\" />" |
| 6623 | }, |
| 6624 | { |
| 6625 | "name": "ShieldSpec", |
| 6626 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldSpec\" />" |
| 6627 | }, |
| 6628 | { |
| 6629 | "name": "Trace", |
| 6630 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Trace\" />" |
| 6631 | }, |
| 6632 | { |
| 6633 | "name": "Checkpoint", |
| 6634 | "description": "Checkpoint created during training runs\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Checkpoint\" />" |
| 6635 | }, |
| 6636 | { |
| 6637 | "name": "PostTrainingJobArtifactsResponse", |
| 6638 | "description": "Artifacts of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobArtifactsResponse\" />" |
| 6639 | }, |
| 6640 | { |
| 6641 | "name": "PostTrainingJobLogStream", |
| 6642 | "description": "Stream of logs from a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobLogStream\" />" |
| 6643 | }, |
| 6644 | { |
| 6645 | "name": "PostTrainingJobStatus", |
| 6646 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatus\" />" |
| 6647 | }, |
| 6648 | { |
| 6649 | "name": "PostTrainingJobStatusResponse", |
| 6650 | "description": "Status of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatusResponse\" />" |
| 6651 | }, |
| 6652 | { |
| 6653 | "name": "PostTrainingJob", |
| 6654 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />" |
| 6655 | }, |
| 6656 | { |
| 6657 | "name": "InsertDocumentsRequest", |
| 6658 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />" |
| 6659 | }, |
| 6660 | { |
| 6661 | "name": "LogSeverity", |
| 6662 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogSeverity\" />" |
| 6663 | }, |
| 6664 | { |
| 6665 | "name": "MetricEvent", |
| 6666 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MetricEvent\" />" |
| 6667 | }, |
| 6668 | { |
| 6669 | "name": "SpanEndPayload", |
| 6670 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanEndPayload\" />" |
| 6671 | }, |
| 6672 | { |
| 6673 | "name": "SpanStartPayload", |
| 6674 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStartPayload\" />" |
| 6675 | }, |
| 6676 | { |
| 6677 | "name": "SpanStatus", |
| 6678 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStatus\" />" |
| 6679 | }, |
| 6680 | { |
| 6681 | "name": "StructuredLogEvent", |
| 6682 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/StructuredLogEvent\" />" |
| 6683 | }, |
| 6684 | { |
| 6685 | "name": "UnstructuredLogEvent", |
| 6686 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UnstructuredLogEvent\" />" |
| 6687 | }, |
| 6688 | { |
| 6689 | "name": "LogEventRequest", |
| 6690 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogEventRequest\" />" |
| 6691 | }, |
| 6692 | { |
| 6693 | "name": "DPOAlignmentConfig", |
| 6694 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DPOAlignmentConfig\" />" |
| 6695 | }, |
| 6696 | { |
| 6697 | "name": "OptimizerConfig", |
| 6698 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/OptimizerConfig\" />" |
| 6699 | }, |
| 6700 | { |
| 6701 | "name": "RLHFAlgorithm", |
| 6702 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RLHFAlgorithm\" />" |
| 6703 | }, |
| 6704 | { |
| 6705 | "name": "TrainingConfig", |
| 6706 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainingConfig\" />" |
| 6707 | }, |
| 6708 | { |
| 6709 | "name": "PreferenceOptimizeRequest", |
| 6710 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/PreferenceOptimizeRequest\" />" |
| 6711 | }, |
| 6712 | { |
| 6713 | "name": "QueryDocumentsRequest", |
| 6714 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsRequest\" />" |
| 6715 | }, |
| 6716 | { |
| 6717 | "name": "QueryDocumentsResponse", |
| 6718 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryDocumentsResponse\" />" |
| 6719 | }, |
| 6720 | { |
| 6721 | "name": "DialogGenerations", |
| 6722 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DialogGenerations\" />" |
| 6723 | }, |
| 6724 | { |
| 6725 | "name": "RewardScoreRequest", |
| 6726 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoreRequest\" />" |
| 6727 | }, |
| 6728 | { |
| 6729 | "name": "RewardScoringResponse", |
| 6730 | "description": "Response from the reward scoring. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/RewardScoringResponse\" />" |
| 6731 | }, |
| 6732 | { |
| 6733 | "name": "ScoredDialogGenerations", |
| 6734 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredDialogGenerations\" />" |
| 6735 | }, |
| 6736 | { |
| 6737 | "name": "ScoredMessage", |
| 6738 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoredMessage\" />" |
| 6739 | }, |
| 6740 | { |
| 6741 | "name": "RunShieldRequest", |
| 6742 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldRequest\" />" |
| 6743 | }, |
| 6744 | { |
| 6745 | "name": "RunShieldResponse", |
| 6746 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldResponse\" />" |
| 6747 | }, |
| 6748 | { |
| 6749 | "name": "DoraFinetuningConfig", |
| 6750 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DoraFinetuningConfig\" />" |
| 6751 | }, |
| 6752 | { |
| 6753 | "name": "FinetuningAlgorithm", |
| 6754 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/FinetuningAlgorithm\" />" |
| 6755 | }, |
| 6756 | { |
| 6757 | "name": "LoraFinetuningConfig", |
| 6758 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LoraFinetuningConfig\" />" |
| 6759 | }, |
| 6760 | { |
| 6761 | "name": "QLoraFinetuningConfig", |
| 6762 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/QLoraFinetuningConfig\" />" |
| 6763 | }, |
| 6764 | { |
| 6765 | "name": "SupervisedFineTuneRequest", |
| 6766 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SupervisedFineTuneRequest\" />" |
| 6767 | }, |
| 6768 | { |
| 6769 | "name": "SyntheticDataGenerateRequest", |
| 6770 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerateRequest\" />" |
| 6771 | }, |
| 6772 | { |
| 6773 | "name": "SyntheticDataGenerationResponse", |
| 6774 | "description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />" |
| 6775 | }, |
| 6776 | { |
| 6777 | "name": "UpdateDocumentsRequest", |
| 6778 | "description": "<SchemaDefinition schemaRef=\"#/components/schemas/UpdateDocumentsRequest\" />" |
| 6779 | } |
| 6780 | ], |
| 6781 | "x-tagGroups": [ |
| 6782 | { |
| 6783 | "name": "Operations", |
| 6784 | "tags": [ |
| 6785 | "Agents", |
| 6786 | "BatchInference", |
| 6787 | "Datasets", |
| 6788 | "Evaluations", |
| 6789 | "Inference", |
| 6790 | "Memory", |
| 6791 | "MemoryBanks", |
| 6792 | "Models", |
| 6793 | "PostTraining", |
| 6794 | "RewardScoring", |
| 6795 | "Safety", |
| 6796 | "Shields", |
| 6797 | "SyntheticDataGeneration", |
| 6798 | "Telemetry" |
| 6799 | ] |
| 6800 | }, |
| 6801 | { |
| 6802 | "name": "Types", |
| 6803 | "tags": [ |
| 6804 | "AgentConfig", |
| 6805 | "AgentCreateResponse", |
| 6806 | "AgentSessionCreateResponse", |
| 6807 | "AgentStepResponse", |
| 6808 | "AgentTurnResponseEvent", |
| 6809 | "AgentTurnResponseStepCompletePayload", |
| 6810 | "AgentTurnResponseStepProgressPayload", |
| 6811 | "AgentTurnResponseStepStartPayload", |
| 6812 | "AgentTurnResponseStreamChunk", |
| 6813 | "AgentTurnResponseTurnCompletePayload", |
| 6814 | "AgentTurnResponseTurnStartPayload", |
| 6815 | "Attachment", |
| 6816 | "BatchChatCompletionRequest", |
| 6817 | "BatchChatCompletionResponse", |
| 6818 | "BatchCompletionRequest", |
| 6819 | "BatchCompletionResponse", |
| 6820 | "BuiltinTool", |
| 6821 | "CancelEvaluationJobRequest", |
| 6822 | "CancelTrainingJobRequest", |
| 6823 | "ChatCompletionRequest", |
| 6824 | "ChatCompletionResponse", |
| 6825 | "ChatCompletionResponseEvent", |
| 6826 | "ChatCompletionResponseEventType", |
| 6827 | "ChatCompletionResponseStreamChunk", |
| 6828 | "Checkpoint", |
| 6829 | "CodeInterpreterToolDefinition", |
| 6830 | "CompletionMessage", |
| 6831 | "CompletionRequest", |
| 6832 | "CompletionResponse", |
| 6833 | "CompletionResponseStreamChunk", |
| 6834 | "CreateAgentRequest", |
| 6835 | "CreateAgentSessionRequest", |
| 6836 | "CreateAgentTurnRequest", |
| 6837 | "CreateDatasetRequest", |
| 6838 | "CreateMemoryBankRequest", |
| 6839 | "DPOAlignmentConfig", |
| 6840 | "DeleteAgentsRequest", |
| 6841 | "DeleteAgentsSessionRequest", |
| 6842 | "DeleteDatasetRequest", |
| 6843 | "DeleteDocumentsRequest", |
| 6844 | "DialogGenerations", |
| 6845 | "DoraFinetuningConfig", |
| 6846 | "DropMemoryBankRequest", |
| 6847 | "EmbeddingsRequest", |
| 6848 | "EmbeddingsResponse", |
| 6849 | "EvaluateQuestionAnsweringRequest", |
| 6850 | "EvaluateSummarizationRequest", |
| 6851 | "EvaluateTextGenerationRequest", |
| 6852 | "EvaluationJob", |
| 6853 | "EvaluationJobArtifactsResponse", |
| 6854 | "EvaluationJobLogStream", |
| 6855 | "EvaluationJobStatusResponse", |
| 6856 | "FinetuningAlgorithm", |
| 6857 | "FunctionCallToolDefinition", |
| 6858 | "GetAgentsSessionRequest", |
| 6859 | "GetDocumentsRequest", |
| 6860 | "ImageMedia", |
| 6861 | "InferenceStep", |
| 6862 | "InsertDocumentsRequest", |
| 6863 | "LogEventRequest", |
| 6864 | "LogSeverity", |
| 6865 | "LoraFinetuningConfig", |
| 6866 | "MemoryBank", |
| 6867 | "MemoryBankDocument", |
| 6868 | "MemoryBankSpec", |
| 6869 | "MemoryBankType", |
| 6870 | "MemoryRetrievalStep", |
| 6871 | "MemoryToolDefinition", |
| 6872 | "MetricEvent", |
| 6873 | "Model", |
| 6874 | "ModelServingSpec", |
| 6875 | "OptimizerConfig", |
| 6876 | "PhotogenToolDefinition", |
| 6877 | "PostTrainingJob", |
| 6878 | "PostTrainingJobArtifactsResponse", |
| 6879 | "PostTrainingJobLogStream", |
| 6880 | "PostTrainingJobStatus", |
| 6881 | "PostTrainingJobStatusResponse", |
| 6882 | "PreferenceOptimizeRequest", |
| 6883 | "QLoraFinetuningConfig", |
| 6884 | "QueryDocumentsRequest", |
| 6885 | "QueryDocumentsResponse", |
| 6886 | "RLHFAlgorithm", |
| 6887 | "RestAPIExecutionConfig", |
| 6888 | "RestAPIMethod", |
| 6889 | "RewardScoreRequest", |
| 6890 | "RewardScoringResponse", |
| 6891 | "RunShieldRequest", |
| 6892 | "RunShieldResponse", |
| 6893 | "SafetyViolation", |
| 6894 | "SamplingParams", |
| 6895 | "SamplingStrategy", |
| 6896 | "ScoredDialogGenerations", |
| 6897 | "ScoredMessage", |
| 6898 | "SearchToolDefinition", |
| 6899 | "Session", |
| 6900 | "ShieldCallStep", |
| 6901 | "ShieldSpec", |
| 6902 | "SpanEndPayload", |
| 6903 | "SpanStartPayload", |
| 6904 | "SpanStatus", |
| 6905 | "StopReason", |
| 6906 | "StructuredLogEvent", |
| 6907 | "SupervisedFineTuneRequest", |
| 6908 | "SyntheticDataGenerateRequest", |
| 6909 | "SyntheticDataGenerationResponse", |
| 6910 | "SystemMessage", |
| 6911 | "TokenLogProbs", |
| 6912 | "ToolCall", |
| 6913 | "ToolCallDelta", |
| 6914 | "ToolCallParseStatus", |
| 6915 | "ToolChoice", |
| 6916 | "ToolDefinition", |
| 6917 | "ToolExecutionStep", |
| 6918 | "ToolParamDefinition", |
| 6919 | "ToolPromptFormat", |
| 6920 | "ToolResponse", |
| 6921 | "ToolResponseMessage", |
| 6922 | "Trace", |
| 6923 | "TrainEvalDataset", |
| 6924 | "TrainEvalDatasetColumnType", |
| 6925 | "TrainingConfig", |
| 6926 | "Turn", |
| 6927 | "URL", |
| 6928 | "UnstructuredLogEvent", |
| 6929 | "UpdateDocumentsRequest", |
| 6930 | "UserMessage", |
| 6931 | "ViolationLevel", |
| 6932 | "WolframAlphaToolDefinition" |
| 6933 | ] |
| 6934 | } |
| 6935 | ] |
| 6936 | }; |
| 6937 | options = { |
| 6938 | downloadFileName: "openapi.json", |
| 6939 | expandResponses: "200", |
| 6940 | expandSingleSchemaField: true, |
| 6941 | jsonSampleExpandLevel: "all", |
| 6942 | schemaExpansionLevel: "all", |
| 6943 | }; |
| 6944 | element = document.getElementById("openapi-container"); |
| 6945 | Redoc.init(spec, options, element); |
| 6946 | |
| 6947 | if (spec.info && spec.info.title) { |
| 6948 | document.title = spec.info.title; |
| 6949 | } |
| 6950 | }); |
| 6951 | </script> |
| 6952 | </head> |
| 6953 | |
| 6954 | <body> |
| 6955 | <div id="openapi-container"></div> |
| 6956 | </body> |
| 6957 | |
| 6958 | </html> |