types-boto3-bedrock-runtime 1.35.73__tar.gz → 1.35.74__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime.egg-info → types_boto3_bedrock_runtime-1.35.74}/PKG-INFO +26 -5
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/README.md +24 -3
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/setup.py +2 -2
- types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime/__init__.pyi → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/__init__.py +6 -1
- types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime/__init__.py → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/__init__.pyi +5 -2
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime/__main__.py +3 -3
- types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime/client.pyi → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/client.py +54 -2
- types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime/client.py → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/client.pyi +50 -6
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime/literals.py +16 -2
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime/literals.pyi +16 -2
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/paginator.py +66 -0
- types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/paginator.pyi +61 -0
- types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime/type_defs.pyi → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/type_defs.py +286 -29
- types_boto3_bedrock_runtime-1.35.73/types_boto3_bedrock_runtime/type_defs.py → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime/type_defs.pyi +167 -114
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74/types_boto3_bedrock_runtime.egg-info}/PKG-INFO +26 -5
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime.egg-info/SOURCES.txt +2 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/setup.cfg +0 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime/py.typed +0 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime.egg-info/dependency_links.txt +0 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime.egg-info/not-zip-safe +0 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime.egg-info/requires.txt +0 -0
- {types_boto3_bedrock_runtime-1.35.73 → types_boto3_bedrock_runtime-1.35.74}/types_boto3_bedrock_runtime.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.35.
|
|
3
|
+
Version: 1.35.74
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.35.74 service generated with mypy-boto3-builder 8.5.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
|
|
@@ -44,7 +44,7 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
|
44
44
|

|
|
45
45
|
|
|
46
46
|
Type annotations for
|
|
47
|
-
[boto3 BedrockRuntime 1.35.
|
|
47
|
+
[boto3 BedrockRuntime 1.35.74](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/),
|
|
@@ -79,6 +79,7 @@ See how it helps you find and fix potential bugs:
|
|
|
79
79
|
- [Pylint compatibility](#pylint-compatibility)
|
|
80
80
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
81
81
|
- [Client annotations](#client-annotations)
|
|
82
|
+
- [Paginators annotations](#paginators-annotations)
|
|
82
83
|
- [Literals](#literals)
|
|
83
84
|
- [Type definitions](#type-definitions)
|
|
84
85
|
- [How it works](#how-it-works)
|
|
@@ -315,6 +316,26 @@ client: BedrockRuntimeClient = Session().client("bedrock-runtime")
|
|
|
315
316
|
# now client usage is checked by mypy and IDE should provide code completion
|
|
316
317
|
```
|
|
317
318
|
|
|
319
|
+
<a id="paginators-annotations"></a>
|
|
320
|
+
|
|
321
|
+
### Paginators annotations
|
|
322
|
+
|
|
323
|
+
`types_boto3_bedrock_runtime.paginator` module contains type annotations for
|
|
324
|
+
all paginators.
|
|
325
|
+
|
|
326
|
+
```python
|
|
327
|
+
from boto3.session import Session
|
|
328
|
+
|
|
329
|
+
from types_boto3_bedrock_runtime import BedrockRuntimeClient
|
|
330
|
+
from types_boto3_bedrock_runtime.paginator import ListAsyncInvokesPaginator
|
|
331
|
+
|
|
332
|
+
client: BedrockRuntimeClient = Session().client("bedrock-runtime")
|
|
333
|
+
|
|
334
|
+
# Explicit type annotations are optional here
|
|
335
|
+
# Types should be correctly discovered by mypy and IDEs
|
|
336
|
+
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
337
|
+
```
|
|
338
|
+
|
|
318
339
|
<a id="literals"></a>
|
|
319
340
|
|
|
320
341
|
### Literals
|
|
@@ -326,10 +347,10 @@ Full list of `BedrockRuntime` Literals can be found in
|
|
|
326
347
|
[docs](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/).
|
|
327
348
|
|
|
328
349
|
```python
|
|
329
|
-
from types_boto3_bedrock_runtime.literals import
|
|
350
|
+
from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
|
|
330
351
|
|
|
331
352
|
|
|
332
|
-
def check_value(value:
|
|
353
|
+
def check_value(value: AsyncInvokeStatusType) -> bool: ...
|
|
333
354
|
```
|
|
334
355
|
|
|
335
356
|
<a id="type-definitions"></a>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3 BedrockRuntime 1.35.
|
|
13
|
+
[boto3 BedrockRuntime 1.35.74](https://pypi.org/project/boto3/) compatible with
|
|
14
14
|
[VSCode](https://code.visualstudio.com/),
|
|
15
15
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
16
16
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -45,6 +45,7 @@ See how it helps you find and fix potential bugs:
|
|
|
45
45
|
- [Pylint compatibility](#pylint-compatibility)
|
|
46
46
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
47
47
|
- [Client annotations](#client-annotations)
|
|
48
|
+
- [Paginators annotations](#paginators-annotations)
|
|
48
49
|
- [Literals](#literals)
|
|
49
50
|
- [Type definitions](#type-definitions)
|
|
50
51
|
- [How it works](#how-it-works)
|
|
@@ -281,6 +282,26 @@ client: BedrockRuntimeClient = Session().client("bedrock-runtime")
|
|
|
281
282
|
# now client usage is checked by mypy and IDE should provide code completion
|
|
282
283
|
```
|
|
283
284
|
|
|
285
|
+
<a id="paginators-annotations"></a>
|
|
286
|
+
|
|
287
|
+
### Paginators annotations
|
|
288
|
+
|
|
289
|
+
`types_boto3_bedrock_runtime.paginator` module contains type annotations for
|
|
290
|
+
all paginators.
|
|
291
|
+
|
|
292
|
+
```python
|
|
293
|
+
from boto3.session import Session
|
|
294
|
+
|
|
295
|
+
from types_boto3_bedrock_runtime import BedrockRuntimeClient
|
|
296
|
+
from types_boto3_bedrock_runtime.paginator import ListAsyncInvokesPaginator
|
|
297
|
+
|
|
298
|
+
client: BedrockRuntimeClient = Session().client("bedrock-runtime")
|
|
299
|
+
|
|
300
|
+
# Explicit type annotations are optional here
|
|
301
|
+
# Types should be correctly discovered by mypy and IDEs
|
|
302
|
+
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
303
|
+
```
|
|
304
|
+
|
|
284
305
|
<a id="literals"></a>
|
|
285
306
|
|
|
286
307
|
### Literals
|
|
@@ -292,10 +313,10 @@ Full list of `BedrockRuntime` Literals can be found in
|
|
|
292
313
|
[docs](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/).
|
|
293
314
|
|
|
294
315
|
```python
|
|
295
|
-
from types_boto3_bedrock_runtime.literals import
|
|
316
|
+
from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
|
|
296
317
|
|
|
297
318
|
|
|
298
|
-
def check_value(value:
|
|
319
|
+
def check_value(value: AsyncInvokeStatusType) -> bool: ...
|
|
299
320
|
```
|
|
300
321
|
|
|
301
322
|
<a id="type-definitions"></a>
|
|
@@ -13,13 +13,13 @@ LONG_DESCRIPTION = (Path(__file__).parent / "README.md").read_text()
|
|
|
13
13
|
|
|
14
14
|
setup(
|
|
15
15
|
name="types-boto3-bedrock-runtime",
|
|
16
|
-
version="1.35.
|
|
16
|
+
version="1.35.74",
|
|
17
17
|
packages=["types_boto3_bedrock_runtime"],
|
|
18
18
|
url="https://github.com/youtype/mypy_boto3_builder",
|
|
19
19
|
license="MIT License",
|
|
20
20
|
author="Vlad Emelianov",
|
|
21
21
|
author_email="vlad.emelianov.nz@gmail.com",
|
|
22
|
-
description="Type annotations for boto3 BedrockRuntime 1.35.
|
|
22
|
+
description="Type annotations for boto3 BedrockRuntime 1.35.74 service generated with mypy-boto3-builder 8.5.0",
|
|
23
23
|
classifiers=[
|
|
24
24
|
"Development Status :: 5 - Production/Stable",
|
|
25
25
|
"Intended Audience :: Developers",
|
|
@@ -8,17 +8,22 @@ Usage::
|
|
|
8
8
|
from types_boto3_bedrock_runtime import (
|
|
9
9
|
BedrockRuntimeClient,
|
|
10
10
|
Client,
|
|
11
|
+
ListAsyncInvokesPaginator,
|
|
11
12
|
)
|
|
12
13
|
|
|
13
14
|
session = Session()
|
|
14
15
|
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
16
|
+
|
|
17
|
+
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
15
18
|
```
|
|
16
19
|
|
|
17
20
|
Copyright 2024 Vlad Emelianov
|
|
18
21
|
"""
|
|
19
22
|
|
|
20
23
|
from .client import BedrockRuntimeClient
|
|
24
|
+
from .paginator import ListAsyncInvokesPaginator
|
|
21
25
|
|
|
22
26
|
Client = BedrockRuntimeClient
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
|
|
29
|
+
__all__ = ("BedrockRuntimeClient", "Client", "ListAsyncInvokesPaginator")
|
|
@@ -8,18 +8,21 @@ Usage::
|
|
|
8
8
|
from types_boto3_bedrock_runtime import (
|
|
9
9
|
BedrockRuntimeClient,
|
|
10
10
|
Client,
|
|
11
|
+
ListAsyncInvokesPaginator,
|
|
11
12
|
)
|
|
12
13
|
|
|
13
14
|
session = Session()
|
|
14
15
|
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
16
|
+
|
|
17
|
+
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
15
18
|
```
|
|
16
19
|
|
|
17
20
|
Copyright 2024 Vlad Emelianov
|
|
18
21
|
"""
|
|
19
22
|
|
|
20
23
|
from .client import BedrockRuntimeClient
|
|
24
|
+
from .paginator import ListAsyncInvokesPaginator
|
|
21
25
|
|
|
22
26
|
Client = BedrockRuntimeClient
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
__all__ = ("BedrockRuntimeClient", "Client")
|
|
28
|
+
__all__ = ("BedrockRuntimeClient", "Client", "ListAsyncInvokesPaginator")
|
|
@@ -12,8 +12,8 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
print(
|
|
15
|
-
"Type annotations for boto3 BedrockRuntime 1.35.
|
|
16
|
-
"Version: 1.35.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.35.74\n"
|
|
16
|
+
"Version: 1.35.74\n"
|
|
17
17
|
"Builder version: 8.5.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
print("1.35.
|
|
29
|
+
print("1.35.74")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -21,6 +21,7 @@ from typing import Any, Dict, Mapping, Type
|
|
|
21
21
|
|
|
22
22
|
from botocore.client import BaseClient, ClientMeta
|
|
23
23
|
|
|
24
|
+
from .paginator import ListAsyncInvokesPaginator
|
|
24
25
|
from .type_defs import (
|
|
25
26
|
ApplyGuardrailRequestRequestTypeDef,
|
|
26
27
|
ApplyGuardrailResponseTypeDef,
|
|
@@ -28,19 +29,27 @@ from .type_defs import (
|
|
|
28
29
|
ConverseResponseTypeDef,
|
|
29
30
|
ConverseStreamRequestRequestTypeDef,
|
|
30
31
|
ConverseStreamResponseTypeDef,
|
|
32
|
+
GetAsyncInvokeRequestRequestTypeDef,
|
|
33
|
+
GetAsyncInvokeResponseTypeDef,
|
|
31
34
|
InvokeModelRequestRequestTypeDef,
|
|
32
35
|
InvokeModelResponseTypeDef,
|
|
33
36
|
InvokeModelWithResponseStreamRequestRequestTypeDef,
|
|
34
37
|
InvokeModelWithResponseStreamResponseTypeDef,
|
|
38
|
+
ListAsyncInvokesRequestRequestTypeDef,
|
|
39
|
+
ListAsyncInvokesResponseTypeDef,
|
|
40
|
+
StartAsyncInvokeRequestRequestTypeDef,
|
|
41
|
+
StartAsyncInvokeResponseTypeDef,
|
|
35
42
|
)
|
|
36
43
|
|
|
37
44
|
if sys.version_info >= (3, 12):
|
|
38
|
-
from typing import Unpack
|
|
45
|
+
from typing import Literal, Unpack
|
|
39
46
|
else:
|
|
40
|
-
from typing_extensions import Unpack
|
|
47
|
+
from typing_extensions import Literal, Unpack
|
|
48
|
+
|
|
41
49
|
|
|
42
50
|
__all__ = ("BedrockRuntimeClient",)
|
|
43
51
|
|
|
52
|
+
|
|
44
53
|
class BotocoreClientError(Exception):
|
|
45
54
|
MSG_TEMPLATE: str
|
|
46
55
|
|
|
@@ -48,9 +57,11 @@ class BotocoreClientError(Exception):
|
|
|
48
57
|
self.response: Dict[str, Any]
|
|
49
58
|
self.operation_name: str
|
|
50
59
|
|
|
60
|
+
|
|
51
61
|
class Exceptions:
|
|
52
62
|
AccessDeniedException: Type[BotocoreClientError]
|
|
53
63
|
ClientError: Type[BotocoreClientError]
|
|
64
|
+
ConflictException: Type[BotocoreClientError]
|
|
54
65
|
InternalServerException: Type[BotocoreClientError]
|
|
55
66
|
ModelErrorException: Type[BotocoreClientError]
|
|
56
67
|
ModelNotReadyException: Type[BotocoreClientError]
|
|
@@ -62,6 +73,7 @@ class Exceptions:
|
|
|
62
73
|
ThrottlingException: Type[BotocoreClientError]
|
|
63
74
|
ValidationException: Type[BotocoreClientError]
|
|
64
75
|
|
|
76
|
+
|
|
65
77
|
class BedrockRuntimeClient(BaseClient):
|
|
66
78
|
"""
|
|
67
79
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
@@ -132,6 +144,16 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
132
144
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
|
|
133
145
|
"""
|
|
134
146
|
|
|
147
|
+
def get_async_invoke(
|
|
148
|
+
self, **kwargs: Unpack[GetAsyncInvokeRequestRequestTypeDef]
|
|
149
|
+
) -> GetAsyncInvokeResponseTypeDef:
|
|
150
|
+
"""
|
|
151
|
+
Retrieve information about an asynchronous invocation.
|
|
152
|
+
|
|
153
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_async_invoke.html)
|
|
154
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_async_invoke)
|
|
155
|
+
"""
|
|
156
|
+
|
|
135
157
|
def invoke_model(
|
|
136
158
|
self, **kwargs: Unpack[InvokeModelRequestRequestTypeDef]
|
|
137
159
|
) -> InvokeModelResponseTypeDef:
|
|
@@ -153,3 +175,33 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
153
175
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model_with_response_stream.html)
|
|
154
176
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model_with_response_stream)
|
|
155
177
|
"""
|
|
178
|
+
|
|
179
|
+
def list_async_invokes(
|
|
180
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestRequestTypeDef]
|
|
181
|
+
) -> ListAsyncInvokesResponseTypeDef:
|
|
182
|
+
"""
|
|
183
|
+
Lists asynchronous invocations.
|
|
184
|
+
|
|
185
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/list_async_invokes.html)
|
|
186
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#list_async_invokes)
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
def start_async_invoke(
|
|
190
|
+
self, **kwargs: Unpack[StartAsyncInvokeRequestRequestTypeDef]
|
|
191
|
+
) -> StartAsyncInvokeResponseTypeDef:
|
|
192
|
+
"""
|
|
193
|
+
Starts an asynchronous invocation.
|
|
194
|
+
|
|
195
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/start_async_invoke.html)
|
|
196
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
def get_paginator(
|
|
200
|
+
self, operation_name: Literal["list_async_invokes"]
|
|
201
|
+
) -> ListAsyncInvokesPaginator:
|
|
202
|
+
"""
|
|
203
|
+
Create a paginator for an operation.
|
|
204
|
+
|
|
205
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_paginator.html)
|
|
206
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_paginator)
|
|
207
|
+
"""
|
|
@@ -21,6 +21,7 @@ from typing import Any, Dict, Mapping, Type
|
|
|
21
21
|
|
|
22
22
|
from botocore.client import BaseClient, ClientMeta
|
|
23
23
|
|
|
24
|
+
from .paginator import ListAsyncInvokesPaginator
|
|
24
25
|
from .type_defs import (
|
|
25
26
|
ApplyGuardrailRequestRequestTypeDef,
|
|
26
27
|
ApplyGuardrailResponseTypeDef,
|
|
@@ -28,21 +29,25 @@ from .type_defs import (
|
|
|
28
29
|
ConverseResponseTypeDef,
|
|
29
30
|
ConverseStreamRequestRequestTypeDef,
|
|
30
31
|
ConverseStreamResponseTypeDef,
|
|
32
|
+
GetAsyncInvokeRequestRequestTypeDef,
|
|
33
|
+
GetAsyncInvokeResponseTypeDef,
|
|
31
34
|
InvokeModelRequestRequestTypeDef,
|
|
32
35
|
InvokeModelResponseTypeDef,
|
|
33
36
|
InvokeModelWithResponseStreamRequestRequestTypeDef,
|
|
34
37
|
InvokeModelWithResponseStreamResponseTypeDef,
|
|
38
|
+
ListAsyncInvokesRequestRequestTypeDef,
|
|
39
|
+
ListAsyncInvokesResponseTypeDef,
|
|
40
|
+
StartAsyncInvokeRequestRequestTypeDef,
|
|
41
|
+
StartAsyncInvokeResponseTypeDef,
|
|
35
42
|
)
|
|
36
43
|
|
|
37
44
|
if sys.version_info >= (3, 12):
|
|
38
|
-
from typing import Unpack
|
|
45
|
+
from typing import Literal, Unpack
|
|
39
46
|
else:
|
|
40
|
-
from typing_extensions import Unpack
|
|
41
|
-
|
|
47
|
+
from typing_extensions import Literal, Unpack
|
|
42
48
|
|
|
43
49
|
__all__ = ("BedrockRuntimeClient",)
|
|
44
50
|
|
|
45
|
-
|
|
46
51
|
class BotocoreClientError(Exception):
|
|
47
52
|
MSG_TEMPLATE: str
|
|
48
53
|
|
|
@@ -50,10 +55,10 @@ class BotocoreClientError(Exception):
|
|
|
50
55
|
self.response: Dict[str, Any]
|
|
51
56
|
self.operation_name: str
|
|
52
57
|
|
|
53
|
-
|
|
54
58
|
class Exceptions:
|
|
55
59
|
AccessDeniedException: Type[BotocoreClientError]
|
|
56
60
|
ClientError: Type[BotocoreClientError]
|
|
61
|
+
ConflictException: Type[BotocoreClientError]
|
|
57
62
|
InternalServerException: Type[BotocoreClientError]
|
|
58
63
|
ModelErrorException: Type[BotocoreClientError]
|
|
59
64
|
ModelNotReadyException: Type[BotocoreClientError]
|
|
@@ -65,7 +70,6 @@ class Exceptions:
|
|
|
65
70
|
ThrottlingException: Type[BotocoreClientError]
|
|
66
71
|
ValidationException: Type[BotocoreClientError]
|
|
67
72
|
|
|
68
|
-
|
|
69
73
|
class BedrockRuntimeClient(BaseClient):
|
|
70
74
|
"""
|
|
71
75
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#BedrockRuntime.Client)
|
|
@@ -136,6 +140,16 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
136
140
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
|
|
137
141
|
"""
|
|
138
142
|
|
|
143
|
+
def get_async_invoke(
|
|
144
|
+
self, **kwargs: Unpack[GetAsyncInvokeRequestRequestTypeDef]
|
|
145
|
+
) -> GetAsyncInvokeResponseTypeDef:
|
|
146
|
+
"""
|
|
147
|
+
Retrieve information about an asynchronous invocation.
|
|
148
|
+
|
|
149
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_async_invoke.html)
|
|
150
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_async_invoke)
|
|
151
|
+
"""
|
|
152
|
+
|
|
139
153
|
def invoke_model(
|
|
140
154
|
self, **kwargs: Unpack[InvokeModelRequestRequestTypeDef]
|
|
141
155
|
) -> InvokeModelResponseTypeDef:
|
|
@@ -157,3 +171,33 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
157
171
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/invoke_model_with_response_stream.html)
|
|
158
172
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#invoke_model_with_response_stream)
|
|
159
173
|
"""
|
|
174
|
+
|
|
175
|
+
def list_async_invokes(
|
|
176
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestRequestTypeDef]
|
|
177
|
+
) -> ListAsyncInvokesResponseTypeDef:
|
|
178
|
+
"""
|
|
179
|
+
Lists asynchronous invocations.
|
|
180
|
+
|
|
181
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/list_async_invokes.html)
|
|
182
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#list_async_invokes)
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
def start_async_invoke(
|
|
186
|
+
self, **kwargs: Unpack[StartAsyncInvokeRequestRequestTypeDef]
|
|
187
|
+
) -> StartAsyncInvokeResponseTypeDef:
|
|
188
|
+
"""
|
|
189
|
+
Starts an asynchronous invocation.
|
|
190
|
+
|
|
191
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/start_async_invoke.html)
|
|
192
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#start_async_invoke)
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
def get_paginator(
|
|
196
|
+
self, operation_name: Literal["list_async_invokes"]
|
|
197
|
+
) -> ListAsyncInvokesPaginator:
|
|
198
|
+
"""
|
|
199
|
+
Create a paginator for an operation.
|
|
200
|
+
|
|
201
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/get_paginator.html)
|
|
202
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#get_paginator)
|
|
203
|
+
"""
|
|
@@ -6,9 +6,9 @@ Type annotations for bedrock-runtime service literal definitions.
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
8
8
|
```python
|
|
9
|
-
from types_boto3_bedrock_runtime.literals import
|
|
9
|
+
from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
|
|
10
10
|
|
|
11
|
-
data:
|
|
11
|
+
data: AsyncInvokeStatusType = "Completed"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Copyright 2024 Vlad Emelianov
|
|
@@ -23,6 +23,7 @@ else:
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
__all__ = (
|
|
26
|
+
"AsyncInvokeStatusType",
|
|
26
27
|
"BedrockRuntimeServiceName",
|
|
27
28
|
"ConversationRoleType",
|
|
28
29
|
"DocumentFormatType",
|
|
@@ -45,15 +46,21 @@ __all__ = (
|
|
|
45
46
|
"GuardrailTraceType",
|
|
46
47
|
"GuardrailWordPolicyActionType",
|
|
47
48
|
"ImageFormatType",
|
|
49
|
+
"ListAsyncInvokesPaginatorName",
|
|
50
|
+
"PaginatorName",
|
|
48
51
|
"PerformanceConfigLatencyType",
|
|
49
52
|
"ResourceServiceName",
|
|
50
53
|
"ServiceName",
|
|
54
|
+
"SortAsyncInvocationByType",
|
|
55
|
+
"SortOrderType",
|
|
51
56
|
"StopReasonType",
|
|
52
57
|
"ToolResultStatusType",
|
|
53
58
|
"TraceType",
|
|
59
|
+
"VideoFormatType",
|
|
54
60
|
)
|
|
55
61
|
|
|
56
62
|
|
|
63
|
+
AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
|
|
57
64
|
ConversationRoleType = Literal["assistant", "user"]
|
|
58
65
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
59
66
|
GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
|
|
@@ -109,7 +116,10 @@ GuardrailTopicTypeType = Literal["DENY"]
|
|
|
109
116
|
GuardrailTraceType = Literal["disabled", "enabled"]
|
|
110
117
|
GuardrailWordPolicyActionType = Literal["BLOCKED"]
|
|
111
118
|
ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
|
|
119
|
+
ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
|
|
112
120
|
PerformanceConfigLatencyType = Literal["optimized", "standard"]
|
|
121
|
+
SortAsyncInvocationByType = Literal["SubmissionTime"]
|
|
122
|
+
SortOrderType = Literal["Ascending", "Descending"]
|
|
113
123
|
StopReasonType = Literal[
|
|
114
124
|
"content_filtered",
|
|
115
125
|
"end_turn",
|
|
@@ -120,6 +130,7 @@ StopReasonType = Literal[
|
|
|
120
130
|
]
|
|
121
131
|
ToolResultStatusType = Literal["error", "success"]
|
|
122
132
|
TraceType = Literal["DISABLED", "ENABLED"]
|
|
133
|
+
VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
|
|
123
134
|
BedrockRuntimeServiceName = Literal["bedrock-runtime"]
|
|
124
135
|
ServiceName = Literal[
|
|
125
136
|
"accessanalyzer",
|
|
@@ -239,6 +250,7 @@ ServiceName = Literal[
|
|
|
239
250
|
"drs",
|
|
240
251
|
"ds",
|
|
241
252
|
"ds-data",
|
|
253
|
+
"dsql",
|
|
242
254
|
"dynamodb",
|
|
243
255
|
"dynamodbstreams",
|
|
244
256
|
"ebs",
|
|
@@ -449,6 +461,7 @@ ServiceName = Literal[
|
|
|
449
461
|
"s3",
|
|
450
462
|
"s3control",
|
|
451
463
|
"s3outposts",
|
|
464
|
+
"s3tables",
|
|
452
465
|
"sagemaker",
|
|
453
466
|
"sagemaker-a2i-runtime",
|
|
454
467
|
"sagemaker-edge",
|
|
@@ -535,3 +548,4 @@ ResourceServiceName = Literal[
|
|
|
535
548
|
"sns",
|
|
536
549
|
"sqs",
|
|
537
550
|
]
|
|
551
|
+
PaginatorName = Literal["list_async_invokes"]
|
|
@@ -6,9 +6,9 @@ Type annotations for bedrock-runtime service literal definitions.
|
|
|
6
6
|
Usage::
|
|
7
7
|
|
|
8
8
|
```python
|
|
9
|
-
from types_boto3_bedrock_runtime.literals import
|
|
9
|
+
from types_boto3_bedrock_runtime.literals import AsyncInvokeStatusType
|
|
10
10
|
|
|
11
|
-
data:
|
|
11
|
+
data: AsyncInvokeStatusType = "Completed"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Copyright 2024 Vlad Emelianov
|
|
@@ -22,6 +22,7 @@ else:
|
|
|
22
22
|
from typing_extensions import Literal
|
|
23
23
|
|
|
24
24
|
__all__ = (
|
|
25
|
+
"AsyncInvokeStatusType",
|
|
25
26
|
"BedrockRuntimeServiceName",
|
|
26
27
|
"ConversationRoleType",
|
|
27
28
|
"DocumentFormatType",
|
|
@@ -44,14 +45,20 @@ __all__ = (
|
|
|
44
45
|
"GuardrailTraceType",
|
|
45
46
|
"GuardrailWordPolicyActionType",
|
|
46
47
|
"ImageFormatType",
|
|
48
|
+
"ListAsyncInvokesPaginatorName",
|
|
49
|
+
"PaginatorName",
|
|
47
50
|
"PerformanceConfigLatencyType",
|
|
48
51
|
"ResourceServiceName",
|
|
49
52
|
"ServiceName",
|
|
53
|
+
"SortAsyncInvocationByType",
|
|
54
|
+
"SortOrderType",
|
|
50
55
|
"StopReasonType",
|
|
51
56
|
"ToolResultStatusType",
|
|
52
57
|
"TraceType",
|
|
58
|
+
"VideoFormatType",
|
|
53
59
|
)
|
|
54
60
|
|
|
61
|
+
AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
|
|
55
62
|
ConversationRoleType = Literal["assistant", "user"]
|
|
56
63
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
57
64
|
GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
|
|
@@ -107,7 +114,10 @@ GuardrailTopicTypeType = Literal["DENY"]
|
|
|
107
114
|
GuardrailTraceType = Literal["disabled", "enabled"]
|
|
108
115
|
GuardrailWordPolicyActionType = Literal["BLOCKED"]
|
|
109
116
|
ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
|
|
117
|
+
ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
|
|
110
118
|
PerformanceConfigLatencyType = Literal["optimized", "standard"]
|
|
119
|
+
SortAsyncInvocationByType = Literal["SubmissionTime"]
|
|
120
|
+
SortOrderType = Literal["Ascending", "Descending"]
|
|
111
121
|
StopReasonType = Literal[
|
|
112
122
|
"content_filtered",
|
|
113
123
|
"end_turn",
|
|
@@ -118,6 +128,7 @@ StopReasonType = Literal[
|
|
|
118
128
|
]
|
|
119
129
|
ToolResultStatusType = Literal["error", "success"]
|
|
120
130
|
TraceType = Literal["DISABLED", "ENABLED"]
|
|
131
|
+
VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
|
|
121
132
|
BedrockRuntimeServiceName = Literal["bedrock-runtime"]
|
|
122
133
|
ServiceName = Literal[
|
|
123
134
|
"accessanalyzer",
|
|
@@ -237,6 +248,7 @@ ServiceName = Literal[
|
|
|
237
248
|
"drs",
|
|
238
249
|
"ds",
|
|
239
250
|
"ds-data",
|
|
251
|
+
"dsql",
|
|
240
252
|
"dynamodb",
|
|
241
253
|
"dynamodbstreams",
|
|
242
254
|
"ebs",
|
|
@@ -447,6 +459,7 @@ ServiceName = Literal[
|
|
|
447
459
|
"s3",
|
|
448
460
|
"s3control",
|
|
449
461
|
"s3outposts",
|
|
462
|
+
"s3tables",
|
|
450
463
|
"sagemaker",
|
|
451
464
|
"sagemaker-a2i-runtime",
|
|
452
465
|
"sagemaker-edge",
|
|
@@ -533,3 +546,4 @@ ResourceServiceName = Literal[
|
|
|
533
546
|
"sns",
|
|
534
547
|
"sqs",
|
|
535
548
|
]
|
|
549
|
+
PaginatorName = Literal["list_async_invokes"]
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for bedrock-runtime service client paginators.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
|
|
11
|
+
from types_boto3_bedrock_runtime.client import BedrockRuntimeClient
|
|
12
|
+
from types_boto3_bedrock_runtime.paginator import (
|
|
13
|
+
ListAsyncInvokesPaginator,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
session = Session()
|
|
17
|
+
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
18
|
+
|
|
19
|
+
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Copyright 2024 Vlad Emelianov
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
import sys
|
|
26
|
+
from typing import Generic, Iterator, TypeVar
|
|
27
|
+
|
|
28
|
+
from botocore.paginate import PageIterator, Paginator
|
|
29
|
+
|
|
30
|
+
from .type_defs import (
|
|
31
|
+
ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef,
|
|
32
|
+
ListAsyncInvokesResponseTypeDef,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
if sys.version_info >= (3, 12):
|
|
36
|
+
from typing import Unpack
|
|
37
|
+
else:
|
|
38
|
+
from typing_extensions import Unpack
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
__all__ = ("ListAsyncInvokesPaginator",)
|
|
42
|
+
|
|
43
|
+
|
|
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
|
+
"""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class ListAsyncInvokesPaginator(Paginator):
|
|
55
|
+
"""
|
|
56
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes)
|
|
57
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
def paginate(
|
|
61
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestListAsyncInvokesPaginateTypeDef]
|
|
62
|
+
) -> _PageIterator[ListAsyncInvokesResponseTypeDef]:
|
|
63
|
+
"""
|
|
64
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/paginator/ListAsyncInvokes.html#BedrockRuntime.Paginator.ListAsyncInvokes.paginate)
|
|
65
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/#listasyncinvokespaginator)
|
|
66
|
+
"""
|