|
2 | 2 | "version":"2.0",
|
3 | 3 | "metadata":{
|
4 | 4 | "apiVersion":"2023-09-30",
|
5 |
| - "auth":["aws.auth#sigv4"], |
| 5 | + "auth":[ |
| 6 | + "aws.auth#sigv4", |
| 7 | + "smithy.api#httpBearerAuth" |
| 8 | + ], |
6 | 9 | "endpointPrefix":"bedrock-runtime",
|
7 | 10 | "protocol":"rest-json",
|
8 | 11 | "protocolSettings":{"h2":"optional"},
|
|
373 | 376 | "type":"string",
|
374 | 377 | "enum":["default"]
|
375 | 378 | },
|
| 379 | + "Citation":{ |
| 380 | + "type":"structure", |
| 381 | + "members":{ |
| 382 | + "title":{"shape":"String"}, |
| 383 | + "sourceContent":{"shape":"CitationSourceContentList"}, |
| 384 | + "location":{"shape":"CitationLocation"} |
| 385 | + } |
| 386 | + }, |
| 387 | + "CitationGeneratedContent":{ |
| 388 | + "type":"structure", |
| 389 | + "members":{ |
| 390 | + "text":{"shape":"String"} |
| 391 | + }, |
| 392 | + "union":true |
| 393 | + }, |
| 394 | + "CitationGeneratedContentList":{ |
| 395 | + "type":"list", |
| 396 | + "member":{"shape":"CitationGeneratedContent"} |
| 397 | + }, |
| 398 | + "CitationLocation":{ |
| 399 | + "type":"structure", |
| 400 | + "members":{ |
| 401 | + "documentChar":{"shape":"DocumentCharLocation"}, |
| 402 | + "documentPage":{"shape":"DocumentPageLocation"}, |
| 403 | + "documentChunk":{"shape":"DocumentChunkLocation"} |
| 404 | + }, |
| 405 | + "union":true |
| 406 | + }, |
| 407 | + "CitationSourceContent":{ |
| 408 | + "type":"structure", |
| 409 | + "members":{ |
| 410 | + "text":{"shape":"String"} |
| 411 | + }, |
| 412 | + "union":true |
| 413 | + }, |
| 414 | + "CitationSourceContentDelta":{ |
| 415 | + "type":"structure", |
| 416 | + "members":{ |
| 417 | + "text":{"shape":"String"} |
| 418 | + } |
| 419 | + }, |
| 420 | + "CitationSourceContentList":{ |
| 421 | + "type":"list", |
| 422 | + "member":{"shape":"CitationSourceContent"} |
| 423 | + }, |
| 424 | + "CitationSourceContentListDelta":{ |
| 425 | + "type":"list", |
| 426 | + "member":{"shape":"CitationSourceContentDelta"} |
| 427 | + }, |
| 428 | + "Citations":{ |
| 429 | + "type":"list", |
| 430 | + "member":{"shape":"Citation"} |
| 431 | + }, |
| 432 | + "CitationsConfig":{ |
| 433 | + "type":"structure", |
| 434 | + "required":["enabled"], |
| 435 | + "members":{ |
| 436 | + "enabled":{"shape":"Boolean"} |
| 437 | + } |
| 438 | + }, |
| 439 | + "CitationsContentBlock":{ |
| 440 | + "type":"structure", |
| 441 | + "members":{ |
| 442 | + "content":{"shape":"CitationGeneratedContentList"}, |
| 443 | + "citations":{"shape":"Citations"} |
| 444 | + } |
| 445 | + }, |
| 446 | + "CitationsDelta":{ |
| 447 | + "type":"structure", |
| 448 | + "members":{ |
| 449 | + "title":{"shape":"String"}, |
| 450 | + "sourceContent":{"shape":"CitationSourceContentListDelta"}, |
| 451 | + "location":{"shape":"CitationLocation"} |
| 452 | + } |
| 453 | + }, |
376 | 454 | "ConflictException":{
|
377 | 455 | "type":"structure",
|
378 | 456 | "members":{
|
|
395 | 473 | "toolResult":{"shape":"ToolResultBlock"},
|
396 | 474 | "guardContent":{"shape":"GuardrailConverseContentBlock"},
|
397 | 475 | "cachePoint":{"shape":"CachePointBlock"},
|
398 |
| - "reasoningContent":{"shape":"ReasoningContentBlock"} |
| 476 | + "reasoningContent":{"shape":"ReasoningContentBlock"}, |
| 477 | + "citationsContent":{"shape":"CitationsContentBlock"} |
399 | 478 | },
|
400 | 479 | "union":true
|
401 | 480 | },
|
|
404 | 483 | "members":{
|
405 | 484 | "text":{"shape":"String"},
|
406 | 485 | "toolUse":{"shape":"ToolUseBlockDelta"},
|
407 |
| - "reasoningContent":{"shape":"ReasoningContentBlockDelta"} |
| 486 | + "reasoningContent":{"shape":"ReasoningContentBlockDelta"}, |
| 487 | + "citation":{"shape":"CitationsDelta"} |
408 | 488 | },
|
409 | 489 | "union":true
|
410 | 490 | },
|
|
628 | 708 | "DocumentBlock":{
|
629 | 709 | "type":"structure",
|
630 | 710 | "required":[
|
631 |
| - "format", |
632 | 711 | "name",
|
633 | 712 | "source"
|
634 | 713 | ],
|
635 | 714 | "members":{
|
636 | 715 | "format":{"shape":"DocumentFormat"},
|
637 | 716 | "name":{"shape":"DocumentBlockNameString"},
|
638 |
| - "source":{"shape":"DocumentSource"} |
| 717 | + "source":{"shape":"DocumentSource"}, |
| 718 | + "context":{"shape":"String"}, |
| 719 | + "citations":{"shape":"CitationsConfig"} |
639 | 720 | }
|
640 | 721 | },
|
641 | 722 | "DocumentBlockNameString":{
|
642 | 723 | "type":"string",
|
643 | 724 | "max":200,
|
644 | 725 | "min":1
|
645 | 726 | },
|
| 727 | + "DocumentCharLocation":{ |
| 728 | + "type":"structure", |
| 729 | + "members":{ |
| 730 | + "documentIndex":{"shape":"DocumentCharLocationDocumentIndexInteger"}, |
| 731 | + "start":{"shape":"DocumentCharLocationStartInteger"}, |
| 732 | + "end":{"shape":"DocumentCharLocationEndInteger"} |
| 733 | + } |
| 734 | + }, |
| 735 | + "DocumentCharLocationDocumentIndexInteger":{ |
| 736 | + "type":"integer", |
| 737 | + "box":true, |
| 738 | + "min":0 |
| 739 | + }, |
| 740 | + "DocumentCharLocationEndInteger":{ |
| 741 | + "type":"integer", |
| 742 | + "box":true, |
| 743 | + "min":0 |
| 744 | + }, |
| 745 | + "DocumentCharLocationStartInteger":{ |
| 746 | + "type":"integer", |
| 747 | + "box":true, |
| 748 | + "min":0 |
| 749 | + }, |
| 750 | + "DocumentChunkLocation":{ |
| 751 | + "type":"structure", |
| 752 | + "members":{ |
| 753 | + "documentIndex":{"shape":"DocumentChunkLocationDocumentIndexInteger"}, |
| 754 | + "start":{"shape":"DocumentChunkLocationStartInteger"}, |
| 755 | + "end":{"shape":"DocumentChunkLocationEndInteger"} |
| 756 | + } |
| 757 | + }, |
| 758 | + "DocumentChunkLocationDocumentIndexInteger":{ |
| 759 | + "type":"integer", |
| 760 | + "box":true, |
| 761 | + "min":0 |
| 762 | + }, |
| 763 | + "DocumentChunkLocationEndInteger":{ |
| 764 | + "type":"integer", |
| 765 | + "box":true, |
| 766 | + "min":0 |
| 767 | + }, |
| 768 | + "DocumentChunkLocationStartInteger":{ |
| 769 | + "type":"integer", |
| 770 | + "box":true, |
| 771 | + "min":0 |
| 772 | + }, |
| 773 | + "DocumentContentBlock":{ |
| 774 | + "type":"structure", |
| 775 | + "members":{ |
| 776 | + "text":{"shape":"String"} |
| 777 | + }, |
| 778 | + "union":true |
| 779 | + }, |
| 780 | + "DocumentContentBlocks":{ |
| 781 | + "type":"list", |
| 782 | + "member":{"shape":"DocumentContentBlock"} |
| 783 | + }, |
646 | 784 | "DocumentFormat":{
|
647 | 785 | "type":"string",
|
648 | 786 | "enum":[
|
|
657 | 795 | "md"
|
658 | 796 | ]
|
659 | 797 | },
|
| 798 | + "DocumentPageLocation":{ |
| 799 | + "type":"structure", |
| 800 | + "members":{ |
| 801 | + "documentIndex":{"shape":"DocumentPageLocationDocumentIndexInteger"}, |
| 802 | + "start":{"shape":"DocumentPageLocationStartInteger"}, |
| 803 | + "end":{"shape":"DocumentPageLocationEndInteger"} |
| 804 | + } |
| 805 | + }, |
| 806 | + "DocumentPageLocationDocumentIndexInteger":{ |
| 807 | + "type":"integer", |
| 808 | + "box":true, |
| 809 | + "min":0 |
| 810 | + }, |
| 811 | + "DocumentPageLocationEndInteger":{ |
| 812 | + "type":"integer", |
| 813 | + "box":true, |
| 814 | + "min":0 |
| 815 | + }, |
| 816 | + "DocumentPageLocationStartInteger":{ |
| 817 | + "type":"integer", |
| 818 | + "box":true, |
| 819 | + "min":0 |
| 820 | + }, |
660 | 821 | "DocumentSource":{
|
661 | 822 | "type":"structure",
|
662 | 823 | "members":{
|
663 | 824 | "bytes":{"shape":"DocumentSourceBytesBlob"},
|
664 |
| - "s3Location":{"shape":"S3Location"} |
| 825 | + "s3Location":{"shape":"S3Location"}, |
| 826 | + "text":{"shape":"String"}, |
| 827 | + "content":{"shape":"DocumentContentBlocks"} |
665 | 828 | },
|
666 | 829 | "union":true
|
667 | 830 | },
|
|
0 commit comments