types-boto3-bedrock-runtime 1.40.62__py3-none-any.whl → 1.40.76__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.
@@ -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.40.62\n"
16
- "Version: 1.40.62\n"
17
- "Builder version: 8.11.0\n"
15
+ "Type annotations for boto3 BedrockRuntime 1.40.76\n"
16
+ "Version: 1.40.76\n"
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"
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.40.62\n")
29
+ sys.stdout.write("1.40.76\n")
30
30
 
31
31
 
32
32
  def main() -> None:
@@ -19,6 +19,7 @@ Usage::
19
19
  from __future__ import annotations
20
20
 
21
21
  import sys
22
+ from collections.abc import Mapping
22
23
  from typing import Any
23
24
 
24
25
  from botocore.client import BaseClient, ClientMeta
@@ -49,11 +50,6 @@ from .type_defs import (
49
50
  StartAsyncInvokeResponseTypeDef,
50
51
  )
51
52
 
52
- if sys.version_info >= (3, 9):
53
- from builtins import type as Type
54
- from collections.abc import Mapping
55
- else:
56
- from typing import Mapping, Type
57
53
  if sys.version_info >= (3, 12):
58
54
  from typing import Literal, Unpack
59
55
  else:
@@ -64,19 +60,19 @@ __all__ = ("BedrockRuntimeClient",)
64
60
 
65
61
 
66
62
  class Exceptions(BaseClientExceptions):
67
- AccessDeniedException: Type[BotocoreClientError]
68
- ClientError: Type[BotocoreClientError]
69
- ConflictException: Type[BotocoreClientError]
70
- InternalServerException: Type[BotocoreClientError]
71
- ModelErrorException: Type[BotocoreClientError]
72
- ModelNotReadyException: Type[BotocoreClientError]
73
- ModelStreamErrorException: Type[BotocoreClientError]
74
- ModelTimeoutException: Type[BotocoreClientError]
75
- ResourceNotFoundException: Type[BotocoreClientError]
76
- ServiceQuotaExceededException: Type[BotocoreClientError]
77
- ServiceUnavailableException: Type[BotocoreClientError]
78
- ThrottlingException: Type[BotocoreClientError]
79
- ValidationException: Type[BotocoreClientError]
63
+ AccessDeniedException: type[BotocoreClientError]
64
+ ClientError: type[BotocoreClientError]
65
+ ConflictException: type[BotocoreClientError]
66
+ InternalServerException: type[BotocoreClientError]
67
+ ModelErrorException: type[BotocoreClientError]
68
+ ModelNotReadyException: type[BotocoreClientError]
69
+ ModelStreamErrorException: type[BotocoreClientError]
70
+ ModelTimeoutException: type[BotocoreClientError]
71
+ ResourceNotFoundException: type[BotocoreClientError]
72
+ ServiceQuotaExceededException: type[BotocoreClientError]
73
+ ServiceUnavailableException: type[BotocoreClientError]
74
+ ThrottlingException: type[BotocoreClientError]
75
+ ValidationException: type[BotocoreClientError]
80
76
 
81
77
 
82
78
  class BedrockRuntimeClient(BaseClient):
@@ -19,6 +19,7 @@ Usage::
19
19
  from __future__ import annotations
20
20
 
21
21
  import sys
22
+ from collections.abc import Mapping
22
23
  from typing import Any
23
24
 
24
25
  from botocore.client import BaseClient, ClientMeta
@@ -49,11 +50,6 @@ from .type_defs import (
49
50
  StartAsyncInvokeResponseTypeDef,
50
51
  )
51
52
 
52
- if sys.version_info >= (3, 9):
53
- from builtins import type as Type
54
- from collections.abc import Mapping
55
- else:
56
- from typing import Mapping, Type
57
53
  if sys.version_info >= (3, 12):
58
54
  from typing import Literal, Unpack
59
55
  else:
@@ -62,19 +58,19 @@ else:
62
58
  __all__ = ("BedrockRuntimeClient",)
63
59
 
64
60
  class Exceptions(BaseClientExceptions):
65
- AccessDeniedException: Type[BotocoreClientError]
66
- ClientError: Type[BotocoreClientError]
67
- ConflictException: Type[BotocoreClientError]
68
- InternalServerException: Type[BotocoreClientError]
69
- ModelErrorException: Type[BotocoreClientError]
70
- ModelNotReadyException: Type[BotocoreClientError]
71
- ModelStreamErrorException: Type[BotocoreClientError]
72
- ModelTimeoutException: Type[BotocoreClientError]
73
- ResourceNotFoundException: Type[BotocoreClientError]
74
- ServiceQuotaExceededException: Type[BotocoreClientError]
75
- ServiceUnavailableException: Type[BotocoreClientError]
76
- ThrottlingException: Type[BotocoreClientError]
77
- ValidationException: Type[BotocoreClientError]
61
+ AccessDeniedException: type[BotocoreClientError]
62
+ ClientError: type[BotocoreClientError]
63
+ ConflictException: type[BotocoreClientError]
64
+ InternalServerException: type[BotocoreClientError]
65
+ ModelErrorException: type[BotocoreClientError]
66
+ ModelNotReadyException: type[BotocoreClientError]
67
+ ModelStreamErrorException: type[BotocoreClientError]
68
+ ModelTimeoutException: type[BotocoreClientError]
69
+ ResourceNotFoundException: type[BotocoreClientError]
70
+ ServiceQuotaExceededException: type[BotocoreClientError]
71
+ ServiceUnavailableException: type[BotocoreClientError]
72
+ ThrottlingException: type[BotocoreClientError]
73
+ ValidationException: type[BotocoreClientError]
78
74
 
79
75
  class BedrockRuntimeClient(BaseClient):
80
76
  """
@@ -56,6 +56,7 @@ __all__ = (
56
56
  "PerformanceConfigLatencyType",
57
57
  "ResourceServiceName",
58
58
  "ServiceName",
59
+ "ServiceTierTypeType",
59
60
  "SortAsyncInvocationByType",
60
61
  "SortOrderType",
61
62
  "StopReasonType",
@@ -129,6 +130,7 @@ GuardrailWordPolicyActionType = Literal["BLOCKED", "NONE"]
129
130
  ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
130
131
  ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
131
132
  PerformanceConfigLatencyType = Literal["optimized", "standard"]
133
+ ServiceTierTypeType = Literal["default", "flex", "priority"]
132
134
  SortAsyncInvocationByType = Literal["SubmissionTime"]
133
135
  SortOrderType = Literal["Ascending", "Descending"]
134
136
  StopReasonType = Literal[
@@ -141,7 +143,7 @@ StopReasonType = Literal[
141
143
  "tool_use",
142
144
  ]
143
145
  ToolResultStatusType = Literal["error", "success"]
144
- ToolUseTypeType = Literal["server_tool_use"]
146
+ ToolUseTypeType = Literal["server_tool_use", "tool_use"]
145
147
  TraceType = Literal["DISABLED", "ENABLED", "ENABLED_FULL"]
146
148
  VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
147
149
  BedrockRuntimeServiceName = Literal["bedrock-runtime"]
@@ -410,6 +412,7 @@ ServiceName = Literal[
410
412
  "mq",
411
413
  "mturk",
412
414
  "mwaa",
415
+ "mwaa-serverless",
413
416
  "neptune",
414
417
  "neptune-graph",
415
418
  "neptunedata",
@@ -55,6 +55,7 @@ __all__ = (
55
55
  "PerformanceConfigLatencyType",
56
56
  "ResourceServiceName",
57
57
  "ServiceName",
58
+ "ServiceTierTypeType",
58
59
  "SortAsyncInvocationByType",
59
60
  "SortOrderType",
60
61
  "StopReasonType",
@@ -127,6 +128,7 @@ GuardrailWordPolicyActionType = Literal["BLOCKED", "NONE"]
127
128
  ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
128
129
  ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
129
130
  PerformanceConfigLatencyType = Literal["optimized", "standard"]
131
+ ServiceTierTypeType = Literal["default", "flex", "priority"]
130
132
  SortAsyncInvocationByType = Literal["SubmissionTime"]
131
133
  SortOrderType = Literal["Ascending", "Descending"]
132
134
  StopReasonType = Literal[
@@ -139,7 +141,7 @@ StopReasonType = Literal[
139
141
  "tool_use",
140
142
  ]
141
143
  ToolResultStatusType = Literal["error", "success"]
142
- ToolUseTypeType = Literal["server_tool_use"]
144
+ ToolUseTypeType = Literal["server_tool_use", "tool_use"]
143
145
  TraceType = Literal["DISABLED", "ENABLED", "ENABLED_FULL"]
144
146
  VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
145
147
  BedrockRuntimeServiceName = Literal["bedrock-runtime"]
@@ -408,6 +410,7 @@ ServiceName = Literal[
408
410
  "mq",
409
411
  "mturk",
410
412
  "mwaa",
413
+ "mwaa-serverless",
411
414
  "neptune",
412
415
  "neptune-graph",
413
416
  "neptunedata",
@@ -17,6 +17,7 @@ Usage::
17
17
  from __future__ import annotations
18
18
 
19
19
  import sys
20
+ from collections.abc import Mapping, Sequence
20
21
  from datetime import datetime
21
22
  from typing import IO, Any, Union
22
23
 
@@ -49,19 +50,15 @@ from .literals import (
49
50
  GuardrailWordPolicyActionType,
50
51
  ImageFormatType,
51
52
  PerformanceConfigLatencyType,
53
+ ServiceTierTypeType,
52
54
  SortOrderType,
53
55
  StopReasonType,
54
56
  ToolResultStatusType,
57
+ ToolUseTypeType,
55
58
  TraceType,
56
59
  VideoFormatType,
57
60
  )
58
61
 
59
- if sys.version_info >= (3, 9):
60
- from builtins import dict as Dict
61
- from builtins import list as List
62
- from collections.abc import Mapping, Sequence
63
- else:
64
- from typing import Dict, List, Mapping, Sequence
65
62
  if sys.version_info >= (3, 12):
66
63
  from typing import Literal, NotRequired, TypedDict
67
64
  else:
@@ -217,6 +214,7 @@ __all__ = (
217
214
  "ResponseMetadataTypeDef",
218
215
  "ResponseStreamTypeDef",
219
216
  "S3LocationTypeDef",
217
+ "ServiceTierTypeDef",
220
218
  "ServiceUnavailableExceptionTypeDef",
221
219
  "SpecificToolChoiceTypeDef",
222
220
  "StartAsyncInvokeRequestTypeDef",
@@ -275,7 +273,7 @@ class GuardrailUsageTypeDef(TypedDict):
275
273
  class ResponseMetadataTypeDef(TypedDict):
276
274
  RequestId: str
277
275
  HTTPStatusCode: int
278
- HTTPHeaders: Dict[str, str]
276
+ HTTPHeaders: dict[str, str]
279
277
  RetryAttempts: int
280
278
  HostId: NotRequired[str]
281
279
 
@@ -361,8 +359,8 @@ ToolUseBlockOutputTypeDef = TypedDict(
361
359
  {
362
360
  "toolUseId": str,
363
361
  "name": str,
364
- "input": Dict[str, Any],
365
- "type": NotRequired[Literal["server_tool_use"]],
362
+ "input": dict[str, Any],
363
+ "type": NotRequired[ToolUseTypeType],
366
364
  },
367
365
  )
368
366
  ToolResultBlockStartTypeDef = TypedDict(
@@ -378,7 +376,7 @@ ToolUseBlockStartTypeDef = TypedDict(
378
376
  {
379
377
  "toolUseId": str,
380
378
  "name": str,
381
- "type": NotRequired[Literal["server_tool_use"]],
379
+ "type": NotRequired[ToolUseTypeType],
382
380
  },
383
381
  )
384
382
 
@@ -412,6 +410,14 @@ class PromptVariableValuesTypeDef(TypedDict):
412
410
  text: NotRequired[str]
413
411
 
414
412
 
413
+ ServiceTierTypeDef = TypedDict(
414
+ "ServiceTierTypeDef",
415
+ {
416
+ "type": ServiceTierTypeType,
417
+ },
418
+ )
419
+
420
+
415
421
  class TokenUsageTypeDef(TypedDict):
416
422
  inputTokens: int
417
423
  outputTokens: int
@@ -434,7 +440,7 @@ class MessageStartEventTypeDef(TypedDict):
434
440
 
435
441
  class MessageStopEventTypeDef(TypedDict):
436
442
  stopReason: StopReasonType
437
- additionalModelResponseFields: NotRequired[Dict[str, Any]]
443
+ additionalModelResponseFields: NotRequired[dict[str, Any]]
438
444
 
439
445
 
440
446
  class ModelStreamErrorExceptionTypeDef(TypedDict):
@@ -522,7 +528,7 @@ GuardrailContextualGroundingFilterTypeDef = TypedDict(
522
528
 
523
529
  class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
524
530
  text: str
525
- qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
531
+ qualifiers: NotRequired[list[GuardrailConverseContentQualifierType]]
526
532
 
527
533
 
528
534
  GuardrailConverseImageSourceOutputTypeDef = TypedDict(
@@ -640,7 +646,7 @@ ToolUseBlockTypeDef = TypedDict(
640
646
  "toolUseId": str,
641
647
  "name": str,
642
648
  "input": Mapping[str, Any],
643
- "type": NotRequired[Literal["server_tool_use"]],
649
+ "type": NotRequired[ToolUseTypeType],
644
650
  },
645
651
  )
646
652
 
@@ -654,6 +660,7 @@ class InvokeModelResponseTypeDef(TypedDict):
654
660
  body: StreamingBody
655
661
  contentType: str
656
662
  performanceConfigLatency: PerformanceConfigLatencyType
663
+ serviceTier: ServiceTierTypeType
657
664
  ResponseMetadata: ResponseMetadataTypeDef
658
665
 
659
666
 
@@ -695,6 +702,7 @@ class InvokeModelRequestTypeDef(TypedDict):
695
702
  guardrailIdentifier: NotRequired[str]
696
703
  guardrailVersion: NotRequired[str]
697
704
  performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
705
+ serviceTier: NotRequired[ServiceTierTypeType]
698
706
 
699
707
 
700
708
  class InvokeModelTokensRequestTypeDef(TypedDict):
@@ -710,6 +718,7 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
710
718
  guardrailIdentifier: NotRequired[str]
711
719
  guardrailVersion: NotRequired[str]
712
720
  performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
721
+ serviceTier: NotRequired[ServiceTierTypeType]
713
722
 
714
723
 
715
724
  class CitationLocationTypeDef(TypedDict):
@@ -730,7 +739,7 @@ DocumentSourceOutputTypeDef = TypedDict(
730
739
  "bytes": NotRequired[bytes],
731
740
  "s3Location": NotRequired[S3LocationTypeDef],
732
741
  "text": NotRequired[str],
733
- "content": NotRequired[List[DocumentContentBlockTypeDef]],
742
+ "content": NotRequired[list[DocumentContentBlockTypeDef]],
734
743
  },
735
744
  )
736
745
  DocumentSourceTypeDef = TypedDict(
@@ -774,30 +783,30 @@ GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
774
783
  "GuardrailAutomatedReasoningLogicWarningTypeDef",
775
784
  {
776
785
  "type": NotRequired[GuardrailAutomatedReasoningLogicWarningTypeType],
777
- "premises": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
778
- "claims": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
786
+ "premises": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
787
+ "claims": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
779
788
  },
780
789
  )
781
790
 
782
791
 
783
792
  class GuardrailAutomatedReasoningScenarioTypeDef(TypedDict):
784
- statements: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
793
+ statements: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
785
794
 
786
795
 
787
796
  class GuardrailAutomatedReasoningTranslationTypeDef(TypedDict):
788
- premises: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
789
- claims: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
790
- untranslatedPremises: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
791
- untranslatedClaims: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
797
+ premises: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
798
+ claims: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
799
+ untranslatedPremises: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
800
+ untranslatedClaims: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
792
801
  confidence: NotRequired[float]
793
802
 
794
803
 
795
804
  class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
796
- filters: List[GuardrailContentFilterTypeDef]
805
+ filters: list[GuardrailContentFilterTypeDef]
797
806
 
798
807
 
799
808
  class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
800
- filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
809
+ filters: NotRequired[list[GuardrailContextualGroundingFilterTypeDef]]
801
810
 
802
811
 
803
812
  GuardrailConverseImageBlockOutputTypeDef = TypedDict(
@@ -818,17 +827,17 @@ class GuardrailCoverageTypeDef(TypedDict):
818
827
 
819
828
 
820
829
  class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
821
- customWords: List[GuardrailCustomWordTypeDef]
822
- managedWordLists: List[GuardrailManagedWordTypeDef]
830
+ customWords: list[GuardrailCustomWordTypeDef]
831
+ managedWordLists: list[GuardrailManagedWordTypeDef]
823
832
 
824
833
 
825
834
  class GuardrailSensitiveInformationPolicyAssessmentTypeDef(TypedDict):
826
- piiEntities: List[GuardrailPiiEntityFilterTypeDef]
827
- regexes: List[GuardrailRegexFilterTypeDef]
835
+ piiEntities: list[GuardrailPiiEntityFilterTypeDef]
836
+ regexes: list[GuardrailRegexFilterTypeDef]
828
837
 
829
838
 
830
839
  class GuardrailTopicPolicyAssessmentTypeDef(TypedDict):
831
- topics: List[GuardrailTopicTypeDef]
840
+ topics: list[GuardrailTopicTypeDef]
832
841
 
833
842
 
834
843
  class InvokeModelWithBidirectionalStreamOutputTypeDef(TypedDict):
@@ -950,7 +959,7 @@ GuardrailImageBlockTypeDef = TypedDict(
950
959
 
951
960
  class CitationOutputTypeDef(TypedDict):
952
961
  title: NotRequired[str]
953
- sourceContent: NotRequired[List[CitationSourceContentTypeDef]]
962
+ sourceContent: NotRequired[list[CitationSourceContentTypeDef]]
954
963
  location: NotRequired[CitationLocationTypeDef]
955
964
 
956
965
 
@@ -962,7 +971,7 @@ class CitationTypeDef(TypedDict):
962
971
 
963
972
  class CitationsDeltaTypeDef(TypedDict):
964
973
  title: NotRequired[str]
965
- sourceContent: NotRequired[List[CitationSourceContentDeltaTypeDef]]
974
+ sourceContent: NotRequired[list[CitationSourceContentDeltaTypeDef]]
966
975
  location: NotRequired[CitationLocationTypeDef]
967
976
 
968
977
 
@@ -1002,13 +1011,13 @@ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
1002
1011
 
1003
1012
  class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
1004
1013
  translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
1005
- contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
1014
+ contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
1006
1015
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
1007
1016
 
1008
1017
 
1009
1018
  class GuardrailAutomatedReasoningInvalidFindingTypeDef(TypedDict):
1010
1019
  translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
1011
- contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
1020
+ contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
1012
1021
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
1013
1022
 
1014
1023
 
@@ -1020,13 +1029,13 @@ class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
1020
1029
 
1021
1030
 
1022
1031
  class GuardrailAutomatedReasoningTranslationOptionTypeDef(TypedDict):
1023
- translations: NotRequired[List[GuardrailAutomatedReasoningTranslationTypeDef]]
1032
+ translations: NotRequired[list[GuardrailAutomatedReasoningTranslationTypeDef]]
1024
1033
 
1025
1034
 
1026
1035
  class GuardrailAutomatedReasoningValidFindingTypeDef(TypedDict):
1027
1036
  translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
1028
1037
  claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
1029
- supportingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
1038
+ supportingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
1030
1039
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
1031
1040
 
1032
1041
 
@@ -1050,6 +1059,7 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
1050
1059
  body: EventStream[ResponseStreamTypeDef]
1051
1060
  contentType: str
1052
1061
  performanceConfigLatency: PerformanceConfigLatencyType
1062
+ serviceTier: ServiceTierTypeType
1053
1063
  ResponseMetadata: ResponseMetadataTypeDef
1054
1064
 
1055
1065
 
@@ -1065,7 +1075,7 @@ class ToolTypeDef(TypedDict):
1065
1075
 
1066
1076
 
1067
1077
  class ListAsyncInvokesResponseTypeDef(TypedDict):
1068
- asyncInvokeSummaries: List[AsyncInvokeSummaryTypeDef]
1078
+ asyncInvokeSummaries: list[AsyncInvokeSummaryTypeDef]
1069
1079
  ResponseMetadata: ResponseMetadataTypeDef
1070
1080
  nextToken: NotRequired[str]
1071
1081
 
@@ -1090,8 +1100,8 @@ class GuardrailContentBlockTypeDef(TypedDict):
1090
1100
 
1091
1101
 
1092
1102
  class CitationsContentBlockOutputTypeDef(TypedDict):
1093
- content: NotRequired[List[CitationGeneratedContentTypeDef]]
1094
- citations: NotRequired[List[CitationOutputTypeDef]]
1103
+ content: NotRequired[list[CitationGeneratedContentTypeDef]]
1104
+ citations: NotRequired[list[CitationOutputTypeDef]]
1095
1105
 
1096
1106
 
1097
1107
  CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
@@ -1100,7 +1110,7 @@ CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
1100
1110
  class ContentBlockDeltaTypeDef(TypedDict):
1101
1111
  text: NotRequired[str]
1102
1112
  toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
1103
- toolResult: NotRequired[List[ToolResultBlockDeltaTypeDef]]
1113
+ toolResult: NotRequired[list[ToolResultBlockDeltaTypeDef]]
1104
1114
  reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
1105
1115
  citation: NotRequired[CitationsDeltaTypeDef]
1106
1116
 
@@ -1125,7 +1135,7 @@ ImageBlockTypeDef = TypedDict(
1125
1135
 
1126
1136
 
1127
1137
  class ToolResultContentBlockOutputTypeDef(TypedDict):
1128
- json: NotRequired[Dict[str, Any]]
1138
+ json: NotRequired[dict[str, Any]]
1129
1139
  text: NotRequired[str]
1130
1140
  image: NotRequired[ImageBlockOutputTypeDef]
1131
1141
  document: NotRequired[DocumentBlockOutputTypeDef]
@@ -1142,8 +1152,8 @@ VideoBlockTypeDef = TypedDict(
1142
1152
 
1143
1153
 
1144
1154
  class GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef(TypedDict):
1145
- options: NotRequired[List[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
1146
- differenceScenarios: NotRequired[List[GuardrailAutomatedReasoningScenarioTypeDef]]
1155
+ options: NotRequired[list[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
1156
+ differenceScenarios: NotRequired[list[GuardrailAutomatedReasoningScenarioTypeDef]]
1147
1157
 
1148
1158
 
1149
1159
  class ToolConfigurationTypeDef(TypedDict):
@@ -1180,7 +1190,7 @@ ToolResultBlockOutputTypeDef = TypedDict(
1180
1190
  "ToolResultBlockOutputTypeDef",
1181
1191
  {
1182
1192
  "toolUseId": str,
1183
- "content": List[ToolResultContentBlockOutputTypeDef],
1193
+ "content": list[ToolResultContentBlockOutputTypeDef],
1184
1194
  "status": NotRequired[ToolResultStatusType],
1185
1195
  "type": NotRequired[str],
1186
1196
  },
@@ -1194,8 +1204,8 @@ class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
1194
1204
  satisfiable: NotRequired[GuardrailAutomatedReasoningSatisfiableFindingTypeDef]
1195
1205
  impossible: NotRequired[GuardrailAutomatedReasoningImpossibleFindingTypeDef]
1196
1206
  translationAmbiguous: NotRequired[GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef]
1197
- tooComplex: NotRequired[Dict[str, Any]]
1198
- noTranslations: NotRequired[Dict[str, Any]]
1207
+ tooComplex: NotRequired[dict[str, Any]]
1208
+ noTranslations: NotRequired[dict[str, Any]]
1199
1209
 
1200
1210
 
1201
1211
  class GuardrailConverseContentBlockTypeDef(TypedDict):
@@ -1230,7 +1240,7 @@ class ToolResultContentBlockTypeDef(TypedDict):
1230
1240
 
1231
1241
 
1232
1242
  class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
1233
- findings: NotRequired[List[GuardrailAutomatedReasoningFindingTypeDef]]
1243
+ findings: NotRequired[list[GuardrailAutomatedReasoningFindingTypeDef]]
1234
1244
 
1235
1245
 
1236
1246
  GuardrailConverseContentBlockUnionTypeDef = Union[
@@ -1240,7 +1250,7 @@ GuardrailConverseContentBlockUnionTypeDef = Union[
1240
1250
 
1241
1251
  class MessageOutputTypeDef(TypedDict):
1242
1252
  role: ConversationRoleType
1243
- content: List[ContentBlockOutputTypeDef]
1253
+ content: list[ContentBlockOutputTypeDef]
1244
1254
 
1245
1255
 
1246
1256
  ToolResultContentBlockUnionTypeDef = Union[
@@ -1283,16 +1293,16 @@ class ApplyGuardrailResponseTypeDef(TypedDict):
1283
1293
  usage: GuardrailUsageTypeDef
1284
1294
  action: GuardrailActionType
1285
1295
  actionReason: str
1286
- outputs: List[GuardrailOutputContentTypeDef]
1287
- assessments: List[GuardrailAssessmentTypeDef]
1296
+ outputs: list[GuardrailOutputContentTypeDef]
1297
+ assessments: list[GuardrailAssessmentTypeDef]
1288
1298
  guardrailCoverage: GuardrailCoverageTypeDef
1289
1299
  ResponseMetadata: ResponseMetadataTypeDef
1290
1300
 
1291
1301
 
1292
1302
  class GuardrailTraceAssessmentTypeDef(TypedDict):
1293
- modelOutput: NotRequired[List[str]]
1294
- inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
1295
- outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
1303
+ modelOutput: NotRequired[list[str]]
1304
+ inputAssessment: NotRequired[dict[str, GuardrailAssessmentTypeDef]]
1305
+ outputAssessments: NotRequired[dict[str, list[GuardrailAssessmentTypeDef]]]
1296
1306
  actionReason: NotRequired[str]
1297
1307
 
1298
1308
 
@@ -1327,6 +1337,7 @@ class ConverseStreamMetadataEventTypeDef(TypedDict):
1327
1337
  metrics: ConverseStreamMetricsTypeDef
1328
1338
  trace: NotRequired[ConverseStreamTraceTypeDef]
1329
1339
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1340
+ serviceTier: NotRequired[ServiceTierTypeDef]
1330
1341
 
1331
1342
 
1332
1343
  class ConverseResponseTypeDef(TypedDict):
@@ -1334,9 +1345,10 @@ class ConverseResponseTypeDef(TypedDict):
1334
1345
  stopReason: StopReasonType
1335
1346
  usage: TokenUsageTypeDef
1336
1347
  metrics: ConverseMetricsTypeDef
1337
- additionalModelResponseFields: Dict[str, Any]
1348
+ additionalModelResponseFields: dict[str, Any]
1338
1349
  trace: ConverseTraceTypeDef
1339
1350
  performanceConfig: PerformanceConfigurationTypeDef
1351
+ serviceTier: ServiceTierTypeDef
1340
1352
  ResponseMetadata: ResponseMetadataTypeDef
1341
1353
 
1342
1354
 
@@ -1382,6 +1394,7 @@ class ConverseRequestTypeDef(TypedDict):
1382
1394
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
1383
1395
  requestMetadata: NotRequired[Mapping[str, str]]
1384
1396
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1397
+ serviceTier: NotRequired[ServiceTierTypeDef]
1385
1398
 
1386
1399
 
1387
1400
  class ConverseStreamRequestTypeDef(TypedDict):
@@ -1396,11 +1409,14 @@ class ConverseStreamRequestTypeDef(TypedDict):
1396
1409
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
1397
1410
  requestMetadata: NotRequired[Mapping[str, str]]
1398
1411
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1412
+ serviceTier: NotRequired[ServiceTierTypeDef]
1399
1413
 
1400
1414
 
1401
1415
  class ConverseTokensRequestTypeDef(TypedDict):
1402
1416
  messages: NotRequired[Sequence[MessageUnionTypeDef]]
1403
1417
  system: NotRequired[Sequence[SystemContentBlockTypeDef]]
1418
+ toolConfig: NotRequired[ToolConfigurationTypeDef]
1419
+ additionalModelRequestFields: NotRequired[Mapping[str, Any]]
1404
1420
 
1405
1421
 
1406
1422
  class CountTokensInputTypeDef(TypedDict):
@@ -17,6 +17,7 @@ Usage::
17
17
  from __future__ import annotations
18
18
 
19
19
  import sys
20
+ from collections.abc import Mapping, Sequence
20
21
  from datetime import datetime
21
22
  from typing import IO, Any, Union
22
23
 
@@ -49,19 +50,15 @@ from .literals import (
49
50
  GuardrailWordPolicyActionType,
50
51
  ImageFormatType,
51
52
  PerformanceConfigLatencyType,
53
+ ServiceTierTypeType,
52
54
  SortOrderType,
53
55
  StopReasonType,
54
56
  ToolResultStatusType,
57
+ ToolUseTypeType,
55
58
  TraceType,
56
59
  VideoFormatType,
57
60
  )
58
61
 
59
- if sys.version_info >= (3, 9):
60
- from builtins import dict as Dict
61
- from builtins import list as List
62
- from collections.abc import Mapping, Sequence
63
- else:
64
- from typing import Dict, List, Mapping, Sequence
65
62
  if sys.version_info >= (3, 12):
66
63
  from typing import Literal, NotRequired, TypedDict
67
64
  else:
@@ -216,6 +213,7 @@ __all__ = (
216
213
  "ResponseMetadataTypeDef",
217
214
  "ResponseStreamTypeDef",
218
215
  "S3LocationTypeDef",
216
+ "ServiceTierTypeDef",
219
217
  "ServiceUnavailableExceptionTypeDef",
220
218
  "SpecificToolChoiceTypeDef",
221
219
  "StartAsyncInvokeRequestTypeDef",
@@ -271,7 +269,7 @@ class GuardrailUsageTypeDef(TypedDict):
271
269
  class ResponseMetadataTypeDef(TypedDict):
272
270
  RequestId: str
273
271
  HTTPStatusCode: int
274
- HTTPHeaders: Dict[str, str]
272
+ HTTPHeaders: dict[str, str]
275
273
  RetryAttempts: int
276
274
  HostId: NotRequired[str]
277
275
 
@@ -344,8 +342,8 @@ ToolUseBlockOutputTypeDef = TypedDict(
344
342
  {
345
343
  "toolUseId": str,
346
344
  "name": str,
347
- "input": Dict[str, Any],
348
- "type": NotRequired[Literal["server_tool_use"]],
345
+ "input": dict[str, Any],
346
+ "type": NotRequired[ToolUseTypeType],
349
347
  },
350
348
  )
351
349
  ToolResultBlockStartTypeDef = TypedDict(
@@ -361,7 +359,7 @@ ToolUseBlockStartTypeDef = TypedDict(
361
359
  {
362
360
  "toolUseId": str,
363
361
  "name": str,
364
- "type": NotRequired[Literal["server_tool_use"]],
362
+ "type": NotRequired[ToolUseTypeType],
365
363
  },
366
364
  )
367
365
 
@@ -388,6 +386,13 @@ class PerformanceConfigurationTypeDef(TypedDict):
388
386
  class PromptVariableValuesTypeDef(TypedDict):
389
387
  text: NotRequired[str]
390
388
 
389
+ ServiceTierTypeDef = TypedDict(
390
+ "ServiceTierTypeDef",
391
+ {
392
+ "type": ServiceTierTypeType,
393
+ },
394
+ )
395
+
391
396
  class TokenUsageTypeDef(TypedDict):
392
397
  inputTokens: int
393
398
  outputTokens: int
@@ -406,7 +411,7 @@ class MessageStartEventTypeDef(TypedDict):
406
411
 
407
412
  class MessageStopEventTypeDef(TypedDict):
408
413
  stopReason: StopReasonType
409
- additionalModelResponseFields: NotRequired[Dict[str, Any]]
414
+ additionalModelResponseFields: NotRequired[dict[str, Any]]
410
415
 
411
416
  class ModelStreamErrorExceptionTypeDef(TypedDict):
412
417
  message: NotRequired[str]
@@ -479,7 +484,7 @@ GuardrailContextualGroundingFilterTypeDef = TypedDict(
479
484
 
480
485
  class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
481
486
  text: str
482
- qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
487
+ qualifiers: NotRequired[list[GuardrailConverseContentQualifierType]]
483
488
 
484
489
  GuardrailConverseImageSourceOutputTypeDef = TypedDict(
485
490
  "GuardrailConverseImageSourceOutputTypeDef",
@@ -580,7 +585,7 @@ ToolUseBlockTypeDef = TypedDict(
580
585
  "toolUseId": str,
581
586
  "name": str,
582
587
  "input": Mapping[str, Any],
583
- "type": NotRequired[Literal["server_tool_use"]],
588
+ "type": NotRequired[ToolUseTypeType],
584
589
  },
585
590
  )
586
591
 
@@ -592,6 +597,7 @@ class InvokeModelResponseTypeDef(TypedDict):
592
597
  body: StreamingBody
593
598
  contentType: str
594
599
  performanceConfigLatency: PerformanceConfigLatencyType
600
+ serviceTier: ServiceTierTypeType
595
601
  ResponseMetadata: ResponseMetadataTypeDef
596
602
 
597
603
  class StartAsyncInvokeResponseTypeDef(TypedDict):
@@ -629,6 +635,7 @@ class InvokeModelRequestTypeDef(TypedDict):
629
635
  guardrailIdentifier: NotRequired[str]
630
636
  guardrailVersion: NotRequired[str]
631
637
  performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
638
+ serviceTier: NotRequired[ServiceTierTypeType]
632
639
 
633
640
  class InvokeModelTokensRequestTypeDef(TypedDict):
634
641
  body: BlobTypeDef
@@ -642,6 +649,7 @@ class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
642
649
  guardrailIdentifier: NotRequired[str]
643
650
  guardrailVersion: NotRequired[str]
644
651
  performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
652
+ serviceTier: NotRequired[ServiceTierTypeType]
645
653
 
646
654
  class CitationLocationTypeDef(TypedDict):
647
655
  web: NotRequired[WebLocationTypeDef]
@@ -659,7 +667,7 @@ DocumentSourceOutputTypeDef = TypedDict(
659
667
  "bytes": NotRequired[bytes],
660
668
  "s3Location": NotRequired[S3LocationTypeDef],
661
669
  "text": NotRequired[str],
662
- "content": NotRequired[List[DocumentContentBlockTypeDef]],
670
+ "content": NotRequired[list[DocumentContentBlockTypeDef]],
663
671
  },
664
672
  )
665
673
  DocumentSourceTypeDef = TypedDict(
@@ -703,26 +711,26 @@ GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
703
711
  "GuardrailAutomatedReasoningLogicWarningTypeDef",
704
712
  {
705
713
  "type": NotRequired[GuardrailAutomatedReasoningLogicWarningTypeType],
706
- "premises": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
707
- "claims": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
714
+ "premises": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
715
+ "claims": NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]],
708
716
  },
709
717
  )
710
718
 
711
719
  class GuardrailAutomatedReasoningScenarioTypeDef(TypedDict):
712
- statements: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
720
+ statements: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
713
721
 
714
722
  class GuardrailAutomatedReasoningTranslationTypeDef(TypedDict):
715
- premises: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
716
- claims: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
717
- untranslatedPremises: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
718
- untranslatedClaims: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
723
+ premises: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
724
+ claims: NotRequired[list[GuardrailAutomatedReasoningStatementTypeDef]]
725
+ untranslatedPremises: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
726
+ untranslatedClaims: NotRequired[list[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
719
727
  confidence: NotRequired[float]
720
728
 
721
729
  class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
722
- filters: List[GuardrailContentFilterTypeDef]
730
+ filters: list[GuardrailContentFilterTypeDef]
723
731
 
724
732
  class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
725
- filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
733
+ filters: NotRequired[list[GuardrailContextualGroundingFilterTypeDef]]
726
734
 
727
735
  GuardrailConverseImageBlockOutputTypeDef = TypedDict(
728
736
  "GuardrailConverseImageBlockOutputTypeDef",
@@ -740,15 +748,15 @@ class GuardrailCoverageTypeDef(TypedDict):
740
748
  images: NotRequired[GuardrailImageCoverageTypeDef]
741
749
 
742
750
  class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
743
- customWords: List[GuardrailCustomWordTypeDef]
744
- managedWordLists: List[GuardrailManagedWordTypeDef]
751
+ customWords: list[GuardrailCustomWordTypeDef]
752
+ managedWordLists: list[GuardrailManagedWordTypeDef]
745
753
 
746
754
  class GuardrailSensitiveInformationPolicyAssessmentTypeDef(TypedDict):
747
- piiEntities: List[GuardrailPiiEntityFilterTypeDef]
748
- regexes: List[GuardrailRegexFilterTypeDef]
755
+ piiEntities: list[GuardrailPiiEntityFilterTypeDef]
756
+ regexes: list[GuardrailRegexFilterTypeDef]
749
757
 
750
758
  class GuardrailTopicPolicyAssessmentTypeDef(TypedDict):
751
- topics: List[GuardrailTopicTypeDef]
759
+ topics: list[GuardrailTopicTypeDef]
752
760
 
753
761
  class InvokeModelWithBidirectionalStreamOutputTypeDef(TypedDict):
754
762
  chunk: NotRequired[BidirectionalOutputPayloadPartTypeDef]
@@ -855,7 +863,7 @@ GuardrailImageBlockTypeDef = TypedDict(
855
863
 
856
864
  class CitationOutputTypeDef(TypedDict):
857
865
  title: NotRequired[str]
858
- sourceContent: NotRequired[List[CitationSourceContentTypeDef]]
866
+ sourceContent: NotRequired[list[CitationSourceContentTypeDef]]
859
867
  location: NotRequired[CitationLocationTypeDef]
860
868
 
861
869
  class CitationTypeDef(TypedDict):
@@ -865,7 +873,7 @@ class CitationTypeDef(TypedDict):
865
873
 
866
874
  class CitationsDeltaTypeDef(TypedDict):
867
875
  title: NotRequired[str]
868
- sourceContent: NotRequired[List[CitationSourceContentDeltaTypeDef]]
876
+ sourceContent: NotRequired[list[CitationSourceContentDeltaTypeDef]]
869
877
  location: NotRequired[CitationLocationTypeDef]
870
878
 
871
879
  class ContentBlockStartEventTypeDef(TypedDict):
@@ -902,12 +910,12 @@ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
902
910
 
903
911
  class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
904
912
  translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
905
- contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
913
+ contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
906
914
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
907
915
 
908
916
  class GuardrailAutomatedReasoningInvalidFindingTypeDef(TypedDict):
909
917
  translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
910
- contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
918
+ contradictingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
911
919
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
912
920
 
913
921
  class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
@@ -917,12 +925,12 @@ class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
917
925
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
918
926
 
919
927
  class GuardrailAutomatedReasoningTranslationOptionTypeDef(TypedDict):
920
- translations: NotRequired[List[GuardrailAutomatedReasoningTranslationTypeDef]]
928
+ translations: NotRequired[list[GuardrailAutomatedReasoningTranslationTypeDef]]
921
929
 
922
930
  class GuardrailAutomatedReasoningValidFindingTypeDef(TypedDict):
923
931
  translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
924
932
  claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
925
- supportingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
933
+ supportingRules: NotRequired[list[GuardrailAutomatedReasoningRuleTypeDef]]
926
934
  logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
927
935
 
928
936
  class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
@@ -942,6 +950,7 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
942
950
  body: EventStream[ResponseStreamTypeDef]
943
951
  contentType: str
944
952
  performanceConfigLatency: PerformanceConfigLatencyType
953
+ serviceTier: ServiceTierTypeType
945
954
  ResponseMetadata: ResponseMetadataTypeDef
946
955
 
947
956
  ReasoningContentBlockUnionTypeDef = Union[
@@ -954,7 +963,7 @@ class ToolTypeDef(TypedDict):
954
963
  cachePoint: NotRequired[CachePointBlockTypeDef]
955
964
 
956
965
  class ListAsyncInvokesResponseTypeDef(TypedDict):
957
- asyncInvokeSummaries: List[AsyncInvokeSummaryTypeDef]
966
+ asyncInvokeSummaries: list[AsyncInvokeSummaryTypeDef]
958
967
  ResponseMetadata: ResponseMetadataTypeDef
959
968
  nextToken: NotRequired[str]
960
969
 
@@ -975,15 +984,15 @@ class GuardrailContentBlockTypeDef(TypedDict):
975
984
  image: NotRequired[GuardrailImageBlockTypeDef]
976
985
 
977
986
  class CitationsContentBlockOutputTypeDef(TypedDict):
978
- content: NotRequired[List[CitationGeneratedContentTypeDef]]
979
- citations: NotRequired[List[CitationOutputTypeDef]]
987
+ content: NotRequired[list[CitationGeneratedContentTypeDef]]
988
+ citations: NotRequired[list[CitationOutputTypeDef]]
980
989
 
981
990
  CitationUnionTypeDef = Union[CitationTypeDef, CitationOutputTypeDef]
982
991
 
983
992
  class ContentBlockDeltaTypeDef(TypedDict):
984
993
  text: NotRequired[str]
985
994
  toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
986
- toolResult: NotRequired[List[ToolResultBlockDeltaTypeDef]]
995
+ toolResult: NotRequired[list[ToolResultBlockDeltaTypeDef]]
987
996
  reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
988
997
  citation: NotRequired[CitationsDeltaTypeDef]
989
998
 
@@ -1006,7 +1015,7 @@ ImageBlockTypeDef = TypedDict(
1006
1015
  )
1007
1016
 
1008
1017
  class ToolResultContentBlockOutputTypeDef(TypedDict):
1009
- json: NotRequired[Dict[str, Any]]
1018
+ json: NotRequired[dict[str, Any]]
1010
1019
  text: NotRequired[str]
1011
1020
  image: NotRequired[ImageBlockOutputTypeDef]
1012
1021
  document: NotRequired[DocumentBlockOutputTypeDef]
@@ -1021,8 +1030,8 @@ VideoBlockTypeDef = TypedDict(
1021
1030
  )
1022
1031
 
1023
1032
  class GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef(TypedDict):
1024
- options: NotRequired[List[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
1025
- differenceScenarios: NotRequired[List[GuardrailAutomatedReasoningScenarioTypeDef]]
1033
+ options: NotRequired[list[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
1034
+ differenceScenarios: NotRequired[list[GuardrailAutomatedReasoningScenarioTypeDef]]
1026
1035
 
1027
1036
  class ToolConfigurationTypeDef(TypedDict):
1028
1037
  tools: Sequence[ToolTypeDef]
@@ -1053,7 +1062,7 @@ ToolResultBlockOutputTypeDef = TypedDict(
1053
1062
  "ToolResultBlockOutputTypeDef",
1054
1063
  {
1055
1064
  "toolUseId": str,
1056
- "content": List[ToolResultContentBlockOutputTypeDef],
1065
+ "content": list[ToolResultContentBlockOutputTypeDef],
1057
1066
  "status": NotRequired[ToolResultStatusType],
1058
1067
  "type": NotRequired[str],
1059
1068
  },
@@ -1066,8 +1075,8 @@ class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
1066
1075
  satisfiable: NotRequired[GuardrailAutomatedReasoningSatisfiableFindingTypeDef]
1067
1076
  impossible: NotRequired[GuardrailAutomatedReasoningImpossibleFindingTypeDef]
1068
1077
  translationAmbiguous: NotRequired[GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef]
1069
- tooComplex: NotRequired[Dict[str, Any]]
1070
- noTranslations: NotRequired[Dict[str, Any]]
1078
+ tooComplex: NotRequired[dict[str, Any]]
1079
+ noTranslations: NotRequired[dict[str, Any]]
1071
1080
 
1072
1081
  class GuardrailConverseContentBlockTypeDef(TypedDict):
1073
1082
  text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
@@ -1097,7 +1106,7 @@ class ToolResultContentBlockTypeDef(TypedDict):
1097
1106
  video: NotRequired[VideoBlockUnionTypeDef]
1098
1107
 
1099
1108
  class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
1100
- findings: NotRequired[List[GuardrailAutomatedReasoningFindingTypeDef]]
1109
+ findings: NotRequired[list[GuardrailAutomatedReasoningFindingTypeDef]]
1101
1110
 
1102
1111
  GuardrailConverseContentBlockUnionTypeDef = Union[
1103
1112
  GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
@@ -1105,7 +1114,7 @@ GuardrailConverseContentBlockUnionTypeDef = Union[
1105
1114
 
1106
1115
  class MessageOutputTypeDef(TypedDict):
1107
1116
  role: ConversationRoleType
1108
- content: List[ContentBlockOutputTypeDef]
1117
+ content: list[ContentBlockOutputTypeDef]
1109
1118
 
1110
1119
  ToolResultContentBlockUnionTypeDef = Union[
1111
1120
  ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
@@ -1142,15 +1151,15 @@ class ApplyGuardrailResponseTypeDef(TypedDict):
1142
1151
  usage: GuardrailUsageTypeDef
1143
1152
  action: GuardrailActionType
1144
1153
  actionReason: str
1145
- outputs: List[GuardrailOutputContentTypeDef]
1146
- assessments: List[GuardrailAssessmentTypeDef]
1154
+ outputs: list[GuardrailOutputContentTypeDef]
1155
+ assessments: list[GuardrailAssessmentTypeDef]
1147
1156
  guardrailCoverage: GuardrailCoverageTypeDef
1148
1157
  ResponseMetadata: ResponseMetadataTypeDef
1149
1158
 
1150
1159
  class GuardrailTraceAssessmentTypeDef(TypedDict):
1151
- modelOutput: NotRequired[List[str]]
1152
- inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
1153
- outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
1160
+ modelOutput: NotRequired[list[str]]
1161
+ inputAssessment: NotRequired[dict[str, GuardrailAssessmentTypeDef]]
1162
+ outputAssessments: NotRequired[dict[str, list[GuardrailAssessmentTypeDef]]]
1154
1163
  actionReason: NotRequired[str]
1155
1164
 
1156
1165
  ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
@@ -1180,15 +1189,17 @@ class ConverseStreamMetadataEventTypeDef(TypedDict):
1180
1189
  metrics: ConverseStreamMetricsTypeDef
1181
1190
  trace: NotRequired[ConverseStreamTraceTypeDef]
1182
1191
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1192
+ serviceTier: NotRequired[ServiceTierTypeDef]
1183
1193
 
1184
1194
  class ConverseResponseTypeDef(TypedDict):
1185
1195
  output: ConverseOutputTypeDef
1186
1196
  stopReason: StopReasonType
1187
1197
  usage: TokenUsageTypeDef
1188
1198
  metrics: ConverseMetricsTypeDef
1189
- additionalModelResponseFields: Dict[str, Any]
1199
+ additionalModelResponseFields: dict[str, Any]
1190
1200
  trace: ConverseTraceTypeDef
1191
1201
  performanceConfig: PerformanceConfigurationTypeDef
1202
+ serviceTier: ServiceTierTypeDef
1192
1203
  ResponseMetadata: ResponseMetadataTypeDef
1193
1204
 
1194
1205
  ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
@@ -1228,6 +1239,7 @@ class ConverseRequestTypeDef(TypedDict):
1228
1239
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
1229
1240
  requestMetadata: NotRequired[Mapping[str, str]]
1230
1241
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1242
+ serviceTier: NotRequired[ServiceTierTypeDef]
1231
1243
 
1232
1244
  class ConverseStreamRequestTypeDef(TypedDict):
1233
1245
  modelId: str
@@ -1241,10 +1253,13 @@ class ConverseStreamRequestTypeDef(TypedDict):
1241
1253
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
1242
1254
  requestMetadata: NotRequired[Mapping[str, str]]
1243
1255
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1256
+ serviceTier: NotRequired[ServiceTierTypeDef]
1244
1257
 
1245
1258
  class ConverseTokensRequestTypeDef(TypedDict):
1246
1259
  messages: NotRequired[Sequence[MessageUnionTypeDef]]
1247
1260
  system: NotRequired[Sequence[SystemContentBlockTypeDef]]
1261
+ toolConfig: NotRequired[ToolConfigurationTypeDef]
1262
+ additionalModelRequestFields: NotRequired[Mapping[str, Any]]
1248
1263
 
1249
1264
  class CountTokensInputTypeDef(TypedDict):
1250
1265
  invokeModel: NotRequired[InvokeModelTokensRequestTypeDef]
@@ -4,4 +4,4 @@ Source of truth for version.
4
4
  Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
- __version__ = "1.40.62"
7
+ __version__ = "1.40.76"
@@ -1,23 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-boto3-bedrock-runtime
3
- Version: 1.40.62
4
- Summary: Type annotations for boto3 BedrockRuntime 1.40.62 service generated with mypy-boto3-builder 8.11.0
5
- Home-page: https://github.com/youtype/mypy_boto3_builder
6
- Author: Vlad Emelianov
7
- Author-email: vlad.emelianov.nz@gmail.com
8
- License: MIT License
3
+ Version: 1.40.76
4
+ Summary: Type annotations for boto3 BedrockRuntime 1.40.76 service generated with mypy-boto3-builder 8.12.0
5
+ Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
9
8
  Project-URL: Documentation, https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/
10
9
  Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
11
10
  Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
12
- Keywords: boto3 bedrock-runtime boto3-stubs type-annotations mypy typeshed autocomplete
11
+ Keywords: boto3,bedrock-runtime,boto3-stubs,type-annotations,mypy,typeshed,autocomplete
12
+ Platform: any
13
13
  Classifier: Development Status :: 5 - Production/Stable
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Environment :: Console
16
- Classifier: License :: OSI Approved :: MIT License
17
16
  Classifier: Natural Language :: English
18
17
  Classifier: Operating System :: OS Independent
19
18
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.8
21
19
  Classifier: Programming Language :: Python :: 3.9
22
20
  Classifier: Programming Language :: Python :: 3.10
23
21
  Classifier: Programming Language :: Python :: 3.11
@@ -27,23 +25,11 @@ Classifier: Programming Language :: Python :: 3.14
27
25
  Classifier: Programming Language :: Python :: 3 :: Only
28
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
29
27
  Classifier: Typing :: Stubs Only
30
- Requires-Python: >=3.8
28
+ Requires-Python: >=3.9
31
29
  Description-Content-Type: text/markdown
32
30
  License-File: LICENSE
33
31
  Requires-Dist: typing-extensions; python_version < "3.12"
34
- Dynamic: author
35
- Dynamic: author-email
36
- Dynamic: classifier
37
- Dynamic: description
38
- Dynamic: description-content-type
39
- Dynamic: home-page
40
- Dynamic: keywords
41
- Dynamic: license
42
32
  Dynamic: license-file
43
- Dynamic: project-url
44
- Dynamic: requires-dist
45
- Dynamic: requires-python
46
- Dynamic: summary
47
33
 
48
34
  <a id="types-boto3-bedrock-runtime"></a>
49
35
 
@@ -57,7 +43,7 @@ Dynamic: summary
57
43
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
58
44
 
59
45
  Type annotations for
60
- [boto3 BedrockRuntime 1.40.62](https://pypi.org/project/boto3/) compatible with
46
+ [boto3 BedrockRuntime 1.40.76](https://pypi.org/project/boto3/) compatible with
61
47
  [VSCode](https://code.visualstudio.com/),
62
48
  [PyCharm](https://www.jetbrains.com/pycharm/),
63
49
  [Emacs](https://www.gnu.org/software/emacs/),
@@ -66,7 +52,7 @@ Type annotations for
66
52
  [pyright](https://github.com/microsoft/pyright) and other tools.
67
53
 
68
54
  Generated with
69
- [mypy-boto3-builder 8.11.0](https://github.com/youtype/mypy_boto3_builder).
55
+ [mypy-boto3-builder 8.12.0](https://github.com/youtype/mypy_boto3_builder).
70
56
 
71
57
  More information can be found on
72
58
  [types-boto3](https://pypi.org/project/types-boto3/) page and in
@@ -119,7 +105,7 @@ You can generate type annotations for `boto3` package locally with
119
105
  isolation.
120
106
 
121
107
  1. Run mypy-boto3-builder in your package root directory:
122
- `uvx --with 'boto3==1.40.62' mypy-boto3-builder`
108
+ `uvx --with 'boto3==1.40.76' mypy-boto3-builder`
123
109
  2. Select `boto3` AWS SDK.
124
110
  3. Add `BedrockRuntime` service.
125
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=uQzEGXQVhkFSXLsiRSVSt2o-9ufJV1GsnDBbQMAWLWE,1015
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=-FdNiYBU72SK2YVDZLBdYAbsH5OyLcNMJsFBDh6Vgio,13540
7
+ types_boto3_bedrock_runtime/literals.pyi,sha256=xOKXw78u5UqA8iax-nYuE3gEoKQr5cQ3xiEoUZcKjTQ,13538
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=zb5TPkMA_FmDgpvYPD88k9iZQEuJbzsGo2cmPe2mE4I,44397
12
+ types_boto3_bedrock_runtime/type_defs.pyi,sha256=MWox54Xjl1755gB8baZRedzxe9JzM-EOxIX7BG8eaUY,44238
13
+ types_boto3_bedrock_runtime/version.py,sha256=VE_SsO5zPUepnGA5xToz9iD9MkBKqmg69Jq6fzwikrk,93
14
+ types_boto3_bedrock_runtime-1.40.76.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
15
+ types_boto3_bedrock_runtime-1.40.76.dist-info/METADATA,sha256=WyDc5doEyW1SsVLR096JAH39-7JaSowXoZxlB4AQBnM,15069
16
+ types_boto3_bedrock_runtime-1.40.76.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ types_boto3_bedrock_runtime-1.40.76.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
+ types_boto3_bedrock_runtime-1.40.76.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=K0WkLu6FJAQcq-NDLud987e_7YRV4VSax7Q0hSsZs3w,1015
4
- types_boto3_bedrock_runtime/client.py,sha256=W4o6UKl_m5Sp3uic5eq5BKlFpTxd1LCfif0vB2B-aR8,10098
5
- types_boto3_bedrock_runtime/client.pyi,sha256=nIshacSA3Qn0Ukg5X7ump-P5PDf3OG653bVeoX9IrcY,10095
6
- types_boto3_bedrock_runtime/literals.py,sha256=oe4UGyz602raVViJBkRcTseTjZevrDiDlq8EO3en3yg,13417
7
- types_boto3_bedrock_runtime/literals.pyi,sha256=JJ1m-QWXh5L-CMOxEnsHeaVgvBOhpIML-xNjdEQUcC0,13415
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=r283so-x18UdsGI5p69ar17FbhnZ_f8BKQU8v3xQq4E,43940
12
- types_boto3_bedrock_runtime/type_defs.pyi,sha256=fPNlcO9bi-64z2Z9Ffftyfk8CbmdTBYvIUpNVQbs-6I,43782
13
- types_boto3_bedrock_runtime/version.py,sha256=L_7o1ed10fAo8eWgQ1hRRZmm0-ogpMdEx6RywjpJZK0,93
14
- types_boto3_bedrock_runtime-1.40.62.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
15
- types_boto3_bedrock_runtime-1.40.62.dist-info/METADATA,sha256=J5DSSbEr3TuZ2bTVdwKobM09fjO1FUaNFhjqf8g33hk,15400
16
- types_boto3_bedrock_runtime-1.40.62.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- types_boto3_bedrock_runtime-1.40.62.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
- types_boto3_bedrock_runtime-1.40.62.dist-info/RECORD,,