types-boto3-bedrock-runtime 1.38.4__py3-none-any.whl → 1.39.7__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 +10 -2
- types_boto3_bedrock_runtime/literals.pyi +10 -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.7.dist-info}/METADATA +5 -5
- types_boto3_bedrock_runtime-1.39.7.dist-info/RECORD +18 -0
- {types_boto3_bedrock_runtime-1.38.4.dist-info → types_boto3_bedrock_runtime-1.39.7.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.7.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.38.4.dist-info → types_boto3_bedrock_runtime-1.39.7.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.7\n"
|
|
16
|
+
"Version: 1.39.7\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.7\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",
|
|
@@ -182,6 +183,8 @@ ServiceName = Literal[
|
|
|
182
183
|
"bedrock",
|
|
183
184
|
"bedrock-agent",
|
|
184
185
|
"bedrock-agent-runtime",
|
|
186
|
+
"bedrock-agentcore",
|
|
187
|
+
"bedrock-agentcore-control",
|
|
185
188
|
"bedrock-data-automation",
|
|
186
189
|
"bedrock-data-automation-runtime",
|
|
187
190
|
"bedrock-runtime",
|
|
@@ -285,6 +288,7 @@ ServiceName = Literal[
|
|
|
285
288
|
"es",
|
|
286
289
|
"events",
|
|
287
290
|
"evidently",
|
|
291
|
+
"evs",
|
|
288
292
|
"finspace",
|
|
289
293
|
"finspace-data",
|
|
290
294
|
"firehose",
|
|
@@ -342,6 +346,7 @@ ServiceName = Literal[
|
|
|
342
346
|
"kendra",
|
|
343
347
|
"kendra-ranking",
|
|
344
348
|
"keyspaces",
|
|
349
|
+
"keyspacesstreams",
|
|
345
350
|
"kinesis",
|
|
346
351
|
"kinesis-video-archived-media",
|
|
347
352
|
"kinesis-video-media",
|
|
@@ -397,6 +402,7 @@ ServiceName = Literal[
|
|
|
397
402
|
"migrationhub-config",
|
|
398
403
|
"migrationhuborchestrator",
|
|
399
404
|
"migrationhubstrategy",
|
|
405
|
+
"mpa",
|
|
400
406
|
"mq",
|
|
401
407
|
"mturk",
|
|
402
408
|
"mwaa",
|
|
@@ -411,6 +417,7 @@ ServiceName = Literal[
|
|
|
411
417
|
"notificationscontacts",
|
|
412
418
|
"oam",
|
|
413
419
|
"observabilityadmin",
|
|
420
|
+
"odb",
|
|
414
421
|
"omics",
|
|
415
422
|
"opensearch",
|
|
416
423
|
"opensearchserverless",
|
|
@@ -437,7 +444,6 @@ ServiceName = Literal[
|
|
|
437
444
|
"pipes",
|
|
438
445
|
"polly",
|
|
439
446
|
"pricing",
|
|
440
|
-
"privatenetworks",
|
|
441
447
|
"proton",
|
|
442
448
|
"qapps",
|
|
443
449
|
"qbusiness",
|
|
@@ -472,6 +478,7 @@ ServiceName = Literal[
|
|
|
472
478
|
"s3control",
|
|
473
479
|
"s3outposts",
|
|
474
480
|
"s3tables",
|
|
481
|
+
"s3vectors",
|
|
475
482
|
"sagemaker",
|
|
476
483
|
"sagemaker-a2i-runtime",
|
|
477
484
|
"sagemaker-edge",
|
|
@@ -498,7 +505,6 @@ ServiceName = Literal[
|
|
|
498
505
|
"signer",
|
|
499
506
|
"simspaceweaver",
|
|
500
507
|
"sms",
|
|
501
|
-
"sms-voice",
|
|
502
508
|
"snow-device-management",
|
|
503
509
|
"snowball",
|
|
504
510
|
"sns",
|
|
@@ -506,6 +512,7 @@ ServiceName = Literal[
|
|
|
506
512
|
"sqs",
|
|
507
513
|
"ssm",
|
|
508
514
|
"ssm-contacts",
|
|
515
|
+
"ssm-guiconnect",
|
|
509
516
|
"ssm-incidents",
|
|
510
517
|
"ssm-quicksetup",
|
|
511
518
|
"ssm-sap",
|
|
@@ -542,6 +549,7 @@ ServiceName = Literal[
|
|
|
542
549
|
"workmail",
|
|
543
550
|
"workmailmessageflow",
|
|
544
551
|
"workspaces",
|
|
552
|
+
"workspaces-instances",
|
|
545
553
|
"workspaces-thin-client",
|
|
546
554
|
"workspaces-web",
|
|
547
555
|
"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",
|
|
@@ -180,6 +181,8 @@ ServiceName = Literal[
|
|
|
180
181
|
"bedrock",
|
|
181
182
|
"bedrock-agent",
|
|
182
183
|
"bedrock-agent-runtime",
|
|
184
|
+
"bedrock-agentcore",
|
|
185
|
+
"bedrock-agentcore-control",
|
|
183
186
|
"bedrock-data-automation",
|
|
184
187
|
"bedrock-data-automation-runtime",
|
|
185
188
|
"bedrock-runtime",
|
|
@@ -283,6 +286,7 @@ ServiceName = Literal[
|
|
|
283
286
|
"es",
|
|
284
287
|
"events",
|
|
285
288
|
"evidently",
|
|
289
|
+
"evs",
|
|
286
290
|
"finspace",
|
|
287
291
|
"finspace-data",
|
|
288
292
|
"firehose",
|
|
@@ -340,6 +344,7 @@ ServiceName = Literal[
|
|
|
340
344
|
"kendra",
|
|
341
345
|
"kendra-ranking",
|
|
342
346
|
"keyspaces",
|
|
347
|
+
"keyspacesstreams",
|
|
343
348
|
"kinesis",
|
|
344
349
|
"kinesis-video-archived-media",
|
|
345
350
|
"kinesis-video-media",
|
|
@@ -395,6 +400,7 @@ ServiceName = Literal[
|
|
|
395
400
|
"migrationhub-config",
|
|
396
401
|
"migrationhuborchestrator",
|
|
397
402
|
"migrationhubstrategy",
|
|
403
|
+
"mpa",
|
|
398
404
|
"mq",
|
|
399
405
|
"mturk",
|
|
400
406
|
"mwaa",
|
|
@@ -409,6 +415,7 @@ ServiceName = Literal[
|
|
|
409
415
|
"notificationscontacts",
|
|
410
416
|
"oam",
|
|
411
417
|
"observabilityadmin",
|
|
418
|
+
"odb",
|
|
412
419
|
"omics",
|
|
413
420
|
"opensearch",
|
|
414
421
|
"opensearchserverless",
|
|
@@ -435,7 +442,6 @@ ServiceName = Literal[
|
|
|
435
442
|
"pipes",
|
|
436
443
|
"polly",
|
|
437
444
|
"pricing",
|
|
438
|
-
"privatenetworks",
|
|
439
445
|
"proton",
|
|
440
446
|
"qapps",
|
|
441
447
|
"qbusiness",
|
|
@@ -470,6 +476,7 @@ ServiceName = Literal[
|
|
|
470
476
|
"s3control",
|
|
471
477
|
"s3outposts",
|
|
472
478
|
"s3tables",
|
|
479
|
+
"s3vectors",
|
|
473
480
|
"sagemaker",
|
|
474
481
|
"sagemaker-a2i-runtime",
|
|
475
482
|
"sagemaker-edge",
|
|
@@ -496,7 +503,6 @@ ServiceName = Literal[
|
|
|
496
503
|
"signer",
|
|
497
504
|
"simspaceweaver",
|
|
498
505
|
"sms",
|
|
499
|
-
"sms-voice",
|
|
500
506
|
"snow-device-management",
|
|
501
507
|
"snowball",
|
|
502
508
|
"sns",
|
|
@@ -504,6 +510,7 @@ ServiceName = Literal[
|
|
|
504
510
|
"sqs",
|
|
505
511
|
"ssm",
|
|
506
512
|
"ssm-contacts",
|
|
513
|
+
"ssm-guiconnect",
|
|
507
514
|
"ssm-incidents",
|
|
508
515
|
"ssm-quicksetup",
|
|
509
516
|
"ssm-sap",
|
|
@@ -540,6 +547,7 @@ ServiceName = Literal[
|
|
|
540
547
|
"workmail",
|
|
541
548
|
"workmailmessageflow",
|
|
542
549
|
"workspaces",
|
|
550
|
+
"workspaces-instances",
|
|
543
551
|
"workspaces-thin-client",
|
|
544
552
|
"workspaces-web",
|
|
545
553
|
"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.7
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.39.7 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.7](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.7' 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=yKfT2VKQShxbcOCNXgbETSezy8kKkJ9VE_SNAGXeBso,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=dCDbIFfiosedKNHKg8NOkBzop9xLOD1a-TRgl4MkdvM,13293
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=E_7K74jSTa_388G-NXmQ0QzlH3mGHOKC2HtPSAqoG8M,13291
|
|
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=jxfJfzZbd2bOhrSH95Cs4f7hhqOOaKO3EwqoS0pvcBw,92
|
|
14
|
+
types_boto3_bedrock_runtime-1.39.7.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.39.7.dist-info/METADATA,sha256=9VTgB9CsOH0V-xveYGLvSOuY9Ojz3OmnnAmjHoOprSw,15396
|
|
16
|
+
types_boto3_bedrock_runtime-1.39.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.39.7.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.39.7.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
|