types-boto3-bedrock-runtime 1.41.5__py3-none-any.whl → 1.42.1__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 +3 -3
- types_boto3_bedrock_runtime/literals.py +24 -0
- types_boto3_bedrock_runtime/literals.pyi +24 -0
- types_boto3_bedrock_runtime/type_defs.py +149 -75
- types_boto3_bedrock_runtime/type_defs.pyi +140 -73
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.41.5.dist-info → types_boto3_bedrock_runtime-1.42.1.dist-info}/METADATA +4 -4
- types_boto3_bedrock_runtime-1.42.1.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.41.5.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.41.5.dist-info → types_boto3_bedrock_runtime-1.42.1.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.41.5.dist-info → types_boto3_bedrock_runtime-1.42.1.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.41.5.dist-info → types_boto3_bedrock_runtime-1.42.1.dist-info}/top_level.txt +0 -0
|
@@ -12,8 +12,8 @@ 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.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.42.1\n"
|
|
16
|
+
"Version: 1.42.1\n"
|
|
17
17
|
"Builder version: 8.12.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"
|
|
@@ -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.42.1\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -24,6 +24,7 @@ else:
|
|
|
24
24
|
|
|
25
25
|
__all__ = (
|
|
26
26
|
"AsyncInvokeStatusType",
|
|
27
|
+
"AudioFormatType",
|
|
27
28
|
"BedrockRuntimeServiceName",
|
|
28
29
|
"CachePointTypeType",
|
|
29
30
|
"ConversationRoleType",
|
|
@@ -70,6 +71,23 @@ __all__ = (
|
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
|
|
74
|
+
AudioFormatType = Literal[
|
|
75
|
+
"aac",
|
|
76
|
+
"flac",
|
|
77
|
+
"m4a",
|
|
78
|
+
"mka",
|
|
79
|
+
"mkv",
|
|
80
|
+
"mp3",
|
|
81
|
+
"mp4",
|
|
82
|
+
"mpeg",
|
|
83
|
+
"mpga",
|
|
84
|
+
"ogg",
|
|
85
|
+
"opus",
|
|
86
|
+
"pcm",
|
|
87
|
+
"wav",
|
|
88
|
+
"webm",
|
|
89
|
+
"x-aac",
|
|
90
|
+
]
|
|
73
91
|
CachePointTypeType = Literal["default"]
|
|
74
92
|
ConversationRoleType = Literal["assistant", "user"]
|
|
75
93
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
@@ -141,6 +159,8 @@ StopReasonType = Literal[
|
|
|
141
159
|
"content_filtered",
|
|
142
160
|
"end_turn",
|
|
143
161
|
"guardrail_intervened",
|
|
162
|
+
"malformed_model_output",
|
|
163
|
+
"malformed_tool_use",
|
|
144
164
|
"max_tokens",
|
|
145
165
|
"model_context_window_exceeded",
|
|
146
166
|
"stop_sequence",
|
|
@@ -427,6 +447,7 @@ ServiceName = Literal[
|
|
|
427
447
|
"networkmonitor",
|
|
428
448
|
"notifications",
|
|
429
449
|
"notificationscontacts",
|
|
450
|
+
"nova-act",
|
|
430
451
|
"oam",
|
|
431
452
|
"observabilityadmin",
|
|
432
453
|
"odb",
|
|
@@ -437,6 +458,8 @@ ServiceName = Literal[
|
|
|
437
458
|
"osis",
|
|
438
459
|
"outposts",
|
|
439
460
|
"panorama",
|
|
461
|
+
"partnercentral-account",
|
|
462
|
+
"partnercentral-benefits",
|
|
440
463
|
"partnercentral-channel",
|
|
441
464
|
"partnercentral-selling",
|
|
442
465
|
"payment-cryptography",
|
|
@@ -479,6 +502,7 @@ ServiceName = Literal[
|
|
|
479
502
|
"route53-recovery-control-config",
|
|
480
503
|
"route53-recovery-readiness",
|
|
481
504
|
"route53domains",
|
|
505
|
+
"route53globalresolver",
|
|
482
506
|
"route53profiles",
|
|
483
507
|
"route53resolver",
|
|
484
508
|
"rtbfabric",
|
|
@@ -23,6 +23,7 @@ else:
|
|
|
23
23
|
|
|
24
24
|
__all__ = (
|
|
25
25
|
"AsyncInvokeStatusType",
|
|
26
|
+
"AudioFormatType",
|
|
26
27
|
"BedrockRuntimeServiceName",
|
|
27
28
|
"CachePointTypeType",
|
|
28
29
|
"ConversationRoleType",
|
|
@@ -68,6 +69,23 @@ __all__ = (
|
|
|
68
69
|
)
|
|
69
70
|
|
|
70
71
|
AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
|
|
72
|
+
AudioFormatType = Literal[
|
|
73
|
+
"aac",
|
|
74
|
+
"flac",
|
|
75
|
+
"m4a",
|
|
76
|
+
"mka",
|
|
77
|
+
"mkv",
|
|
78
|
+
"mp3",
|
|
79
|
+
"mp4",
|
|
80
|
+
"mpeg",
|
|
81
|
+
"mpga",
|
|
82
|
+
"ogg",
|
|
83
|
+
"opus",
|
|
84
|
+
"pcm",
|
|
85
|
+
"wav",
|
|
86
|
+
"webm",
|
|
87
|
+
"x-aac",
|
|
88
|
+
]
|
|
71
89
|
CachePointTypeType = Literal["default"]
|
|
72
90
|
ConversationRoleType = Literal["assistant", "user"]
|
|
73
91
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
@@ -139,6 +157,8 @@ StopReasonType = Literal[
|
|
|
139
157
|
"content_filtered",
|
|
140
158
|
"end_turn",
|
|
141
159
|
"guardrail_intervened",
|
|
160
|
+
"malformed_model_output",
|
|
161
|
+
"malformed_tool_use",
|
|
142
162
|
"max_tokens",
|
|
143
163
|
"model_context_window_exceeded",
|
|
144
164
|
"stop_sequence",
|
|
@@ -425,6 +445,7 @@ ServiceName = Literal[
|
|
|
425
445
|
"networkmonitor",
|
|
426
446
|
"notifications",
|
|
427
447
|
"notificationscontacts",
|
|
448
|
+
"nova-act",
|
|
428
449
|
"oam",
|
|
429
450
|
"observabilityadmin",
|
|
430
451
|
"odb",
|
|
@@ -435,6 +456,8 @@ ServiceName = Literal[
|
|
|
435
456
|
"osis",
|
|
436
457
|
"outposts",
|
|
437
458
|
"panorama",
|
|
459
|
+
"partnercentral-account",
|
|
460
|
+
"partnercentral-benefits",
|
|
438
461
|
"partnercentral-channel",
|
|
439
462
|
"partnercentral-selling",
|
|
440
463
|
"payment-cryptography",
|
|
@@ -477,6 +500,7 @@ ServiceName = Literal[
|
|
|
477
500
|
"route53-recovery-control-config",
|
|
478
501
|
"route53-recovery-readiness",
|
|
479
502
|
"route53domains",
|
|
503
|
+
"route53globalresolver",
|
|
480
504
|
"route53profiles",
|
|
481
505
|
"route53resolver",
|
|
482
506
|
"rtbfabric",
|
|
@@ -26,6 +26,7 @@ from botocore.response import StreamingBody
|
|
|
26
26
|
|
|
27
27
|
from .literals import (
|
|
28
28
|
AsyncInvokeStatusType,
|
|
29
|
+
AudioFormatType,
|
|
29
30
|
ConversationRoleType,
|
|
30
31
|
DocumentFormatType,
|
|
31
32
|
GuardrailActionType,
|
|
@@ -74,6 +75,12 @@ __all__ = (
|
|
|
74
75
|
"AsyncInvokeOutputDataConfigTypeDef",
|
|
75
76
|
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
76
77
|
"AsyncInvokeSummaryTypeDef",
|
|
78
|
+
"AudioBlockOutputTypeDef",
|
|
79
|
+
"AudioBlockTypeDef",
|
|
80
|
+
"AudioBlockUnionTypeDef",
|
|
81
|
+
"AudioSourceOutputTypeDef",
|
|
82
|
+
"AudioSourceTypeDef",
|
|
83
|
+
"AudioSourceUnionTypeDef",
|
|
77
84
|
"BidirectionalInputPayloadPartTypeDef",
|
|
78
85
|
"BidirectionalOutputPayloadPartTypeDef",
|
|
79
86
|
"BlobTypeDef",
|
|
@@ -123,6 +130,7 @@ __all__ = (
|
|
|
123
130
|
"DocumentSourceOutputTypeDef",
|
|
124
131
|
"DocumentSourceTypeDef",
|
|
125
132
|
"DocumentSourceUnionTypeDef",
|
|
133
|
+
"ErrorBlockTypeDef",
|
|
126
134
|
"GetAsyncInvokeRequestTypeDef",
|
|
127
135
|
"GetAsyncInvokeResponseTypeDef",
|
|
128
136
|
"GuardrailAssessmentTypeDef",
|
|
@@ -177,7 +185,9 @@ __all__ = (
|
|
|
177
185
|
"GuardrailTraceAssessmentTypeDef",
|
|
178
186
|
"GuardrailUsageTypeDef",
|
|
179
187
|
"GuardrailWordPolicyAssessmentTypeDef",
|
|
188
|
+
"ImageBlockDeltaTypeDef",
|
|
180
189
|
"ImageBlockOutputTypeDef",
|
|
190
|
+
"ImageBlockStartTypeDef",
|
|
181
191
|
"ImageBlockTypeDef",
|
|
182
192
|
"ImageBlockUnionTypeDef",
|
|
183
193
|
"ImageSourceOutputTypeDef",
|
|
@@ -300,6 +310,15 @@ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
|
300
310
|
bucketOwner: NotRequired[str]
|
|
301
311
|
|
|
302
312
|
|
|
313
|
+
class ErrorBlockTypeDef(TypedDict):
|
|
314
|
+
message: NotRequired[str]
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
class S3LocationTypeDef(TypedDict):
|
|
318
|
+
uri: str
|
|
319
|
+
bucketOwner: NotRequired[str]
|
|
320
|
+
|
|
321
|
+
|
|
303
322
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
304
323
|
BidirectionalOutputPayloadPartTypeDef = TypedDict(
|
|
305
324
|
"BidirectionalOutputPayloadPartTypeDef",
|
|
@@ -368,6 +387,7 @@ class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
|
368
387
|
|
|
369
388
|
class ToolResultBlockDeltaTypeDef(TypedDict):
|
|
370
389
|
text: NotRequired[str]
|
|
390
|
+
json: NotRequired[dict[str, Any]]
|
|
371
391
|
|
|
372
392
|
|
|
373
393
|
ToolUseBlockDeltaTypeDef = TypedDict(
|
|
@@ -385,6 +405,12 @@ ToolUseBlockOutputTypeDef = TypedDict(
|
|
|
385
405
|
"type": NotRequired[ToolUseTypeType],
|
|
386
406
|
},
|
|
387
407
|
)
|
|
408
|
+
ImageBlockStartTypeDef = TypedDict(
|
|
409
|
+
"ImageBlockStartTypeDef",
|
|
410
|
+
{
|
|
411
|
+
"format": ImageFormatType,
|
|
412
|
+
},
|
|
413
|
+
)
|
|
388
414
|
ToolResultBlockStartTypeDef = TypedDict(
|
|
389
415
|
"ToolResultBlockStartTypeDef",
|
|
390
416
|
{
|
|
@@ -498,11 +524,6 @@ class DocumentContentBlockTypeDef(TypedDict):
|
|
|
498
524
|
text: NotRequired[str]
|
|
499
525
|
|
|
500
526
|
|
|
501
|
-
class S3LocationTypeDef(TypedDict):
|
|
502
|
-
uri: str
|
|
503
|
-
bucketOwner: NotRequired[str]
|
|
504
|
-
|
|
505
|
-
|
|
506
527
|
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
507
528
|
invocationArn: str
|
|
508
529
|
|
|
@@ -699,6 +720,34 @@ class AsyncInvokeOutputDataConfigTypeDef(TypedDict):
|
|
|
699
720
|
s3OutputDataConfig: NotRequired[AsyncInvokeS3OutputDataConfigTypeDef]
|
|
700
721
|
|
|
701
722
|
|
|
723
|
+
AudioSourceOutputTypeDef = TypedDict(
|
|
724
|
+
"AudioSourceOutputTypeDef",
|
|
725
|
+
{
|
|
726
|
+
"bytes": NotRequired[bytes],
|
|
727
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
728
|
+
},
|
|
729
|
+
)
|
|
730
|
+
ImageSourceOutputTypeDef = TypedDict(
|
|
731
|
+
"ImageSourceOutputTypeDef",
|
|
732
|
+
{
|
|
733
|
+
"bytes": NotRequired[bytes],
|
|
734
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
735
|
+
},
|
|
736
|
+
)
|
|
737
|
+
VideoSourceOutputTypeDef = TypedDict(
|
|
738
|
+
"VideoSourceOutputTypeDef",
|
|
739
|
+
{
|
|
740
|
+
"bytes": NotRequired[bytes],
|
|
741
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
742
|
+
},
|
|
743
|
+
)
|
|
744
|
+
AudioSourceTypeDef = TypedDict(
|
|
745
|
+
"AudioSourceTypeDef",
|
|
746
|
+
{
|
|
747
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
748
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
749
|
+
},
|
|
750
|
+
)
|
|
702
751
|
BidirectionalInputPayloadPartTypeDef = TypedDict(
|
|
703
752
|
"BidirectionalInputPayloadPartTypeDef",
|
|
704
753
|
{
|
|
@@ -717,6 +766,13 @@ GuardrailImageSourceTypeDef = TypedDict(
|
|
|
717
766
|
"bytes": NotRequired[BlobTypeDef],
|
|
718
767
|
},
|
|
719
768
|
)
|
|
769
|
+
ImageSourceTypeDef = TypedDict(
|
|
770
|
+
"ImageSourceTypeDef",
|
|
771
|
+
{
|
|
772
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
773
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
774
|
+
},
|
|
775
|
+
)
|
|
720
776
|
|
|
721
777
|
|
|
722
778
|
class InvokeModelRequestTypeDef(TypedDict):
|
|
@@ -747,6 +803,15 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
|
747
803
|
serviceTier: NotRequired[ServiceTierTypeType]
|
|
748
804
|
|
|
749
805
|
|
|
806
|
+
VideoSourceTypeDef = TypedDict(
|
|
807
|
+
"VideoSourceTypeDef",
|
|
808
|
+
{
|
|
809
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
810
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
811
|
+
},
|
|
812
|
+
)
|
|
813
|
+
|
|
814
|
+
|
|
750
815
|
class CitationLocationTypeDef(TypedDict):
|
|
751
816
|
web: NotRequired[WebLocationTypeDef]
|
|
752
817
|
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
@@ -758,6 +823,7 @@ class CitationLocationTypeDef(TypedDict):
|
|
|
758
823
|
class ContentBlockStartTypeDef(TypedDict):
|
|
759
824
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
760
825
|
toolResult: NotRequired[ToolResultBlockStartTypeDef]
|
|
826
|
+
image: NotRequired[ImageBlockStartTypeDef]
|
|
761
827
|
|
|
762
828
|
|
|
763
829
|
DocumentSourceOutputTypeDef = TypedDict(
|
|
@@ -778,34 +844,6 @@ DocumentSourceTypeDef = TypedDict(
|
|
|
778
844
|
"content": NotRequired[Sequence[DocumentContentBlockTypeDef]],
|
|
779
845
|
},
|
|
780
846
|
)
|
|
781
|
-
ImageSourceOutputTypeDef = TypedDict(
|
|
782
|
-
"ImageSourceOutputTypeDef",
|
|
783
|
-
{
|
|
784
|
-
"bytes": NotRequired[bytes],
|
|
785
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
786
|
-
},
|
|
787
|
-
)
|
|
788
|
-
ImageSourceTypeDef = TypedDict(
|
|
789
|
-
"ImageSourceTypeDef",
|
|
790
|
-
{
|
|
791
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
792
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
793
|
-
},
|
|
794
|
-
)
|
|
795
|
-
VideoSourceOutputTypeDef = TypedDict(
|
|
796
|
-
"VideoSourceOutputTypeDef",
|
|
797
|
-
{
|
|
798
|
-
"bytes": NotRequired[bytes],
|
|
799
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
800
|
-
},
|
|
801
|
-
)
|
|
802
|
-
VideoSourceTypeDef = TypedDict(
|
|
803
|
-
"VideoSourceTypeDef",
|
|
804
|
-
{
|
|
805
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
806
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
807
|
-
},
|
|
808
|
-
)
|
|
809
847
|
GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
|
|
810
848
|
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
811
849
|
{
|
|
@@ -982,6 +1020,39 @@ class StartAsyncInvokeRequestTypeDef(TypedDict):
|
|
|
982
1020
|
tags: NotRequired[Sequence[TagTypeDef]]
|
|
983
1021
|
|
|
984
1022
|
|
|
1023
|
+
AudioBlockOutputTypeDef = TypedDict(
|
|
1024
|
+
"AudioBlockOutputTypeDef",
|
|
1025
|
+
{
|
|
1026
|
+
"format": AudioFormatType,
|
|
1027
|
+
"source": AudioSourceOutputTypeDef,
|
|
1028
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
1029
|
+
},
|
|
1030
|
+
)
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
class ImageBlockDeltaTypeDef(TypedDict):
|
|
1034
|
+
source: NotRequired[ImageSourceOutputTypeDef]
|
|
1035
|
+
error: NotRequired[ErrorBlockTypeDef]
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
ImageBlockOutputTypeDef = TypedDict(
|
|
1039
|
+
"ImageBlockOutputTypeDef",
|
|
1040
|
+
{
|
|
1041
|
+
"format": ImageFormatType,
|
|
1042
|
+
"source": ImageSourceOutputTypeDef,
|
|
1043
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
1044
|
+
},
|
|
1045
|
+
)
|
|
1046
|
+
VideoBlockOutputTypeDef = TypedDict(
|
|
1047
|
+
"VideoBlockOutputTypeDef",
|
|
1048
|
+
{
|
|
1049
|
+
"format": VideoFormatType,
|
|
1050
|
+
"source": VideoSourceOutputTypeDef,
|
|
1051
|
+
},
|
|
1052
|
+
)
|
|
1053
|
+
AudioSourceUnionTypeDef = Union[AudioSourceTypeDef, AudioSourceOutputTypeDef]
|
|
1054
|
+
|
|
1055
|
+
|
|
985
1056
|
class InvokeModelWithBidirectionalStreamInputTypeDef(TypedDict):
|
|
986
1057
|
chunk: NotRequired[BidirectionalInputPayloadPartTypeDef]
|
|
987
1058
|
|
|
@@ -996,6 +1067,8 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
996
1067
|
"source": GuardrailImageSourceTypeDef,
|
|
997
1068
|
},
|
|
998
1069
|
)
|
|
1070
|
+
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
1071
|
+
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
999
1072
|
|
|
1000
1073
|
|
|
1001
1074
|
class CitationOutputTypeDef(TypedDict):
|
|
@@ -1035,22 +1108,6 @@ DocumentBlockOutputTypeDef = TypedDict(
|
|
|
1035
1108
|
},
|
|
1036
1109
|
)
|
|
1037
1110
|
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
1038
|
-
ImageBlockOutputTypeDef = TypedDict(
|
|
1039
|
-
"ImageBlockOutputTypeDef",
|
|
1040
|
-
{
|
|
1041
|
-
"format": ImageFormatType,
|
|
1042
|
-
"source": ImageSourceOutputTypeDef,
|
|
1043
|
-
},
|
|
1044
|
-
)
|
|
1045
|
-
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
1046
|
-
VideoBlockOutputTypeDef = TypedDict(
|
|
1047
|
-
"VideoBlockOutputTypeDef",
|
|
1048
|
-
{
|
|
1049
|
-
"format": VideoFormatType,
|
|
1050
|
-
"source": VideoSourceOutputTypeDef,
|
|
1051
|
-
},
|
|
1052
|
-
)
|
|
1053
|
-
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
1054
1111
|
|
|
1055
1112
|
|
|
1056
1113
|
class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
|
|
@@ -1125,6 +1182,16 @@ class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
|
1125
1182
|
nextToken: NotRequired[str]
|
|
1126
1183
|
|
|
1127
1184
|
|
|
1185
|
+
AudioBlockTypeDef = TypedDict(
|
|
1186
|
+
"AudioBlockTypeDef",
|
|
1187
|
+
{
|
|
1188
|
+
"format": AudioFormatType,
|
|
1189
|
+
"source": AudioSourceUnionTypeDef,
|
|
1190
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
1191
|
+
},
|
|
1192
|
+
)
|
|
1193
|
+
|
|
1194
|
+
|
|
1128
1195
|
class InvokeModelWithBidirectionalStreamRequestTypeDef(TypedDict):
|
|
1129
1196
|
modelId: str
|
|
1130
1197
|
body: EventStream[InvokeModelWithBidirectionalStreamInputTypeDef]
|
|
@@ -1144,6 +1211,23 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
1144
1211
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
1145
1212
|
|
|
1146
1213
|
|
|
1214
|
+
ImageBlockTypeDef = TypedDict(
|
|
1215
|
+
"ImageBlockTypeDef",
|
|
1216
|
+
{
|
|
1217
|
+
"format": ImageFormatType,
|
|
1218
|
+
"source": ImageSourceUnionTypeDef,
|
|
1219
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
1220
|
+
},
|
|
1221
|
+
)
|
|
1222
|
+
VideoBlockTypeDef = TypedDict(
|
|
1223
|
+
"VideoBlockTypeDef",
|
|
1224
|
+
{
|
|
1225
|
+
"format": VideoFormatType,
|
|
1226
|
+
"source": VideoSourceUnionTypeDef,
|
|
1227
|
+
},
|
|
1228
|
+
)
|
|
1229
|
+
|
|
1230
|
+
|
|
1147
1231
|
class CitationsContentBlockOutputTypeDef(TypedDict):
|
|
1148
1232
|
content: NotRequired[list[CitationGeneratedContentTypeDef]]
|
|
1149
1233
|
citations: NotRequired[list[CitationOutputTypeDef]]
|
|
@@ -1158,25 +1242,7 @@ class ContentBlockDeltaTypeDef(TypedDict):
|
|
|
1158
1242
|
toolResult: NotRequired[list[ToolResultBlockDeltaTypeDef]]
|
|
1159
1243
|
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
1160
1244
|
citation: NotRequired[CitationsDeltaTypeDef]
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
DocumentBlockTypeDef = TypedDict(
|
|
1164
|
-
"DocumentBlockTypeDef",
|
|
1165
|
-
{
|
|
1166
|
-
"name": str,
|
|
1167
|
-
"source": DocumentSourceUnionTypeDef,
|
|
1168
|
-
"format": NotRequired[DocumentFormatType],
|
|
1169
|
-
"context": NotRequired[str],
|
|
1170
|
-
"citations": NotRequired[CitationsConfigTypeDef],
|
|
1171
|
-
},
|
|
1172
|
-
)
|
|
1173
|
-
ImageBlockTypeDef = TypedDict(
|
|
1174
|
-
"ImageBlockTypeDef",
|
|
1175
|
-
{
|
|
1176
|
-
"format": ImageFormatType,
|
|
1177
|
-
"source": ImageSourceUnionTypeDef,
|
|
1178
|
-
},
|
|
1179
|
-
)
|
|
1245
|
+
image: NotRequired[ImageBlockDeltaTypeDef]
|
|
1180
1246
|
|
|
1181
1247
|
|
|
1182
1248
|
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
@@ -1188,11 +1254,14 @@ class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
|
1188
1254
|
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1189
1255
|
|
|
1190
1256
|
|
|
1191
|
-
|
|
1192
|
-
"
|
|
1257
|
+
DocumentBlockTypeDef = TypedDict(
|
|
1258
|
+
"DocumentBlockTypeDef",
|
|
1193
1259
|
{
|
|
1194
|
-
"
|
|
1195
|
-
"source":
|
|
1260
|
+
"name": str,
|
|
1261
|
+
"source": DocumentSourceUnionTypeDef,
|
|
1262
|
+
"format": NotRequired[DocumentFormatType],
|
|
1263
|
+
"context": NotRequired[str],
|
|
1264
|
+
"citations": NotRequired[CitationsConfigTypeDef],
|
|
1196
1265
|
},
|
|
1197
1266
|
)
|
|
1198
1267
|
|
|
@@ -1207,6 +1276,7 @@ class ToolConfigurationTypeDef(TypedDict):
|
|
|
1207
1276
|
toolChoice: NotRequired[ToolChoiceTypeDef]
|
|
1208
1277
|
|
|
1209
1278
|
|
|
1279
|
+
AudioBlockUnionTypeDef = Union[AudioBlockTypeDef, AudioBlockOutputTypeDef]
|
|
1210
1280
|
GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
1211
1281
|
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
1212
1282
|
]
|
|
@@ -1220,6 +1290,10 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
1220
1290
|
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
1221
1291
|
|
|
1222
1292
|
|
|
1293
|
+
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
1294
|
+
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
1295
|
+
|
|
1296
|
+
|
|
1223
1297
|
class CitationsContentBlockTypeDef(TypedDict):
|
|
1224
1298
|
content: NotRequired[Sequence[CitationGeneratedContentTypeDef]]
|
|
1225
1299
|
citations: NotRequired[Sequence[CitationUnionTypeDef]]
|
|
@@ -1230,8 +1304,6 @@ class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
|
1230
1304
|
contentBlockIndex: int
|
|
1231
1305
|
|
|
1232
1306
|
|
|
1233
|
-
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
1234
|
-
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
1235
1307
|
ToolResultBlockOutputTypeDef = TypedDict(
|
|
1236
1308
|
"ToolResultBlockOutputTypeDef",
|
|
1237
1309
|
{
|
|
@@ -1241,7 +1313,7 @@ ToolResultBlockOutputTypeDef = TypedDict(
|
|
|
1241
1313
|
"type": NotRequired[str],
|
|
1242
1314
|
},
|
|
1243
1315
|
)
|
|
1244
|
-
|
|
1316
|
+
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
1245
1317
|
|
|
1246
1318
|
|
|
1247
1319
|
class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
|
|
@@ -1269,6 +1341,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
1269
1341
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
1270
1342
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
1271
1343
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1344
|
+
audio: NotRequired[AudioBlockOutputTypeDef]
|
|
1272
1345
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
1273
1346
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
1274
1347
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
@@ -1373,6 +1446,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1373
1446
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
1374
1447
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
1375
1448
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1449
|
+
audio: NotRequired[AudioBlockUnionTypeDef]
|
|
1376
1450
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
1377
1451
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
1378
1452
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
@@ -26,6 +26,7 @@ from botocore.response import StreamingBody
|
|
|
26
26
|
|
|
27
27
|
from .literals import (
|
|
28
28
|
AsyncInvokeStatusType,
|
|
29
|
+
AudioFormatType,
|
|
29
30
|
ConversationRoleType,
|
|
30
31
|
DocumentFormatType,
|
|
31
32
|
GuardrailActionType,
|
|
@@ -73,6 +74,12 @@ __all__ = (
|
|
|
73
74
|
"AsyncInvokeOutputDataConfigTypeDef",
|
|
74
75
|
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
75
76
|
"AsyncInvokeSummaryTypeDef",
|
|
77
|
+
"AudioBlockOutputTypeDef",
|
|
78
|
+
"AudioBlockTypeDef",
|
|
79
|
+
"AudioBlockUnionTypeDef",
|
|
80
|
+
"AudioSourceOutputTypeDef",
|
|
81
|
+
"AudioSourceTypeDef",
|
|
82
|
+
"AudioSourceUnionTypeDef",
|
|
76
83
|
"BidirectionalInputPayloadPartTypeDef",
|
|
77
84
|
"BidirectionalOutputPayloadPartTypeDef",
|
|
78
85
|
"BlobTypeDef",
|
|
@@ -122,6 +129,7 @@ __all__ = (
|
|
|
122
129
|
"DocumentSourceOutputTypeDef",
|
|
123
130
|
"DocumentSourceTypeDef",
|
|
124
131
|
"DocumentSourceUnionTypeDef",
|
|
132
|
+
"ErrorBlockTypeDef",
|
|
125
133
|
"GetAsyncInvokeRequestTypeDef",
|
|
126
134
|
"GetAsyncInvokeResponseTypeDef",
|
|
127
135
|
"GuardrailAssessmentTypeDef",
|
|
@@ -176,7 +184,9 @@ __all__ = (
|
|
|
176
184
|
"GuardrailTraceAssessmentTypeDef",
|
|
177
185
|
"GuardrailUsageTypeDef",
|
|
178
186
|
"GuardrailWordPolicyAssessmentTypeDef",
|
|
187
|
+
"ImageBlockDeltaTypeDef",
|
|
179
188
|
"ImageBlockOutputTypeDef",
|
|
189
|
+
"ImageBlockStartTypeDef",
|
|
180
190
|
"ImageBlockTypeDef",
|
|
181
191
|
"ImageBlockUnionTypeDef",
|
|
182
192
|
"ImageSourceOutputTypeDef",
|
|
@@ -293,6 +303,13 @@ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
|
293
303
|
kmsKeyId: NotRequired[str]
|
|
294
304
|
bucketOwner: NotRequired[str]
|
|
295
305
|
|
|
306
|
+
class ErrorBlockTypeDef(TypedDict):
|
|
307
|
+
message: NotRequired[str]
|
|
308
|
+
|
|
309
|
+
class S3LocationTypeDef(TypedDict):
|
|
310
|
+
uri: str
|
|
311
|
+
bucketOwner: NotRequired[str]
|
|
312
|
+
|
|
296
313
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
297
314
|
BidirectionalOutputPayloadPartTypeDef = TypedDict(
|
|
298
315
|
"BidirectionalOutputPayloadPartTypeDef",
|
|
@@ -350,6 +367,7 @@ class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
|
350
367
|
|
|
351
368
|
class ToolResultBlockDeltaTypeDef(TypedDict):
|
|
352
369
|
text: NotRequired[str]
|
|
370
|
+
json: NotRequired[dict[str, Any]]
|
|
353
371
|
|
|
354
372
|
ToolUseBlockDeltaTypeDef = TypedDict(
|
|
355
373
|
"ToolUseBlockDeltaTypeDef",
|
|
@@ -366,6 +384,12 @@ ToolUseBlockOutputTypeDef = TypedDict(
|
|
|
366
384
|
"type": NotRequired[ToolUseTypeType],
|
|
367
385
|
},
|
|
368
386
|
)
|
|
387
|
+
ImageBlockStartTypeDef = TypedDict(
|
|
388
|
+
"ImageBlockStartTypeDef",
|
|
389
|
+
{
|
|
390
|
+
"format": ImageFormatType,
|
|
391
|
+
},
|
|
392
|
+
)
|
|
369
393
|
ToolResultBlockStartTypeDef = TypedDict(
|
|
370
394
|
"ToolResultBlockStartTypeDef",
|
|
371
395
|
{
|
|
@@ -459,10 +483,6 @@ class PromptRouterTraceTypeDef(TypedDict):
|
|
|
459
483
|
class DocumentContentBlockTypeDef(TypedDict):
|
|
460
484
|
text: NotRequired[str]
|
|
461
485
|
|
|
462
|
-
class S3LocationTypeDef(TypedDict):
|
|
463
|
-
uri: str
|
|
464
|
-
bucketOwner: NotRequired[str]
|
|
465
|
-
|
|
466
486
|
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
467
487
|
invocationArn: str
|
|
468
488
|
|
|
@@ -630,6 +650,34 @@ class StartAsyncInvokeResponseTypeDef(TypedDict):
|
|
|
630
650
|
class AsyncInvokeOutputDataConfigTypeDef(TypedDict):
|
|
631
651
|
s3OutputDataConfig: NotRequired[AsyncInvokeS3OutputDataConfigTypeDef]
|
|
632
652
|
|
|
653
|
+
AudioSourceOutputTypeDef = TypedDict(
|
|
654
|
+
"AudioSourceOutputTypeDef",
|
|
655
|
+
{
|
|
656
|
+
"bytes": NotRequired[bytes],
|
|
657
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
658
|
+
},
|
|
659
|
+
)
|
|
660
|
+
ImageSourceOutputTypeDef = TypedDict(
|
|
661
|
+
"ImageSourceOutputTypeDef",
|
|
662
|
+
{
|
|
663
|
+
"bytes": NotRequired[bytes],
|
|
664
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
665
|
+
},
|
|
666
|
+
)
|
|
667
|
+
VideoSourceOutputTypeDef = TypedDict(
|
|
668
|
+
"VideoSourceOutputTypeDef",
|
|
669
|
+
{
|
|
670
|
+
"bytes": NotRequired[bytes],
|
|
671
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
672
|
+
},
|
|
673
|
+
)
|
|
674
|
+
AudioSourceTypeDef = TypedDict(
|
|
675
|
+
"AudioSourceTypeDef",
|
|
676
|
+
{
|
|
677
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
678
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
679
|
+
},
|
|
680
|
+
)
|
|
633
681
|
BidirectionalInputPayloadPartTypeDef = TypedDict(
|
|
634
682
|
"BidirectionalInputPayloadPartTypeDef",
|
|
635
683
|
{
|
|
@@ -648,6 +696,13 @@ GuardrailImageSourceTypeDef = TypedDict(
|
|
|
648
696
|
"bytes": NotRequired[BlobTypeDef],
|
|
649
697
|
},
|
|
650
698
|
)
|
|
699
|
+
ImageSourceTypeDef = TypedDict(
|
|
700
|
+
"ImageSourceTypeDef",
|
|
701
|
+
{
|
|
702
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
703
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
704
|
+
},
|
|
705
|
+
)
|
|
651
706
|
|
|
652
707
|
class InvokeModelRequestTypeDef(TypedDict):
|
|
653
708
|
modelId: str
|
|
@@ -674,6 +729,14 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
|
674
729
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
675
730
|
serviceTier: NotRequired[ServiceTierTypeType]
|
|
676
731
|
|
|
732
|
+
VideoSourceTypeDef = TypedDict(
|
|
733
|
+
"VideoSourceTypeDef",
|
|
734
|
+
{
|
|
735
|
+
"bytes": NotRequired[BlobTypeDef],
|
|
736
|
+
"s3Location": NotRequired[S3LocationTypeDef],
|
|
737
|
+
},
|
|
738
|
+
)
|
|
739
|
+
|
|
677
740
|
class CitationLocationTypeDef(TypedDict):
|
|
678
741
|
web: NotRequired[WebLocationTypeDef]
|
|
679
742
|
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
@@ -684,6 +747,7 @@ class CitationLocationTypeDef(TypedDict):
|
|
|
684
747
|
class ContentBlockStartTypeDef(TypedDict):
|
|
685
748
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
686
749
|
toolResult: NotRequired[ToolResultBlockStartTypeDef]
|
|
750
|
+
image: NotRequired[ImageBlockStartTypeDef]
|
|
687
751
|
|
|
688
752
|
DocumentSourceOutputTypeDef = TypedDict(
|
|
689
753
|
"DocumentSourceOutputTypeDef",
|
|
@@ -703,34 +767,6 @@ DocumentSourceTypeDef = TypedDict(
|
|
|
703
767
|
"content": NotRequired[Sequence[DocumentContentBlockTypeDef]],
|
|
704
768
|
},
|
|
705
769
|
)
|
|
706
|
-
ImageSourceOutputTypeDef = TypedDict(
|
|
707
|
-
"ImageSourceOutputTypeDef",
|
|
708
|
-
{
|
|
709
|
-
"bytes": NotRequired[bytes],
|
|
710
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
711
|
-
},
|
|
712
|
-
)
|
|
713
|
-
ImageSourceTypeDef = TypedDict(
|
|
714
|
-
"ImageSourceTypeDef",
|
|
715
|
-
{
|
|
716
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
717
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
718
|
-
},
|
|
719
|
-
)
|
|
720
|
-
VideoSourceOutputTypeDef = TypedDict(
|
|
721
|
-
"VideoSourceOutputTypeDef",
|
|
722
|
-
{
|
|
723
|
-
"bytes": NotRequired[bytes],
|
|
724
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
725
|
-
},
|
|
726
|
-
)
|
|
727
|
-
VideoSourceTypeDef = TypedDict(
|
|
728
|
-
"VideoSourceTypeDef",
|
|
729
|
-
{
|
|
730
|
-
"bytes": NotRequired[BlobTypeDef],
|
|
731
|
-
"s3Location": NotRequired[S3LocationTypeDef],
|
|
732
|
-
},
|
|
733
|
-
)
|
|
734
770
|
GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
|
|
735
771
|
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
736
772
|
{
|
|
@@ -883,6 +919,36 @@ class StartAsyncInvokeRequestTypeDef(TypedDict):
|
|
|
883
919
|
clientRequestToken: NotRequired[str]
|
|
884
920
|
tags: NotRequired[Sequence[TagTypeDef]]
|
|
885
921
|
|
|
922
|
+
AudioBlockOutputTypeDef = TypedDict(
|
|
923
|
+
"AudioBlockOutputTypeDef",
|
|
924
|
+
{
|
|
925
|
+
"format": AudioFormatType,
|
|
926
|
+
"source": AudioSourceOutputTypeDef,
|
|
927
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
928
|
+
},
|
|
929
|
+
)
|
|
930
|
+
|
|
931
|
+
class ImageBlockDeltaTypeDef(TypedDict):
|
|
932
|
+
source: NotRequired[ImageSourceOutputTypeDef]
|
|
933
|
+
error: NotRequired[ErrorBlockTypeDef]
|
|
934
|
+
|
|
935
|
+
ImageBlockOutputTypeDef = TypedDict(
|
|
936
|
+
"ImageBlockOutputTypeDef",
|
|
937
|
+
{
|
|
938
|
+
"format": ImageFormatType,
|
|
939
|
+
"source": ImageSourceOutputTypeDef,
|
|
940
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
941
|
+
},
|
|
942
|
+
)
|
|
943
|
+
VideoBlockOutputTypeDef = TypedDict(
|
|
944
|
+
"VideoBlockOutputTypeDef",
|
|
945
|
+
{
|
|
946
|
+
"format": VideoFormatType,
|
|
947
|
+
"source": VideoSourceOutputTypeDef,
|
|
948
|
+
},
|
|
949
|
+
)
|
|
950
|
+
AudioSourceUnionTypeDef = Union[AudioSourceTypeDef, AudioSourceOutputTypeDef]
|
|
951
|
+
|
|
886
952
|
class InvokeModelWithBidirectionalStreamInputTypeDef(TypedDict):
|
|
887
953
|
chunk: NotRequired[BidirectionalInputPayloadPartTypeDef]
|
|
888
954
|
|
|
@@ -896,6 +962,8 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
896
962
|
"source": GuardrailImageSourceTypeDef,
|
|
897
963
|
},
|
|
898
964
|
)
|
|
965
|
+
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
966
|
+
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
899
967
|
|
|
900
968
|
class CitationOutputTypeDef(TypedDict):
|
|
901
969
|
title: NotRequired[str]
|
|
@@ -930,22 +998,6 @@ DocumentBlockOutputTypeDef = TypedDict(
|
|
|
930
998
|
},
|
|
931
999
|
)
|
|
932
1000
|
DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
|
|
933
|
-
ImageBlockOutputTypeDef = TypedDict(
|
|
934
|
-
"ImageBlockOutputTypeDef",
|
|
935
|
-
{
|
|
936
|
-
"format": ImageFormatType,
|
|
937
|
-
"source": ImageSourceOutputTypeDef,
|
|
938
|
-
},
|
|
939
|
-
)
|
|
940
|
-
ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
|
|
941
|
-
VideoBlockOutputTypeDef = TypedDict(
|
|
942
|
-
"VideoBlockOutputTypeDef",
|
|
943
|
-
{
|
|
944
|
-
"format": VideoFormatType,
|
|
945
|
-
"source": VideoSourceOutputTypeDef,
|
|
946
|
-
},
|
|
947
|
-
)
|
|
948
|
-
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
949
1001
|
|
|
950
1002
|
class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
|
|
951
1003
|
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
@@ -1007,6 +1059,15 @@ class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
|
1007
1059
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1008
1060
|
nextToken: NotRequired[str]
|
|
1009
1061
|
|
|
1062
|
+
AudioBlockTypeDef = TypedDict(
|
|
1063
|
+
"AudioBlockTypeDef",
|
|
1064
|
+
{
|
|
1065
|
+
"format": AudioFormatType,
|
|
1066
|
+
"source": AudioSourceUnionTypeDef,
|
|
1067
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
1068
|
+
},
|
|
1069
|
+
)
|
|
1070
|
+
|
|
1010
1071
|
class InvokeModelWithBidirectionalStreamRequestTypeDef(TypedDict):
|
|
1011
1072
|
modelId: str
|
|
1012
1073
|
body: EventStream[InvokeModelWithBidirectionalStreamInputTypeDef]
|
|
@@ -1023,6 +1084,22 @@ class GuardrailContentBlockTypeDef(TypedDict):
|
|
|
1023
1084
|
text: NotRequired[GuardrailTextBlockTypeDef]
|
|
1024
1085
|
image: NotRequired[GuardrailImageBlockTypeDef]
|
|
1025
1086
|
|
|
1087
|
+
ImageBlockTypeDef = TypedDict(
|
|
1088
|
+
"ImageBlockTypeDef",
|
|
1089
|
+
{
|
|
1090
|
+
"format": ImageFormatType,
|
|
1091
|
+
"source": ImageSourceUnionTypeDef,
|
|
1092
|
+
"error": NotRequired[ErrorBlockTypeDef],
|
|
1093
|
+
},
|
|
1094
|
+
)
|
|
1095
|
+
VideoBlockTypeDef = TypedDict(
|
|
1096
|
+
"VideoBlockTypeDef",
|
|
1097
|
+
{
|
|
1098
|
+
"format": VideoFormatType,
|
|
1099
|
+
"source": VideoSourceUnionTypeDef,
|
|
1100
|
+
},
|
|
1101
|
+
)
|
|
1102
|
+
|
|
1026
1103
|
class CitationsContentBlockOutputTypeDef(TypedDict):
|
|
1027
1104
|
content: NotRequired[list[CitationGeneratedContentTypeDef]]
|
|
1028
1105
|
citations: NotRequired[list[CitationOutputTypeDef]]
|
|
@@ -1035,24 +1112,7 @@ class ContentBlockDeltaTypeDef(TypedDict):
|
|
|
1035
1112
|
toolResult: NotRequired[list[ToolResultBlockDeltaTypeDef]]
|
|
1036
1113
|
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
1037
1114
|
citation: NotRequired[CitationsDeltaTypeDef]
|
|
1038
|
-
|
|
1039
|
-
DocumentBlockTypeDef = TypedDict(
|
|
1040
|
-
"DocumentBlockTypeDef",
|
|
1041
|
-
{
|
|
1042
|
-
"name": str,
|
|
1043
|
-
"source": DocumentSourceUnionTypeDef,
|
|
1044
|
-
"format": NotRequired[DocumentFormatType],
|
|
1045
|
-
"context": NotRequired[str],
|
|
1046
|
-
"citations": NotRequired[CitationsConfigTypeDef],
|
|
1047
|
-
},
|
|
1048
|
-
)
|
|
1049
|
-
ImageBlockTypeDef = TypedDict(
|
|
1050
|
-
"ImageBlockTypeDef",
|
|
1051
|
-
{
|
|
1052
|
-
"format": ImageFormatType,
|
|
1053
|
-
"source": ImageSourceUnionTypeDef,
|
|
1054
|
-
},
|
|
1055
|
-
)
|
|
1115
|
+
image: NotRequired[ImageBlockDeltaTypeDef]
|
|
1056
1116
|
|
|
1057
1117
|
class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
1058
1118
|
json: NotRequired[dict[str, Any]]
|
|
@@ -1062,11 +1122,14 @@ class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
|
1062
1122
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1063
1123
|
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1064
1124
|
|
|
1065
|
-
|
|
1066
|
-
"
|
|
1125
|
+
DocumentBlockTypeDef = TypedDict(
|
|
1126
|
+
"DocumentBlockTypeDef",
|
|
1067
1127
|
{
|
|
1068
|
-
"
|
|
1069
|
-
"source":
|
|
1128
|
+
"name": str,
|
|
1129
|
+
"source": DocumentSourceUnionTypeDef,
|
|
1130
|
+
"format": NotRequired[DocumentFormatType],
|
|
1131
|
+
"context": NotRequired[str],
|
|
1132
|
+
"citations": NotRequired[CitationsConfigTypeDef],
|
|
1070
1133
|
},
|
|
1071
1134
|
)
|
|
1072
1135
|
|
|
@@ -1078,6 +1141,7 @@ class ToolConfigurationTypeDef(TypedDict):
|
|
|
1078
1141
|
tools: Sequence[ToolTypeDef]
|
|
1079
1142
|
toolChoice: NotRequired[ToolChoiceTypeDef]
|
|
1080
1143
|
|
|
1144
|
+
AudioBlockUnionTypeDef = Union[AudioBlockTypeDef, AudioBlockOutputTypeDef]
|
|
1081
1145
|
GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
1082
1146
|
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
1083
1147
|
]
|
|
@@ -1089,6 +1153,9 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
1089
1153
|
content: Sequence[GuardrailContentBlockTypeDef]
|
|
1090
1154
|
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
1091
1155
|
|
|
1156
|
+
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
1157
|
+
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
1158
|
+
|
|
1092
1159
|
class CitationsContentBlockTypeDef(TypedDict):
|
|
1093
1160
|
content: NotRequired[Sequence[CitationGeneratedContentTypeDef]]
|
|
1094
1161
|
citations: NotRequired[Sequence[CitationUnionTypeDef]]
|
|
@@ -1097,8 +1164,6 @@ class ContentBlockDeltaEventTypeDef(TypedDict):
|
|
|
1097
1164
|
delta: ContentBlockDeltaTypeDef
|
|
1098
1165
|
contentBlockIndex: int
|
|
1099
1166
|
|
|
1100
|
-
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
1101
|
-
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
1102
1167
|
ToolResultBlockOutputTypeDef = TypedDict(
|
|
1103
1168
|
"ToolResultBlockOutputTypeDef",
|
|
1104
1169
|
{
|
|
@@ -1108,7 +1173,7 @@ ToolResultBlockOutputTypeDef = TypedDict(
|
|
|
1108
1173
|
"type": NotRequired[str],
|
|
1109
1174
|
},
|
|
1110
1175
|
)
|
|
1111
|
-
|
|
1176
|
+
DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
|
|
1112
1177
|
|
|
1113
1178
|
class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
|
|
1114
1179
|
valid: NotRequired[GuardrailAutomatedReasoningValidFindingTypeDef]
|
|
@@ -1132,6 +1197,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
1132
1197
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
1133
1198
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
1134
1199
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1200
|
+
audio: NotRequired[AudioBlockOutputTypeDef]
|
|
1135
1201
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
1136
1202
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
1137
1203
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
@@ -1221,6 +1287,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1221
1287
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
1222
1288
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
1223
1289
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1290
|
+
audio: NotRequired[AudioBlockUnionTypeDef]
|
|
1224
1291
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
1225
1292
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
1226
1293
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
@@ -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.42.1
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.42.1 service generated with mypy-boto3-builder 8.12.0
|
|
5
5
|
Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
|
|
@@ -43,7 +43,7 @@ Dynamic: license-file
|
|
|
43
43
|

|
|
44
44
|
|
|
45
45
|
Type annotations for
|
|
46
|
-
[boto3 BedrockRuntime 1.
|
|
46
|
+
[boto3 BedrockRuntime 1.42.1](https://pypi.org/project/boto3/) compatible with
|
|
47
47
|
[VSCode](https://code.visualstudio.com/),
|
|
48
48
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
49
49
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -105,7 +105,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
105
105
|
isolation.
|
|
106
106
|
|
|
107
107
|
1. Run mypy-boto3-builder in your package root directory:
|
|
108
|
-
`uvx --with 'boto3==1.
|
|
108
|
+
`uvx --with 'boto3==1.42.1' mypy-boto3-builder`
|
|
109
109
|
2. Select `boto3` AWS SDK.
|
|
110
110
|
3. Add `BedrockRuntime` service.
|
|
111
111
|
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=dWTxdjd766U-guR4W8kENHsCjG1PQan8HWKg_3Jy8bU,1012
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=gN_nm5GKPuUjmMh_qvJGHuSNHcm5-ui7FPQ3KyWiAxc,9982
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=Ypg7CxQjo36qHy8fF2l6-cT9SIfHDxZNeVzCQNAccyE,9979
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=-5uUBx3C5iB3Khro_ZWF5uIXik1_Iz1yHMBdrYFhmF8,14219
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=nwZsSmdKpIVerDb3qbcVYvsvn_f4K_QyELYR6egRRrs,14217
|
|
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=QcZXi9lKJp5bl6z300G9Go7oU22jSCSe_-tIMPfFGoA,47988
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=NLCtG-qc_1RhhjEttGHsGVjhPQnSlYfX2P02ZwjMSHA,47817
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=nFxzsYqk1BeqDcbp-RkRddO2jlAbrmo18h7jWxl5AAk,92
|
|
14
|
+
types_boto3_bedrock_runtime-1.42.1.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.42.1.dist-info/METADATA,sha256=E08nFfxpM3IMKVZho0c9KLL1LA0YCY72eTmkY8FlWlU,15074
|
|
16
|
+
types_boto3_bedrock_runtime-1.42.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.42.1.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.42.1.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=PvLd8NAxHagZ-AP1IdEX6y0d3XXR5NzR1H3cMHPBeio,1012
|
|
4
|
-
types_boto3_bedrock_runtime/client.py,sha256=gN_nm5GKPuUjmMh_qvJGHuSNHcm5-ui7FPQ3KyWiAxc,9982
|
|
5
|
-
types_boto3_bedrock_runtime/client.pyi,sha256=Ypg7CxQjo36qHy8fF2l6-cT9SIfHDxZNeVzCQNAccyE,9979
|
|
6
|
-
types_boto3_bedrock_runtime/literals.py,sha256=ry16qawKf1KxGEr3DMBI6ubwlgXf4FuCz1kFDJJsoWM,13833
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=Boxe-6_ayVQ6i70rwbbgqojDO5QlJ5egHhiA8UtM4no,13831
|
|
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=tFScpqCmGO7LCEaO6Jf7ghI07ppqT5xO7S5HxPuDBsQ,46145
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=GXkRMpBjr6xdr5H_uTZqnbhsqgOUvQwOAlj5-LehVaE,45981
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=uSWXUazM09rFsqSbYKWAx0mKGYVExnEtGm9hYKyNBFs,92
|
|
14
|
-
types_boto3_bedrock_runtime-1.41.5.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.41.5.dist-info/METADATA,sha256=guiT2jHVUTrP5GiE4e7mHBObKLuuXtUtv7jwI16zElA,15074
|
|
16
|
-
types_boto3_bedrock_runtime-1.41.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.41.5.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.41.5.dist-info/RECORD,,
|
{types_boto3_bedrock_runtime-1.41.5.dist-info → types_boto3_bedrock_runtime-1.42.1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|