Skip to content

Commit 0875f09

Browse files
Add API Key and document citations support for Bedrock Runtime APIs
1 parent 08c597a commit 0875f09

File tree

52 files changed

+3689
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3689
-21
lines changed

generator/ServiceModels/bedrock-runtime/bedrock-runtime-2023-09-30.api.json

Lines changed: 169 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"version":"2.0",
33
"metadata":{
44
"apiVersion":"2023-09-30",
5-
"auth":["aws.auth#sigv4"],
5+
"auth":[
6+
"aws.auth#sigv4",
7+
"smithy.api#httpBearerAuth"
8+
],
69
"endpointPrefix":"bedrock-runtime",
710
"protocol":"rest-json",
811
"protocolSettings":{"h2":"optional"},
@@ -373,6 +376,81 @@
373376
"type":"string",
374377
"enum":["default"]
375378
},
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+
},
376454
"ConflictException":{
377455
"type":"structure",
378456
"members":{
@@ -395,7 +473,8 @@
395473
"toolResult":{"shape":"ToolResultBlock"},
396474
"guardContent":{"shape":"GuardrailConverseContentBlock"},
397475
"cachePoint":{"shape":"CachePointBlock"},
398-
"reasoningContent":{"shape":"ReasoningContentBlock"}
476+
"reasoningContent":{"shape":"ReasoningContentBlock"},
477+
"citationsContent":{"shape":"CitationsContentBlock"}
399478
},
400479
"union":true
401480
},
@@ -404,7 +483,8 @@
404483
"members":{
405484
"text":{"shape":"String"},
406485
"toolUse":{"shape":"ToolUseBlockDelta"},
407-
"reasoningContent":{"shape":"ReasoningContentBlockDelta"}
486+
"reasoningContent":{"shape":"ReasoningContentBlockDelta"},
487+
"citation":{"shape":"CitationsDelta"}
408488
},
409489
"union":true
410490
},
@@ -628,21 +708,79 @@
628708
"DocumentBlock":{
629709
"type":"structure",
630710
"required":[
631-
"format",
632711
"name",
633712
"source"
634713
],
635714
"members":{
636715
"format":{"shape":"DocumentFormat"},
637716
"name":{"shape":"DocumentBlockNameString"},
638-
"source":{"shape":"DocumentSource"}
717+
"source":{"shape":"DocumentSource"},
718+
"context":{"shape":"String"},
719+
"citations":{"shape":"CitationsConfig"}
639720
}
640721
},
641722
"DocumentBlockNameString":{
642723
"type":"string",
643724
"max":200,
644725
"min":1
645726
},
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+
},
646784
"DocumentFormat":{
647785
"type":"string",
648786
"enum":[
@@ -657,11 +795,36 @@
657795
"md"
658796
]
659797
},
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+
},
660821
"DocumentSource":{
661822
"type":"structure",
662823
"members":{
663824
"bytes":{"shape":"DocumentSourceBytesBlob"},
664-
"s3Location":{"shape":"S3Location"}
825+
"s3Location":{"shape":"S3Location"},
826+
"text":{"shape":"String"},
827+
"content":{"shape":"DocumentContentBlocks"}
665828
},
666829
"union":true
667830
},

0 commit comments

Comments
 (0)