types-boto3-bedrock-runtime 1.36.2__py3-none-any.whl → 1.37.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- types_boto3_bedrock_runtime/__init__.py +4 -2
- types_boto3_bedrock_runtime/__init__.pyi +4 -2
- types_boto3_bedrock_runtime/__main__.py +4 -4
- types_boto3_bedrock_runtime/client.py +18 -18
- types_boto3_bedrock_runtime/client.pyi +18 -18
- types_boto3_bedrock_runtime/literals.py +4 -3
- types_boto3_bedrock_runtime/literals.pyi +4 -3
- types_boto3_bedrock_runtime/paginator.py +2 -2
- types_boto3_bedrock_runtime/paginator.pyi +2 -2
- types_boto3_bedrock_runtime/type_defs.py +58 -24
- types_boto3_bedrock_runtime/type_defs.pyi +52 -23
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.36.2.dist-info → types_boto3_bedrock_runtime-1.37.7.dist-info}/METADATA +12 -8
- types_boto3_bedrock_runtime-1.37.7.dist-info/RECORD +18 -0
- {types_boto3_bedrock_runtime-1.36.2.dist-info → types_boto3_bedrock_runtime-1.37.7.dist-info}/WHEEL +1 -1
- types_boto3_bedrock_runtime-1.36.2.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.36.2.dist-info → types_boto3_bedrock_runtime-1.37.7.dist-info}/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.36.2.dist-info → types_boto3_bedrock_runtime-1.37.7.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main interface for bedrock-runtime service.
|
|
3
3
|
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/)
|
|
5
|
+
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
4
8
|
Usage::
|
|
5
9
|
|
|
6
10
|
```python
|
|
@@ -16,8 +20,6 @@ Usage::
|
|
|
16
20
|
|
|
17
21
|
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
18
22
|
```
|
|
19
|
-
|
|
20
|
-
Copyright 2025 Vlad Emelianov
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
from .client import BedrockRuntimeClient
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main interface for bedrock-runtime service.
|
|
3
3
|
|
|
4
|
+
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/)
|
|
5
|
+
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
4
8
|
Usage::
|
|
5
9
|
|
|
6
10
|
```python
|
|
@@ -16,8 +20,6 @@ Usage::
|
|
|
16
20
|
|
|
17
21
|
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
18
22
|
```
|
|
19
|
-
|
|
20
|
-
Copyright 2025 Vlad Emelianov
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
from .client import BedrockRuntimeClient
|
|
@@ -12,9 +12,9 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
sys.stdout.write(
|
|
15
|
-
"Type annotations for boto3 BedrockRuntime 1.
|
|
16
|
-
"Version: 1.
|
|
17
|
-
"Builder version: 8.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.37.7\n"
|
|
16
|
+
"Version: 1.37.7\n"
|
|
17
|
+
"Builder version: 8.10.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
20
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
sys.stdout.write("1.
|
|
29
|
+
sys.stdout.write("1.37.7\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service Client.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -12,8 +14,6 @@ Usage::
|
|
|
12
14
|
session = Session()
|
|
13
15
|
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
14
16
|
```
|
|
15
|
-
|
|
16
|
-
Copyright 2025 Vlad Emelianov
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
@@ -27,21 +27,21 @@ from botocore.exceptions import ClientError as BotocoreClientError
|
|
|
27
27
|
|
|
28
28
|
from .paginator import ListAsyncInvokesPaginator
|
|
29
29
|
from .type_defs import (
|
|
30
|
-
|
|
30
|
+
ApplyGuardrailRequestTypeDef,
|
|
31
31
|
ApplyGuardrailResponseTypeDef,
|
|
32
|
-
|
|
32
|
+
ConverseRequestTypeDef,
|
|
33
33
|
ConverseResponseTypeDef,
|
|
34
|
-
|
|
34
|
+
ConverseStreamRequestTypeDef,
|
|
35
35
|
ConverseStreamResponseTypeDef,
|
|
36
|
-
|
|
36
|
+
GetAsyncInvokeRequestTypeDef,
|
|
37
37
|
GetAsyncInvokeResponseTypeDef,
|
|
38
|
-
|
|
38
|
+
InvokeModelRequestTypeDef,
|
|
39
39
|
InvokeModelResponseTypeDef,
|
|
40
|
-
|
|
40
|
+
InvokeModelWithResponseStreamRequestTypeDef,
|
|
41
41
|
InvokeModelWithResponseStreamResponseTypeDef,
|
|
42
|
-
|
|
42
|
+
ListAsyncInvokesRequestTypeDef,
|
|
43
43
|
ListAsyncInvokesResponseTypeDef,
|
|
44
|
-
|
|
44
|
+
StartAsyncInvokeRequestTypeDef,
|
|
45
45
|
StartAsyncInvokeResponseTypeDef,
|
|
46
46
|
)
|
|
47
47
|
|
|
@@ -111,7 +111,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
111
111
|
"""
|
|
112
112
|
|
|
113
113
|
def apply_guardrail(
|
|
114
|
-
self, **kwargs: Unpack[
|
|
114
|
+
self, **kwargs: Unpack[ApplyGuardrailRequestTypeDef]
|
|
115
115
|
) -> ApplyGuardrailResponseTypeDef:
|
|
116
116
|
"""
|
|
117
117
|
The action to apply a guardrail.
|
|
@@ -120,7 +120,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
120
120
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#apply_guardrail)
|
|
121
121
|
"""
|
|
122
122
|
|
|
123
|
-
def converse(self, **kwargs: Unpack[
|
|
123
|
+
def converse(self, **kwargs: Unpack[ConverseRequestTypeDef]) -> ConverseResponseTypeDef:
|
|
124
124
|
"""
|
|
125
125
|
Sends messages to the specified Amazon Bedrock model.
|
|
126
126
|
|
|
@@ -129,7 +129,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
129
129
|
"""
|
|
130
130
|
|
|
131
131
|
def converse_stream(
|
|
132
|
-
self, **kwargs: Unpack[
|
|
132
|
+
self, **kwargs: Unpack[ConverseStreamRequestTypeDef]
|
|
133
133
|
) -> ConverseStreamResponseTypeDef:
|
|
134
134
|
"""
|
|
135
135
|
Sends messages to the specified Amazon Bedrock model and returns the response
|
|
@@ -140,7 +140,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
140
140
|
"""
|
|
141
141
|
|
|
142
142
|
def get_async_invoke(
|
|
143
|
-
self, **kwargs: Unpack[
|
|
143
|
+
self, **kwargs: Unpack[GetAsyncInvokeRequestTypeDef]
|
|
144
144
|
) -> GetAsyncInvokeResponseTypeDef:
|
|
145
145
|
"""
|
|
146
146
|
Retrieve information about an asynchronous invocation.
|
|
@@ -150,7 +150,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
def invoke_model(
|
|
153
|
-
self, **kwargs: Unpack[
|
|
153
|
+
self, **kwargs: Unpack[InvokeModelRequestTypeDef]
|
|
154
154
|
) -> InvokeModelResponseTypeDef:
|
|
155
155
|
"""
|
|
156
156
|
Invokes the specified Amazon Bedrock model to run inference using the prompt
|
|
@@ -161,7 +161,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
161
161
|
"""
|
|
162
162
|
|
|
163
163
|
def invoke_model_with_response_stream(
|
|
164
|
-
self, **kwargs: Unpack[
|
|
164
|
+
self, **kwargs: Unpack[InvokeModelWithResponseStreamRequestTypeDef]
|
|
165
165
|
) -> InvokeModelWithResponseStreamResponseTypeDef:
|
|
166
166
|
"""
|
|
167
167
|
Invoke the specified Amazon Bedrock model to run inference using the prompt and
|
|
@@ -172,7 +172,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
172
172
|
"""
|
|
173
173
|
|
|
174
174
|
def list_async_invokes(
|
|
175
|
-
self, **kwargs: Unpack[
|
|
175
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestTypeDef]
|
|
176
176
|
) -> ListAsyncInvokesResponseTypeDef:
|
|
177
177
|
"""
|
|
178
178
|
Lists asynchronous invocations.
|
|
@@ -182,7 +182,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
182
182
|
"""
|
|
183
183
|
|
|
184
184
|
def start_async_invoke(
|
|
185
|
-
self, **kwargs: Unpack[
|
|
185
|
+
self, **kwargs: Unpack[StartAsyncInvokeRequestTypeDef]
|
|
186
186
|
) -> StartAsyncInvokeResponseTypeDef:
|
|
187
187
|
"""
|
|
188
188
|
Starts an asynchronous invocation.
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service Client.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -12,8 +14,6 @@ Usage::
|
|
|
12
14
|
session = Session()
|
|
13
15
|
client: BedrockRuntimeClient = session.client("bedrock-runtime")
|
|
14
16
|
```
|
|
15
|
-
|
|
16
|
-
Copyright 2025 Vlad Emelianov
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
@@ -27,21 +27,21 @@ from botocore.exceptions import ClientError as BotocoreClientError
|
|
|
27
27
|
|
|
28
28
|
from .paginator import ListAsyncInvokesPaginator
|
|
29
29
|
from .type_defs import (
|
|
30
|
-
|
|
30
|
+
ApplyGuardrailRequestTypeDef,
|
|
31
31
|
ApplyGuardrailResponseTypeDef,
|
|
32
|
-
|
|
32
|
+
ConverseRequestTypeDef,
|
|
33
33
|
ConverseResponseTypeDef,
|
|
34
|
-
|
|
34
|
+
ConverseStreamRequestTypeDef,
|
|
35
35
|
ConverseStreamResponseTypeDef,
|
|
36
|
-
|
|
36
|
+
GetAsyncInvokeRequestTypeDef,
|
|
37
37
|
GetAsyncInvokeResponseTypeDef,
|
|
38
|
-
|
|
38
|
+
InvokeModelRequestTypeDef,
|
|
39
39
|
InvokeModelResponseTypeDef,
|
|
40
|
-
|
|
40
|
+
InvokeModelWithResponseStreamRequestTypeDef,
|
|
41
41
|
InvokeModelWithResponseStreamResponseTypeDef,
|
|
42
|
-
|
|
42
|
+
ListAsyncInvokesRequestTypeDef,
|
|
43
43
|
ListAsyncInvokesResponseTypeDef,
|
|
44
|
-
|
|
44
|
+
StartAsyncInvokeRequestTypeDef,
|
|
45
45
|
StartAsyncInvokeResponseTypeDef,
|
|
46
46
|
)
|
|
47
47
|
|
|
@@ -108,7 +108,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
108
108
|
"""
|
|
109
109
|
|
|
110
110
|
def apply_guardrail(
|
|
111
|
-
self, **kwargs: Unpack[
|
|
111
|
+
self, **kwargs: Unpack[ApplyGuardrailRequestTypeDef]
|
|
112
112
|
) -> ApplyGuardrailResponseTypeDef:
|
|
113
113
|
"""
|
|
114
114
|
The action to apply a guardrail.
|
|
@@ -117,7 +117,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
117
117
|
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#apply_guardrail)
|
|
118
118
|
"""
|
|
119
119
|
|
|
120
|
-
def converse(self, **kwargs: Unpack[
|
|
120
|
+
def converse(self, **kwargs: Unpack[ConverseRequestTypeDef]) -> ConverseResponseTypeDef:
|
|
121
121
|
"""
|
|
122
122
|
Sends messages to the specified Amazon Bedrock model.
|
|
123
123
|
|
|
@@ -126,7 +126,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
126
126
|
"""
|
|
127
127
|
|
|
128
128
|
def converse_stream(
|
|
129
|
-
self, **kwargs: Unpack[
|
|
129
|
+
self, **kwargs: Unpack[ConverseStreamRequestTypeDef]
|
|
130
130
|
) -> ConverseStreamResponseTypeDef:
|
|
131
131
|
"""
|
|
132
132
|
Sends messages to the specified Amazon Bedrock model and returns the response
|
|
@@ -137,7 +137,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
137
137
|
"""
|
|
138
138
|
|
|
139
139
|
def get_async_invoke(
|
|
140
|
-
self, **kwargs: Unpack[
|
|
140
|
+
self, **kwargs: Unpack[GetAsyncInvokeRequestTypeDef]
|
|
141
141
|
) -> GetAsyncInvokeResponseTypeDef:
|
|
142
142
|
"""
|
|
143
143
|
Retrieve information about an asynchronous invocation.
|
|
@@ -147,7 +147,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
147
147
|
"""
|
|
148
148
|
|
|
149
149
|
def invoke_model(
|
|
150
|
-
self, **kwargs: Unpack[
|
|
150
|
+
self, **kwargs: Unpack[InvokeModelRequestTypeDef]
|
|
151
151
|
) -> InvokeModelResponseTypeDef:
|
|
152
152
|
"""
|
|
153
153
|
Invokes the specified Amazon Bedrock model to run inference using the prompt
|
|
@@ -158,7 +158,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
158
158
|
"""
|
|
159
159
|
|
|
160
160
|
def invoke_model_with_response_stream(
|
|
161
|
-
self, **kwargs: Unpack[
|
|
161
|
+
self, **kwargs: Unpack[InvokeModelWithResponseStreamRequestTypeDef]
|
|
162
162
|
) -> InvokeModelWithResponseStreamResponseTypeDef:
|
|
163
163
|
"""
|
|
164
164
|
Invoke the specified Amazon Bedrock model to run inference using the prompt and
|
|
@@ -169,7 +169,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
169
169
|
"""
|
|
170
170
|
|
|
171
171
|
def list_async_invokes(
|
|
172
|
-
self, **kwargs: Unpack[
|
|
172
|
+
self, **kwargs: Unpack[ListAsyncInvokesRequestTypeDef]
|
|
173
173
|
) -> ListAsyncInvokesResponseTypeDef:
|
|
174
174
|
"""
|
|
175
175
|
Lists asynchronous invocations.
|
|
@@ -179,7 +179,7 @@ class BedrockRuntimeClient(BaseClient):
|
|
|
179
179
|
"""
|
|
180
180
|
|
|
181
181
|
def start_async_invoke(
|
|
182
|
-
self, **kwargs: Unpack[
|
|
182
|
+
self, **kwargs: Unpack[StartAsyncInvokeRequestTypeDef]
|
|
183
183
|
) -> StartAsyncInvokeResponseTypeDef:
|
|
184
184
|
"""
|
|
185
185
|
Starts an asynchronous invocation.
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service literal definitions.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -10,8 +12,6 @@ Usage::
|
|
|
10
12
|
|
|
11
13
|
data: AsyncInvokeStatusType = "Completed"
|
|
12
14
|
```
|
|
13
|
-
|
|
14
|
-
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import sys
|
|
@@ -269,7 +269,6 @@ ServiceName = Literal[
|
|
|
269
269
|
"efs",
|
|
270
270
|
"eks",
|
|
271
271
|
"eks-auth",
|
|
272
|
-
"elastic-inference",
|
|
273
272
|
"elasticache",
|
|
274
273
|
"elasticbeanstalk",
|
|
275
274
|
"elastictranscoder",
|
|
@@ -293,6 +292,7 @@ ServiceName = Literal[
|
|
|
293
292
|
"freetier",
|
|
294
293
|
"fsx",
|
|
295
294
|
"gamelift",
|
|
295
|
+
"gameliftstreams",
|
|
296
296
|
"geo-maps",
|
|
297
297
|
"geo-places",
|
|
298
298
|
"geo-routes",
|
|
@@ -318,6 +318,7 @@ ServiceName = Literal[
|
|
|
318
318
|
"iot",
|
|
319
319
|
"iot-data",
|
|
320
320
|
"iot-jobs-data",
|
|
321
|
+
"iot-managed-integrations",
|
|
321
322
|
"iotanalytics",
|
|
322
323
|
"iotdeviceadvisor",
|
|
323
324
|
"iotevents",
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service literal definitions.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/literals/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -10,8 +12,6 @@ Usage::
|
|
|
10
12
|
|
|
11
13
|
data: AsyncInvokeStatusType = "Completed"
|
|
12
14
|
```
|
|
13
|
-
|
|
14
|
-
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import sys
|
|
@@ -267,7 +267,6 @@ ServiceName = Literal[
|
|
|
267
267
|
"efs",
|
|
268
268
|
"eks",
|
|
269
269
|
"eks-auth",
|
|
270
|
-
"elastic-inference",
|
|
271
270
|
"elasticache",
|
|
272
271
|
"elasticbeanstalk",
|
|
273
272
|
"elastictranscoder",
|
|
@@ -291,6 +290,7 @@ ServiceName = Literal[
|
|
|
291
290
|
"freetier",
|
|
292
291
|
"fsx",
|
|
293
292
|
"gamelift",
|
|
293
|
+
"gameliftstreams",
|
|
294
294
|
"geo-maps",
|
|
295
295
|
"geo-places",
|
|
296
296
|
"geo-routes",
|
|
@@ -316,6 +316,7 @@ ServiceName = Literal[
|
|
|
316
316
|
"iot",
|
|
317
317
|
"iot-data",
|
|
318
318
|
"iot-jobs-data",
|
|
319
|
+
"iot-managed-integrations",
|
|
319
320
|
"iotanalytics",
|
|
320
321
|
"iotdeviceadvisor",
|
|
321
322
|
"iotevents",
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service client paginators.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -18,8 +20,6 @@ Usage::
|
|
|
18
20
|
|
|
19
21
|
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
20
22
|
```
|
|
21
|
-
|
|
22
|
-
Copyright 2025 Vlad Emelianov
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
from __future__ import annotations
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service client paginators.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/paginators/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -18,8 +20,6 @@ Usage::
|
|
|
18
20
|
|
|
19
21
|
list_async_invokes_paginator: ListAsyncInvokesPaginator = client.get_paginator("list_async_invokes")
|
|
20
22
|
```
|
|
21
|
-
|
|
22
|
-
Copyright 2025 Vlad Emelianov
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
from __future__ import annotations
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service type definitions.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -10,8 +12,6 @@ Usage::
|
|
|
10
12
|
|
|
11
13
|
data: GuardrailOutputContentTypeDef = ...
|
|
12
14
|
```
|
|
13
|
-
|
|
14
|
-
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
from __future__ import annotations
|
|
@@ -64,7 +64,7 @@ else:
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
__all__ = (
|
|
67
|
-
"
|
|
67
|
+
"ApplyGuardrailRequestTypeDef",
|
|
68
68
|
"ApplyGuardrailResponseTypeDef",
|
|
69
69
|
"AsyncInvokeOutputDataConfigTypeDef",
|
|
70
70
|
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
@@ -80,12 +80,12 @@ __all__ = (
|
|
|
80
80
|
"ContentBlockUnionTypeDef",
|
|
81
81
|
"ConverseMetricsTypeDef",
|
|
82
82
|
"ConverseOutputTypeDef",
|
|
83
|
-
"
|
|
83
|
+
"ConverseRequestTypeDef",
|
|
84
84
|
"ConverseResponseTypeDef",
|
|
85
85
|
"ConverseStreamMetadataEventTypeDef",
|
|
86
86
|
"ConverseStreamMetricsTypeDef",
|
|
87
87
|
"ConverseStreamOutputTypeDef",
|
|
88
|
-
"
|
|
88
|
+
"ConverseStreamRequestTypeDef",
|
|
89
89
|
"ConverseStreamResponseTypeDef",
|
|
90
90
|
"ConverseStreamTraceTypeDef",
|
|
91
91
|
"ConverseTraceTypeDef",
|
|
@@ -95,7 +95,7 @@ __all__ = (
|
|
|
95
95
|
"DocumentSourceOutputTypeDef",
|
|
96
96
|
"DocumentSourceTypeDef",
|
|
97
97
|
"DocumentSourceUnionTypeDef",
|
|
98
|
-
"
|
|
98
|
+
"GetAsyncInvokeRequestTypeDef",
|
|
99
99
|
"GetAsyncInvokeResponseTypeDef",
|
|
100
100
|
"GuardrailAssessmentTypeDef",
|
|
101
101
|
"GuardrailConfigurationTypeDef",
|
|
@@ -143,12 +143,12 @@ __all__ = (
|
|
|
143
143
|
"ImageSourceUnionTypeDef",
|
|
144
144
|
"InferenceConfigurationTypeDef",
|
|
145
145
|
"InternalServerExceptionTypeDef",
|
|
146
|
-
"
|
|
146
|
+
"InvokeModelRequestTypeDef",
|
|
147
147
|
"InvokeModelResponseTypeDef",
|
|
148
|
-
"
|
|
148
|
+
"InvokeModelWithResponseStreamRequestTypeDef",
|
|
149
149
|
"InvokeModelWithResponseStreamResponseTypeDef",
|
|
150
150
|
"ListAsyncInvokesRequestPaginateTypeDef",
|
|
151
|
-
"
|
|
151
|
+
"ListAsyncInvokesRequestTypeDef",
|
|
152
152
|
"ListAsyncInvokesResponseTypeDef",
|
|
153
153
|
"MessageOutputTypeDef",
|
|
154
154
|
"MessageStartEventTypeDef",
|
|
@@ -162,12 +162,17 @@ __all__ = (
|
|
|
162
162
|
"PerformanceConfigurationTypeDef",
|
|
163
163
|
"PromptRouterTraceTypeDef",
|
|
164
164
|
"PromptVariableValuesTypeDef",
|
|
165
|
+
"ReasoningContentBlockDeltaTypeDef",
|
|
166
|
+
"ReasoningContentBlockOutputTypeDef",
|
|
167
|
+
"ReasoningContentBlockTypeDef",
|
|
168
|
+
"ReasoningContentBlockUnionTypeDef",
|
|
169
|
+
"ReasoningTextBlockTypeDef",
|
|
165
170
|
"ResponseMetadataTypeDef",
|
|
166
171
|
"ResponseStreamTypeDef",
|
|
167
172
|
"S3LocationTypeDef",
|
|
168
173
|
"ServiceUnavailableExceptionTypeDef",
|
|
169
174
|
"SpecificToolChoiceTypeDef",
|
|
170
|
-
"
|
|
175
|
+
"StartAsyncInvokeRequestTypeDef",
|
|
171
176
|
"StartAsyncInvokeResponseTypeDef",
|
|
172
177
|
"SystemContentBlockTypeDef",
|
|
173
178
|
"TagTypeDef",
|
|
@@ -228,6 +233,14 @@ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
|
228
233
|
|
|
229
234
|
|
|
230
235
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
239
|
+
text: NotRequired[str]
|
|
240
|
+
redactedContent: NotRequired[bytes]
|
|
241
|
+
signature: NotRequired[str]
|
|
242
|
+
|
|
243
|
+
|
|
231
244
|
ToolUseBlockDeltaTypeDef = TypedDict(
|
|
232
245
|
"ToolUseBlockDeltaTypeDef",
|
|
233
246
|
{
|
|
@@ -338,7 +351,7 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
338
351
|
)
|
|
339
352
|
|
|
340
353
|
|
|
341
|
-
class
|
|
354
|
+
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
342
355
|
invocationArn: str
|
|
343
356
|
|
|
344
357
|
|
|
@@ -462,6 +475,11 @@ PayloadPartTypeDef = TypedDict(
|
|
|
462
475
|
)
|
|
463
476
|
|
|
464
477
|
|
|
478
|
+
class ReasoningTextBlockTypeDef(TypedDict):
|
|
479
|
+
text: str
|
|
480
|
+
signature: NotRequired[str]
|
|
481
|
+
|
|
482
|
+
|
|
465
483
|
class S3LocationTypeDef(TypedDict):
|
|
466
484
|
uri: str
|
|
467
485
|
bucketOwner: NotRequired[str]
|
|
@@ -532,7 +550,7 @@ ImageSourceTypeDef = TypedDict(
|
|
|
532
550
|
)
|
|
533
551
|
|
|
534
552
|
|
|
535
|
-
class
|
|
553
|
+
class InvokeModelRequestTypeDef(TypedDict):
|
|
536
554
|
modelId: str
|
|
537
555
|
body: NotRequired[BlobTypeDef]
|
|
538
556
|
contentType: NotRequired[str]
|
|
@@ -543,7 +561,7 @@ class InvokeModelRequestRequestTypeDef(TypedDict):
|
|
|
543
561
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
544
562
|
|
|
545
563
|
|
|
546
|
-
class
|
|
564
|
+
class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
547
565
|
modelId: str
|
|
548
566
|
body: NotRequired[BlobTypeDef]
|
|
549
567
|
contentType: NotRequired[str]
|
|
@@ -557,6 +575,7 @@ class InvokeModelWithResponseStreamRequestRequestTypeDef(TypedDict):
|
|
|
557
575
|
class ContentBlockDeltaTypeDef(TypedDict):
|
|
558
576
|
text: NotRequired[str]
|
|
559
577
|
toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
|
|
578
|
+
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
560
579
|
|
|
561
580
|
|
|
562
581
|
class ContentBlockStartTypeDef(TypedDict):
|
|
@@ -630,7 +649,7 @@ class ListAsyncInvokesRequestPaginateTypeDef(TypedDict):
|
|
|
630
649
|
PaginationConfig: NotRequired[PaginatorConfigTypeDef]
|
|
631
650
|
|
|
632
651
|
|
|
633
|
-
class
|
|
652
|
+
class ListAsyncInvokesRequestTypeDef(TypedDict):
|
|
634
653
|
submitTimeAfter: NotRequired[TimestampTypeDef]
|
|
635
654
|
submitTimeBefore: NotRequired[TimestampTypeDef]
|
|
636
655
|
statusEquals: NotRequired[AsyncInvokeStatusType]
|
|
@@ -650,6 +669,16 @@ class ResponseStreamTypeDef(TypedDict):
|
|
|
650
669
|
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
651
670
|
|
|
652
671
|
|
|
672
|
+
class ReasoningContentBlockOutputTypeDef(TypedDict):
|
|
673
|
+
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
674
|
+
redactedContent: NotRequired[bytes]
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
class ReasoningContentBlockTypeDef(TypedDict):
|
|
678
|
+
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
679
|
+
redactedContent: NotRequired[BlobTypeDef]
|
|
680
|
+
|
|
681
|
+
|
|
653
682
|
VideoSourceOutputTypeDef = TypedDict(
|
|
654
683
|
"VideoSourceOutputTypeDef",
|
|
655
684
|
{
|
|
@@ -708,7 +737,7 @@ class GetAsyncInvokeResponseTypeDef(TypedDict):
|
|
|
708
737
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
709
738
|
|
|
710
739
|
|
|
711
|
-
class
|
|
740
|
+
class StartAsyncInvokeRequestTypeDef(TypedDict):
|
|
712
741
|
modelId: str
|
|
713
742
|
modelInput: Mapping[str, Any]
|
|
714
743
|
outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
|
|
@@ -758,6 +787,9 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
758
787
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
759
788
|
|
|
760
789
|
|
|
790
|
+
ReasoningContentBlockUnionTypeDef = Union[
|
|
791
|
+
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
792
|
+
]
|
|
761
793
|
VideoBlockOutputTypeDef = TypedDict(
|
|
762
794
|
"VideoBlockOutputTypeDef",
|
|
763
795
|
{
|
|
@@ -846,7 +878,7 @@ GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
|
846
878
|
]
|
|
847
879
|
|
|
848
880
|
|
|
849
|
-
class
|
|
881
|
+
class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
850
882
|
guardrailIdentifier: str
|
|
851
883
|
guardrailVersion: str
|
|
852
884
|
source: GuardrailContentSourceType
|
|
@@ -903,6 +935,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
903
935
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
904
936
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
905
937
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
938
|
+
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
906
939
|
|
|
907
940
|
|
|
908
941
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
@@ -991,6 +1024,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
991
1024
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
992
1025
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
993
1026
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
1027
|
+
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
994
1028
|
|
|
995
1029
|
|
|
996
1030
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
@@ -1001,13 +1035,16 @@ class MessageTypeDef(TypedDict):
|
|
|
1001
1035
|
content: Sequence[ContentBlockUnionTypeDef]
|
|
1002
1036
|
|
|
1003
1037
|
|
|
1004
|
-
|
|
1038
|
+
MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
class ConverseRequestTypeDef(TypedDict):
|
|
1005
1042
|
modelId: str
|
|
1006
|
-
messages: NotRequired[Sequence[
|
|
1043
|
+
messages: NotRequired[Sequence[MessageUnionTypeDef]]
|
|
1007
1044
|
system: NotRequired[Sequence[SystemContentBlockTypeDef]]
|
|
1008
1045
|
inferenceConfig: NotRequired[InferenceConfigurationTypeDef]
|
|
1009
1046
|
toolConfig: NotRequired[ToolConfigurationTypeDef]
|
|
1010
|
-
guardrailConfig: NotRequired[
|
|
1047
|
+
guardrailConfig: NotRequired[GuardrailConfigurationTypeDef]
|
|
1011
1048
|
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
1012
1049
|
promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
|
|
1013
1050
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
@@ -1015,16 +1052,13 @@ class ConverseStreamRequestRequestTypeDef(TypedDict):
|
|
|
1015
1052
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1016
1053
|
|
|
1017
1054
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
class ConverseRequestRequestTypeDef(TypedDict):
|
|
1055
|
+
class ConverseStreamRequestTypeDef(TypedDict):
|
|
1022
1056
|
modelId: str
|
|
1023
1057
|
messages: NotRequired[Sequence[MessageUnionTypeDef]]
|
|
1024
1058
|
system: NotRequired[Sequence[SystemContentBlockTypeDef]]
|
|
1025
1059
|
inferenceConfig: NotRequired[InferenceConfigurationTypeDef]
|
|
1026
1060
|
toolConfig: NotRequired[ToolConfigurationTypeDef]
|
|
1027
|
-
guardrailConfig: NotRequired[
|
|
1061
|
+
guardrailConfig: NotRequired[GuardrailStreamConfigurationTypeDef]
|
|
1028
1062
|
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
1029
1063
|
promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
|
|
1030
1064
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
@@ -3,6 +3,8 @@ Type annotations for bedrock-runtime service type definitions.
|
|
|
3
3
|
|
|
4
4
|
[Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/)
|
|
5
5
|
|
|
6
|
+
Copyright 2025 Vlad Emelianov
|
|
7
|
+
|
|
6
8
|
Usage::
|
|
7
9
|
|
|
8
10
|
```python
|
|
@@ -10,8 +12,6 @@ Usage::
|
|
|
10
12
|
|
|
11
13
|
data: GuardrailOutputContentTypeDef = ...
|
|
12
14
|
```
|
|
13
|
-
|
|
14
|
-
Copyright 2025 Vlad Emelianov
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
from __future__ import annotations
|
|
@@ -63,7 +63,7 @@ else:
|
|
|
63
63
|
from typing_extensions import Literal, NotRequired, TypedDict
|
|
64
64
|
|
|
65
65
|
__all__ = (
|
|
66
|
-
"
|
|
66
|
+
"ApplyGuardrailRequestTypeDef",
|
|
67
67
|
"ApplyGuardrailResponseTypeDef",
|
|
68
68
|
"AsyncInvokeOutputDataConfigTypeDef",
|
|
69
69
|
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
@@ -79,12 +79,12 @@ __all__ = (
|
|
|
79
79
|
"ContentBlockUnionTypeDef",
|
|
80
80
|
"ConverseMetricsTypeDef",
|
|
81
81
|
"ConverseOutputTypeDef",
|
|
82
|
-
"
|
|
82
|
+
"ConverseRequestTypeDef",
|
|
83
83
|
"ConverseResponseTypeDef",
|
|
84
84
|
"ConverseStreamMetadataEventTypeDef",
|
|
85
85
|
"ConverseStreamMetricsTypeDef",
|
|
86
86
|
"ConverseStreamOutputTypeDef",
|
|
87
|
-
"
|
|
87
|
+
"ConverseStreamRequestTypeDef",
|
|
88
88
|
"ConverseStreamResponseTypeDef",
|
|
89
89
|
"ConverseStreamTraceTypeDef",
|
|
90
90
|
"ConverseTraceTypeDef",
|
|
@@ -94,7 +94,7 @@ __all__ = (
|
|
|
94
94
|
"DocumentSourceOutputTypeDef",
|
|
95
95
|
"DocumentSourceTypeDef",
|
|
96
96
|
"DocumentSourceUnionTypeDef",
|
|
97
|
-
"
|
|
97
|
+
"GetAsyncInvokeRequestTypeDef",
|
|
98
98
|
"GetAsyncInvokeResponseTypeDef",
|
|
99
99
|
"GuardrailAssessmentTypeDef",
|
|
100
100
|
"GuardrailConfigurationTypeDef",
|
|
@@ -142,12 +142,12 @@ __all__ = (
|
|
|
142
142
|
"ImageSourceUnionTypeDef",
|
|
143
143
|
"InferenceConfigurationTypeDef",
|
|
144
144
|
"InternalServerExceptionTypeDef",
|
|
145
|
-
"
|
|
145
|
+
"InvokeModelRequestTypeDef",
|
|
146
146
|
"InvokeModelResponseTypeDef",
|
|
147
|
-
"
|
|
147
|
+
"InvokeModelWithResponseStreamRequestTypeDef",
|
|
148
148
|
"InvokeModelWithResponseStreamResponseTypeDef",
|
|
149
149
|
"ListAsyncInvokesRequestPaginateTypeDef",
|
|
150
|
-
"
|
|
150
|
+
"ListAsyncInvokesRequestTypeDef",
|
|
151
151
|
"ListAsyncInvokesResponseTypeDef",
|
|
152
152
|
"MessageOutputTypeDef",
|
|
153
153
|
"MessageStartEventTypeDef",
|
|
@@ -161,12 +161,17 @@ __all__ = (
|
|
|
161
161
|
"PerformanceConfigurationTypeDef",
|
|
162
162
|
"PromptRouterTraceTypeDef",
|
|
163
163
|
"PromptVariableValuesTypeDef",
|
|
164
|
+
"ReasoningContentBlockDeltaTypeDef",
|
|
165
|
+
"ReasoningContentBlockOutputTypeDef",
|
|
166
|
+
"ReasoningContentBlockTypeDef",
|
|
167
|
+
"ReasoningContentBlockUnionTypeDef",
|
|
168
|
+
"ReasoningTextBlockTypeDef",
|
|
164
169
|
"ResponseMetadataTypeDef",
|
|
165
170
|
"ResponseStreamTypeDef",
|
|
166
171
|
"S3LocationTypeDef",
|
|
167
172
|
"ServiceUnavailableExceptionTypeDef",
|
|
168
173
|
"SpecificToolChoiceTypeDef",
|
|
169
|
-
"
|
|
174
|
+
"StartAsyncInvokeRequestTypeDef",
|
|
170
175
|
"StartAsyncInvokeResponseTypeDef",
|
|
171
176
|
"SystemContentBlockTypeDef",
|
|
172
177
|
"TagTypeDef",
|
|
@@ -222,6 +227,12 @@ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
|
222
227
|
bucketOwner: NotRequired[str]
|
|
223
228
|
|
|
224
229
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
230
|
+
|
|
231
|
+
class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
232
|
+
text: NotRequired[str]
|
|
233
|
+
redactedContent: NotRequired[bytes]
|
|
234
|
+
signature: NotRequired[str]
|
|
235
|
+
|
|
225
236
|
ToolUseBlockDeltaTypeDef = TypedDict(
|
|
226
237
|
"ToolUseBlockDeltaTypeDef",
|
|
227
238
|
{
|
|
@@ -312,7 +323,7 @@ DocumentSourceOutputTypeDef = TypedDict(
|
|
|
312
323
|
},
|
|
313
324
|
)
|
|
314
325
|
|
|
315
|
-
class
|
|
326
|
+
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
316
327
|
invocationArn: str
|
|
317
328
|
|
|
318
329
|
class GuardrailTextBlockTypeDef(TypedDict):
|
|
@@ -420,6 +431,10 @@ PayloadPartTypeDef = TypedDict(
|
|
|
420
431
|
},
|
|
421
432
|
)
|
|
422
433
|
|
|
434
|
+
class ReasoningTextBlockTypeDef(TypedDict):
|
|
435
|
+
text: str
|
|
436
|
+
signature: NotRequired[str]
|
|
437
|
+
|
|
423
438
|
class S3LocationTypeDef(TypedDict):
|
|
424
439
|
uri: str
|
|
425
440
|
bucketOwner: NotRequired[str]
|
|
@@ -481,7 +496,7 @@ ImageSourceTypeDef = TypedDict(
|
|
|
481
496
|
},
|
|
482
497
|
)
|
|
483
498
|
|
|
484
|
-
class
|
|
499
|
+
class InvokeModelRequestTypeDef(TypedDict):
|
|
485
500
|
modelId: str
|
|
486
501
|
body: NotRequired[BlobTypeDef]
|
|
487
502
|
contentType: NotRequired[str]
|
|
@@ -491,7 +506,7 @@ class InvokeModelRequestRequestTypeDef(TypedDict):
|
|
|
491
506
|
guardrailVersion: NotRequired[str]
|
|
492
507
|
performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
|
|
493
508
|
|
|
494
|
-
class
|
|
509
|
+
class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
|
|
495
510
|
modelId: str
|
|
496
511
|
body: NotRequired[BlobTypeDef]
|
|
497
512
|
contentType: NotRequired[str]
|
|
@@ -504,6 +519,7 @@ class InvokeModelWithResponseStreamRequestRequestTypeDef(TypedDict):
|
|
|
504
519
|
class ContentBlockDeltaTypeDef(TypedDict):
|
|
505
520
|
text: NotRequired[str]
|
|
506
521
|
toolUse: NotRequired[ToolUseBlockDeltaTypeDef]
|
|
522
|
+
reasoningContent: NotRequired[ReasoningContentBlockDeltaTypeDef]
|
|
507
523
|
|
|
508
524
|
class ContentBlockStartTypeDef(TypedDict):
|
|
509
525
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
@@ -565,7 +581,7 @@ class ListAsyncInvokesRequestPaginateTypeDef(TypedDict):
|
|
|
565
581
|
sortOrder: NotRequired[SortOrderType]
|
|
566
582
|
PaginationConfig: NotRequired[PaginatorConfigTypeDef]
|
|
567
583
|
|
|
568
|
-
class
|
|
584
|
+
class ListAsyncInvokesRequestTypeDef(TypedDict):
|
|
569
585
|
submitTimeAfter: NotRequired[TimestampTypeDef]
|
|
570
586
|
submitTimeBefore: NotRequired[TimestampTypeDef]
|
|
571
587
|
statusEquals: NotRequired[AsyncInvokeStatusType]
|
|
@@ -583,6 +599,14 @@ class ResponseStreamTypeDef(TypedDict):
|
|
|
583
599
|
modelTimeoutException: NotRequired[ModelTimeoutExceptionTypeDef]
|
|
584
600
|
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
585
601
|
|
|
602
|
+
class ReasoningContentBlockOutputTypeDef(TypedDict):
|
|
603
|
+
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
604
|
+
redactedContent: NotRequired[bytes]
|
|
605
|
+
|
|
606
|
+
class ReasoningContentBlockTypeDef(TypedDict):
|
|
607
|
+
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
608
|
+
redactedContent: NotRequired[BlobTypeDef]
|
|
609
|
+
|
|
586
610
|
VideoSourceOutputTypeDef = TypedDict(
|
|
587
611
|
"VideoSourceOutputTypeDef",
|
|
588
612
|
{
|
|
@@ -636,7 +660,7 @@ class GetAsyncInvokeResponseTypeDef(TypedDict):
|
|
|
636
660
|
outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
|
|
637
661
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
638
662
|
|
|
639
|
-
class
|
|
663
|
+
class StartAsyncInvokeRequestTypeDef(TypedDict):
|
|
640
664
|
modelId: str
|
|
641
665
|
modelInput: Mapping[str, Any]
|
|
642
666
|
outputDataConfig: AsyncInvokeOutputDataConfigTypeDef
|
|
@@ -679,6 +703,9 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
679
703
|
performanceConfigLatency: PerformanceConfigLatencyType
|
|
680
704
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
681
705
|
|
|
706
|
+
ReasoningContentBlockUnionTypeDef = Union[
|
|
707
|
+
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
708
|
+
]
|
|
682
709
|
VideoBlockOutputTypeDef = TypedDict(
|
|
683
710
|
"VideoBlockOutputTypeDef",
|
|
684
711
|
{
|
|
@@ -756,7 +783,7 @@ GuardrailConverseImageBlockUnionTypeDef = Union[
|
|
|
756
783
|
GuardrailConverseImageBlockTypeDef, GuardrailConverseImageBlockOutputTypeDef
|
|
757
784
|
]
|
|
758
785
|
|
|
759
|
-
class
|
|
786
|
+
class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
760
787
|
guardrailIdentifier: str
|
|
761
788
|
guardrailVersion: str
|
|
762
789
|
source: GuardrailContentSourceType
|
|
@@ -804,6 +831,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
804
831
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
805
832
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
806
833
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
834
|
+
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
807
835
|
|
|
808
836
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
809
837
|
json: NotRequired[Mapping[str, Any]]
|
|
@@ -879,6 +907,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
879
907
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
880
908
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
881
909
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
910
|
+
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
882
911
|
|
|
883
912
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
884
913
|
|
|
@@ -886,28 +915,28 @@ class MessageTypeDef(TypedDict):
|
|
|
886
915
|
role: ConversationRoleType
|
|
887
916
|
content: Sequence[ContentBlockUnionTypeDef]
|
|
888
917
|
|
|
889
|
-
|
|
918
|
+
MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
|
|
919
|
+
|
|
920
|
+
class ConverseRequestTypeDef(TypedDict):
|
|
890
921
|
modelId: str
|
|
891
|
-
messages: NotRequired[Sequence[
|
|
922
|
+
messages: NotRequired[Sequence[MessageUnionTypeDef]]
|
|
892
923
|
system: NotRequired[Sequence[SystemContentBlockTypeDef]]
|
|
893
924
|
inferenceConfig: NotRequired[InferenceConfigurationTypeDef]
|
|
894
925
|
toolConfig: NotRequired[ToolConfigurationTypeDef]
|
|
895
|
-
guardrailConfig: NotRequired[
|
|
926
|
+
guardrailConfig: NotRequired[GuardrailConfigurationTypeDef]
|
|
896
927
|
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
897
928
|
promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
|
|
898
929
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
899
930
|
requestMetadata: NotRequired[Mapping[str, str]]
|
|
900
931
|
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
901
932
|
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
class ConverseRequestRequestTypeDef(TypedDict):
|
|
933
|
+
class ConverseStreamRequestTypeDef(TypedDict):
|
|
905
934
|
modelId: str
|
|
906
935
|
messages: NotRequired[Sequence[MessageUnionTypeDef]]
|
|
907
936
|
system: NotRequired[Sequence[SystemContentBlockTypeDef]]
|
|
908
937
|
inferenceConfig: NotRequired[InferenceConfigurationTypeDef]
|
|
909
938
|
toolConfig: NotRequired[ToolConfigurationTypeDef]
|
|
910
|
-
guardrailConfig: NotRequired[
|
|
939
|
+
guardrailConfig: NotRequired[GuardrailStreamConfigurationTypeDef]
|
|
911
940
|
additionalModelRequestFields: NotRequired[Mapping[str, Any]]
|
|
912
941
|
promptVariables: NotRequired[Mapping[str, PromptVariableValuesTypeDef]]
|
|
913
942
|
additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.
|
|
3
|
+
Version: 1.37.7
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.37.7 service generated with mypy-boto3-builder 8.10.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
|
|
@@ -56,7 +56,7 @@ Dynamic: summary
|
|
|
56
56
|

|
|
57
57
|
|
|
58
58
|
Type annotations for
|
|
59
|
-
[boto3 BedrockRuntime 1.
|
|
59
|
+
[boto3 BedrockRuntime 1.37.7](https://pypi.org/project/boto3/) compatible with
|
|
60
60
|
[VSCode](https://code.visualstudio.com/),
|
|
61
61
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
62
62
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -65,7 +65,7 @@ Type annotations for
|
|
|
65
65
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
66
66
|
|
|
67
67
|
Generated with
|
|
68
|
-
[mypy-boto3-builder 8.
|
|
68
|
+
[mypy-boto3-builder 8.10.0](https://github.com/youtype/mypy_boto3_builder).
|
|
69
69
|
|
|
70
70
|
More information can be found on
|
|
71
71
|
[types-boto3](https://pypi.org/project/types-boto3/) page and in
|
|
@@ -113,12 +113,12 @@ See how it helps you find and fix potential bugs:
|
|
|
113
113
|
### Generate locally (recommended)
|
|
114
114
|
|
|
115
115
|
You can generate type annotations for `boto3` package locally with
|
|
116
|
-
`
|
|
116
|
+
`mypy-boto3-builder`. Use
|
|
117
117
|
[uv](https://docs.astral.sh/uv/getting-started/installation/) for build
|
|
118
118
|
isolation.
|
|
119
119
|
|
|
120
120
|
1. Run mypy-boto3-builder in your package root directory:
|
|
121
|
-
`uvx --with 'boto3==1.
|
|
121
|
+
`uvx --with 'boto3==1.37.7' mypy-boto3-builder`
|
|
122
122
|
2. Select `boto3` AWS SDK.
|
|
123
123
|
3. Add `BedrockRuntime` service.
|
|
124
124
|
4. Use provided commands to install generated packages.
|
|
@@ -390,11 +390,14 @@ Full list of `BedrockRuntime` TypeDefs can be found in
|
|
|
390
390
|
[docs](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/type_defs/).
|
|
391
391
|
|
|
392
392
|
```python
|
|
393
|
+
# TypedDict usage example
|
|
393
394
|
from types_boto3_bedrock_runtime.type_defs import GuardrailOutputContentTypeDef
|
|
394
395
|
|
|
395
396
|
|
|
396
397
|
def get_value() -> GuardrailOutputContentTypeDef:
|
|
397
|
-
return {
|
|
398
|
+
return {
|
|
399
|
+
"text": ...,
|
|
400
|
+
}
|
|
398
401
|
```
|
|
399
402
|
|
|
400
403
|
<a id="how-it-works"></a>
|
|
@@ -448,7 +451,8 @@ Builder changelog can be found in
|
|
|
448
451
|
## Versioning
|
|
449
452
|
|
|
450
453
|
`types-boto3-bedrock-runtime` version is the same as related `boto3` version
|
|
451
|
-
and follows
|
|
454
|
+
and follows
|
|
455
|
+
[Python Packaging version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).
|
|
452
456
|
|
|
453
457
|
<a id="thank-you"></a>
|
|
454
458
|
|
|
@@ -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=Ql-r4fu9TxP1tl-YfayW5l0vnFjUGx-wY0Rd66NZDiw,1012
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=iurF8y_YjFKpdEcvN19laZcYlxlVOgOnNKac8PWVs1E,8774
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=TVpF8IVA6RNUHuucSjD6tkwE8yaULNE5KyndQ0kO794,8771
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=SP4nNURTn3YJ8UEQscn_RrQui2JCbdcmtfBYWrNxYxQ,12916
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=yaAy6ESLkNGwA5FFn5qdHIVp8RAc6QKoHitqrzyYe1E,12914
|
|
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=gowYkFkPLd3EfgbGbI-h2NmhqP3t9gu0GInLmuuwKSk,30904
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=YUmdLaowU2kE0J5iesLh2tc-4OKoLEGO0K-ybKtSMz4,30782
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=_hf7Xqw9Cl4SnoR7NPGy2_ae5EwY4DZ40R25nEawHu4,92
|
|
14
|
+
types_boto3_bedrock_runtime-1.37.7.dist-info/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.37.7.dist-info/METADATA,sha256=3OljQlpFJc3PK-NtopMeFRn1xV4_q2SDJAGZYlCpvC8,15374
|
|
16
|
+
types_boto3_bedrock_runtime-1.37.7.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.37.7.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.37.7.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
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=JEnvJ1CKDd2G_oq8Jsvt_wcv0a4aVNlsYIwZJRP4BI8,1011
|
|
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=HN-SXaO0fJKIRjdee4nUCE2-PCEBqRmB4LKsIHTiZEU,12886
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=8MTSZAmeZrsLuwkwfEaeRt9p528hA5FVGFF7BPou5k0,12884
|
|
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=xJMCbHxGn9ClDupCqAkW-_t0cy6Fxy5jHnlfacfC2Kw,92
|
|
14
|
-
types_boto3_bedrock_runtime-1.36.2.dist-info/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.36.2.dist-info/METADATA,sha256=cR_6xyiCeddPZPm5U0X7j_0xPHAhhpQ7W7G7BePDjV0,15270
|
|
16
|
-
types_boto3_bedrock_runtime-1.36.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.36.2.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.36.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|