types-boto3-bedrock-runtime 1.35.74__py3-none-any.whl → 1.35.93__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.
@@ -17,7 +17,7 @@ Usage::
17
17
  list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
18
18
  ```
19
19
 
20
- Copyright 2024 Vlad Emelianov
20
+ Copyright 2025 Vlad Emelianov
21
21
  """
22
22
 
23
23
  from .client import BedrockRuntimeClient
@@ -17,7 +17,7 @@ Usage::
17
17
  list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
18
18
  ```
19
19
 
20
- Copyright 2024 Vlad Emelianov
20
+ Copyright 2025 Vlad Emelianov
21
21
  """
22
22
 
23
23
  from .client import BedrockRuntimeClient
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Main CLI entrypoint.
3
3
 
4
- Copyright 2024 Vlad Emelianov
4
+ Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
7
  import sys
@@ -11,14 +11,14 @@ def print_info() -> None:
11
11
  """
12
12
  Print package info to stdout.
13
13
  """
14
- print(
15
- "Type annotations for boto3 BedrockRuntime 1.35.74\n"
16
- "Version: 1.35.74\n"
17
- "Builder version: 8.5.0\n"
14
+ sys.stdout.write(
15
+ "Type annotations for boto3 BedrockRuntime 1.35.93\n"
16
+ "Version: 1.35.93\n"
17
+ "Builder version: 8.8.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"
21
- "Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
21
+ "Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
22
22
  )
23
23
 
24
24
 
@@ -26,7 +26,7 @@ def print_version() -> None:
26
26
  """
27
27
  Print package version to stdout.
28
28
  """
29
- print("1.35.74")
29
+ sys.stdout.write("1.35.93\n")
30
30
 
31
31
 
32
32
  def main() -> None:
@@ -34,7 +34,8 @@ def main() -> None:
34
34
  Main CLI entrypoint.
35
35
  """
36
36
  if "--version" in sys.argv:
37
- return print_version()
37
+ print_version()
38
+ return
38
39
  print_info()
39
40
 
40
41
 
@@ -1,7 +1,7 @@
1
1
  """
2
- Type annotations for bedrock-runtime service client.
2
+ Type annotations for bedrock-runtime service Client.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
5
5
 
6
6
  Usage::
7
7
 
@@ -13,13 +13,17 @@ Usage::
13
13
  client: BedrockRuntimeClient = session.client("bedrock-runtime")
14
14
  ```
15
15
 
16
- Copyright 2024 Vlad Emelianov
16
+ Copyright 2025 Vlad Emelianov
17
17
  """
18
18
 
19
+ from __future__ import annotations
20
+
19
21
  import sys
20
- from typing import Any, Dict, Mapping, Type
22
+ from typing import Any
21
23
 
22
24
  from botocore.client import BaseClient, ClientMeta
25
+ from botocore.errorfactory import BaseClientExceptions
26
+ from botocore.exceptions import ClientError as BotocoreClientError
23
27
 
24
28
  from .paginator import ListAsyncInvokesPaginator
25
29
  from .type_defs import (
@@ -41,6 +45,11 @@ from .type_defs import (
41
45
  StartAsyncInvokeResponseTypeDef,
42
46
  )
43
47
 
48
+ if sys.version_info >= (3, 9):
49
+ from builtins import type as Type
50
+ from collections.abc import Mapping
51
+ else:
52
+ from typing import Mapping, Type
44
53
  if sys.version_info >= (3, 12):
45
54
  from typing import Literal, Unpack
46
55
  else:
@@ -50,15 +59,7 @@ else:
50
59
  __all__ = ("BedrockRuntimeClient",)
51
60
 
52
61
 
53
- class BotocoreClientError(Exception):
54
- MSG_TEMPLATE: str
55
-
56
- def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
57
- self.response: Dict[str, Any]
58
- self.operation_name: str
59
-
60
-
61
- class Exceptions:
62
+ class Exceptions(BaseClientExceptions):
62
63
  AccessDeniedException: Type[BotocoreClientError]
63
64
  ClientError: Type[BotocoreClientError]
64
65
  ConflictException: Type[BotocoreClientError]
@@ -109,12 +110,6 @@ class BedrockRuntimeClient(BaseClient):
109
110
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
110
111
  """
111
112
 
112
- def close(self) -> None:
113
- """
114
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/close.html)
115
- [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#close)
116
- """
117
-
118
113
  def apply_guardrail(
119
114
  self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
120
115
  ) -> ApplyGuardrailResponseTypeDef:
@@ -196,7 +191,7 @@ class BedrockRuntimeClient(BaseClient):
196
191
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
197
192
  """
198
193
 
199
- def get_paginator(
194
+ def get_paginator( # type: ignore[override]
200
195
  self, operation_name: Literal["list_async_invokes"]
201
196
  ) -> ListAsyncInvokesPaginator:
202
197
  """
@@ -1,7 +1,7 @@
1
1
  """
2
- Type annotations for bedrock-runtime service client.
2
+ Type annotations for bedrock-runtime service Client.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
5
5
 
6
6
  Usage::
7
7
 
@@ -13,13 +13,17 @@ Usage::
13
13
  client: BedrockRuntimeClient = session.client("bedrock-runtime")
14
14
  ```
15
15
 
16
- Copyright 2024 Vlad Emelianov
16
+ Copyright 2025 Vlad Emelianov
17
17
  """
18
18
 
19
+ from __future__ import annotations
20
+
19
21
  import sys
20
- from typing import Any, Dict, Mapping, Type
22
+ from typing import Any
21
23
 
22
24
  from botocore.client import BaseClient, ClientMeta
25
+ from botocore.errorfactory import BaseClientExceptions
26
+ from botocore.exceptions import ClientError as BotocoreClientError
23
27
 
24
28
  from .paginator import ListAsyncInvokesPaginator
25
29
  from .type_defs import (
@@ -41,6 +45,11 @@ from .type_defs import (
41
45
  StartAsyncInvokeResponseTypeDef,
42
46
  )
43
47
 
48
+ if sys.version_info >= (3, 9):
49
+ from builtins import type as Type
50
+ from collections.abc import Mapping
51
+ else:
52
+ from typing import Mapping, Type
44
53
  if sys.version_info >= (3, 12):
45
54
  from typing import Literal, Unpack
46
55
  else:
@@ -48,14 +57,7 @@ else:
48
57
 
49
58
  __all__ = ("BedrockRuntimeClient",)
50
59
 
51
- class BotocoreClientError(Exception):
52
- MSG_TEMPLATE: str
53
-
54
- def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
55
- self.response: Dict[str, Any]
56
- self.operation_name: str
57
-
58
- class Exceptions:
60
+ class Exceptions(BaseClientExceptions):
59
61
  AccessDeniedException: Type[BotocoreClientError]
60
62
  ClientError: Type[BotocoreClientError]
61
63
  ConflictException: Type[BotocoreClientError]
@@ -105,12 +107,6 @@ class BedrockRuntimeClient(BaseClient):
105
107
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#generate_presigned_url)
106
108
  """
107
109
 
108
- def close(self) -> None:
109
- """
110
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/close.html)
111
- [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#close)
112
- """
113
-
114
110
  def apply_guardrail(
115
111
  self, **kwargs: Unpack[ApplyGuardrailRequestRequestTypeDef]
116
112
  ) -> ApplyGuardrailResponseTypeDef:
@@ -192,7 +188,7 @@ class BedrockRuntimeClient(BaseClient):
192
188
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
193
189
  """
194
190
 
195
- def get_paginator(
191
+ def get_paginator( # type: ignore[override]
196
192
  self, operation_name: Literal["list_async_invokes"]
197
193
  ) -> ListAsyncInvokesPaginator:
198
194
  """
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for bedrock-runtime service literal definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
5
5
 
6
6
  Usage::
7
7
 
@@ -11,7 +11,7 @@ Usage::
11
11
  data: AsyncInvokeStatusType = "Completed"
12
12
  ```
13
13
 
14
- Copyright 2024 Vlad Emelianov
14
+ Copyright 2025 Vlad Emelianov
15
15
  """
16
16
 
17
17
  import sys
@@ -37,6 +37,8 @@ __all__ = (
37
37
  "GuardrailContextualGroundingFilterTypeType",
38
38
  "GuardrailContextualGroundingPolicyActionType",
39
39
  "GuardrailConverseContentQualifierType",
40
+ "GuardrailConverseImageFormatType",
41
+ "GuardrailImageFormatType",
40
42
  "GuardrailManagedWordTypeType",
41
43
  "GuardrailPiiEntityTypeType",
42
44
  "GuardrailSensitiveInformationPolicyActionType",
@@ -75,6 +77,8 @@ GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
75
77
  GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
76
78
  GuardrailContextualGroundingPolicyActionType = Literal["BLOCKED", "NONE"]
77
79
  GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_content", "query"]
80
+ GuardrailConverseImageFormatType = Literal["jpeg", "png"]
81
+ GuardrailImageFormatType = Literal["jpeg", "png"]
78
82
  GuardrailManagedWordTypeType = Literal["PROFANITY"]
79
83
  GuardrailPiiEntityTypeType = Literal[
80
84
  "ADDRESS",
@@ -167,12 +171,15 @@ ServiceName = Literal[
167
171
  "b2bi",
168
172
  "backup",
169
173
  "backup-gateway",
174
+ "backupsearch",
170
175
  "batch",
171
176
  "bcm-data-exports",
172
177
  "bcm-pricing-calculator",
173
178
  "bedrock",
174
179
  "bedrock-agent",
175
180
  "bedrock-agent-runtime",
181
+ "bedrock-data-automation",
182
+ "bedrock-data-automation-runtime",
176
183
  "bedrock-runtime",
177
184
  "billing",
178
185
  "billingconductor",
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for bedrock-runtime service literal definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
5
5
 
6
6
  Usage::
7
7
 
@@ -11,7 +11,7 @@ Usage::
11
11
  data: AsyncInvokeStatusType = "Completed"
12
12
  ```
13
13
 
14
- Copyright 2024 Vlad Emelianov
14
+ Copyright 2025 Vlad Emelianov
15
15
  """
16
16
 
17
17
  import sys
@@ -36,6 +36,8 @@ __all__ = (
36
36
  "GuardrailContextualGroundingFilterTypeType",
37
37
  "GuardrailContextualGroundingPolicyActionType",
38
38
  "GuardrailConverseContentQualifierType",
39
+ "GuardrailConverseImageFormatType",
40
+ "GuardrailImageFormatType",
39
41
  "GuardrailManagedWordTypeType",
40
42
  "GuardrailPiiEntityTypeType",
41
43
  "GuardrailSensitiveInformationPolicyActionType",
@@ -73,6 +75,8 @@ GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
73
75
  GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
74
76
  GuardrailContextualGroundingPolicyActionType = Literal["BLOCKED", "NONE"]
75
77
  GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_content", "query"]
78
+ GuardrailConverseImageFormatType = Literal["jpeg", "png"]
79
+ GuardrailImageFormatType = Literal["jpeg", "png"]
76
80
  GuardrailManagedWordTypeType = Literal["PROFANITY"]
77
81
  GuardrailPiiEntityTypeType = Literal[
78
82
  "ADDRESS",
@@ -165,12 +169,15 @@ ServiceName = Literal[
165
169
  "b2bi",
166
170
  "backup",
167
171
  "backup-gateway",
172
+ "backupsearch",
168
173
  "batch",
169
174
  "bcm-data-exports",
170
175
  "bcm-pricing-calculator",
171
176
  "bedrock",
172
177
  "bedrock-agent",
173
178
  "bedrock-agent-runtime",
179
+ "bedrock-data-automation",
180
+ "bedrock-data-automation-runtime",
174
181
  "bedrock-runtime",
175
182
  "billing",
176
183
  "billingconductor",
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for bedrock-runtime service client paginators.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
5
5
 
6
6
  Usage::
7
7
 
@@ -19,18 +19,17 @@ Usage::
19
19
  list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
20
20
  ```
21
21
 
22
- Copyright 2024 Vlad Emelianov
22
+ Copyright 2025 Vlad Emelianov
23
23
  """
24
24
 
25
+ from __future__ import annotations
26
+
25
27
  import sys
26
- from typing import Generic, Iterator, TypeVar
28
+ from typing import TYPE_CHECKING
27
29
 
28
30
  from botocore.paginate import PageIterator, Paginator
29
31
 
30
- from .type_defs import (
31
- ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
32
- ListAsyncInvokesResponseTypeDef,
33
- )
32
+ from .type_defs import ListAsyncInvokesRequestPaginateTypeDef, ListAsyncInvokesResponseTypeDef
34
33
 
35
34
  if sys.version_info >= (3, 12):
36
35
  from typing import Unpack
@@ -41,25 +40,21 @@ else:
41
40
  __all__ = ("ListAsyncInvokesPaginator",)
42
41
 
43
42
 
44
- _ItemTypeDef = TypeVar("_ItemTypeDef")
45
-
46
-
47
- class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
48
- def __iter__(self) -> Iterator[_ItemTypeDef]:
49
- """
50
- Proxy method to specify iterator item type.
51
- """
43
+ if TYPE_CHECKING:
44
+ _ListAsyncInvokesPaginatorBase = Paginator[ListAsyncInvokesResponseTypeDef]
45
+ else:
46
+ _ListAsyncInvokesPaginatorBase = Paginator # type: ignore[assignment]
52
47
 
53
48
 
54
- class ListAsyncInvokesPaginator(Paginator):
49
+ class ListAsyncInvokesPaginator(_ListAsyncInvokesPaginatorBase):
55
50
  """
56
51
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
57
52
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
58
53
  """
59
54
 
60
- def paginate(
61
- self, **kwargs: Unpack[ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef]
62
- ) -> _PageIterator[ListAsyncInvokesResponseTypeDef]:
55
+ def paginate( # type: ignore[override]
56
+ self, **kwargs: Unpack[ListAsyncInvokesRequestPaginateTypeDef]
57
+ ) -> PageIterator[ListAsyncInvokesResponseTypeDef]:
63
58
  """
64
59
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
65
60
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for bedrock-runtime service client paginators.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
5
5
 
6
6
  Usage::
7
7
 
@@ -19,18 +19,17 @@ Usage::
19
19
  list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
20
20
  ```
21
21
 
22
- Copyright 2024 Vlad Emelianov
22
+ Copyright 2025 Vlad Emelianov
23
23
  """
24
24
 
25
+ from __future__ import annotations
26
+
25
27
  import sys
26
- from typing import Generic, Iterator, TypeVar
28
+ from typing import TYPE_CHECKING
27
29
 
28
30
  from botocore.paginate import PageIterator, Paginator
29
31
 
30
- from .type_defs import (
31
- ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
32
- ListAsyncInvokesResponseTypeDef,
33
- )
32
+ from .type_defs import ListAsyncInvokesRequestPaginateTypeDef, ListAsyncInvokesResponseTypeDef
34
33
 
35
34
  if sys.version_info >= (3, 12):
36
35
  from typing import Unpack
@@ -39,22 +38,19 @@ else:
39
38
 
40
39
  __all__ = ("ListAsyncInvokesPaginator",)
41
40
 
42
- _ItemTypeDef = TypeVar("_ItemTypeDef")
43
-
44
- class _PageIterator(PageIterator, Generic[_ItemTypeDef]):
45
- def __iter__(self) -> Iterator[_ItemTypeDef]:
46
- """
47
- Proxy method to specify iterator item type.
48
- """
41
+ if TYPE_CHECKING:
42
+ _ListAsyncInvokesPaginatorBase = Paginator[ListAsyncInvokesResponseTypeDef]
43
+ else:
44
+ _ListAsyncInvokesPaginatorBase = Paginator # type: ignore[assignment]
49
45
 
50
- class ListAsyncInvokesPaginator(Paginator):
46
+ class ListAsyncInvokesPaginator(_ListAsyncInvokesPaginatorBase):
51
47
  """
52
48
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
53
49
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
54
50
  """
55
- def paginate(
56
- self, **kwargs: Unpack[ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef]
57
- ) -> _PageIterator[ListAsyncInvokesResponseTypeDef]:
51
+ def paginate( # type: ignore[override]
52
+ self, **kwargs: Unpack[ListAsyncInvokesRequestPaginateTypeDef]
53
+ ) -> PageIterator[ListAsyncInvokesResponseTypeDef]:
58
54
  """
59
55
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
60
56
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for bedrock-runtime service type definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
5
5
 
6
6
  Usage::
7
7
 
@@ -11,12 +11,14 @@ Usage::
11
11
  data: GuardrailOutputContentTypeDef = ...
12
12
  ```
13
13
 
14
- Copyright 2024 Vlad Emelianov
14
+ Copyright 2025 Vlad Emelianov
15
15
  """
16
16
 
17
+ from __future__ import annotations
18
+
17
19
  import sys
18
20
  from datetime import datetime
19
- from typing import IO, Any, Dict, List, Mapping, Sequence, Union
21
+ from typing import IO, Any, Union
20
22
 
21
23
  from botocore.eventstream import EventStream
22
24
  from botocore.response import StreamingBody
@@ -34,6 +36,8 @@ from .literals import (
34
36
  GuardrailContextualGroundingFilterTypeType,
35
37
  GuardrailContextualGroundingPolicyActionType,
36
38
  GuardrailConverseContentQualifierType,
39
+ GuardrailConverseImageFormatType,
40
+ GuardrailImageFormatType,
37
41
  GuardrailPiiEntityTypeType,
38
42
  GuardrailSensitiveInformationPolicyActionType,
39
43
  GuardrailStreamProcessingModeType,
@@ -47,6 +51,12 @@ from .literals import (
47
51
  VideoFormatType,
48
52
  )
49
53
 
54
+ if sys.version_info >= (3, 9):
55
+ from builtins import dict as Dict
56
+ from builtins import list as List
57
+ from collections.abc import Mapping, Sequence
58
+ else:
59
+ from typing import Dict, List, Mapping, Sequence
50
60
  if sys.version_info >= (3, 12):
51
61
  from typing import Literal, NotRequired, TypedDict
52
62
  else:
@@ -97,11 +107,20 @@ __all__ = (
97
107
  "GuardrailConverseContentBlockOutputTypeDef",
98
108
  "GuardrailConverseContentBlockTypeDef",
99
109
  "GuardrailConverseContentBlockUnionTypeDef",
110
+ "GuardrailConverseImageBlockOutputTypeDef",
111
+ "GuardrailConverseImageBlockTypeDef",
112
+ "GuardrailConverseImageBlockUnionTypeDef",
113
+ "GuardrailConverseImageSourceOutputTypeDef",
114
+ "GuardrailConverseImageSourceTypeDef",
115
+ "GuardrailConverseImageSourceUnionTypeDef",
100
116
  "GuardrailConverseTextBlockOutputTypeDef",
101
117
  "GuardrailConverseTextBlockTypeDef",
102
118
  "GuardrailConverseTextBlockUnionTypeDef",
103
119
  "GuardrailCoverageTypeDef",
104
120
  "GuardrailCustomWordTypeDef",
121
+ "GuardrailImageBlockTypeDef",
122
+ "GuardrailImageCoverageTypeDef",
123
+ "GuardrailImageSourceTypeDef",
105
124
  "GuardrailInvocationMetricsTypeDef",
106
125
  "GuardrailManagedWordTypeDef",
107
126
  "GuardrailOutputContentTypeDef",
@@ -128,7 +147,7 @@ __all__ = (
128
147
  "InvokeModelResponseTypeDef",
129
148
  "InvokeModelWithResponseStreamRequestRequestTypeDef",
130
149
  "InvokeModelWithResponseStreamResponseTypeDef",
131
- "ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef",
150
+ "ListAsyncInvokesRequestPaginateTypeDef",
132
151
  "ListAsyncInvokesRequestRequestTypeDef",
133
152
  "ListAsyncInvokesResponseTypeDef",
134
153
  "MessageOutputTypeDef",
@@ -141,6 +160,7 @@ __all__ = (
141
160
  "PaginatorConfigTypeDef",
142
161
  "PayloadPartTypeDef",
143
162
  "PerformanceConfigurationTypeDef",
163
+ "PromptRouterTraceTypeDef",
144
164
  "PromptVariableValuesTypeDef",
145
165
  "ResponseMetadataTypeDef",
146
166
  "ResponseStreamTypeDef",
@@ -306,6 +326,10 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
306
326
  streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
307
327
 
308
328
 
329
+ class PromptRouterTraceTypeDef(TypedDict):
330
+ invokedModelId: NotRequired[str]
331
+
332
+
309
333
  DocumentSourceOutputTypeDef = TypedDict(
310
334
  "DocumentSourceOutputTypeDef",
311
335
  {
@@ -348,11 +372,24 @@ class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
348
372
  qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
349
373
 
350
374
 
375
+ GuardrailConverseImageSourceOutputTypeDef = TypedDict(
376
+ "GuardrailConverseImageSourceOutputTypeDef",
377
+ {
378
+ "bytes": NotRequired[bytes],
379
+ },
380
+ )
381
+
382
+
351
383
  class GuardrailConverseTextBlockTypeDef(TypedDict):
352
384
  text: str
353
385
  qualifiers: NotRequired[Sequence[GuardrailConverseContentQualifierType]]
354
386
 
355
387
 
388
+ class GuardrailImageCoverageTypeDef(TypedDict):
389
+ guarded: NotRequired[int]
390
+ total: NotRequired[int]
391
+
392
+
356
393
  class GuardrailTextCharactersCoverageTypeDef(TypedDict):
357
394
  guarded: NotRequired[int]
358
395
  total: NotRequired[int]
@@ -475,6 +512,18 @@ DocumentSourceTypeDef = TypedDict(
475
512
  "bytes": NotRequired[BlobTypeDef],
476
513
  },
477
514
  )
515
+ GuardrailConverseImageSourceTypeDef = TypedDict(
516
+ "GuardrailConverseImageSourceTypeDef",
517
+ {
518
+ "bytes": NotRequired[BlobTypeDef],
519
+ },
520
+ )
521
+ GuardrailImageSourceTypeDef = TypedDict(
522
+ "GuardrailImageSourceTypeDef",
523
+ {
524
+ "bytes": NotRequired[BlobTypeDef],
525
+ },
526
+ )
478
527
  ImageSourceTypeDef = TypedDict(
479
528
  "ImageSourceTypeDef",
480
529
  {
@@ -524,10 +573,6 @@ DocumentBlockOutputTypeDef = TypedDict(
524
573
  )
525
574
 
526
575
 
527
- class GuardrailContentBlockTypeDef(TypedDict):
528
- text: NotRequired[GuardrailTextBlockTypeDef]
529
-
530
-
531
576
  class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
532
577
  filters: List[GuardrailContentFilterTypeDef]
533
578
 
@@ -536,10 +581,13 @@ class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
536
581
  filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
537
582
 
538
583
 
539
- class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
540
- text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
541
-
542
-
584
+ GuardrailConverseImageBlockOutputTypeDef = TypedDict(
585
+ "GuardrailConverseImageBlockOutputTypeDef",
586
+ {
587
+ "format": GuardrailConverseImageFormatType,
588
+ "source": GuardrailConverseImageSourceOutputTypeDef,
589
+ },
590
+ )
543
591
  GuardrailConverseTextBlockUnionTypeDef = Union[
544
592
  GuardrailConverseTextBlockTypeDef, GuardrailConverseTextBlockOutputTypeDef
545
593
  ]
@@ -547,6 +595,7 @@ GuardrailConverseTextBlockUnionTypeDef = Union[
547
595
 
548
596
  class GuardrailCoverageTypeDef(TypedDict):
549
597
  textCharacters: NotRequired[GuardrailTextCharactersCoverageTypeDef]
598
+ images: NotRequired[GuardrailImageCoverageTypeDef]
550
599
 
551
600
 
552
601
  class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
@@ -572,7 +621,7 @@ ImageBlockOutputTypeDef = TypedDict(
572
621
  )
573
622
 
574
623
 
575
- class ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef(TypedDict):
624
+ class ListAsyncInvokesRequestPaginateTypeDef(TypedDict):
576
625
  submitTimeAfter: NotRequired[TimestampTypeDef]
577
626
  submitTimeBefore: NotRequired[TimestampTypeDef]
578
627
  statusEquals: NotRequired[AsyncInvokeStatusType]
@@ -668,6 +717,16 @@ class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
668
717
 
669
718
 
670
719
  DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
720
+ GuardrailConverseImageSourceUnionTypeDef = Union[
721
+ GuardrailConverseImageSourceTypeDef, GuardrailConverseImageSourceOutputTypeDef
722
+ ]
723
+ GuardrailImageBlockTypeDef = TypedDict(
724
+ "GuardrailImageBlockTypeDef",
725
+ {
726
+ "format": GuardrailImageFormatType,
727
+ "source": GuardrailImageSourceTypeDef,
728
+ },
729
+ )
671
730
  ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
672
731
 
673
732
 
@@ -681,15 +740,9 @@ class ContentBlockStartEventTypeDef(TypedDict):
681
740
  contentBlockIndex: int
682
741
 
683
742
 
684
- class ApplyGuardrailRequestRequestTypeDef(TypedDict):
685
- guardrailIdentifier: str
686
- guardrailVersion: str
687
- source: GuardrailContentSourceType
688
- content: Sequence[GuardrailContentBlockTypeDef]
689
-
690
-
691
- class GuardrailConverseContentBlockTypeDef(TypedDict):
692
- text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
743
+ class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
744
+ text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
745
+ image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
693
746
 
694
747
 
695
748
  class GuardrailInvocationMetricsTypeDef(TypedDict):
@@ -699,7 +752,7 @@ class GuardrailInvocationMetricsTypeDef(TypedDict):
699
752
 
700
753
 
701
754
  class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
702
- body: "EventStream[ResponseStreamTypeDef]"
755
+ body: EventStream[ResponseStreamTypeDef]
703
756
  contentType: str
704
757
  performanceConfigLatency: PerformanceConfigLatencyType
705
758
  ResponseMetadata: ResponseMetadataTypeDef
@@ -733,6 +786,20 @@ DocumentBlockTypeDef = TypedDict(
733
786
  "source": DocumentSourceUnionTypeDef,
734
787
  },
735
788
  )
789
+ GuardrailConverseImageBlockTypeDef = TypedDict(
790
+ "GuardrailConverseImageBlockTypeDef",
791
+ {
792
+ "format": GuardrailConverseImageFormatType,
793
+ "source": GuardrailConverseImageSourceUnionTypeDef,
794
+ },
795
+ )
796
+
797
+
798
+ class GuardrailContentBlockTypeDef(TypedDict):
799
+ text: NotRequired[GuardrailTextBlockTypeDef]
800
+ image: NotRequired[GuardrailImageBlockTypeDef]
801
+
802
+
736
803
  ImageBlockTypeDef = TypedDict(
737
804
  "ImageBlockTypeDef",
738
805
  {
@@ -740,9 +807,6 @@ ImageBlockTypeDef = TypedDict(
740
807
  "source": ImageSourceUnionTypeDef,
741
808
  },
742
809
  )
743
- GuardrailConverseContentBlockUnionTypeDef = Union[
744
- GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
745
- ]
746
810
 
747
811
 
748
812
  class GuardrailAssessmentTypeDef(TypedDict):
@@ -777,12 +841,19 @@ class ToolConfigurationTypeDef(TypedDict):
777
841
 
778
842
 
779
843
  DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
780
- ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
844
+ GuardrailConverseImageBlockUnionTypeDef = Union[
845
+ GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
846
+ ]
781
847
 
782
848
 
783
- class SystemContentBlockTypeDef(TypedDict):
784
- text: NotRequired[str]
785
- guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
849
+ class ApplyGuardrailRequestRequestTypeDef(TypedDict):
850
+ guardrailIdentifier: str
851
+ guardrailVersion: str
852
+ source: GuardrailContentSourceType
853
+ content: Sequence[GuardrailContentBlockTypeDef]
854
+
855
+
856
+ ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
786
857
 
787
858
 
788
859
  class ApplyGuardrailResponseTypeDef(TypedDict):
@@ -809,12 +880,19 @@ class ToolResultBlockOutputTypeDef(TypedDict):
809
880
  VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
810
881
 
811
882
 
883
+ class GuardrailConverseContentBlockTypeDef(TypedDict):
884
+ text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
885
+ image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
886
+
887
+
812
888
  class ConverseStreamTraceTypeDef(TypedDict):
813
889
  guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
890
+ promptRouter: NotRequired[PromptRouterTraceTypeDef]
814
891
 
815
892
 
816
893
  class ConverseTraceTypeDef(TypedDict):
817
894
  guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
895
+ promptRouter: NotRequired[PromptRouterTraceTypeDef]
818
896
 
819
897
 
820
898
  class ContentBlockOutputTypeDef(TypedDict):
@@ -835,6 +913,11 @@ class ToolResultContentBlockTypeDef(TypedDict):
835
913
  video: NotRequired[VideoBlockUnionTypeDef]
836
914
 
837
915
 
916
+ GuardrailConverseContentBlockUnionTypeDef = Union[
917
+ GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
918
+ ]
919
+
920
+
838
921
  class ConverseStreamMetadataEventTypeDef(TypedDict):
839
922
  usage: TokenUsageTypeDef
840
923
  metrics: ConverseStreamMetricsTypeDef
@@ -852,6 +935,11 @@ ToolResultContentBlockUnionTypeDef = Union[
852
935
  ]
853
936
 
854
937
 
938
+ class SystemContentBlockTypeDef(TypedDict):
939
+ text: NotRequired[str]
940
+ guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
941
+
942
+
855
943
  class ConverseStreamOutputTypeDef(TypedDict):
856
944
  messageStart: NotRequired[MessageStartEventTypeDef]
857
945
  contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
@@ -877,7 +965,7 @@ class ToolResultBlockTypeDef(TypedDict):
877
965
 
878
966
 
879
967
  class ConverseStreamResponseTypeDef(TypedDict):
880
- stream: "EventStream[ConverseStreamOutputTypeDef]"
968
+ stream: EventStream[ConverseStreamOutputTypeDef]
881
969
  ResponseMetadata: ResponseMetadataTypeDef
882
970
 
883
971
 
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for bedrock-runtime service type definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
5
5
 
6
6
  Usage::
7
7
 
@@ -11,12 +11,14 @@ Usage::
11
11
  data: GuardrailOutputContentTypeDef = ...
12
12
  ```
13
13
 
14
- Copyright 2024 Vlad Emelianov
14
+ Copyright 2025 Vlad Emelianov
15
15
  """
16
16
 
17
+ from __future__ import annotations
18
+
17
19
  import sys
18
20
  from datetime import datetime
19
- from typing import IO, Any, Dict, List, Mapping, Sequence, Union
21
+ from typing import IO, Any, Union
20
22
 
21
23
  from botocore.eventstream import EventStream
22
24
  from botocore.response import StreamingBody
@@ -34,6 +36,8 @@ from .literals import (
34
36
  GuardrailContextualGroundingFilterTypeType,
35
37
  GuardrailContextualGroundingPolicyActionType,
36
38
  GuardrailConverseContentQualifierType,
39
+ GuardrailConverseImageFormatType,
40
+ GuardrailImageFormatType,
37
41
  GuardrailPiiEntityTypeType,
38
42
  GuardrailSensitiveInformationPolicyActionType,
39
43
  GuardrailStreamProcessingModeType,
@@ -47,6 +51,12 @@ from .literals import (
47
51
  VideoFormatType,
48
52
  )
49
53
 
54
+ if sys.version_info >= (3, 9):
55
+ from builtins import dict as Dict
56
+ from builtins import list as List
57
+ from collections.abc import Mapping, Sequence
58
+ else:
59
+ from typing import Dict, List, Mapping, Sequence
50
60
  if sys.version_info >= (3, 12):
51
61
  from typing import Literal, NotRequired, TypedDict
52
62
  else:
@@ -96,11 +106,20 @@ __all__ = (
96
106
  "GuardrailConverseContentBlockOutputTypeDef",
97
107
  "GuardrailConverseContentBlockTypeDef",
98
108
  "GuardrailConverseContentBlockUnionTypeDef",
109
+ "GuardrailConverseImageBlockOutputTypeDef",
110
+ "GuardrailConverseImageBlockTypeDef",
111
+ "GuardrailConverseImageBlockUnionTypeDef",
112
+ "GuardrailConverseImageSourceOutputTypeDef",
113
+ "GuardrailConverseImageSourceTypeDef",
114
+ "GuardrailConverseImageSourceUnionTypeDef",
99
115
  "GuardrailConverseTextBlockOutputTypeDef",
100
116
  "GuardrailConverseTextBlockTypeDef",
101
117
  "GuardrailConverseTextBlockUnionTypeDef",
102
118
  "GuardrailCoverageTypeDef",
103
119
  "GuardrailCustomWordTypeDef",
120
+ "GuardrailImageBlockTypeDef",
121
+ "GuardrailImageCoverageTypeDef",
122
+ "GuardrailImageSourceTypeDef",
104
123
  "GuardrailInvocationMetricsTypeDef",
105
124
  "GuardrailManagedWordTypeDef",
106
125
  "GuardrailOutputContentTypeDef",
@@ -127,7 +146,7 @@ __all__ = (
127
146
  "InvokeModelResponseTypeDef",
128
147
  "InvokeModelWithResponseStreamRequestRequestTypeDef",
129
148
  "InvokeModelWithResponseStreamResponseTypeDef",
130
- "ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef",
149
+ "ListAsyncInvokesRequestPaginateTypeDef",
131
150
  "ListAsyncInvokesRequestRequestTypeDef",
132
151
  "ListAsyncInvokesResponseTypeDef",
133
152
  "MessageOutputTypeDef",
@@ -140,6 +159,7 @@ __all__ = (
140
159
  "PaginatorConfigTypeDef",
141
160
  "PayloadPartTypeDef",
142
161
  "PerformanceConfigurationTypeDef",
162
+ "PromptRouterTraceTypeDef",
143
163
  "PromptVariableValuesTypeDef",
144
164
  "ResponseMetadataTypeDef",
145
165
  "ResponseStreamTypeDef",
@@ -282,6 +302,9 @@ class GuardrailStreamConfigurationTypeDef(TypedDict):
282
302
  trace: NotRequired[GuardrailTraceType]
283
303
  streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
284
304
 
305
+ class PromptRouterTraceTypeDef(TypedDict):
306
+ invokedModelId: NotRequired[str]
307
+
285
308
  DocumentSourceOutputTypeDef = TypedDict(
286
309
  "DocumentSourceOutputTypeDef",
287
310
  {
@@ -319,10 +342,21 @@ class GuardrailConverseTextBlockOutputTypeDef(TypedDict):
319
342
  text: str
320
343
  qualifiers: NotRequired[List[GuardrailConverseContentQualifierType]]
321
344
 
345
+ GuardrailConverseImageSourceOutputTypeDef = TypedDict(
346
+ "GuardrailConverseImageSourceOutputTypeDef",
347
+ {
348
+ "bytes": NotRequired[bytes],
349
+ },
350
+ )
351
+
322
352
  class GuardrailConverseTextBlockTypeDef(TypedDict):
323
353
  text: str
324
354
  qualifiers: NotRequired[Sequence[GuardrailConverseContentQualifierType]]
325
355
 
356
+ class GuardrailImageCoverageTypeDef(TypedDict):
357
+ guarded: NotRequired[int]
358
+ total: NotRequired[int]
359
+
326
360
  class GuardrailTextCharactersCoverageTypeDef(TypedDict):
327
361
  guarded: NotRequired[int]
328
362
  total: NotRequired[int]
@@ -428,6 +462,18 @@ DocumentSourceTypeDef = TypedDict(
428
462
  "bytes": NotRequired[BlobTypeDef],
429
463
  },
430
464
  )
465
+ GuardrailConverseImageSourceTypeDef = TypedDict(
466
+ "GuardrailConverseImageSourceTypeDef",
467
+ {
468
+ "bytes": NotRequired[BlobTypeDef],
469
+ },
470
+ )
471
+ GuardrailImageSourceTypeDef = TypedDict(
472
+ "GuardrailImageSourceTypeDef",
473
+ {
474
+ "bytes": NotRequired[BlobTypeDef],
475
+ },
476
+ )
431
477
  ImageSourceTypeDef = TypedDict(
432
478
  "ImageSourceTypeDef",
433
479
  {
@@ -471,24 +517,26 @@ DocumentBlockOutputTypeDef = TypedDict(
471
517
  },
472
518
  )
473
519
 
474
- class GuardrailContentBlockTypeDef(TypedDict):
475
- text: NotRequired[GuardrailTextBlockTypeDef]
476
-
477
520
  class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
478
521
  filters: List[GuardrailContentFilterTypeDef]
479
522
 
480
523
  class GuardrailContextualGroundingPolicyAssessmentTypeDef(TypedDict):
481
524
  filters: NotRequired[List[GuardrailContextualGroundingFilterTypeDef]]
482
525
 
483
- class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
484
- text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
485
-
526
+ GuardrailConverseImageBlockOutputTypeDef = TypedDict(
527
+ "GuardrailConverseImageBlockOutputTypeDef",
528
+ {
529
+ "format": GuardrailConverseImageFormatType,
530
+ "source": GuardrailConverseImageSourceOutputTypeDef,
531
+ },
532
+ )
486
533
  GuardrailConverseTextBlockUnionTypeDef = Union[
487
534
  GuardrailConverseTextBlockTypeDef, GuardrailConverseTextBlockOutputTypeDef
488
535
  ]
489
536
 
490
537
  class GuardrailCoverageTypeDef(TypedDict):
491
538
  textCharacters: NotRequired[GuardrailTextCharactersCoverageTypeDef]
539
+ images: NotRequired[GuardrailImageCoverageTypeDef]
492
540
 
493
541
  class GuardrailWordPolicyAssessmentTypeDef(TypedDict):
494
542
  customWords: List[GuardrailCustomWordTypeDef]
@@ -509,7 +557,7 @@ ImageBlockOutputTypeDef = TypedDict(
509
557
  },
510
558
  )
511
559
 
512
- class ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef(TypedDict):
560
+ class ListAsyncInvokesRequestPaginateTypeDef(TypedDict):
513
561
  submitTimeAfter: NotRequired[TimestampTypeDef]
514
562
  submitTimeBefore: NotRequired[TimestampTypeDef]
515
563
  statusEquals: NotRequired[AsyncInvokeStatusType]
@@ -596,6 +644,16 @@ class StartAsyncInvokeRequestRequestTypeDef(TypedDict):
596
644
  tags: NotRequired[Sequence[TagTypeDef]]
597
645
 
598
646
  DocumentSourceUnionTypeDef = Union[DocumentSourceTypeDef, DocumentSourceOutputTypeDef]
647
+ GuardrailConverseImageSourceUnionTypeDef = Union[
648
+ GuardrailConverseImageSourceTypeDef, GuardrailConverseImageSourceOutputTypeDef
649
+ ]
650
+ GuardrailImageBlockTypeDef = TypedDict(
651
+ "GuardrailImageBlockTypeDef",
652
+ {
653
+ "format": GuardrailImageFormatType,
654
+ "source": GuardrailImageSourceTypeDef,
655
+ },
656
+ )
599
657
  ImageSourceUnionTypeDef = Union[ImageSourceTypeDef, ImageSourceOutputTypeDef]
600
658
 
601
659
  class ContentBlockDeltaEventTypeDef(TypedDict):
@@ -606,14 +664,9 @@ class ContentBlockStartEventTypeDef(TypedDict):
606
664
  start: ContentBlockStartTypeDef
607
665
  contentBlockIndex: int
608
666
 
609
- class ApplyGuardrailRequestRequestTypeDef(TypedDict):
610
- guardrailIdentifier: str
611
- guardrailVersion: str
612
- source: GuardrailContentSourceType
613
- content: Sequence[GuardrailContentBlockTypeDef]
614
-
615
- class GuardrailConverseContentBlockTypeDef(TypedDict):
616
- text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
667
+ class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
668
+ text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
669
+ image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
617
670
 
618
671
  class GuardrailInvocationMetricsTypeDef(TypedDict):
619
672
  guardrailProcessingLatency: NotRequired[int]
@@ -621,7 +674,7 @@ class GuardrailInvocationMetricsTypeDef(TypedDict):
621
674
  guardrailCoverage: NotRequired[GuardrailCoverageTypeDef]
622
675
 
623
676
  class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
624
- body: "EventStream[ResponseStreamTypeDef]"
677
+ body: EventStream[ResponseStreamTypeDef]
625
678
  contentType: str
626
679
  performanceConfigLatency: PerformanceConfigLatencyType
627
680
  ResponseMetadata: ResponseMetadataTypeDef
@@ -651,6 +704,18 @@ DocumentBlockTypeDef = TypedDict(
651
704
  "source": DocumentSourceUnionTypeDef,
652
705
  },
653
706
  )
707
+ GuardrailConverseImageBlockTypeDef = TypedDict(
708
+ "GuardrailConverseImageBlockTypeDef",
709
+ {
710
+ "format": GuardrailConverseImageFormatType,
711
+ "source": GuardrailConverseImageSourceUnionTypeDef,
712
+ },
713
+ )
714
+
715
+ class GuardrailContentBlockTypeDef(TypedDict):
716
+ text: NotRequired[GuardrailTextBlockTypeDef]
717
+ image: NotRequired[GuardrailImageBlockTypeDef]
718
+
654
719
  ImageBlockTypeDef = TypedDict(
655
720
  "ImageBlockTypeDef",
656
721
  {
@@ -658,9 +723,6 @@ ImageBlockTypeDef = TypedDict(
658
723
  "source": ImageSourceUnionTypeDef,
659
724
  },
660
725
  )
661
- GuardrailConverseContentBlockUnionTypeDef = Union[
662
- GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
663
- ]
664
726
 
665
727
  class GuardrailAssessmentTypeDef(TypedDict):
666
728
  topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
@@ -690,11 +752,17 @@ class ToolConfigurationTypeDef(TypedDict):
690
752
  toolChoice: NotRequired[ToolChoiceTypeDef]
691
753
 
692
754
  DocumentBlockUnionTypeDef = Union[DocumentBlockTypeDef, DocumentBlockOutputTypeDef]
693
- ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
755
+ GuardrailConverseImageBlockUnionTypeDef = Union[
756
+ GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
757
+ ]
694
758
 
695
- class SystemContentBlockTypeDef(TypedDict):
696
- text: NotRequired[str]
697
- guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
759
+ class ApplyGuardrailRequestRequestTypeDef(TypedDict):
760
+ guardrailIdentifier: str
761
+ guardrailVersion: str
762
+ source: GuardrailContentSourceType
763
+ content: Sequence[GuardrailContentBlockTypeDef]
764
+
765
+ ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
698
766
 
699
767
  class ApplyGuardrailResponseTypeDef(TypedDict):
700
768
  usage: GuardrailUsageTypeDef
@@ -716,11 +784,17 @@ class ToolResultBlockOutputTypeDef(TypedDict):
716
784
 
717
785
  VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
718
786
 
787
+ class GuardrailConverseContentBlockTypeDef(TypedDict):
788
+ text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
789
+ image: NotRequired[GuardrailConverseImageBlockUnionTypeDef]
790
+
719
791
  class ConverseStreamTraceTypeDef(TypedDict):
720
792
  guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
793
+ promptRouter: NotRequired[PromptRouterTraceTypeDef]
721
794
 
722
795
  class ConverseTraceTypeDef(TypedDict):
723
796
  guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
797
+ promptRouter: NotRequired[PromptRouterTraceTypeDef]
724
798
 
725
799
  class ContentBlockOutputTypeDef(TypedDict):
726
800
  text: NotRequired[str]
@@ -738,6 +812,10 @@ class ToolResultContentBlockTypeDef(TypedDict):
738
812
  document: NotRequired[DocumentBlockUnionTypeDef]
739
813
  video: NotRequired[VideoBlockUnionTypeDef]
740
814
 
815
+ GuardrailConverseContentBlockUnionTypeDef = Union[
816
+ GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
817
+ ]
818
+
741
819
  class ConverseStreamMetadataEventTypeDef(TypedDict):
742
820
  usage: TokenUsageTypeDef
743
821
  metrics: ConverseStreamMetricsTypeDef
@@ -752,6 +830,10 @@ ToolResultContentBlockUnionTypeDef = Union[
752
830
  ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
753
831
  ]
754
832
 
833
+ class SystemContentBlockTypeDef(TypedDict):
834
+ text: NotRequired[str]
835
+ guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
836
+
755
837
  class ConverseStreamOutputTypeDef(TypedDict):
756
838
  messageStart: NotRequired[MessageStartEventTypeDef]
757
839
  contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
@@ -774,7 +856,7 @@ class ToolResultBlockTypeDef(TypedDict):
774
856
  status: NotRequired[ToolResultStatusType]
775
857
 
776
858
  class ConverseStreamResponseTypeDef(TypedDict):
777
- stream: "EventStream[ConverseStreamOutputTypeDef]"
859
+ stream: EventStream[ConverseStreamOutputTypeDef]
778
860
  ResponseMetadata: ResponseMetadataTypeDef
779
861
 
780
862
  class ConverseResponseTypeDef(TypedDict):
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Source of truth for version.
3
3
 
4
- Copyright 2024 Vlad Emelianov
4
+ Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
- __version__ = "1.35.74"
7
+ __version__ = "1.35.93"
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Vlad Emelianov
3
+ Copyright (c) 2025 Vlad Emelianov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: types-boto3-bedrock-runtime
3
- Version: 1.35.74
4
- Summary: Type annotations for boto3 BedrockRuntime 1.35.74 service generated with mypy-boto3-builder 8.5.0
3
+ Version: 1.35.93
4
+ Summary: Type annotations for boto3 BedrockRuntime 1.35.93 service generated with mypy-boto3-builder 8.8.0
5
5
  Home-page: https://github.com/youtype/mypy_boto3_builder
6
6
  Author: Vlad Emelianov
7
7
  Author-email: vlad.emelianov.nz@gmail.com
@@ -30,7 +30,7 @@ Classifier: Typing :: Stubs Only
30
30
  Requires-Python: >=3.8
31
31
  Description-Content-Type: text/markdown
32
32
  License-File: LICENSE
33
- Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
33
+ Requires-Dist: typing-extensions; python_version < "3.12"
34
34
 
35
35
  <a id="types-boto3-bedrock-runtime"></a>
36
36
 
@@ -44,7 +44,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
44
44
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
45
45
 
46
46
  Type annotations for
47
- [boto3 BedrockRuntime 1.35.74](https://pypi.org/project/boto3/) compatible with
47
+ [boto3 BedrockRuntime 1.35.93](https://pypi.org/project/boto3/) compatible with
48
48
  [VSCode](https://code.visualstudio.com/),
49
49
  [PyCharm](https://www.jetbrains.com/pycharm/),
50
50
  [Emacs](https://www.gnu.org/software/emacs/),
@@ -52,8 +52,8 @@ Type annotations for
52
52
  [mypy](https://github.com/python/mypy),
53
53
  [pyright](https://github.com/microsoft/pyright) and other tools.
54
54
 
55
- Generated by
56
- [mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
55
+ Generated with
56
+ [mypy-boto3-builder 8.8.0](https://github.com/youtype/mypy_boto3_builder).
57
57
 
58
58
  More information can be found on
59
59
  [types-boto3](https://pypi.org/project/types-boto3/) page and in
@@ -65,6 +65,7 @@ See how it helps you find and fix potential bugs:
65
65
 
66
66
  - [types-boto3-bedrock-runtime](#types-boto3-bedrock-runtime)
67
67
  - [How to install](#how-to-install)
68
+ - [Generate locally (recommended)](<#generate-locally-(recommended)>)
68
69
  - [VSCode extension](#vscode-extension)
69
70
  - [From PyPI with pip](#from-pypi-with-pip)
70
71
  - [How to uninstall](#how-to-uninstall)
@@ -95,6 +96,21 @@ See how it helps you find and fix potential bugs:
95
96
 
96
97
  ## How to install
97
98
 
99
+ <a id="generate-locally-(recommended)"></a>
100
+
101
+ ### Generate locally (recommended)
102
+
103
+ You can generate type annotations for `boto3` package locally with
104
+ `mypy_boto3_builder`. Use
105
+ [uv](https://docs.astral.sh/uv/getting-started/installation/) for build
106
+ isolation.
107
+
108
+ 1. Run mypy-boto3-builder in your package root directory:
109
+ `uvx --with 'boto3==1.35.93' mypy_boto3_builder`
110
+ 2. Select `boto3` AWS SDK.
111
+ 3. Add `BedrockRuntime` service.
112
+ 4. Use provided commands to install generated packages.
113
+
98
114
  <a id="vscode-extension"></a>
99
115
 
100
116
  ### VSCode extension
@@ -115,12 +131,10 @@ Install `types-boto3` for `BedrockRuntime` service.
115
131
  # install with boto3 type annotations
116
132
  python -m pip install 'types-boto3[bedrock-runtime]'
117
133
 
118
-
119
134
  # Lite version does not provide session.client/resource overloads
120
135
  # it is more RAM-friendly, but requires explicit type annotations
121
136
  python -m pip install 'types-boto3-lite[bedrock-runtime]'
122
137
 
123
-
124
138
  # standalone installation
125
139
  python -m pip install types-boto3-bedrock-runtime
126
140
  ```
@@ -0,0 +1,18 @@
1
+ types_boto3_bedrock_runtime/__init__.py,sha256=AHhFbjXk1-kUePImPUxjoe1vkUROt8ftuxFKzz2GjiI,684
2
+ types_boto3_bedrock_runtime/__init__.pyi,sha256=l99Jdcg6QoWVrt2zpwdVIqxLHNFmPqw3wjgLQD949rM,683
3
+ types_boto3_bedrock_runtime/__main__.py,sha256=X-YjPQRNJhdmwzVZ6IpxDtcxeLRW7BKvB_xiAU5MrUA,1014
4
+ types_boto3_bedrock_runtime/client.py,sha256=Rce9XV-po0oxiCHK0qObVONHA8IYbFM6rgsi01tb3x8,8886
5
+ types_boto3_bedrock_runtime/client.pyi,sha256=TvFZfkztjDI21s6xKp8hwK-X-rtiOFMC2YABbxneZB8,8883
6
+ types_boto3_bedrock_runtime/literals.py,sha256=j-v12PMYaOIytV4wXLdwzazsyrKBCUyQtKeWEsEGjO0,12937
7
+ types_boto3_bedrock_runtime/literals.pyi,sha256=5Nnb2BiRunUREMgG-OOiLW2N2lcYWuXByGSL63qSmZU,12935
8
+ types_boto3_bedrock_runtime/paginator.py,sha256=DaxJdvvG0VrOy6rkKQ52_G-97zK-0m9zIU2ZbKsaydI,2194
9
+ types_boto3_bedrock_runtime/paginator.pyi,sha256=nyT02Krz7ZTx3EK75sQYURKqOugV5g-JhxRv6lG3N1w,2190
10
+ types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ types_boto3_bedrock_runtime/type_defs.py,sha256=vFMMWsM6HpK1DcYd_0zXDiC7vtMrKN_GJNhv5y2bzdg,29943
12
+ types_boto3_bedrock_runtime/type_defs.pyi,sha256=PEOIhdJDf27BsLEuOfttlDyxCbvSQ1h62iCWT8-IpcI,29826
13
+ types_boto3_bedrock_runtime/version.py,sha256=n6wyMBvI3Tp0INYol4fUJ84y0BqM9ti-SkLRGfsif5s,93
14
+ types_boto3_bedrock_runtime-1.35.93.dist-info/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
15
+ types_boto3_bedrock_runtime-1.35.93.dist-info/METADATA,sha256=9_16FFU7LMH7sWnF8sHD4pFvBYLJW2zhuQ9hHHSEHy4,15021
16
+ types_boto3_bedrock_runtime-1.35.93.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
17
+ types_boto3_bedrock_runtime-1.35.93.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
+ types_boto3_bedrock_runtime-1.35.93.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.7.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,18 +0,0 @@
1
- types_boto3_bedrock_runtime/__init__.py,sha256=Mwpd9xKG3liMABQUjeJqrcCbwBgLo_Sz__t48x--KYY,684
2
- types_boto3_bedrock_runtime/__init__.pyi,sha256=z3ZSV0fLVUZGq5g1mUjy-4IXEM_h2S05W0MTMQaUG78,683
3
- types_boto3_bedrock_runtime/__main__.py,sha256=CQLxmJn2qnj6nFM7cIDmxwzwTQfovzWGe5D_GVVI4g0,980
4
- types_boto3_bedrock_runtime/client.py,sha256=4Yo8rPiMrICJIifwj1qlEc4oWvmmkGJC2_YCq5f-zBU,9102
5
- types_boto3_bedrock_runtime/client.pyi,sha256=RqTf0hyQkig2Cg1NdgezhVLeNgb3PE-WUYbx-TvpE2s,9098
6
- types_boto3_bedrock_runtime/literals.py,sha256=dBuIMYufxOGhVe6eSzRgVJhUvxS0SxEwWLdUhNcvQRA,12672
7
- types_boto3_bedrock_runtime/literals.pyi,sha256=BHOZTkCaiB6Zz5-__nFqA2ynON-2dGhrpXOQ8O1GTCw,12670
8
- types_boto3_bedrock_runtime/paginator.py,sha256=kO2rc014ZBXybo7hHNZPhuFekfDiaG83JcvOKPqWhGQ,2221
9
- types_boto3_bedrock_runtime/paginator.pyi,sha256=cHJiRKWIvQlRoxuf8VBCDYCbRzaITMOJ_ovFNICjavo,2216
10
- types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- types_boto3_bedrock_runtime/type_defs.py,sha256=4aw7eLXRTZY2XKh9q2GLNtT5wwAx3I5sv2xvUAXi-Wc,27401
12
- types_boto3_bedrock_runtime/type_defs.pyi,sha256=ccoe6O3xZ2ayT3z1kN79IWw4_eZdzSbZ1OjQcQntE_k,27290
13
- types_boto3_bedrock_runtime/version.py,sha256=B0P5JUO-cREkwttMqs7oU9i3UOmgK6CWkZC0OK5p5h4,93
14
- types_boto3_bedrock_runtime-1.35.74.dist-info/LICENSE,sha256=eQDadZQZ3vRCiNF510ZT4yJV2zgo4000AOBoDRZyvKg,1070
15
- types_boto3_bedrock_runtime-1.35.74.dist-info/METADATA,sha256=O1XpfmjugH0qi0yWo8fCuHnwD5MwzJ1aocnnu1VNNWs,14469
16
- types_boto3_bedrock_runtime-1.35.74.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
17
- types_boto3_bedrock_runtime-1.35.74.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
- types_boto3_bedrock_runtime-1.35.74.dist-info/RECORD,,