types-boto3-bedrock-runtime 1.40.76__py3-none-any.whl → 1.41.2__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/__main__.py +3 -3
- types_boto3_bedrock_runtime/literals.py +7 -0
- types_boto3_bedrock_runtime/literals.pyi +7 -0
- types_boto3_bedrock_runtime/type_defs.py +56 -6
- types_boto3_bedrock_runtime/type_defs.pyi +51 -6
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.40.76.dist-info → types_boto3_bedrock_runtime-1.41.2.dist-info}/METADATA +7 -7
- types_boto3_bedrock_runtime-1.41.2.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.40.76.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.40.76.dist-info → types_boto3_bedrock_runtime-1.41.2.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.40.76.dist-info → types_boto3_bedrock_runtime-1.41.2.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.40.76.dist-info → types_boto3_bedrock_runtime-1.41.2.dist-info}/top_level.txt +0 -0
|
@@ -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.
|
|
16
|
-
"Version: 1.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.41.2\n"
|
|
16
|
+
"Version: 1.41.2\n"
|
|
17
17
|
"Builder version: 8.12.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/types_boto3_docs/types_boto3_bedrock_runtime//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-runtime.html#bedrockruntime\n"
|
|
@@ -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.41.2\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -42,7 +42,9 @@ __all__ = (
|
|
|
42
42
|
"GuardrailConverseImageFormatType",
|
|
43
43
|
"GuardrailImageFormatType",
|
|
44
44
|
"GuardrailManagedWordTypeType",
|
|
45
|
+
"GuardrailOriginType",
|
|
45
46
|
"GuardrailOutputScopeType",
|
|
47
|
+
"GuardrailOwnershipType",
|
|
46
48
|
"GuardrailPiiEntityTypeType",
|
|
47
49
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
48
50
|
"GuardrailStreamProcessingModeType",
|
|
@@ -87,7 +89,9 @@ GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_conte
|
|
|
87
89
|
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
88
90
|
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
89
91
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
92
|
+
GuardrailOriginType = Literal["ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED", "REQUEST"]
|
|
90
93
|
GuardrailOutputScopeType = Literal["FULL", "INTERVENTIONS"]
|
|
94
|
+
GuardrailOwnershipType = Literal["CROSS_ACCOUNT", "SELF"]
|
|
91
95
|
GuardrailPiiEntityTypeType = Literal[
|
|
92
96
|
"ADDRESS",
|
|
93
97
|
"AGE",
|
|
@@ -242,6 +246,7 @@ ServiceName = Literal[
|
|
|
242
246
|
"comprehend",
|
|
243
247
|
"comprehendmedical",
|
|
244
248
|
"compute-optimizer",
|
|
249
|
+
"compute-optimizer-automation",
|
|
245
250
|
"config",
|
|
246
251
|
"connect",
|
|
247
252
|
"connect-contact-lens",
|
|
@@ -432,6 +437,7 @@ ServiceName = Literal[
|
|
|
432
437
|
"osis",
|
|
433
438
|
"outposts",
|
|
434
439
|
"panorama",
|
|
440
|
+
"partnercentral-channel",
|
|
435
441
|
"partnercentral-selling",
|
|
436
442
|
"payment-cryptography",
|
|
437
443
|
"payment-cryptography-data",
|
|
@@ -506,6 +512,7 @@ ServiceName = Literal[
|
|
|
506
512
|
"sesv2",
|
|
507
513
|
"shield",
|
|
508
514
|
"signer",
|
|
515
|
+
"signin",
|
|
509
516
|
"simspaceweaver",
|
|
510
517
|
"snow-device-management",
|
|
511
518
|
"snowball",
|
|
@@ -41,7 +41,9 @@ __all__ = (
|
|
|
41
41
|
"GuardrailConverseImageFormatType",
|
|
42
42
|
"GuardrailImageFormatType",
|
|
43
43
|
"GuardrailManagedWordTypeType",
|
|
44
|
+
"GuardrailOriginType",
|
|
44
45
|
"GuardrailOutputScopeType",
|
|
46
|
+
"GuardrailOwnershipType",
|
|
45
47
|
"GuardrailPiiEntityTypeType",
|
|
46
48
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
47
49
|
"GuardrailStreamProcessingModeType",
|
|
@@ -85,7 +87,9 @@ GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_conte
|
|
|
85
87
|
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
86
88
|
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
87
89
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
90
|
+
GuardrailOriginType = Literal["ACCOUNT_ENFORCED", "ORGANIZATION_ENFORCED", "REQUEST"]
|
|
88
91
|
GuardrailOutputScopeType = Literal["FULL", "INTERVENTIONS"]
|
|
92
|
+
GuardrailOwnershipType = Literal["CROSS_ACCOUNT", "SELF"]
|
|
89
93
|
GuardrailPiiEntityTypeType = Literal[
|
|
90
94
|
"ADDRESS",
|
|
91
95
|
"AGE",
|
|
@@ -240,6 +244,7 @@ ServiceName = Literal[
|
|
|
240
244
|
"comprehend",
|
|
241
245
|
"comprehendmedical",
|
|
242
246
|
"compute-optimizer",
|
|
247
|
+
"compute-optimizer-automation",
|
|
243
248
|
"config",
|
|
244
249
|
"connect",
|
|
245
250
|
"connect-contact-lens",
|
|
@@ -430,6 +435,7 @@ ServiceName = Literal[
|
|
|
430
435
|
"osis",
|
|
431
436
|
"outposts",
|
|
432
437
|
"panorama",
|
|
438
|
+
"partnercentral-channel",
|
|
433
439
|
"partnercentral-selling",
|
|
434
440
|
"payment-cryptography",
|
|
435
441
|
"payment-cryptography-data",
|
|
@@ -504,6 +510,7 @@ ServiceName = Literal[
|
|
|
504
510
|
"sesv2",
|
|
505
511
|
"shield",
|
|
506
512
|
"signer",
|
|
513
|
+
"signin",
|
|
507
514
|
"simspaceweaver",
|
|
508
515
|
"snow-device-management",
|
|
509
516
|
"snowball",
|
|
@@ -8,9 +8,9 @@ Copyright 2025 Vlad Emelianov
|
|
|
8
8
|
Usage::
|
|
9
9
|
|
|
10
10
|
```python
|
|
11
|
-
from types_boto3_bedrock_runtime.type_defs import
|
|
11
|
+
from types_boto3_bedrock_runtime.type_defs import AppliedGuardrailDetailsTypeDef
|
|
12
12
|
|
|
13
|
-
data:
|
|
13
|
+
data: AppliedGuardrailDetailsTypeDef = ...
|
|
14
14
|
```
|
|
15
15
|
"""
|
|
16
16
|
|
|
@@ -41,7 +41,9 @@ from .literals import (
|
|
|
41
41
|
GuardrailConverseContentQualifierType,
|
|
42
42
|
GuardrailConverseImageFormatType,
|
|
43
43
|
GuardrailImageFormatType,
|
|
44
|
+
GuardrailOriginType,
|
|
44
45
|
GuardrailOutputScopeType,
|
|
46
|
+
GuardrailOwnershipType,
|
|
45
47
|
GuardrailPiiEntityTypeType,
|
|
46
48
|
GuardrailSensitiveInformationPolicyActionType,
|
|
47
49
|
GuardrailStreamProcessingModeType,
|
|
@@ -66,6 +68,7 @@ else:
|
|
|
66
68
|
|
|
67
69
|
|
|
68
70
|
__all__ = (
|
|
71
|
+
"AppliedGuardrailDetailsTypeDef",
|
|
69
72
|
"ApplyGuardrailRequestTypeDef",
|
|
70
73
|
"ApplyGuardrailResponseTypeDef",
|
|
71
74
|
"AsyncInvokeOutputDataConfigTypeDef",
|
|
@@ -214,6 +217,11 @@ __all__ = (
|
|
|
214
217
|
"ResponseMetadataTypeDef",
|
|
215
218
|
"ResponseStreamTypeDef",
|
|
216
219
|
"S3LocationTypeDef",
|
|
220
|
+
"SearchResultBlockOutputTypeDef",
|
|
221
|
+
"SearchResultBlockTypeDef",
|
|
222
|
+
"SearchResultBlockUnionTypeDef",
|
|
223
|
+
"SearchResultContentBlockTypeDef",
|
|
224
|
+
"SearchResultLocationTypeDef",
|
|
217
225
|
"ServiceTierTypeDef",
|
|
218
226
|
"ServiceUnavailableExceptionTypeDef",
|
|
219
227
|
"SpecificToolChoiceTypeDef",
|
|
@@ -254,6 +262,14 @@ __all__ = (
|
|
|
254
262
|
)
|
|
255
263
|
|
|
256
264
|
|
|
265
|
+
class AppliedGuardrailDetailsTypeDef(TypedDict):
|
|
266
|
+
guardrailId: NotRequired[str]
|
|
267
|
+
guardrailVersion: NotRequired[str]
|
|
268
|
+
guardrailArn: NotRequired[str]
|
|
269
|
+
guardrailOrigin: NotRequired[list[GuardrailOriginType]]
|
|
270
|
+
guardrailOwnership: NotRequired[GuardrailOwnershipType]
|
|
271
|
+
|
|
272
|
+
|
|
257
273
|
class GuardrailOutputContentTypeDef(TypedDict):
|
|
258
274
|
text: NotRequired[str]
|
|
259
275
|
|
|
@@ -321,6 +337,12 @@ class DocumentPageLocationTypeDef(TypedDict):
|
|
|
321
337
|
end: NotRequired[int]
|
|
322
338
|
|
|
323
339
|
|
|
340
|
+
class SearchResultLocationTypeDef(TypedDict):
|
|
341
|
+
searchResultIndex: NotRequired[int]
|
|
342
|
+
start: NotRequired[int]
|
|
343
|
+
end: NotRequired[int]
|
|
344
|
+
|
|
345
|
+
|
|
324
346
|
class WebLocationTypeDef(TypedDict):
|
|
325
347
|
url: NotRequired[str]
|
|
326
348
|
domain: NotRequired[str]
|
|
@@ -390,8 +412,8 @@ class ConverseMetricsTypeDef(TypedDict):
|
|
|
390
412
|
|
|
391
413
|
|
|
392
414
|
class GuardrailConfigurationTypeDef(TypedDict):
|
|
393
|
-
guardrailIdentifier: str
|
|
394
|
-
guardrailVersion: str
|
|
415
|
+
guardrailIdentifier: NotRequired[str]
|
|
416
|
+
guardrailVersion: NotRequired[str]
|
|
395
417
|
trace: NotRequired[GuardrailTraceType]
|
|
396
418
|
|
|
397
419
|
|
|
@@ -462,8 +484,8 @@ class ValidationExceptionTypeDef(TypedDict):
|
|
|
462
484
|
|
|
463
485
|
|
|
464
486
|
class GuardrailStreamConfigurationTypeDef(TypedDict):
|
|
465
|
-
guardrailIdentifier: str
|
|
466
|
-
guardrailVersion: str
|
|
487
|
+
guardrailIdentifier: NotRequired[str]
|
|
488
|
+
guardrailVersion: NotRequired[str]
|
|
467
489
|
trace: NotRequired[GuardrailTraceType]
|
|
468
490
|
streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
|
|
469
491
|
|
|
@@ -623,6 +645,10 @@ class ReasoningTextBlockTypeDef(TypedDict):
|
|
|
623
645
|
signature: NotRequired[str]
|
|
624
646
|
|
|
625
647
|
|
|
648
|
+
class SearchResultContentBlockTypeDef(TypedDict):
|
|
649
|
+
text: str
|
|
650
|
+
|
|
651
|
+
|
|
626
652
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
627
653
|
name: str
|
|
628
654
|
|
|
@@ -726,6 +752,7 @@ class CitationLocationTypeDef(TypedDict):
|
|
|
726
752
|
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
727
753
|
documentPage: NotRequired[DocumentPageLocationTypeDef]
|
|
728
754
|
documentChunk: NotRequired[DocumentChunkLocationTypeDef]
|
|
755
|
+
searchResultLocation: NotRequired[SearchResultLocationTypeDef]
|
|
729
756
|
|
|
730
757
|
|
|
731
758
|
class ContentBlockStartTypeDef(TypedDict):
|
|
@@ -889,6 +916,20 @@ class ReasoningContentBlockTypeDef(TypedDict):
|
|
|
889
916
|
redactedContent: NotRequired[BlobTypeDef]
|
|
890
917
|
|
|
891
918
|
|
|
919
|
+
class SearchResultBlockOutputTypeDef(TypedDict):
|
|
920
|
+
source: str
|
|
921
|
+
title: str
|
|
922
|
+
content: list[SearchResultContentBlockTypeDef]
|
|
923
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
class SearchResultBlockTypeDef(TypedDict):
|
|
927
|
+
source: str
|
|
928
|
+
title: str
|
|
929
|
+
content: Sequence[SearchResultContentBlockTypeDef]
|
|
930
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
931
|
+
|
|
932
|
+
|
|
892
933
|
ToolChoiceTypeDef = TypedDict(
|
|
893
934
|
"ToolChoiceTypeDef",
|
|
894
935
|
{
|
|
@@ -959,18 +1000,21 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
959
1000
|
|
|
960
1001
|
class CitationOutputTypeDef(TypedDict):
|
|
961
1002
|
title: NotRequired[str]
|
|
1003
|
+
source: NotRequired[str]
|
|
962
1004
|
sourceContent: NotRequired[list[CitationSourceContentTypeDef]]
|
|
963
1005
|
location: NotRequired[CitationLocationTypeDef]
|
|
964
1006
|
|
|
965
1007
|
|
|
966
1008
|
class CitationTypeDef(TypedDict):
|
|
967
1009
|
title: NotRequired[str]
|
|
1010
|
+
source: NotRequired[str]
|
|
968
1011
|
sourceContent: NotRequired[Sequence[CitationSourceContentTypeDef]]
|
|
969
1012
|
location: NotRequired[CitationLocationTypeDef]
|
|
970
1013
|
|
|
971
1014
|
|
|
972
1015
|
class CitationsDeltaTypeDef(TypedDict):
|
|
973
1016
|
title: NotRequired[str]
|
|
1017
|
+
source: NotRequired[str]
|
|
974
1018
|
sourceContent: NotRequired[list[CitationSourceContentDeltaTypeDef]]
|
|
975
1019
|
location: NotRequired[CitationLocationTypeDef]
|
|
976
1020
|
|
|
@@ -1066,6 +1110,7 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
1066
1110
|
ReasoningContentBlockUnionTypeDef = Union[
|
|
1067
1111
|
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
1068
1112
|
]
|
|
1113
|
+
SearchResultBlockUnionTypeDef = Union[SearchResultBlockTypeDef, SearchResultBlockOutputTypeDef]
|
|
1069
1114
|
|
|
1070
1115
|
|
|
1071
1116
|
class ToolTypeDef(TypedDict):
|
|
@@ -1140,6 +1185,7 @@ class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
|
1140
1185
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
1141
1186
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
1142
1187
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1188
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1143
1189
|
|
|
1144
1190
|
|
|
1145
1191
|
VideoBlockTypeDef = TypedDict(
|
|
@@ -1229,6 +1275,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
1229
1275
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1230
1276
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
1231
1277
|
citationsContent: NotRequired[CitationsContentBlockOutputTypeDef]
|
|
1278
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1232
1279
|
|
|
1233
1280
|
|
|
1234
1281
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
@@ -1237,6 +1284,7 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
1237
1284
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
1238
1285
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
1239
1286
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1287
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1240
1288
|
|
|
1241
1289
|
|
|
1242
1290
|
class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
|
|
@@ -1266,6 +1314,7 @@ class GuardrailAssessmentTypeDef(TypedDict):
|
|
|
1266
1314
|
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
1267
1315
|
automatedReasoningPolicy: NotRequired[GuardrailAutomatedReasoningPolicyAssessmentTypeDef]
|
|
1268
1316
|
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
1317
|
+
appliedGuardrailDetails: NotRequired[AppliedGuardrailDetailsTypeDef]
|
|
1269
1318
|
|
|
1270
1319
|
|
|
1271
1320
|
class SystemContentBlockTypeDef(TypedDict):
|
|
@@ -1330,6 +1379,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1330
1379
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1331
1380
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1332
1381
|
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1382
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1333
1383
|
|
|
1334
1384
|
|
|
1335
1385
|
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
@@ -8,9 +8,9 @@ Copyright 2025 Vlad Emelianov
|
|
|
8
8
|
Usage::
|
|
9
9
|
|
|
10
10
|
```python
|
|
11
|
-
from types_boto3_bedrock_runtime.type_defs import
|
|
11
|
+
from types_boto3_bedrock_runtime.type_defs import AppliedGuardrailDetailsTypeDef
|
|
12
12
|
|
|
13
|
-
data:
|
|
13
|
+
data: AppliedGuardrailDetailsTypeDef = ...
|
|
14
14
|
```
|
|
15
15
|
"""
|
|
16
16
|
|
|
@@ -41,7 +41,9 @@ from .literals import (
|
|
|
41
41
|
GuardrailConverseContentQualifierType,
|
|
42
42
|
GuardrailConverseImageFormatType,
|
|
43
43
|
GuardrailImageFormatType,
|
|
44
|
+
GuardrailOriginType,
|
|
44
45
|
GuardrailOutputScopeType,
|
|
46
|
+
GuardrailOwnershipType,
|
|
45
47
|
GuardrailPiiEntityTypeType,
|
|
46
48
|
GuardrailSensitiveInformationPolicyActionType,
|
|
47
49
|
GuardrailStreamProcessingModeType,
|
|
@@ -65,6 +67,7 @@ else:
|
|
|
65
67
|
from typing_extensions import Literal, NotRequired, TypedDict
|
|
66
68
|
|
|
67
69
|
__all__ = (
|
|
70
|
+
"AppliedGuardrailDetailsTypeDef",
|
|
68
71
|
"ApplyGuardrailRequestTypeDef",
|
|
69
72
|
"ApplyGuardrailResponseTypeDef",
|
|
70
73
|
"AsyncInvokeOutputDataConfigTypeDef",
|
|
@@ -213,6 +216,11 @@ __all__ = (
|
|
|
213
216
|
"ResponseMetadataTypeDef",
|
|
214
217
|
"ResponseStreamTypeDef",
|
|
215
218
|
"S3LocationTypeDef",
|
|
219
|
+
"SearchResultBlockOutputTypeDef",
|
|
220
|
+
"SearchResultBlockTypeDef",
|
|
221
|
+
"SearchResultBlockUnionTypeDef",
|
|
222
|
+
"SearchResultContentBlockTypeDef",
|
|
223
|
+
"SearchResultLocationTypeDef",
|
|
216
224
|
"ServiceTierTypeDef",
|
|
217
225
|
"ServiceUnavailableExceptionTypeDef",
|
|
218
226
|
"SpecificToolChoiceTypeDef",
|
|
@@ -252,6 +260,13 @@ __all__ = (
|
|
|
252
260
|
"WebLocationTypeDef",
|
|
253
261
|
)
|
|
254
262
|
|
|
263
|
+
class AppliedGuardrailDetailsTypeDef(TypedDict):
|
|
264
|
+
guardrailId: NotRequired[str]
|
|
265
|
+
guardrailVersion: NotRequired[str]
|
|
266
|
+
guardrailArn: NotRequired[str]
|
|
267
|
+
guardrailOrigin: NotRequired[list[GuardrailOriginType]]
|
|
268
|
+
guardrailOwnership: NotRequired[GuardrailOwnershipType]
|
|
269
|
+
|
|
255
270
|
class GuardrailOutputContentTypeDef(TypedDict):
|
|
256
271
|
text: NotRequired[str]
|
|
257
272
|
|
|
@@ -310,6 +325,11 @@ class DocumentPageLocationTypeDef(TypedDict):
|
|
|
310
325
|
start: NotRequired[int]
|
|
311
326
|
end: NotRequired[int]
|
|
312
327
|
|
|
328
|
+
class SearchResultLocationTypeDef(TypedDict):
|
|
329
|
+
searchResultIndex: NotRequired[int]
|
|
330
|
+
start: NotRequired[int]
|
|
331
|
+
end: NotRequired[int]
|
|
332
|
+
|
|
313
333
|
class WebLocationTypeDef(TypedDict):
|
|
314
334
|
url: NotRequired[str]
|
|
315
335
|
domain: NotRequired[str]
|
|
@@ -370,8 +390,8 @@ class ConverseMetricsTypeDef(TypedDict):
|
|
|
370
390
|
latencyMs: int
|
|
371
391
|
|
|
372
392
|
class GuardrailConfigurationTypeDef(TypedDict):
|
|
373
|
-
guardrailIdentifier: str
|
|
374
|
-
guardrailVersion: str
|
|
393
|
+
guardrailIdentifier: NotRequired[str]
|
|
394
|
+
guardrailVersion: NotRequired[str]
|
|
375
395
|
trace: NotRequired[GuardrailTraceType]
|
|
376
396
|
|
|
377
397
|
class InferenceConfigurationTypeDef(TypedDict):
|
|
@@ -428,8 +448,8 @@ class ValidationExceptionTypeDef(TypedDict):
|
|
|
428
448
|
message: NotRequired[str]
|
|
429
449
|
|
|
430
450
|
class GuardrailStreamConfigurationTypeDef(TypedDict):
|
|
431
|
-
guardrailIdentifier: str
|
|
432
|
-
guardrailVersion: str
|
|
451
|
+
guardrailIdentifier: NotRequired[str]
|
|
452
|
+
guardrailVersion: NotRequired[str]
|
|
433
453
|
trace: NotRequired[GuardrailTraceType]
|
|
434
454
|
streamProcessingMode: NotRequired[GuardrailStreamProcessingModeType]
|
|
435
455
|
|
|
@@ -566,6 +586,9 @@ class ReasoningTextBlockTypeDef(TypedDict):
|
|
|
566
586
|
text: str
|
|
567
587
|
signature: NotRequired[str]
|
|
568
588
|
|
|
589
|
+
class SearchResultContentBlockTypeDef(TypedDict):
|
|
590
|
+
text: str
|
|
591
|
+
|
|
569
592
|
class SpecificToolChoiceTypeDef(TypedDict):
|
|
570
593
|
name: str
|
|
571
594
|
|
|
@@ -656,6 +679,7 @@ class CitationLocationTypeDef(TypedDict):
|
|
|
656
679
|
documentChar: NotRequired[DocumentCharLocationTypeDef]
|
|
657
680
|
documentPage: NotRequired[DocumentPageLocationTypeDef]
|
|
658
681
|
documentChunk: NotRequired[DocumentChunkLocationTypeDef]
|
|
682
|
+
searchResultLocation: NotRequired[SearchResultLocationTypeDef]
|
|
659
683
|
|
|
660
684
|
class ContentBlockStartTypeDef(TypedDict):
|
|
661
685
|
toolUse: NotRequired[ToolUseBlockStartTypeDef]
|
|
@@ -801,6 +825,18 @@ class ReasoningContentBlockTypeDef(TypedDict):
|
|
|
801
825
|
reasoningText: NotRequired[ReasoningTextBlockTypeDef]
|
|
802
826
|
redactedContent: NotRequired[BlobTypeDef]
|
|
803
827
|
|
|
828
|
+
class SearchResultBlockOutputTypeDef(TypedDict):
|
|
829
|
+
source: str
|
|
830
|
+
title: str
|
|
831
|
+
content: list[SearchResultContentBlockTypeDef]
|
|
832
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
833
|
+
|
|
834
|
+
class SearchResultBlockTypeDef(TypedDict):
|
|
835
|
+
source: str
|
|
836
|
+
title: str
|
|
837
|
+
content: Sequence[SearchResultContentBlockTypeDef]
|
|
838
|
+
citations: NotRequired[CitationsConfigTypeDef]
|
|
839
|
+
|
|
804
840
|
ToolChoiceTypeDef = TypedDict(
|
|
805
841
|
"ToolChoiceTypeDef",
|
|
806
842
|
{
|
|
@@ -863,16 +899,19 @@ GuardrailImageBlockTypeDef = TypedDict(
|
|
|
863
899
|
|
|
864
900
|
class CitationOutputTypeDef(TypedDict):
|
|
865
901
|
title: NotRequired[str]
|
|
902
|
+
source: NotRequired[str]
|
|
866
903
|
sourceContent: NotRequired[list[CitationSourceContentTypeDef]]
|
|
867
904
|
location: NotRequired[CitationLocationTypeDef]
|
|
868
905
|
|
|
869
906
|
class CitationTypeDef(TypedDict):
|
|
870
907
|
title: NotRequired[str]
|
|
908
|
+
source: NotRequired[str]
|
|
871
909
|
sourceContent: NotRequired[Sequence[CitationSourceContentTypeDef]]
|
|
872
910
|
location: NotRequired[CitationLocationTypeDef]
|
|
873
911
|
|
|
874
912
|
class CitationsDeltaTypeDef(TypedDict):
|
|
875
913
|
title: NotRequired[str]
|
|
914
|
+
source: NotRequired[str]
|
|
876
915
|
sourceContent: NotRequired[list[CitationSourceContentDeltaTypeDef]]
|
|
877
916
|
location: NotRequired[CitationLocationTypeDef]
|
|
878
917
|
|
|
@@ -956,6 +995,7 @@ class InvokeModelWithResponseStreamResponseTypeDef(TypedDict):
|
|
|
956
995
|
ReasoningContentBlockUnionTypeDef = Union[
|
|
957
996
|
ReasoningContentBlockTypeDef, ReasoningContentBlockOutputTypeDef
|
|
958
997
|
]
|
|
998
|
+
SearchResultBlockUnionTypeDef = Union[SearchResultBlockTypeDef, SearchResultBlockOutputTypeDef]
|
|
959
999
|
|
|
960
1000
|
class ToolTypeDef(TypedDict):
|
|
961
1001
|
toolSpec: NotRequired[ToolSpecificationTypeDef]
|
|
@@ -1020,6 +1060,7 @@ class ToolResultContentBlockOutputTypeDef(TypedDict):
|
|
|
1020
1060
|
image: NotRequired[ImageBlockOutputTypeDef]
|
|
1021
1061
|
document: NotRequired[DocumentBlockOutputTypeDef]
|
|
1022
1062
|
video: NotRequired[VideoBlockOutputTypeDef]
|
|
1063
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1023
1064
|
|
|
1024
1065
|
VideoBlockTypeDef = TypedDict(
|
|
1025
1066
|
"VideoBlockTypeDef",
|
|
@@ -1097,6 +1138,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
1097
1138
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1098
1139
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
1099
1140
|
citationsContent: NotRequired[CitationsContentBlockOutputTypeDef]
|
|
1141
|
+
searchResult: NotRequired[SearchResultBlockOutputTypeDef]
|
|
1100
1142
|
|
|
1101
1143
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
1102
1144
|
json: NotRequired[Mapping[str, Any]]
|
|
@@ -1104,6 +1146,7 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
1104
1146
|
image: NotRequired[ImageBlockUnionTypeDef]
|
|
1105
1147
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
1106
1148
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1149
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1107
1150
|
|
|
1108
1151
|
class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
|
|
1109
1152
|
findings: NotRequired[list[GuardrailAutomatedReasoningFindingTypeDef]]
|
|
@@ -1128,6 +1171,7 @@ class GuardrailAssessmentTypeDef(TypedDict):
|
|
|
1128
1171
|
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
1129
1172
|
automatedReasoningPolicy: NotRequired[GuardrailAutomatedReasoningPolicyAssessmentTypeDef]
|
|
1130
1173
|
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
1174
|
+
appliedGuardrailDetails: NotRequired[AppliedGuardrailDetailsTypeDef]
|
|
1131
1175
|
|
|
1132
1176
|
class SystemContentBlockTypeDef(TypedDict):
|
|
1133
1177
|
text: NotRequired[str]
|
|
@@ -1183,6 +1227,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1183
1227
|
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1184
1228
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1185
1229
|
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1230
|
+
searchResult: NotRequired[SearchResultBlockUnionTypeDef]
|
|
1186
1231
|
|
|
1187
1232
|
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
1188
1233
|
usage: TokenUsageTypeDef
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.
|
|
3
|
+
Version: 1.41.2
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.41.2 service generated with mypy-boto3-builder 8.12.0
|
|
5
5
|
Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
|
|
@@ -43,7 +43,7 @@ Dynamic: license-file
|
|
|
43
43
|

|
|
44
44
|
|
|
45
45
|
Type annotations for
|
|
46
|
-
[boto3 BedrockRuntime 1.
|
|
46
|
+
[boto3 BedrockRuntime 1.41.2](https://pypi.org/project/boto3/) compatible with
|
|
47
47
|
[VSCode](https://code.visualstudio.com/),
|
|
48
48
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
49
49
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -105,7 +105,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
105
105
|
isolation.
|
|
106
106
|
|
|
107
107
|
1. Run mypy-boto3-builder in your package root directory:
|
|
108
|
-
`uvx --with 'boto3==1.
|
|
108
|
+
`uvx --with 'boto3==1.41.2' mypy-boto3-builder`
|
|
109
109
|
2. Select `boto3` AWS SDK.
|
|
110
110
|
3. Add `BedrockRuntime` service.
|
|
111
111
|
4. Use provided commands to install generated packages.
|
|
@@ -378,12 +378,12 @@ Full list of `BedrockRuntime` TypeDefs can be found in
|
|
|
378
378
|
|
|
379
379
|
```python
|
|
380
380
|
# TypedDict usage example
|
|
381
|
-
from types_boto3_bedrock_runtime.type_defs import
|
|
381
|
+
from types_boto3_bedrock_runtime.type_defs import AppliedGuardrailDetailsTypeDef
|
|
382
382
|
|
|
383
383
|
|
|
384
|
-
def get_value() ->
|
|
384
|
+
def get_value() -> AppliedGuardrailDetailsTypeDef:
|
|
385
385
|
return {
|
|
386
|
-
"
|
|
386
|
+
"guardrailId": ...,
|
|
387
387
|
}
|
|
388
388
|
```
|
|
389
389
|
|
|
@@ -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=3WFVWVwB3ST4sFkOOw0qA6k3tfFXPV8Xuvg02rWKIpc,1012
|
|
4
|
+
types_boto3_bedrock_runtime/client.py,sha256=gN_nm5GKPuUjmMh_qvJGHuSNHcm5-ui7FPQ3KyWiAxc,9982
|
|
5
|
+
types_boto3_bedrock_runtime/client.pyi,sha256=Ypg7CxQjo36qHy8fF2l6-cT9SIfHDxZNeVzCQNAccyE,9979
|
|
6
|
+
types_boto3_bedrock_runtime/literals.py,sha256=0jyvK5x-L8mgu-2RbMznCg6HGG4AvqVJG4y55tr1IYk,13821
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=8QTL-xb8Cdepl3HzzU8Ef1B860EcbYZw7tB2keQgqiQ,13819
|
|
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=tFScpqCmGO7LCEaO6Jf7ghI07ppqT5xO7S5HxPuDBsQ,46145
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=GXkRMpBjr6xdr5H_uTZqnbhsqgOUvQwOAlj5-LehVaE,45981
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=aLKGJmxodYlE7i2btZqBdcB8RTTGw1f6JzSmoqyix3w,92
|
|
14
|
+
types_boto3_bedrock_runtime-1.41.2.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.41.2.dist-info/METADATA,sha256=UgoIZ7hz_pZepqgRUT5-SL2yZnMFiPHelcpOguzCLVk,15074
|
|
16
|
+
types_boto3_bedrock_runtime-1.41.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.41.2.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.41.2.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=uQzEGXQVhkFSXLsiRSVSt2o-9ufJV1GsnDBbQMAWLWE,1015
|
|
4
|
-
types_boto3_bedrock_runtime/client.py,sha256=gN_nm5GKPuUjmMh_qvJGHuSNHcm5-ui7FPQ3KyWiAxc,9982
|
|
5
|
-
types_boto3_bedrock_runtime/client.pyi,sha256=Ypg7CxQjo36qHy8fF2l6-cT9SIfHDxZNeVzCQNAccyE,9979
|
|
6
|
-
types_boto3_bedrock_runtime/literals.py,sha256=-FdNiYBU72SK2YVDZLBdYAbsH5OyLcNMJsFBDh6Vgio,13540
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=xOKXw78u5UqA8iax-nYuE3gEoKQr5cQ3xiEoUZcKjTQ,13538
|
|
8
|
-
types_boto3_bedrock_runtime/paginator.py,sha256=5Jxr9RrOJKN9XVbJReCbUJpJopBTa6lkmC2vmFjI2nQ,2194
|
|
9
|
-
types_boto3_bedrock_runtime/paginator.pyi,sha256=63nEmXrjk6YpFdjbM7HiTP4pBDClAUG2z9KGCvvqdpw,2190
|
|
10
|
-
types_boto3_bedrock_runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
types_boto3_bedrock_runtime/type_defs.py,sha256=zb5TPkMA_FmDgpvYPD88k9iZQEuJbzsGo2cmPe2mE4I,44397
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=MWox54Xjl1755gB8baZRedzxe9JzM-EOxIX7BG8eaUY,44238
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=VE_SsO5zPUepnGA5xToz9iD9MkBKqmg69Jq6fzwikrk,93
|
|
14
|
-
types_boto3_bedrock_runtime-1.40.76.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.40.76.dist-info/METADATA,sha256=WyDc5doEyW1SsVLR096JAH39-7JaSowXoZxlB4AQBnM,15069
|
|
16
|
-
types_boto3_bedrock_runtime-1.40.76.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.40.76.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.40.76.dist-info/RECORD,,
|
{types_boto3_bedrock_runtime-1.40.76.dist-info → types_boto3_bedrock_runtime-1.41.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|