types-boto3-bedrock-runtime 1.37.23__py3-none-any.whl → 1.37.29__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 +10 -6
- types_boto3_bedrock_runtime/literals.pyi +10 -6
- types_boto3_bedrock_runtime/type_defs.py +31 -4
- types_boto3_bedrock_runtime/type_defs.pyi +31 -4
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.37.23.dist-info → types_boto3_bedrock_runtime-1.37.29.dist-info}/METADATA +4 -4
- types_boto3_bedrock_runtime-1.37.29.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.37.23.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.37.23.dist-info → types_boto3_bedrock_runtime-1.37.29.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.37.23.dist-info → types_boto3_bedrock_runtime-1.37.29.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.37.23.dist-info → types_boto3_bedrock_runtime-1.37.29.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.37.
|
|
16
|
-
"Version: 1.37.
|
|
15
|
+
"Type annotations for boto3 BedrockRuntime 1.37.29\n"
|
|
16
|
+
"Version: 1.37.29\n"
|
|
17
17
|
"Builder version: 8.10.1\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.37.
|
|
29
|
+
sys.stdout.write("1.37.29\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -25,6 +25,7 @@ else:
|
|
|
25
25
|
__all__ = (
|
|
26
26
|
"AsyncInvokeStatusType",
|
|
27
27
|
"BedrockRuntimeServiceName",
|
|
28
|
+
"CachePointTypeType",
|
|
28
29
|
"ConversationRoleType",
|
|
29
30
|
"DocumentFormatType",
|
|
30
31
|
"GuardrailActionType",
|
|
@@ -40,6 +41,7 @@ __all__ = (
|
|
|
40
41
|
"GuardrailConverseImageFormatType",
|
|
41
42
|
"GuardrailImageFormatType",
|
|
42
43
|
"GuardrailManagedWordTypeType",
|
|
44
|
+
"GuardrailOutputScopeType",
|
|
43
45
|
"GuardrailPiiEntityTypeType",
|
|
44
46
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
45
47
|
"GuardrailStreamProcessingModeType",
|
|
@@ -63,6 +65,7 @@ __all__ = (
|
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
|
|
68
|
+
CachePointTypeType = Literal["default"]
|
|
66
69
|
ConversationRoleType = Literal["assistant", "user"]
|
|
67
70
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
68
71
|
GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
|
|
@@ -71,7 +74,7 @@ GuardrailContentFilterStrengthType = Literal["HIGH", "LOW", "MEDIUM", "NONE"]
|
|
|
71
74
|
GuardrailContentFilterTypeType = Literal[
|
|
72
75
|
"HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK", "SEXUAL", "VIOLENCE"
|
|
73
76
|
]
|
|
74
|
-
GuardrailContentPolicyActionType = Literal["BLOCKED"]
|
|
77
|
+
GuardrailContentPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
75
78
|
GuardrailContentQualifierType = Literal["grounding_source", "guard_content", "query"]
|
|
76
79
|
GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
|
|
77
80
|
GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
|
|
@@ -80,6 +83,7 @@ GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_conte
|
|
|
80
83
|
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
81
84
|
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
82
85
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
86
|
+
GuardrailOutputScopeType = Literal["FULL", "INTERVENTIONS"]
|
|
83
87
|
GuardrailPiiEntityTypeType = Literal[
|
|
84
88
|
"ADDRESS",
|
|
85
89
|
"AGE",
|
|
@@ -113,12 +117,12 @@ GuardrailPiiEntityTypeType = Literal[
|
|
|
113
117
|
"US_SOCIAL_SECURITY_NUMBER",
|
|
114
118
|
"VEHICLE_IDENTIFICATION_NUMBER",
|
|
115
119
|
]
|
|
116
|
-
GuardrailSensitiveInformationPolicyActionType = Literal["ANONYMIZED", "BLOCKED"]
|
|
120
|
+
GuardrailSensitiveInformationPolicyActionType = Literal["ANONYMIZED", "BLOCKED", "NONE"]
|
|
117
121
|
GuardrailStreamProcessingModeType = Literal["async", "sync"]
|
|
118
|
-
GuardrailTopicPolicyActionType = Literal["BLOCKED"]
|
|
122
|
+
GuardrailTopicPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
119
123
|
GuardrailTopicTypeType = Literal["DENY"]
|
|
120
|
-
GuardrailTraceType = Literal["disabled", "enabled"]
|
|
121
|
-
GuardrailWordPolicyActionType = Literal["BLOCKED"]
|
|
124
|
+
GuardrailTraceType = Literal["disabled", "enabled", "enabled_full"]
|
|
125
|
+
GuardrailWordPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
122
126
|
ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
|
|
123
127
|
ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
|
|
124
128
|
PerformanceConfigLatencyType = Literal["optimized", "standard"]
|
|
@@ -133,7 +137,7 @@ StopReasonType = Literal[
|
|
|
133
137
|
"tool_use",
|
|
134
138
|
]
|
|
135
139
|
ToolResultStatusType = Literal["error", "success"]
|
|
136
|
-
TraceType = Literal["DISABLED", "ENABLED"]
|
|
140
|
+
TraceType = Literal["DISABLED", "ENABLED", "ENABLED_FULL"]
|
|
137
141
|
VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
|
|
138
142
|
BedrockRuntimeServiceName = Literal["bedrock-runtime"]
|
|
139
143
|
ServiceName = Literal[
|
|
@@ -24,6 +24,7 @@ else:
|
|
|
24
24
|
__all__ = (
|
|
25
25
|
"AsyncInvokeStatusType",
|
|
26
26
|
"BedrockRuntimeServiceName",
|
|
27
|
+
"CachePointTypeType",
|
|
27
28
|
"ConversationRoleType",
|
|
28
29
|
"DocumentFormatType",
|
|
29
30
|
"GuardrailActionType",
|
|
@@ -39,6 +40,7 @@ __all__ = (
|
|
|
39
40
|
"GuardrailConverseImageFormatType",
|
|
40
41
|
"GuardrailImageFormatType",
|
|
41
42
|
"GuardrailManagedWordTypeType",
|
|
43
|
+
"GuardrailOutputScopeType",
|
|
42
44
|
"GuardrailPiiEntityTypeType",
|
|
43
45
|
"GuardrailSensitiveInformationPolicyActionType",
|
|
44
46
|
"GuardrailStreamProcessingModeType",
|
|
@@ -61,6 +63,7 @@ __all__ = (
|
|
|
61
63
|
)
|
|
62
64
|
|
|
63
65
|
AsyncInvokeStatusType = Literal["Completed", "Failed", "InProgress"]
|
|
66
|
+
CachePointTypeType = Literal["default"]
|
|
64
67
|
ConversationRoleType = Literal["assistant", "user"]
|
|
65
68
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
66
69
|
GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
|
|
@@ -69,7 +72,7 @@ GuardrailContentFilterStrengthType = Literal["HIGH", "LOW", "MEDIUM", "NONE"]
|
|
|
69
72
|
GuardrailContentFilterTypeType = Literal[
|
|
70
73
|
"HATE", "INSULTS", "MISCONDUCT", "PROMPT_ATTACK", "SEXUAL", "VIOLENCE"
|
|
71
74
|
]
|
|
72
|
-
GuardrailContentPolicyActionType = Literal["BLOCKED"]
|
|
75
|
+
GuardrailContentPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
73
76
|
GuardrailContentQualifierType = Literal["grounding_source", "guard_content", "query"]
|
|
74
77
|
GuardrailContentSourceType = Literal["INPUT", "OUTPUT"]
|
|
75
78
|
GuardrailContextualGroundingFilterTypeType = Literal["GROUNDING", "RELEVANCE"]
|
|
@@ -78,6 +81,7 @@ GuardrailConverseContentQualifierType = Literal["grounding_source", "guard_conte
|
|
|
78
81
|
GuardrailConverseImageFormatType = Literal["jpeg", "png"]
|
|
79
82
|
GuardrailImageFormatType = Literal["jpeg", "png"]
|
|
80
83
|
GuardrailManagedWordTypeType = Literal["PROFANITY"]
|
|
84
|
+
GuardrailOutputScopeType = Literal["FULL", "INTERVENTIONS"]
|
|
81
85
|
GuardrailPiiEntityTypeType = Literal[
|
|
82
86
|
"ADDRESS",
|
|
83
87
|
"AGE",
|
|
@@ -111,12 +115,12 @@ GuardrailPiiEntityTypeType = Literal[
|
|
|
111
115
|
"US_SOCIAL_SECURITY_NUMBER",
|
|
112
116
|
"VEHICLE_IDENTIFICATION_NUMBER",
|
|
113
117
|
]
|
|
114
|
-
GuardrailSensitiveInformationPolicyActionType = Literal["ANONYMIZED", "BLOCKED"]
|
|
118
|
+
GuardrailSensitiveInformationPolicyActionType = Literal["ANONYMIZED", "BLOCKED", "NONE"]
|
|
115
119
|
GuardrailStreamProcessingModeType = Literal["async", "sync"]
|
|
116
|
-
GuardrailTopicPolicyActionType = Literal["BLOCKED"]
|
|
120
|
+
GuardrailTopicPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
117
121
|
GuardrailTopicTypeType = Literal["DENY"]
|
|
118
|
-
GuardrailTraceType = Literal["disabled", "enabled"]
|
|
119
|
-
GuardrailWordPolicyActionType = Literal["BLOCKED"]
|
|
122
|
+
GuardrailTraceType = Literal["disabled", "enabled", "enabled_full"]
|
|
123
|
+
GuardrailWordPolicyActionType = Literal["BLOCKED", "NONE"]
|
|
120
124
|
ImageFormatType = Literal["gif", "jpeg", "png", "webp"]
|
|
121
125
|
ListAsyncInvokesPaginatorName = Literal["list_async_invokes"]
|
|
122
126
|
PerformanceConfigLatencyType = Literal["optimized", "standard"]
|
|
@@ -131,7 +135,7 @@ StopReasonType = Literal[
|
|
|
131
135
|
"tool_use",
|
|
132
136
|
]
|
|
133
137
|
ToolResultStatusType = Literal["error", "success"]
|
|
134
|
-
TraceType = Literal["DISABLED", "ENABLED"]
|
|
138
|
+
TraceType = Literal["DISABLED", "ENABLED", "ENABLED_FULL"]
|
|
135
139
|
VideoFormatType = Literal["flv", "mkv", "mov", "mp4", "mpeg", "mpg", "three_gp", "webm", "wmv"]
|
|
136
140
|
BedrockRuntimeServiceName = Literal["bedrock-runtime"]
|
|
137
141
|
ServiceName = Literal[
|
|
@@ -31,6 +31,7 @@ from .literals import (
|
|
|
31
31
|
GuardrailContentFilterConfidenceType,
|
|
32
32
|
GuardrailContentFilterStrengthType,
|
|
33
33
|
GuardrailContentFilterTypeType,
|
|
34
|
+
GuardrailContentPolicyActionType,
|
|
34
35
|
GuardrailContentQualifierType,
|
|
35
36
|
GuardrailContentSourceType,
|
|
36
37
|
GuardrailContextualGroundingFilterTypeType,
|
|
@@ -38,10 +39,13 @@ from .literals import (
|
|
|
38
39
|
GuardrailConverseContentQualifierType,
|
|
39
40
|
GuardrailConverseImageFormatType,
|
|
40
41
|
GuardrailImageFormatType,
|
|
42
|
+
GuardrailOutputScopeType,
|
|
41
43
|
GuardrailPiiEntityTypeType,
|
|
42
44
|
GuardrailSensitiveInformationPolicyActionType,
|
|
43
45
|
GuardrailStreamProcessingModeType,
|
|
46
|
+
GuardrailTopicPolicyActionType,
|
|
44
47
|
GuardrailTraceType,
|
|
48
|
+
GuardrailWordPolicyActionType,
|
|
45
49
|
ImageFormatType,
|
|
46
50
|
PerformanceConfigLatencyType,
|
|
47
51
|
SortOrderType,
|
|
@@ -70,6 +74,7 @@ __all__ = (
|
|
|
70
74
|
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
71
75
|
"AsyncInvokeSummaryTypeDef",
|
|
72
76
|
"BlobTypeDef",
|
|
77
|
+
"CachePointBlockTypeDef",
|
|
73
78
|
"ContentBlockDeltaEventTypeDef",
|
|
74
79
|
"ContentBlockDeltaTypeDef",
|
|
75
80
|
"ContentBlockOutputTypeDef",
|
|
@@ -234,6 +239,12 @@ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
|
234
239
|
|
|
235
240
|
|
|
236
241
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
242
|
+
CachePointBlockTypeDef = TypedDict(
|
|
243
|
+
"CachePointBlockTypeDef",
|
|
244
|
+
{
|
|
245
|
+
"type": Literal["default"],
|
|
246
|
+
},
|
|
247
|
+
)
|
|
237
248
|
|
|
238
249
|
|
|
239
250
|
class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
@@ -296,6 +307,8 @@ class TokenUsageTypeDef(TypedDict):
|
|
|
296
307
|
inputTokens: int
|
|
297
308
|
outputTokens: int
|
|
298
309
|
totalTokens: int
|
|
310
|
+
cacheReadInputTokens: NotRequired[int]
|
|
311
|
+
cacheWriteInputTokens: NotRequired[int]
|
|
299
312
|
|
|
300
313
|
|
|
301
314
|
class ConverseStreamMetricsTypeDef(TypedDict):
|
|
@@ -366,8 +379,9 @@ GuardrailContentFilterTypeDef = TypedDict(
|
|
|
366
379
|
{
|
|
367
380
|
"type": GuardrailContentFilterTypeType,
|
|
368
381
|
"confidence": GuardrailContentFilterConfidenceType,
|
|
369
|
-
"action":
|
|
382
|
+
"action": GuardrailContentPolicyActionType,
|
|
370
383
|
"filterStrength": NotRequired[GuardrailContentFilterStrengthType],
|
|
384
|
+
"detected": NotRequired[bool],
|
|
371
385
|
},
|
|
372
386
|
)
|
|
373
387
|
GuardrailContextualGroundingFilterTypeDef = TypedDict(
|
|
@@ -377,6 +391,7 @@ GuardrailContextualGroundingFilterTypeDef = TypedDict(
|
|
|
377
391
|
"threshold": float,
|
|
378
392
|
"score": float,
|
|
379
393
|
"action": GuardrailContextualGroundingPolicyActionType,
|
|
394
|
+
"detected": NotRequired[bool],
|
|
380
395
|
},
|
|
381
396
|
)
|
|
382
397
|
|
|
@@ -411,7 +426,8 @@ class GuardrailTextCharactersCoverageTypeDef(TypedDict):
|
|
|
411
426
|
|
|
412
427
|
class GuardrailCustomWordTypeDef(TypedDict):
|
|
413
428
|
match: str
|
|
414
|
-
action:
|
|
429
|
+
action: GuardrailWordPolicyActionType
|
|
430
|
+
detected: NotRequired[bool]
|
|
415
431
|
|
|
416
432
|
|
|
417
433
|
GuardrailManagedWordTypeDef = TypedDict(
|
|
@@ -419,7 +435,8 @@ GuardrailManagedWordTypeDef = TypedDict(
|
|
|
419
435
|
{
|
|
420
436
|
"match": str,
|
|
421
437
|
"type": Literal["PROFANITY"],
|
|
422
|
-
"action":
|
|
438
|
+
"action": GuardrailWordPolicyActionType,
|
|
439
|
+
"detected": NotRequired[bool],
|
|
423
440
|
},
|
|
424
441
|
)
|
|
425
442
|
GuardrailPiiEntityFilterTypeDef = TypedDict(
|
|
@@ -428,6 +445,7 @@ GuardrailPiiEntityFilterTypeDef = TypedDict(
|
|
|
428
445
|
"match": str,
|
|
429
446
|
"type": GuardrailPiiEntityTypeType,
|
|
430
447
|
"action": GuardrailSensitiveInformationPolicyActionType,
|
|
448
|
+
"detected": NotRequired[bool],
|
|
431
449
|
},
|
|
432
450
|
)
|
|
433
451
|
|
|
@@ -437,6 +455,7 @@ class GuardrailRegexFilterTypeDef(TypedDict):
|
|
|
437
455
|
name: NotRequired[str]
|
|
438
456
|
match: NotRequired[str]
|
|
439
457
|
regex: NotRequired[str]
|
|
458
|
+
detected: NotRequired[bool]
|
|
440
459
|
|
|
441
460
|
|
|
442
461
|
GuardrailTopicTypeDef = TypedDict(
|
|
@@ -444,7 +463,8 @@ GuardrailTopicTypeDef = TypedDict(
|
|
|
444
463
|
{
|
|
445
464
|
"name": str,
|
|
446
465
|
"type": Literal["DENY"],
|
|
447
|
-
"action":
|
|
466
|
+
"action": GuardrailTopicPolicyActionType,
|
|
467
|
+
"detected": NotRequired[bool],
|
|
448
468
|
},
|
|
449
469
|
)
|
|
450
470
|
ImageSourceOutputTypeDef = TypedDict(
|
|
@@ -803,6 +823,7 @@ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
|
803
823
|
|
|
804
824
|
class ToolTypeDef(TypedDict):
|
|
805
825
|
toolSpec: NotRequired[ToolSpecificationTypeDef]
|
|
826
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
806
827
|
|
|
807
828
|
|
|
808
829
|
class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
@@ -884,6 +905,7 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
884
905
|
guardrailVersion: str
|
|
885
906
|
source: GuardrailContentSourceType
|
|
886
907
|
content: Sequence[GuardrailContentBlockTypeDef]
|
|
908
|
+
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
887
909
|
|
|
888
910
|
|
|
889
911
|
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
@@ -892,6 +914,7 @@ ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
|
892
914
|
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
893
915
|
usage: GuardrailUsageTypeDef
|
|
894
916
|
action: GuardrailActionType
|
|
917
|
+
actionReason: str
|
|
895
918
|
outputs: List[GuardrailOutputContentTypeDef]
|
|
896
919
|
assessments: List[GuardrailAssessmentTypeDef]
|
|
897
920
|
guardrailCoverage: GuardrailCoverageTypeDef
|
|
@@ -902,6 +925,7 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
|
902
925
|
modelOutput: NotRequired[List[str]]
|
|
903
926
|
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
904
927
|
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
928
|
+
actionReason: NotRequired[str]
|
|
905
929
|
|
|
906
930
|
|
|
907
931
|
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
@@ -936,6 +960,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
936
960
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
937
961
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
938
962
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
963
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
939
964
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
940
965
|
|
|
941
966
|
|
|
@@ -972,6 +997,7 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
972
997
|
class SystemContentBlockTypeDef(TypedDict):
|
|
973
998
|
text: NotRequired[str]
|
|
974
999
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
1000
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
975
1001
|
|
|
976
1002
|
|
|
977
1003
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
@@ -1025,6 +1051,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1025
1051
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
1026
1052
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
1027
1053
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
1054
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
1028
1055
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1029
1056
|
|
|
1030
1057
|
|
|
@@ -31,6 +31,7 @@ from .literals import (
|
|
|
31
31
|
GuardrailContentFilterConfidenceType,
|
|
32
32
|
GuardrailContentFilterStrengthType,
|
|
33
33
|
GuardrailContentFilterTypeType,
|
|
34
|
+
GuardrailContentPolicyActionType,
|
|
34
35
|
GuardrailContentQualifierType,
|
|
35
36
|
GuardrailContentSourceType,
|
|
36
37
|
GuardrailContextualGroundingFilterTypeType,
|
|
@@ -38,10 +39,13 @@ from .literals import (
|
|
|
38
39
|
GuardrailConverseContentQualifierType,
|
|
39
40
|
GuardrailConverseImageFormatType,
|
|
40
41
|
GuardrailImageFormatType,
|
|
42
|
+
GuardrailOutputScopeType,
|
|
41
43
|
GuardrailPiiEntityTypeType,
|
|
42
44
|
GuardrailSensitiveInformationPolicyActionType,
|
|
43
45
|
GuardrailStreamProcessingModeType,
|
|
46
|
+
GuardrailTopicPolicyActionType,
|
|
44
47
|
GuardrailTraceType,
|
|
48
|
+
GuardrailWordPolicyActionType,
|
|
45
49
|
ImageFormatType,
|
|
46
50
|
PerformanceConfigLatencyType,
|
|
47
51
|
SortOrderType,
|
|
@@ -69,6 +73,7 @@ __all__ = (
|
|
|
69
73
|
"AsyncInvokeS3OutputDataConfigTypeDef",
|
|
70
74
|
"AsyncInvokeSummaryTypeDef",
|
|
71
75
|
"BlobTypeDef",
|
|
76
|
+
"CachePointBlockTypeDef",
|
|
72
77
|
"ContentBlockDeltaEventTypeDef",
|
|
73
78
|
"ContentBlockDeltaTypeDef",
|
|
74
79
|
"ContentBlockOutputTypeDef",
|
|
@@ -228,6 +233,12 @@ class AsyncInvokeS3OutputDataConfigTypeDef(TypedDict):
|
|
|
228
233
|
bucketOwner: NotRequired[str]
|
|
229
234
|
|
|
230
235
|
BlobTypeDef = Union[str, bytes, IO[Any], StreamingBody]
|
|
236
|
+
CachePointBlockTypeDef = TypedDict(
|
|
237
|
+
"CachePointBlockTypeDef",
|
|
238
|
+
{
|
|
239
|
+
"type": Literal["default"],
|
|
240
|
+
},
|
|
241
|
+
)
|
|
231
242
|
|
|
232
243
|
class ReasoningContentBlockDeltaTypeDef(TypedDict):
|
|
233
244
|
text: NotRequired[str]
|
|
@@ -280,6 +291,8 @@ class TokenUsageTypeDef(TypedDict):
|
|
|
280
291
|
inputTokens: int
|
|
281
292
|
outputTokens: int
|
|
282
293
|
totalTokens: int
|
|
294
|
+
cacheReadInputTokens: NotRequired[int]
|
|
295
|
+
cacheWriteInputTokens: NotRequired[int]
|
|
283
296
|
|
|
284
297
|
class ConverseStreamMetricsTypeDef(TypedDict):
|
|
285
298
|
latencyMs: int
|
|
@@ -336,8 +349,9 @@ GuardrailContentFilterTypeDef = TypedDict(
|
|
|
336
349
|
{
|
|
337
350
|
"type": GuardrailContentFilterTypeType,
|
|
338
351
|
"confidence": GuardrailContentFilterConfidenceType,
|
|
339
|
-
"action":
|
|
352
|
+
"action": GuardrailContentPolicyActionType,
|
|
340
353
|
"filterStrength": NotRequired[GuardrailContentFilterStrengthType],
|
|
354
|
+
"detected": NotRequired[bool],
|
|
341
355
|
},
|
|
342
356
|
)
|
|
343
357
|
GuardrailContextualGroundingFilterTypeDef = TypedDict(
|
|
@@ -347,6 +361,7 @@ GuardrailContextualGroundingFilterTypeDef = TypedDict(
|
|
|
347
361
|
"threshold": float,
|
|
348
362
|
"score": float,
|
|
349
363
|
"action": GuardrailContextualGroundingPolicyActionType,
|
|
364
|
+
"detected": NotRequired[bool],
|
|
350
365
|
},
|
|
351
366
|
)
|
|
352
367
|
|
|
@@ -375,14 +390,16 @@ class GuardrailTextCharactersCoverageTypeDef(TypedDict):
|
|
|
375
390
|
|
|
376
391
|
class GuardrailCustomWordTypeDef(TypedDict):
|
|
377
392
|
match: str
|
|
378
|
-
action:
|
|
393
|
+
action: GuardrailWordPolicyActionType
|
|
394
|
+
detected: NotRequired[bool]
|
|
379
395
|
|
|
380
396
|
GuardrailManagedWordTypeDef = TypedDict(
|
|
381
397
|
"GuardrailManagedWordTypeDef",
|
|
382
398
|
{
|
|
383
399
|
"match": str,
|
|
384
400
|
"type": Literal["PROFANITY"],
|
|
385
|
-
"action":
|
|
401
|
+
"action": GuardrailWordPolicyActionType,
|
|
402
|
+
"detected": NotRequired[bool],
|
|
386
403
|
},
|
|
387
404
|
)
|
|
388
405
|
GuardrailPiiEntityFilterTypeDef = TypedDict(
|
|
@@ -391,6 +408,7 @@ GuardrailPiiEntityFilterTypeDef = TypedDict(
|
|
|
391
408
|
"match": str,
|
|
392
409
|
"type": GuardrailPiiEntityTypeType,
|
|
393
410
|
"action": GuardrailSensitiveInformationPolicyActionType,
|
|
411
|
+
"detected": NotRequired[bool],
|
|
394
412
|
},
|
|
395
413
|
)
|
|
396
414
|
|
|
@@ -399,13 +417,15 @@ class GuardrailRegexFilterTypeDef(TypedDict):
|
|
|
399
417
|
name: NotRequired[str]
|
|
400
418
|
match: NotRequired[str]
|
|
401
419
|
regex: NotRequired[str]
|
|
420
|
+
detected: NotRequired[bool]
|
|
402
421
|
|
|
403
422
|
GuardrailTopicTypeDef = TypedDict(
|
|
404
423
|
"GuardrailTopicTypeDef",
|
|
405
424
|
{
|
|
406
425
|
"name": str,
|
|
407
426
|
"type": Literal["DENY"],
|
|
408
|
-
"action":
|
|
427
|
+
"action": GuardrailTopicPolicyActionType,
|
|
428
|
+
"detected": NotRequired[bool],
|
|
409
429
|
},
|
|
410
430
|
)
|
|
411
431
|
ImageSourceOutputTypeDef = TypedDict(
|
|
@@ -718,6 +738,7 @@ VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
|
718
738
|
|
|
719
739
|
class ToolTypeDef(TypedDict):
|
|
720
740
|
toolSpec: NotRequired[ToolSpecificationTypeDef]
|
|
741
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
721
742
|
|
|
722
743
|
class ListAsyncInvokesResponseTypeDef(TypedDict):
|
|
723
744
|
asyncInvokeSummaries: List[AsyncInvokeSummaryTypeDef]
|
|
@@ -789,12 +810,14 @@ class ApplyGuardrailRequestTypeDef(TypedDict):
|
|
|
789
810
|
guardrailVersion: str
|
|
790
811
|
source: GuardrailContentSourceType
|
|
791
812
|
content: Sequence[GuardrailContentBlockTypeDef]
|
|
813
|
+
outputScope: NotRequired[GuardrailOutputScopeType]
|
|
792
814
|
|
|
793
815
|
ImageBlockUnionTypeDef = Union[ImageBlockTypeDef, ImageBlockOutputTypeDef]
|
|
794
816
|
|
|
795
817
|
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
796
818
|
usage: GuardrailUsageTypeDef
|
|
797
819
|
action: GuardrailActionType
|
|
820
|
+
actionReason: str
|
|
798
821
|
outputs: List[GuardrailOutputContentTypeDef]
|
|
799
822
|
assessments: List[GuardrailAssessmentTypeDef]
|
|
800
823
|
guardrailCoverage: GuardrailCoverageTypeDef
|
|
@@ -804,6 +827,7 @@ class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
|
804
827
|
modelOutput: NotRequired[List[str]]
|
|
805
828
|
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
806
829
|
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
830
|
+
actionReason: NotRequired[str]
|
|
807
831
|
|
|
808
832
|
class ToolResultBlockOutputTypeDef(TypedDict):
|
|
809
833
|
toolUseId: str
|
|
@@ -832,6 +856,7 @@ class ContentBlockOutputTypeDef(TypedDict):
|
|
|
832
856
|
toolUse: NotRequired[ToolUseBlockOutputTypeDef]
|
|
833
857
|
toolResult: NotRequired[ToolResultBlockOutputTypeDef]
|
|
834
858
|
guardContent: NotRequired[GuardrailConverseContentBlockOutputTypeDef]
|
|
859
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
835
860
|
reasoningContent: NotRequired[ReasoningContentBlockOutputTypeDef]
|
|
836
861
|
|
|
837
862
|
class ToolResultContentBlockTypeDef(TypedDict):
|
|
@@ -862,6 +887,7 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
862
887
|
class SystemContentBlockTypeDef(TypedDict):
|
|
863
888
|
text: NotRequired[str]
|
|
864
889
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
890
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
865
891
|
|
|
866
892
|
class ConverseStreamOutputTypeDef(TypedDict):
|
|
867
893
|
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
@@ -908,6 +934,7 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
908
934
|
toolUse: NotRequired[ToolUseBlockUnionTypeDef]
|
|
909
935
|
toolResult: NotRequired[ToolResultBlockUnionTypeDef]
|
|
910
936
|
guardContent: NotRequired[GuardrailConverseContentBlockUnionTypeDef]
|
|
937
|
+
cachePoint: NotRequired[CachePointBlockTypeDef]
|
|
911
938
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
912
939
|
|
|
913
940
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: types-boto3-bedrock-runtime
|
|
3
|
-
Version: 1.37.
|
|
4
|
-
Summary: Type annotations for boto3 BedrockRuntime 1.37.
|
|
3
|
+
Version: 1.37.29
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.37.29 service generated with mypy-boto3-builder 8.10.1
|
|
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
|

|
|
58
58
|
|
|
59
59
|
Type annotations for
|
|
60
|
-
[boto3 BedrockRuntime 1.37.
|
|
60
|
+
[boto3 BedrockRuntime 1.37.29](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.37.
|
|
122
|
+
`uvx --with 'boto3==1.37.29' 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=l4UletUPBzSSAIhtPosIwYk6UllgmUScHWWgwbNrZII,1015
|
|
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=QztBKRdE8PrGJNm4oqgZnWAOmIdt4qOMbRJUJ-qtlBM,13138
|
|
7
|
+
types_boto3_bedrock_runtime/literals.pyi,sha256=L78OoelU9sBoGcAVd75MS9KzYcehDS4_2C2zLeW5lbc,13136
|
|
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=Re8tDfAP5DPEUDsJHk0Q-8oM1rXa8vEE7Ld_Yyz8WOg,31950
|
|
12
|
+
types_boto3_bedrock_runtime/type_defs.pyi,sha256=p1w3cElKbzr_BE5stXm1ICa8xJlwcsCQFwpVS9FnWR4,31828
|
|
13
|
+
types_boto3_bedrock_runtime/version.py,sha256=8SU524iT9S6biRW1KMnrJgtXIN8uoV6R7HeTIagwPZk,93
|
|
14
|
+
types_boto3_bedrock_runtime-1.37.29.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
+
types_boto3_bedrock_runtime-1.37.29.dist-info/METADATA,sha256=8QvbH9TjOqiPEVwmegdCcuQZ-SrkgNhIESslgT6ebbk,15400
|
|
16
|
+
types_boto3_bedrock_runtime-1.37.29.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
17
|
+
types_boto3_bedrock_runtime-1.37.29.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
+
types_boto3_bedrock_runtime-1.37.29.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=PGE-WnebxVwOGJ-1cN6Tc0nBcX6YxiEUxhKFjNJU4_8,1015
|
|
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=bqAQzaARcLh-lG5879PX1RVLJ-1Xt2Tc8EDjMPzUR6k,30950
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=3QpWs42MYbu8Am6txsUzLiy1u7q_p5fXwqaR3ttKGRU,30828
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=f3mE225hqwDn5dKxWq8ZSjFm3b2QTXzcFWzWzG-KtEc,93
|
|
14
|
-
types_boto3_bedrock_runtime-1.37.23.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.37.23.dist-info/METADATA,sha256=vimlcwaILQ7FHC3qI_NkHegaj8zjr6r_sNAl_6a6qoA,15400
|
|
16
|
-
types_boto3_bedrock_runtime-1.37.23.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.37.23.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.37.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|