types-boto3-bedrock-runtime 1.38.4__py3-none-any.whl → 1.39.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- types_boto3_bedrock_runtime/__main__.py +4 -4
- types_boto3_bedrock_runtime/literals.py +6 -2
- types_boto3_bedrock_runtime/literals.pyi +6 -2
- types_boto3_bedrock_runtime/type_defs.py +116 -9
- types_boto3_bedrock_runtime/type_defs.pyi +100 -9
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.38.4.dist-info → types_boto3_bedrock_runtime-1.39.0.dist-info}/METADATA +5 -5
- types_boto3_bedrock_runtime-1.39.0.dist-info/RECORD +18 -0
- {types_boto3_bedrock_runtime-1.38.4.dist-info → types_boto3_bedrock_runtime-1.39.0.dist-info}/WHEEL +1 -1
- types_boto3_bedrock_runtime-1.38.4.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.38.4.dist-info → types_boto3_bedrock_runtime-1.39.0.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.38.4.dist-info → types_boto3_bedrock_runtime-1.39.0.dist-info}/top_level.txt +0 -0
|
@@ -12,9 +12,9 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
sys.stdout.write(
|
|
15
|
-
"Type annotations for boto3 BedrockRuntime 1.
|
|
16
|
-
"Version: 1.
|
|
17
|
-
"Builder version: 8.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.39.0\n"
|
|
16
|
+
"Version: 1.39.0\n"
|
|
17
|
+
"Builder version: 8.11.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
20
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
sys.stdout.write("1.
|
|
29
|
+
sys.stdout.write("1.39.0\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -145,6 +145,7 @@ ServiceName = Literal[
|
|
|
145
145
|
"account",
|
|
146
146
|
"acm",
|
|
147
147
|
"acm-pca",
|
|
148
|
+
"aiops",
|
|
148
149
|
"amp",
|
|
149
150
|
"amplify",
|
|
150
151
|
"amplifybackend",
|
|
@@ -285,6 +286,7 @@ ServiceName = Literal[
|
|
|
285
286
|
"es",
|
|
286
287
|
"events",
|
|
287
288
|
"evidently",
|
|
289
|
+
"evs",
|
|
288
290
|
"finspace",
|
|
289
291
|
"finspace-data",
|
|
290
292
|
"firehose",
|
|
@@ -342,6 +344,7 @@ ServiceName = Literal[
|
|
|
342
344
|
"kendra",
|
|
343
345
|
"kendra-ranking",
|
|
344
346
|
"keyspaces",
|
|
347
|
+
"keyspacesstreams",
|
|
345
348
|
"kinesis",
|
|
346
349
|
"kinesis-video-archived-media",
|
|
347
350
|
"kinesis-video-media",
|
|
@@ -397,6 +400,7 @@ ServiceName = Literal[
|
|
|
397
400
|
"migrationhub-config",
|
|
398
401
|
"migrationhuborchestrator",
|
|
399
402
|
"migrationhubstrategy",
|
|
403
|
+
"mpa",
|
|
400
404
|
"mq",
|
|
401
405
|
"mturk",
|
|
402
406
|
"mwaa",
|
|
@@ -437,7 +441,6 @@ ServiceName = Literal[
|
|
|
437
441
|
"pipes",
|
|
438
442
|
"polly",
|
|
439
443
|
"pricing",
|
|
440
|
-
"privatenetworks",
|
|
441
444
|
"proton",
|
|
442
445
|
"qapps",
|
|
443
446
|
"qbusiness",
|
|
@@ -498,7 +501,6 @@ ServiceName = Literal[
|
|
|
498
501
|
"signer",
|
|
499
502
|
"simspaceweaver",
|
|
500
503
|
"sms",
|
|
501
|
-
"sms-voice",
|
|
502
504
|
"snow-device-management",
|
|
503
505
|
"snowball",
|
|
504
506
|
"sns",
|
|
@@ -506,6 +508,7 @@ ServiceName = Literal[
|
|
|
506
508
|
"sqs",
|
|
507
509
|
"ssm",
|
|
508
510
|
"ssm-contacts",
|
|
511
|
+
"ssm-guiconnect",
|
|
509
512
|
"ssm-incidents",
|
|
510
513
|
"ssm-quicksetup",
|
|
511
514
|
"ssm-sap",
|
|
@@ -542,6 +545,7 @@ ServiceName = Literal[
|
|
|
542
545
|
"workmail",
|
|
543
546
|
"workmailmessageflow",
|
|
544
547
|
"workspaces",
|
|
548
|
+
"workspaces-instances",
|
|
545
549
|
"workspaces-thin-client",
|
|
546
550
|
"workspaces-web",
|
|
547
551
|
"xray",
|
|
@@ -143,6 +143,7 @@ ServiceName = Literal[
|
|
|
143
143
|
"account",
|
|
144
144
|
"acm",
|
|
145
145
|
"acm-pca",
|
|
146
|
+
"aiops",
|
|
146
147
|
"amp",
|
|
147
148
|
"amplify",
|
|
148
149
|
"amplifybackend",
|
|
@@ -283,6 +284,7 @@ ServiceName = Literal[
|
|
|
283
284
|
"es",
|
|
284
285
|
"events",
|
|
285
286
|
"evidently",
|
|
287
|
+
"evs",
|
|
286
288
|
"finspace",
|
|
287
289
|
"finspace-data",
|
|
288
290
|
"firehose",
|
|
@@ -340,6 +342,7 @@ ServiceName = Literal[
|
|
|
340
342
|
"kendra",
|
|
341
343
|
"kendra-ranking",
|
|
342
344
|
"keyspaces",
|
|
345
|
+
"keyspacesstreams",
|
|
343
346
|
"kinesis",
|
|
344
347
|
"kinesis-video-archived-media",
|
|
345
348
|
"kinesis-video-media",
|
|
@@ -395,6 +398,7 @@ ServiceName = Literal[
|
|
|
395
398
|
"migrationhub-config",
|
|
396
399
|
"migrationhuborchestrator",
|
|
397
400
|
"migrationhubstrategy",
|
|
401
|
+
"mpa",
|
|
398
402
|
"mq",
|
|
399
403
|
"mturk",
|
|
400
404
|
"mwaa",
|
|
@@ -435,7 +439,6 @@ ServiceName = Literal[
|
|
|
435
439
|
"pipes",
|
|
436
440
|
"polly",
|
|
437
441
|
"pricing",
|
|
438
|
-
"privatenetworks",
|
|
439
442
|
"proton",
|
|
440
443
|
"qapps",
|
|
441
444
|
"qbusiness",
|
|
@@ -496,7 +499,6 @@ ServiceName = Literal[
|
|
|
496
499
|
"signer",
|
|
497
500
|
"simspaceweaver",
|
|
498
501
|
"sms",
|
|
499
|
-
"sms-voice",
|
|
500
502
|
"snow-device-management",
|
|
501
503
|
"snowball",
|
|
502
504
|
"sns",
|
|
@@ -504,6 +506,7 @@ ServiceName = Literal[
|
|
|
504
506
|
"sqs",
|
|
505
507
|
"ssm",
|
|
506
508
|
"ssm-contacts",
|
|
509
|
+
"ssm-guiconnect",
|
|
507
510
|
"ssm-incidents",
|
|
508
511
|
"ssm-quicksetup",
|
|
509
512
|
"ssm-sap",
|
|
@@ -540,6 +543,7 @@ ServiceName = Literal[
|
|
|
540
543
|
"workmail",
|
|
541
544
|
"workmailmessageflow",
|
|
542
545
|
"workspaces",
|
|
546
|
+
"workspaces-instances",
|
|
543
547
|
"workspaces-thin-client",
|
|
544
548
|
"workspaces-web",
|
|
545
549
|
"xray",
|
|
@@ -77,6 +77,18 @@ __all__ = (
|
|
|
77
77
|
"BidirectionalOutputPayloadPartTypeDef",
|
|
78
78
|
"BlobTypeDef",
|
|
79
79
|
"CachePointBlockTypeDef",
|
|
80
|
+
"CitationGeneratedContentTypeDef",
|
|
81
|
+
"CitationLocationTypeDef",
|
|
82
|
+
"CitationOutputTypeDef",
|
|
83
|
+
"CitationSourceContentDeltaTypeDef",
|
|
84
|
+
"CitationSourceContentTypeDef",
|
|
85
|
+
"CitationTypeDef",
|
|
86
|
+
"CitationUnionTypeDef",
|
|
87
|
+
"CitationsConfigTypeDef",
|
|
88
|
+
"CitationsContentBlockOutputTypeDef",
|
|
89
|
+
"CitationsContentBlockTypeDef",
|
|
90
|
+
"CitationsContentBlockUnionTypeDef",
|
|
91
|
+
"CitationsDeltaTypeDef",
|
|
80
92
|
"ContentBlockDeltaEventTypeDef",
|
|
81
93
|
"ContentBlockDeltaTypeDef",
|
|
82
94
|
"ContentBlockOutputTypeDef",
|
|
@@ -99,6 +111,10 @@ __all__ = (
|
|
|
99
111
|
"DocumentBlockOutputTypeDef",
|
|
100
112
|
"DocumentBlockTypeDef",
|
|
101
113
|
"DocumentBlockUnionTypeDef",
|
|
114
|
+
"DocumentCharLocationTypeDef",
|
|
115
|
+
"DocumentChunkLocationTypeDef",
|
|
116
|
+
"DocumentContentBlockTypeDef",
|
|
117
|
+
"DocumentPageLocationTypeDef",
|
|
102
118
|
"DocumentSourceOutputTypeDef",
|
|
103
119
|
"DocumentSourceTypeDef",
|
|
104
120
|
"DocumentSourceUnionTypeDef",
|
|
@@ -259,6 +275,40 @@ CachePointBlockTypeDef = TypedDict(
|
|
|
259
275
|
)
|
|
260
276
|
|
|
261
277
|
|
|
278
|
+
class CitationGeneratedContentTypeDef(TypedDict):
|
|
279
|
+
text: NotRequired[str]
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
class DocumentCharLocationTypeDef(TypedDict):
|
|
283
|
+
documentIndex: NotRequired[int]
|
|
284
|
+
start: NotRequired[int]
|
|
285
|
+
end: NotRequired[int]
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
class DocumentChunkLocationTypeDef(TypedDict):
|
|
289
|
+
documentIndex: NotRequired[int]
|
|
290
|
+
start: NotRequired[int]
|
|
291
|
+
end: NotRequired[int]
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
class DocumentPageLocationTypeDef(TypedDict):
|
|
295
|
+
documentIndex: NotRequired[int]
|
|
296
|
+
start: NotRequired[int]
|
|
297
|
+
end: NotRequired[int]
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
class CitationSourceContentTypeDef(TypedDict):
|
|
301
|
+
text: NotRequired[str]
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
class CitationSourceContentDeltaTypeDef(TypedDict):
|
|
305
|
+
text: NotRequired[str]
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
class CitationsConfigTypeDef(TypedDict):
|
|
309
|
+
enabled: bool
|
|
310
|
+
|
|
311
|
+
|
|
262
312
|
class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
263
313
|
text: NotRequired[str]
|
|
264
314
|
redactedContent: NotRequired[bytes]
|
|
@@ -369,6 +419,10 @@ class PromptRouterTraceTypeDef(TypedDict):
|
|
|
369
419
|
invokedModelId: NotRequired[str]
|
|
370
420
|
|
|
371
421
|
|
|
422
|
+
class DocumentContentBlockTypeDef(TypedDict):
|
|
423
|
+
text: NotRequired[str]
|
|
424
|
+
|
|
425
|
+
|
|
372
426
|
class S3LocationTypeDef(TypedDict):
|
|
373
427
|
uri: str
|
|
374
428
|
bucketOwner: NotRequired[str]
|
|
@@ -583,10 +637,10 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
|
583
637
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
584
638
|
|
|
585
639
|
|
|
586
|
-
class
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
640
|
+
class CitationLocationTypeDef(TypedDict):
|
|
641
|
+
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
642
|
+
documentPage: NotRequired[DocumentPageLocationTypeDef]
|
|
643
|
+
documentChunk: NotRequired[DocumentChunkLocationTypeDef]
|
|
590
644
|
|
|
591
645
|
|
|
592
646
|
class ContentBlockStartTypeDef(TypedDict):
|
|
@@ -598,6 +652,8 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
598
652
|
{
|
|
599
653
|
"bytes": NotRequired[bytes],
|
|
600
654
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
655
|
+
"text": NotRequired[str],
|
|
656
|
+
"content": NotRequired[List[DocumentContentBlockTypeDef]],
|
|
601
657
|
},
|
|
602
658
|
)
|
|
603
659
|
DocumentSourceTypeDef = TypedDict(
|
|
@@ -605,6 +661,8 @@ DocumentSourceTypeDef = TypedDict(
|
|
|
605
661
|
{
|
|
606
662
|
"bytes": NotRequired[BlobTypeDef],
|
|
607
663
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
664
|
+
"text": NotRequired[str],
|
|
665
|
+
"content": NotRequired[Sequence[DocumentContentBlockTypeDef]],
|
|
608
666
|
},
|
|
609
667
|
)
|
|
610
668
|
ImageSourceOutputTypeDef = TypedDict(
|
|
@@ -793,9 +851,22 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
793
851
|
)
|
|
794
852
|
|
|
795
853
|
|
|
796
|
-
class
|
|
797
|
-
|
|
798
|
-
|
|
854
|
+
class CitationOutputTypeDef(TypedDict):
|
|
855
|
+
title: NotRequired[str]
|
|
856
|
+
sourceContent: NotRequired[List[CitationSourceContentTypeDef]]
|
|
857
|
+
location: NotRequired[CitationLocationTypeDef]
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
class CitationTypeDef(TypedDict):
|
|
861
|
+
title: NotRequired[str]
|
|
862
|
+
sourceContent: NotRequired[Sequence[CitationSourceContentTypeDef]]
|
|
863
|
+
location: NotRequired[CitationLocationTypeDef]
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
class CitationsDeltaTypeDef(TypedDict):
|
|
867
|
+
title: NotRequired[str]
|
|
868
|
+
sourceContent: NotRequired[List[CitationSourceContentDeltaTypeDef]]
|
|
869
|
+
location: NotRequired[CitationLocationTypeDef]
|
|
799
870
|
|
|
800
871
|
|
|
801
872
|
class ContentBlockStartEventTypeDef(TypedDict):
|
|
@@ -806,9 +877,11 @@ class ContentBlockStartEventTypeDef(TypedDict):
|
|
|
806
877
|
DocumentBlockOutputTypeDef = TypedDict(
|
|
807
878
|
"DocumentBlockOutputTypeDef",
|
|
808
879
|
{
|
|
809
|
-
"format": DocumentFormatType,
|
|
810
880
|
"name": str,
|
|
811
881
|
"source": DocumentSourceOutputTypeDef,
|
|
882
|
+
"format": NotRequired[DocumentFormatType],
|
|
883
|
+
"context": NotRequired[str],
|
|
884
|
+
"citations": NotRequired[CitationsConfigTypeDef],
|
|
812
885
|
},
|
|
813
886
|
)
|
|
814
887
|
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
@@ -888,12 +961,29 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
888
961
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
889
962
|
|
|
890
963
|
|
|
964
|
+
class CitationsContentBlockOutputTypeDef(TypedDict):
|
|
965
|
+
content: NotRequired[List[CitationGeneratedContentTypeDef]]
|
|
966
|
+
citations: NotRequired[List[CitationOutputTypeDef]]
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
class ContentBlockDeltaTypeDef(TypedDict):
|
|
973
|
+
text: NotRequired[str]
|
|
974
|
+
toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
|
|
975
|
+
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
976
|
+
citation: NotRequired[CitationsDeltaTypeDef]
|
|
977
|
+
|
|
978
|
+
|
|
891
979
|
DocumentBlockTypeDef = TypedDict(
|
|
892
980
|
"DocumentBlockTypeDef",
|
|
893
981
|
{
|
|
894
|
-
"format": DocumentFormatType,
|
|
895
982
|
"name": str,
|
|
896
983
|
"source": DocumentSourceUnionTypeDef,
|
|
984
|
+
"format": NotRequired[DocumentFormatType],
|
|
985
|
+
"context": NotRequired[str],
|
|
986
|
+
"citations": NotRequired[CitationsConfigTypeDef],
|
|
897
987
|
},
|
|
898
988
|
)
|
|
899
989
|
ImageBlockTypeDef = TypedDict(
|
|
@@ -949,6 +1039,16 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
949
1039
|
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
950
1040
|
|
|
951
1041
|
|
|
1042
|
+
class CitationsContentBlockTypeDef(TypedDict):
|
|
1043
|
+
content: NotRequired[Sequence[CitationGeneratedContentTypeDef]]
|
|
1044
|
+
citations: NotRequired[Sequence[CitationUnionTypeDef]]
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
1048
|
+
delta: ContentBlockDeltaTypeDef
|
|
1049
|
+
contentBlockIndex: int
|
|
1050
|
+
|
|
1051
|
+
|
|
952
1052
|
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
953
1053
|
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
954
1054
|
|
|
@@ -984,6 +1084,11 @@ class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
|
984
1084
|
image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
|
|
985
1085
|
|
|
986
1086
|
|
|
1087
|
+
CitationsContentBlockUnionTypeDef = Union[
|
|
1088
|
+
CitationsContentBlockTypeDef, CitationsContentBlockOutputTypeDef
|
|
1089
|
+
]
|
|
1090
|
+
|
|
1091
|
+
|
|
987
1092
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
988
1093
|
text: NotRequired[str]
|
|
989
1094
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
@@ -994,6 +1099,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
994
1099
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
995
1100
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
996
1101
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
1102
|
+
citationsContent: NotRequired[CitationsContentBlockOutputTypeDef]
|
|
997
1103
|
|
|
998
1104
|
|
|
999
1105
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
@@ -1095,6 +1201,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1095
1201
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
1096
1202
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1097
1203
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1204
|
+
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1098
1205
|
|
|
1099
1206
|
|
|
1100
1207
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
@@ -76,6 +76,18 @@ __all__ = (
|
|
|
76
76
|
"BidirectionalOutputPayloadPartTypeDef",
|
|
77
77
|
"BlobTypeDef",
|
|
78
78
|
"CachePointBlockTypeDef",
|
|
79
|
+
"CitationGeneratedContentTypeDef",
|
|
80
|
+
"CitationLocationTypeDef",
|
|
81
|
+
"CitationOutputTypeDef",
|
|
82
|
+
"CitationSourceContentDeltaTypeDef",
|
|
83
|
+
"CitationSourceContentTypeDef",
|
|
84
|
+
"CitationTypeDef",
|
|
85
|
+
"CitationUnionTypeDef",
|
|
86
|
+
"CitationsConfigTypeDef",
|
|
87
|
+
"CitationsContentBlockOutputTypeDef",
|
|
88
|
+
"CitationsContentBlockTypeDef",
|
|
89
|
+
"CitationsContentBlockUnionTypeDef",
|
|
90
|
+
"CitationsDeltaTypeDef",
|
|
79
91
|
"ContentBlockDeltaEventTypeDef",
|
|
80
92
|
"ContentBlockDeltaTypeDef",
|
|
81
93
|
"ContentBlockOutputTypeDef",
|
|
@@ -98,6 +110,10 @@ __all__ = (
|
|
|
98
110
|
"DocumentBlockOutputTypeDef",
|
|
99
111
|
"DocumentBlockTypeDef",
|
|
100
112
|
"DocumentBlockUnionTypeDef",
|
|
113
|
+
"DocumentCharLocationTypeDef",
|
|
114
|
+
"DocumentChunkLocationTypeDef",
|
|
115
|
+
"DocumentContentBlockTypeDef",
|
|
116
|
+
"DocumentPageLocationTypeDef",
|
|
101
117
|
"DocumentSourceOutputTypeDef",
|
|
102
118
|
"DocumentSourceTypeDef",
|
|
103
119
|
"DocumentSourceUnionTypeDef",
|
|
@@ -252,6 +268,33 @@ CachePointBlockTypeDef = TypedDict(
|
|
|
252
268
|
},
|
|
253
269
|
)
|
|
254
270
|
|
|
271
|
+
class CitationGeneratedContentTypeDef(TypedDict):
|
|
272
|
+
text: NotRequired[str]
|
|
273
|
+
|
|
274
|
+
class DocumentCharLocationTypeDef(TypedDict):
|
|
275
|
+
documentIndex: NotRequired[int]
|
|
276
|
+
start: NotRequired[int]
|
|
277
|
+
end: NotRequired[int]
|
|
278
|
+
|
|
279
|
+
class DocumentChunkLocationTypeDef(TypedDict):
|
|
280
|
+
documentIndex: NotRequired[int]
|
|
281
|
+
start: NotRequired[int]
|
|
282
|
+
end: NotRequired[int]
|
|
283
|
+
|
|
284
|
+
class DocumentPageLocationTypeDef(TypedDict):
|
|
285
|
+
documentIndex: NotRequired[int]
|
|
286
|
+
start: NotRequired[int]
|
|
287
|
+
end: NotRequired[int]
|
|
288
|
+
|
|
289
|
+
class CitationSourceContentTypeDef(TypedDict):
|
|
290
|
+
text: NotRequired[str]
|
|
291
|
+
|
|
292
|
+
class CitationSourceContentDeltaTypeDef(TypedDict):
|
|
293
|
+
text: NotRequired[str]
|
|
294
|
+
|
|
295
|
+
class CitationsConfigTypeDef(TypedDict):
|
|
296
|
+
enabled: bool
|
|
297
|
+
|
|
255
298
|
class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
256
299
|
text: NotRequired[str]
|
|
257
300
|
redactedContent: NotRequired[bytes]
|
|
@@ -342,6 +385,9 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
|
|
|
342
385
|
class PromptRouterTraceTypeDef(TypedDict):
|
|
343
386
|
invokedModelId: NotRequired[str]
|
|
344
387
|
|
|
388
|
+
class DocumentContentBlockTypeDef(TypedDict):
|
|
389
|
+
text: NotRequired[str]
|
|
390
|
+
|
|
345
391
|
class S3LocationTypeDef(TypedDict):
|
|
346
392
|
uri: str
|
|
347
393
|
bucketOwner: NotRequired[str]
|
|
@@ -529,10 +575,10 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
|
529
575
|
guardrailVersion: NotRequired[str]
|
|
530
576
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
531
577
|
|
|
532
|
-
class
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
578
|
+
class CitationLocationTypeDef(TypedDict):
|
|
579
|
+
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
580
|
+
documentPage: NotRequired[DocumentPageLocationTypeDef]
|
|
581
|
+
documentChunk: NotRequired[DocumentChunkLocationTypeDef]
|
|
536
582
|
|
|
537
583
|
class ContentBlockStartTypeDef(TypedDict):
|
|
538
584
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
@@ -542,6 +588,8 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
542
588
|
{
|
|
543
589
|
"bytes": NotRequired[bytes],
|
|
544
590
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
591
|
+
"text": NotRequired[str],
|
|
592
|
+
"content": NotRequired[List[DocumentContentBlockTypeDef]],
|
|
545
593
|
},
|
|
546
594
|
)
|
|
547
595
|
DocumentSourceTypeDef = TypedDict(
|
|
@@ -549,6 +597,8 @@ DocumentSourceTypeDef = TypedDict(
|
|
|
549
597
|
{
|
|
550
598
|
"bytes": NotRequired[BlobTypeDef],
|
|
551
599
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
600
|
+
"text": NotRequired[str],
|
|
601
|
+
"content": NotRequired[Sequence[DocumentContentBlockTypeDef]],
|
|
552
602
|
},
|
|
553
603
|
)
|
|
554
604
|
ImageSourceOutputTypeDef = TypedDict(
|
|
@@ -715,9 +765,20 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
715
765
|
},
|
|
716
766
|
)
|
|
717
767
|
|
|
718
|
-
class
|
|
719
|
-
|
|
720
|
-
|
|
768
|
+
class CitationOutputTypeDef(TypedDict):
|
|
769
|
+
title: NotRequired[str]
|
|
770
|
+
sourceContent: NotRequired[List[CitationSourceContentTypeDef]]
|
|
771
|
+
location: NotRequired[CitationLocationTypeDef]
|
|
772
|
+
|
|
773
|
+
class CitationTypeDef(TypedDict):
|
|
774
|
+
title: NotRequired[str]
|
|
775
|
+
sourceContent: NotRequired[Sequence[CitationSourceContentTypeDef]]
|
|
776
|
+
location: NotRequired[CitationLocationTypeDef]
|
|
777
|
+
|
|
778
|
+
class CitationsDeltaTypeDef(TypedDict):
|
|
779
|
+
title: NotRequired[str]
|
|
780
|
+
sourceContent: NotRequired[List[CitationSourceContentDeltaTypeDef]]
|
|
781
|
+
location: NotRequired[CitationLocationTypeDef]
|
|
721
782
|
|
|
722
783
|
class ContentBlockStartEventTypeDef(TypedDict):
|
|
723
784
|
start: ContentBlockStartTypeDef
|
|
@@ -726,9 +787,11 @@ class ContentBlockStartEventTypeDef(TypedDict):
|
|
|
726
787
|
DocumentBlockOutputTypeDef = TypedDict(
|
|
727
788
|
"DocumentBlockOutputTypeDef",
|
|
728
789
|
{
|
|
729
|
-
"format": DocumentFormatType,
|
|
730
790
|
"name": str,
|
|
731
791
|
"source": DocumentSourceOutputTypeDef,
|
|
792
|
+
"format": NotRequired[DocumentFormatType],
|
|
793
|
+
"context": NotRequired[str],
|
|
794
|
+
"citations": NotRequired[CitationsConfigTypeDef],
|
|
732
795
|
},
|
|
733
796
|
)
|
|
734
797
|
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
@@ -797,12 +860,26 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
797
860
|
text: NotRequired[GuardrailTextBlockTypeDef]
|
|
798
861
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
799
862
|
|
|
863
|
+
class CitationsContentBlockOutputTypeDef(TypedDict):
|
|
864
|
+
content: NotRequired[List[CitationGeneratedContentTypeDef]]
|
|
865
|
+
citations: NotRequired[List[CitationOutputTypeDef]]
|
|
866
|
+
|
|
867
|
+
CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
|
|
868
|
+
|
|
869
|
+
class ContentBlockDeltaTypeDef(TypedDict):
|
|
870
|
+
text: NotRequired[str]
|
|
871
|
+
toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
|
|
872
|
+
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
873
|
+
citation: NotRequired[CitationsDeltaTypeDef]
|
|
874
|
+
|
|
800
875
|
DocumentBlockTypeDef = TypedDict(
|
|
801
876
|
"DocumentBlockTypeDef",
|
|
802
877
|
{
|
|
803
|
-
"format": DocumentFormatType,
|
|
804
878
|
"name": str,
|
|
805
879
|
"source": DocumentSourceUnionTypeDef,
|
|
880
|
+
"format": NotRequired[DocumentFormatType],
|
|
881
|
+
"context": NotRequired[str],
|
|
882
|
+
"citations": NotRequired[CitationsConfigTypeDef],
|
|
806
883
|
},
|
|
807
884
|
)
|
|
808
885
|
ImageBlockTypeDef = TypedDict(
|
|
@@ -851,6 +928,14 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
851
928
|
content: Sequence[GuardrailContentBlockTypeDef]
|
|
852
929
|
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
853
930
|
|
|
931
|
+
class CitationsContentBlockTypeDef(TypedDict):
|
|
932
|
+
content: NotRequired[Sequence[CitationGeneratedContentTypeDef]]
|
|
933
|
+
citations: NotRequired[Sequence[CitationUnionTypeDef]]
|
|
934
|
+
|
|
935
|
+
class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
936
|
+
delta: ContentBlockDeltaTypeDef
|
|
937
|
+
contentBlockIndex: int
|
|
938
|
+
|
|
854
939
|
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
855
940
|
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
856
941
|
|
|
@@ -880,6 +965,10 @@ class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
|
880
965
|
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
881
966
|
image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
|
|
882
967
|
|
|
968
|
+
CitationsContentBlockUnionTypeDef = Union[
|
|
969
|
+
CitationsContentBlockTypeDef, CitationsContentBlockOutputTypeDef
|
|
970
|
+
]
|
|
971
|
+
|
|
883
972
|
class ContentBlockOutputTypeDef(TypedDict):
|
|
884
973
|
text: NotRequired[str]
|
|
885
974
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
@@ -890,6 +979,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
890
979
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
891
980
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
892
981
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
982
|
+
citationsContent: NotRequired[CitationsContentBlockOutputTypeDef]
|
|
893
983
|
|
|
894
984
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
895
985
|
json: NotRequired[Mapping[str, Any]]
|
|
@@ -976,6 +1066,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
976
1066
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
977
1067
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
978
1068
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1069
|
+
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
979
1070
|
|
|
980
1071
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
981
1072
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.
|
|
3
|
+
Version: 1.39.0
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.39.0 service generated with mypy-boto3-builder 8.11.0
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -57,7 +57,7 @@ Dynamic: summary
|
|
|
57
57
|

|
|
58
58
|
|
|
59
59
|
Type annotations for
|
|
60
|
-
[boto3 BedrockRuntime 1.
|
|
60
|
+
[boto3 BedrockRuntime 1.39.0](https://pypi.org/project/boto3/) compatible with
|
|
61
61
|
[VSCode](https://code.visualstudio.com/),
|
|
62
62
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
63
63
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -66,7 +66,7 @@ Type annotations for
|
|
|
66
66
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
67
67
|
|
|
68
68
|
Generated with
|
|
69
|
-
[mypy-boto3-builder 8.
|
|
69
|
+
[mypy-boto3-builder 8.11.0](https://github.com/youtype/mypy_boto3_builder).
|
|
70
70
|
|
|
71
71
|
More information can be found on
|
|
72
72
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -119,7 +119,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
119
119
|
isolation.
|
|
120
120
|
|
|
121
121
|
1. Run mypy-boto3-builder in your package root directory:
|
|
122
|
-
`uvx --with 'boto3==1.
|
|
122
|
+
`uvx --with 'boto3==1.39.0' mypy-boto3-builder`
|
|
123
123
|
2. Select `boto3` AWS SDK.
|
|
124
124
|
3. Add `BedrockRuntime` service.
|
|
125
125
|
4. Use provided commands to install generated packages.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
types_boto3_bedrock_runtime/__init__.py,sha256=yVTpBudgQiZdF0pSNhAE-1xbRZSFBHRcN9lRoforRqk,774
|
|
2
|
+
types_boto3_bedrock_runtime/__init__.pyi,sha256=FTe8oZW7DRJdbaUR0zeqYoUvSJbUFsNGBllLTCZwU4k,773
|
|
3
|
+
types_boto3_bedrock_runtime/__main__.py,sha256=k4TFsCUXcTCugPug2Hey93rSagpjNOrMvq9nfKml5xI,1012
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=kjTKseKd8WybYKk-4ru6mPPvb6MHaw7YFAc9ZIu2sMw,9543
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=yVHUXcX9AsgS6HIVuTp4olrDWJ8c_x5rtihDhBwG_DE,9540
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=jskyjsUSAZGu3YT8LcixgzJY5m9htCL0cMMOPBUeC9k,13207
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=7rCErque8nLKdC-opVSbyshXfN1Ox8OHBsifHGc9v8c,13205
|
|
8
|
+
types_boto3_bedrock_runtime/paginator.py,sha256=5Jxr9RrOJKN9XVbJReCbUJpJopBTa6lkmC2vmFjI2nQ,2194
|
|
9
|
+
types_boto3_bedrock_runtime/paginator.pyi,sha256=63nEmXrjk6YpFdjbM7HiTP4pBDClAUG2z9KGCvvqdpw,2190
|
|
10
|
+
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
types_boto3_bedrock_runtime/type_defs.py,sha256=5AsEk2TfZic7xQ0NCzL2Y-CIsaThT4jEo38tCg3G6S8,37075
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=ZNoNznEY8oxVPRbKmnpfA0iVODbON4nADDaAgo9xJe0,36935
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=2zoG4eEWPRyRE1KcrQlbWADhaM3qPJ9AE2mKAu218VA,92
|
|
14
|
+
types_boto3_bedrock_runtime-1.39.0.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.39.0.dist-info/METADATA,sha256=yyE3aPXS30PET09DKVVe5odj1of4IvhBuj2DfaCUaBk,15396
|
|
16
|
+
types_boto3_bedrock_runtime-1.39.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.39.0.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.39.0.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
types_boto3_bedrock_runtime/__init__.py,sha256=yVTpBudgQiZdF0pSNhAE-1xbRZSFBHRcN9lRoforRqk,774
|
|
2
|
-
types_boto3_bedrock_runtime/__init__.pyi,sha256=FTe8oZW7DRJdbaUR0zeqYoUvSJbUFsNGBllLTCZwU4k,773
|
|
3
|
-
types_boto3_bedrock_runtime/__main__.py,sha256=oVo1P_KyCezfY7K8pPeMhL8owz5y9wcB5CBTP2wD1ts,1012
|
|
4
|
-
types_boto3_bedrock_runtime/client.py,sha256=kjTKseKd8WybYKk-4ru6mPPvb6MHaw7YFAc9ZIu2sMw,9543
|
|
5
|
-
types_boto3_bedrock_runtime/client.pyi,sha256=yVHUXcX9AsgS6HIVuTp4olrDWJ8c_x5rtihDhBwG_DE,9540
|
|
6
|
-
types_boto3_bedrock_runtime/literals.py,sha256=QztBKRdE8PrGJNm4oqgZnWAOmIdt4qOMbRJUJ-qtlBM,13138
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=L78OoelU9sBoGcAVd75MS9KzYcehDS4_2C2zLeW5lbc,13136
|
|
8
|
-
types_boto3_bedrock_runtime/paginator.py,sha256=5Jxr9RrOJKN9XVbJReCbUJpJopBTa6lkmC2vmFjI2nQ,2194
|
|
9
|
-
types_boto3_bedrock_runtime/paginator.pyi,sha256=63nEmXrjk6YpFdjbM7HiTP4pBDClAUG2z9KGCvvqdpw,2190
|
|
10
|
-
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
types_boto3_bedrock_runtime/type_defs.py,sha256=rCM0gfj2gBC5K929VT254EMpL3PSB2yUUCWkxcinlXQ,33804
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=aJfsfBVIzf0AEk1iF2mdtIAZBACJZHHhJSarvHFFlO8,33680
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=n4d-8A8iSyUVsP3sR-JoN8xiB6BIgNe_9_9KMBHcQGE,92
|
|
14
|
-
types_boto3_bedrock_runtime-1.38.4.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.38.4.dist-info/METADATA,sha256=1myKe74TeXUn0dYyc4Q78b0EGrLE2Gnf0eQSZPl3Zew,15396
|
|
16
|
-
types_boto3_bedrock_runtime-1.38.4.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.38.4.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.38.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|