types-boto3-bedrock-runtime 1.40.3__py3-none-any.whl → 1.40.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,8 @@ def print_info() -> None:
12
12
  Print package info to stdout.
13
13
  """
14
14
  sys.stdout.write(
15
- "Type annotations for boto3 BedrockRuntime 1.40.3\n"
16
- "Version: 1.40.3\n"
15
+ "Type annotations for boto3 BedrockRuntime 1.40.14\n"
16
+ "Version: 1.40.14\n"
17
17
  "Builder version: 8.11.0\n"
18
18
  "Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
19
19
  "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
@@ -26,7 +26,7 @@ def print_version() -> None:
26
26
  """
27
27
  Print package version to stdout.
28
28
  """
29
- sys.stdout.write("1.40.3\n")
29
+ sys.stdout.write("1.40.14\n")
30
30
 
31
31
 
32
32
  def main() -> None:
@@ -33,6 +33,8 @@ from .type_defs import (
33
33
  ConverseResponseTypeDef,
34
34
  ConverseStreamRequestTypeDef,
35
35
  ConverseStreamResponseTypeDef,
36
+ CountTokensRequestTypeDef,
37
+ CountTokensResponseTypeDef,
36
38
  GetAsyncInvokeRequestTypeDef,
37
39
  GetAsyncInvokeResponseTypeDef,
38
40
  InvokeModelRequestTypeDef,
@@ -141,6 +143,16 @@ class BedrockRuntimeClient(BaseClient):
141
143
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
142
144
  """
143
145
 
146
+ def count_tokens(
147
+ self, **kwargs: Unpack[CountTokensRequestTypeDef]
148
+ ) -> CountTokensResponseTypeDef:
149
+ """
150
+ Returns the token count for a given inference request.
151
+
152
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/count_tokens.html)
153
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#count_tokens)
154
+ """
155
+
144
156
  def get_async_invoke(
145
157
  self, **kwargs: Unpack[GetAsyncInvokeRequestTypeDef]
146
158
  ) -> GetAsyncInvokeResponseTypeDef:
@@ -33,6 +33,8 @@ from .type_defs import (
33
33
  ConverseResponseTypeDef,
34
34
  ConverseStreamRequestTypeDef,
35
35
  ConverseStreamResponseTypeDef,
36
+ CountTokensRequestTypeDef,
37
+ CountTokensResponseTypeDef,
36
38
  GetAsyncInvokeRequestTypeDef,
37
39
  GetAsyncInvokeResponseTypeDef,
38
40
  InvokeModelRequestTypeDef,
@@ -138,6 +140,16 @@ class BedrockRuntimeClient(BaseClient):
138
140
  [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#converse_stream)
139
141
  """
140
142
 
143
+ def count_tokens(
144
+ self, **kwargs: Unpack[CountTokensRequestTypeDef]
145
+ ) -> CountTokensResponseTypeDef:
146
+ """
147
+ Returns the token count for a given inference request.
148
+
149
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime/client/count_tokens.html)
150
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime/client/#count_tokens)
151
+ """
152
+
141
153
  def get_async_invoke(
142
154
  self, **kwargs: Unpack[GetAsyncInvokeRequestTypeDef]
143
155
  ) -> GetAsyncInvokeResponseTypeDef:
@@ -181,8 +181,10 @@ ServiceName = Literal[
181
181
  "backup-gateway",
182
182
  "backupsearch",
183
183
  "batch",
184
+ "bcm-dashboards",
184
185
  "bcm-data-exports",
185
186
  "bcm-pricing-calculator",
187
+ "bcm-recommended-actions",
186
188
  "bedrock",
187
189
  "bedrock-agent",
188
190
  "bedrock-agent-runtime",
@@ -179,8 +179,10 @@ ServiceName = Literal[
179
179
  "backup-gateway",
180
180
  "backupsearch",
181
181
  "batch",
182
+ "bcm-dashboards",
182
183
  "bcm-data-exports",
183
184
  "bcm-pricing-calculator",
185
+ "bcm-recommended-actions",
184
186
  "bedrock",
185
187
  "bedrock-agent",
186
188
  "bedrock-agent-runtime",
@@ -108,7 +108,11 @@ __all__ = (
108
108
  "ConverseStreamRequestTypeDef",
109
109
  "ConverseStreamResponseTypeDef",
110
110
  "ConverseStreamTraceTypeDef",
111
+ "ConverseTokensRequestTypeDef",
111
112
  "ConverseTraceTypeDef",
113
+ "CountTokensInputTypeDef",
114
+ "CountTokensRequestTypeDef",
115
+ "CountTokensResponseTypeDef",
112
116
  "DocumentBlockOutputTypeDef",
113
117
  "DocumentBlockTypeDef",
114
118
  "DocumentBlockUnionTypeDef",
@@ -183,6 +187,7 @@ __all__ = (
183
187
  "InternalServerExceptionTypeDef",
184
188
  "InvokeModelRequestTypeDef",
185
189
  "InvokeModelResponseTypeDef",
190
+ "InvokeModelTokensRequestTypeDef",
186
191
  "InvokeModelWithBidirectionalStreamInputTypeDef",
187
192
  "InvokeModelWithBidirectionalStreamOutputTypeDef",
188
193
  "InvokeModelWithBidirectionalStreamRequestTypeDef",
@@ -610,6 +615,11 @@ ToolUseBlockTypeDef = TypedDict(
610
615
  )
611
616
 
612
617
 
618
+ class CountTokensResponseTypeDef(TypedDict):
619
+ inputTokens: int
620
+ ResponseMetadata: ResponseMetadataTypeDef
621
+
622
+
613
623
  class InvokeModelResponseTypeDef(TypedDict):
614
624
  body: StreamingBody
615
625
  contentType: str
@@ -657,6 +667,10 @@ class InvokeModelRequestTypeDef(TypedDict):
657
667
  performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
658
668
 
659
669
 
670
+ class InvokeModelTokensRequestTypeDef(TypedDict):
671
+ body: BlobTypeDef
672
+
673
+
660
674
  class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
661
675
  modelId: str
662
676
  body: NotRequired[BlobTypeDef]
@@ -1342,3 +1356,22 @@ class ConverseStreamRequestTypeDef(TypedDict):
1342
1356
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
1343
1357
  requestMetadata: NotRequired[Mapping[str, str]]
1344
1358
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1359
+
1360
+
1361
+ class ConverseTokensRequestTypeDef(TypedDict):
1362
+ messages: NotRequired[Sequence[MessageUnionTypeDef]]
1363
+ system: NotRequired[Sequence[SystemContentBlockTypeDef]]
1364
+
1365
+
1366
+ class CountTokensInputTypeDef(TypedDict):
1367
+ invokeModel: NotRequired[InvokeModelTokensRequestTypeDef]
1368
+ converse: NotRequired[ConverseTokensRequestTypeDef]
1369
+
1370
+
1371
+ CountTokensRequestTypeDef = TypedDict(
1372
+ "CountTokensRequestTypeDef",
1373
+ {
1374
+ "modelId": str,
1375
+ "input": CountTokensInputTypeDef,
1376
+ },
1377
+ )
@@ -107,7 +107,11 @@ __all__ = (
107
107
  "ConverseStreamRequestTypeDef",
108
108
  "ConverseStreamResponseTypeDef",
109
109
  "ConverseStreamTraceTypeDef",
110
+ "ConverseTokensRequestTypeDef",
110
111
  "ConverseTraceTypeDef",
112
+ "CountTokensInputTypeDef",
113
+ "CountTokensRequestTypeDef",
114
+ "CountTokensResponseTypeDef",
111
115
  "DocumentBlockOutputTypeDef",
112
116
  "DocumentBlockTypeDef",
113
117
  "DocumentBlockUnionTypeDef",
@@ -182,6 +186,7 @@ __all__ = (
182
186
  "InternalServerExceptionTypeDef",
183
187
  "InvokeModelRequestTypeDef",
184
188
  "InvokeModelResponseTypeDef",
189
+ "InvokeModelTokensRequestTypeDef",
185
190
  "InvokeModelWithBidirectionalStreamInputTypeDef",
186
191
  "InvokeModelWithBidirectionalStreamOutputTypeDef",
187
192
  "InvokeModelWithBidirectionalStreamRequestTypeDef",
@@ -551,6 +556,10 @@ ToolUseBlockTypeDef = TypedDict(
551
556
  },
552
557
  )
553
558
 
559
+ class CountTokensResponseTypeDef(TypedDict):
560
+ inputTokens: int
561
+ ResponseMetadata: ResponseMetadataTypeDef
562
+
554
563
  class InvokeModelResponseTypeDef(TypedDict):
555
564
  body: StreamingBody
556
565
  contentType: str
@@ -593,6 +602,9 @@ class InvokeModelRequestTypeDef(TypedDict):
593
602
  guardrailVersion: NotRequired[str]
594
603
  performanceConfigLatency: NotRequired[PerformanceConfigLatencyType]
595
604
 
605
+ class InvokeModelTokensRequestTypeDef(TypedDict):
606
+ body: BlobTypeDef
607
+
596
608
  class InvokeModelWithResponseStreamRequestTypeDef(TypedDict):
597
609
  modelId: str
598
610
  body: NotRequired[BlobTypeDef]
@@ -1189,3 +1201,19 @@ class ConverseStreamRequestTypeDef(TypedDict):
1189
1201
  additionalModelResponseFieldPaths: NotRequired[Sequence[str]]
1190
1202
  requestMetadata: NotRequired[Mapping[str, str]]
1191
1203
  performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
1204
+
1205
+ class ConverseTokensRequestTypeDef(TypedDict):
1206
+ messages: NotRequired[Sequence[MessageUnionTypeDef]]
1207
+ system: NotRequired[Sequence[SystemContentBlockTypeDef]]
1208
+
1209
+ class CountTokensInputTypeDef(TypedDict):
1210
+ invokeModel: NotRequired[InvokeModelTokensRequestTypeDef]
1211
+ converse: NotRequired[ConverseTokensRequestTypeDef]
1212
+
1213
+ CountTokensRequestTypeDef = TypedDict(
1214
+ "CountTokensRequestTypeDef",
1215
+ {
1216
+ "modelId": str,
1217
+ "input": CountTokensInputTypeDef,
1218
+ },
1219
+ )
@@ -4,4 +4,4 @@ Source of truth for version.
4
4
  Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
- __version__ = "1.40.3"
7
+ __version__ = "1.40.14"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: types-boto3-bedrock-runtime
3
- Version: 1.40.3
4
- Summary: Type annotations for boto3 BedrockRuntime 1.40.3 service generated with mypy-boto3-builder 8.11.0
3
+ Version: 1.40.14
4
+ Summary: Type annotations for boto3 BedrockRuntime 1.40.14 service generated with mypy-boto3-builder 8.11.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
@@ -57,7 +57,7 @@ Dynamic: summary
57
57
  ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
58
58
 
59
59
  Type annotations for
60
- [boto3 BedrockRuntime 1.40.3](https://pypi.org/project/boto3/) compatible with
60
+ [boto3 BedrockRuntime 1.40.14](https://pypi.org/project/boto3/) compatible with
61
61
  [VSCode](https://code.visualstudio.com/),
62
62
  [PyCharm](https://www.jetbrains.com/pycharm/),
63
63
  [Emacs](https://www.gnu.org/software/emacs/),
@@ -119,7 +119,7 @@ You can generate type annotations for `boto3` package locally with
119
119
  isolation.
120
120
 
121
121
  1. Run mypy-boto3-builder in your package root directory:
122
- `uvx --with 'boto3==1.40.3' mypy-boto3-builder`
122
+ `uvx --with 'boto3==1.40.14' mypy-boto3-builder`
123
123
  2. Select `boto3` AWS SDK.
124
124
  3. Add `BedrockRuntime` service.
125
125
  4. Use provided commands to install generated packages.
@@ -0,0 +1,18 @@
1
+ types_boto3_bedrock_runtime/__init__.py,sha256=yVTpBudgQiZdF0pSNhAE-1xbRZSFBHRcN9lRoforRqk,774
2
+ types_boto3_bedrock_runtime/__init__.pyi,sha256=FTe8oZW7DRJdbaUR0zeqYoUvSJbUFsNGBllLTCZwU4k,773
3
+ types_boto3_bedrock_runtime/__main__.py,sha256=p-7caw5O-nGdm3UlJLlEJZqaouztzu-pbP-JIoenJQU,1015
4
+ types_boto3_bedrock_runtime/client.py,sha256=W4o6UKl_m5Sp3uic5eq5BKlFpTxd1LCfif0vB2B-aR8,10098
5
+ types_boto3_bedrock_runtime/client.pyi,sha256=nIshacSA3Qn0Ukg5X7ump-P5PDf3OG653bVeoX9IrcY,10095
6
+ types_boto3_bedrock_runtime/literals.py,sha256=_tniWvo8bt7_gPGy7IEPVra5vCHmXaJp3PPGmoy5IFQ,13515
7
+ types_boto3_bedrock_runtime/literals.pyi,sha256=IX-C0MjrOkwg7lNEf9_Y6G1J3SyoAIPkiIbkWZYtY0U,13513
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=vFIVx8TFLFEHx_-L2WMKcuHMBVZox09lkcqFV_g7m1U,42769
12
+ types_boto3_bedrock_runtime/type_defs.pyi,sha256=9zceXr2VJi1RHfjEjCfA7i_XMQldu17StIS1KE6BS2w,42611
13
+ types_boto3_bedrock_runtime/version.py,sha256=yx4TXfA7frT22svKZb5oIUbOh_laGJb51_7cJeePnRs,93
14
+ types_boto3_bedrock_runtime-1.40.14.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
15
+ types_boto3_bedrock_runtime-1.40.14.dist-info/METADATA,sha256=JgS6fZ9VzBpxSiuugaYMHi9NLdT1_JOA-edPPAdXxh0,15400
16
+ types_boto3_bedrock_runtime-1.40.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ types_boto3_bedrock_runtime-1.40.14.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
+ types_boto3_bedrock_runtime-1.40.14.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- types_boto3_bedrock_runtime/__init__.py,sha256=yVTpBudgQiZdF0pSNhAE-1xbRZSFBHRcN9lRoforRqk,774
2
- types_boto3_bedrock_runtime/__init__.pyi,sha256=FTe8oZW7DRJdbaUR0zeqYoUvSJbUFsNGBllLTCZwU4k,773
3
- types_boto3_bedrock_runtime/__main__.py,sha256=bJxQQm9qvfXMA8VWzaimQPDXgIozXRB3RT_ez-tFsVk,1012
4
- types_boto3_bedrock_runtime/client.py,sha256=kjTKseKd8WybYKk-4ru6mPPvb6MHaw7YFAc9ZIu2sMw,9543
5
- types_boto3_bedrock_runtime/client.pyi,sha256=yVHUXcX9AsgS6HIVuTp4olrDWJ8c_x5rtihDhBwG_DE,9540
6
- types_boto3_bedrock_runtime/literals.py,sha256=VZx7zWHgMwOzOgVpUJMitDvizhe9WEqDPgQI1LZ6saY,13462
7
- types_boto3_bedrock_runtime/literals.pyi,sha256=gbDeQmgGnSwtdd5mMKG8xbVimRkrMq16ax20f4bgTg0,13460
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=JckFQp9jtjPnwoqARDft7fbNCZi6UI8TyoeOXSu7wt4,41924
12
- types_boto3_bedrock_runtime/type_defs.pyi,sha256=JXRvhnrYmgF5HWvFxamdjPPrv_QZN8_clGCRrIxBA6U,41771
13
- types_boto3_bedrock_runtime/version.py,sha256=ZaA0naREa9WFnH-K5V-P-k3aAPEqNIuS6J9mLa1hDFk,92
14
- types_boto3_bedrock_runtime-1.40.3.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
15
- types_boto3_bedrock_runtime-1.40.3.dist-info/METADATA,sha256=jIpdGvLxs9O6cAmU1o88n-yo6eGBz8HewMwmfnUoJIk,15396
16
- types_boto3_bedrock_runtime-1.40.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- types_boto3_bedrock_runtime-1.40.3.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
18
- types_boto3_bedrock_runtime-1.40.3.dist-info/RECORD,,