types-boto3-bedrock-runtime 1.39.7__py3-none-any.whl → 1.40.3__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 +3 -0
- types_boto3_bedrock_runtime/literals.pyi +3 -0
- types_boto3_bedrock_runtime/type_defs.py +160 -59
- types_boto3_bedrock_runtime/type_defs.pyi +145 -57
- types_boto3_bedrock_runtime/version.py +1 -1
- {types_boto3_bedrock_runtime-1.39.7.dist-info → types_boto3_bedrock_runtime-1.40.3.dist-info}/METADATA +4 -4
- types_boto3_bedrock_runtime-1.40.3.dist-info/RECORD +18 -0
- types_boto3_bedrock_runtime-1.39.7.dist-info/RECORD +0 -18
- {types_boto3_bedrock_runtime-1.39.7.dist-info → types_boto3_bedrock_runtime-1.40.3.dist-info}/WHEEL +0 -0
- {types_boto3_bedrock_runtime-1.39.7.dist-info → types_boto3_bedrock_runtime-1.40.3.dist-info}/licenses/LICENSE +0 -0
- {types_boto3_bedrock_runtime-1.39.7.dist-info → types_boto3_bedrock_runtime-1.40.3.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.40.3\n"
|
|
16
|
+
"Version: 1.40.3\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.
|
|
29
|
+
sys.stdout.write("1.40.3\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -29,6 +29,7 @@ __all__ = (
|
|
|
29
29
|
"ConversationRoleType",
|
|
30
30
|
"DocumentFormatType",
|
|
31
31
|
"GuardrailActionType",
|
|
32
|
+
"GuardrailAutomatedReasoningLogicWarningTypeType",
|
|
32
33
|
"GuardrailContentFilterConfidenceType",
|
|
33
34
|
"GuardrailContentFilterStrengthType",
|
|
34
35
|
"GuardrailContentFilterTypeType",
|
|
@@ -69,6 +70,7 @@ CachePointTypeType = Literal["default"]
|
|
|
69
70
|
ConversationRoleType = Literal["assistant", "user"]
|
|
70
71
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
71
72
|
GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
|
|
73
|
+
GuardrailAutomatedReasoningLogicWarningTypeType = Literal["ALWAYS_FALSE", "ALWAYS_TRUE"]
|
|
72
74
|
GuardrailContentFilterConfidenceType = Literal["HIGH", "LOW", "MEDIUM", "NONE"]
|
|
73
75
|
GuardrailContentFilterStrengthType = Literal["HIGH", "LOW", "MEDIUM", "NONE"]
|
|
74
76
|
GuardrailContentFilterTypeType = Literal[
|
|
@@ -167,6 +169,7 @@ ServiceName = Literal[
|
|
|
167
169
|
"appstream",
|
|
168
170
|
"appsync",
|
|
169
171
|
"apptest",
|
|
172
|
+
"arc-region-switch",
|
|
170
173
|
"arc-zonal-shift",
|
|
171
174
|
"artifact",
|
|
172
175
|
"athena",
|
|
@@ -28,6 +28,7 @@ __all__ = (
|
|
|
28
28
|
"ConversationRoleType",
|
|
29
29
|
"DocumentFormatType",
|
|
30
30
|
"GuardrailActionType",
|
|
31
|
+
"GuardrailAutomatedReasoningLogicWarningTypeType",
|
|
31
32
|
"GuardrailContentFilterConfidenceType",
|
|
32
33
|
"GuardrailContentFilterStrengthType",
|
|
33
34
|
"GuardrailContentFilterTypeType",
|
|
@@ -67,6 +68,7 @@ CachePointTypeType = Literal["default"]
|
|
|
67
68
|
ConversationRoleType = Literal["assistant", "user"]
|
|
68
69
|
DocumentFormatType = Literal["csv", "doc", "docx", "html", "md", "pdf", "txt", "xls", "xlsx"]
|
|
69
70
|
GuardrailActionType = Literal["GUARDRAIL_INTERVENED", "NONE"]
|
|
71
|
+
GuardrailAutomatedReasoningLogicWarningTypeType = Literal["ALWAYS_FALSE", "ALWAYS_TRUE"]
|
|
70
72
|
GuardrailContentFilterConfidenceType = Literal["HIGH", "LOW", "MEDIUM", "NONE"]
|
|
71
73
|
GuardrailContentFilterStrengthType = Literal["HIGH", "LOW", "MEDIUM", "NONE"]
|
|
72
74
|
GuardrailContentFilterTypeType = Literal[
|
|
@@ -165,6 +167,7 @@ ServiceName = Literal[
|
|
|
165
167
|
"appstream",
|
|
166
168
|
"appsync",
|
|
167
169
|
"apptest",
|
|
170
|
+
"arc-region-switch",
|
|
168
171
|
"arc-zonal-shift",
|
|
169
172
|
"artifact",
|
|
170
173
|
"athena",
|
|
@@ -28,6 +28,7 @@ from .literals import (
|
|
|
28
28
|
ConversationRoleType,
|
|
29
29
|
DocumentFormatType,
|
|
30
30
|
GuardrailActionType,
|
|
31
|
+
GuardrailAutomatedReasoningLogicWarningTypeType,
|
|
31
32
|
GuardrailContentFilterConfidenceType,
|
|
32
33
|
GuardrailContentFilterStrengthType,
|
|
33
34
|
GuardrailContentFilterTypeType,
|
|
@@ -121,6 +122,20 @@ __all__ = (
|
|
|
121
122
|
"GetAsyncInvokeRequestTypeDef",
|
|
122
123
|
"GetAsyncInvokeResponseTypeDef",
|
|
123
124
|
"GuardrailAssessmentTypeDef",
|
|
125
|
+
"GuardrailAutomatedReasoningFindingTypeDef",
|
|
126
|
+
"GuardrailAutomatedReasoningImpossibleFindingTypeDef",
|
|
127
|
+
"GuardrailAutomatedReasoningInputTextReferenceTypeDef",
|
|
128
|
+
"GuardrailAutomatedReasoningInvalidFindingTypeDef",
|
|
129
|
+
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
130
|
+
"GuardrailAutomatedReasoningPolicyAssessmentTypeDef",
|
|
131
|
+
"GuardrailAutomatedReasoningRuleTypeDef",
|
|
132
|
+
"GuardrailAutomatedReasoningSatisfiableFindingTypeDef",
|
|
133
|
+
"GuardrailAutomatedReasoningScenarioTypeDef",
|
|
134
|
+
"GuardrailAutomatedReasoningStatementTypeDef",
|
|
135
|
+
"GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef",
|
|
136
|
+
"GuardrailAutomatedReasoningTranslationOptionTypeDef",
|
|
137
|
+
"GuardrailAutomatedReasoningTranslationTypeDef",
|
|
138
|
+
"GuardrailAutomatedReasoningValidFindingTypeDef",
|
|
124
139
|
"GuardrailConfigurationTypeDef",
|
|
125
140
|
"GuardrailContentBlockTypeDef",
|
|
126
141
|
"GuardrailContentFilterTypeDef",
|
|
@@ -244,6 +259,8 @@ class GuardrailUsageTypeDef(TypedDict):
|
|
|
244
259
|
sensitiveInformationPolicyFreeUnits: int
|
|
245
260
|
contextualGroundingPolicyUnits: int
|
|
246
261
|
contentPolicyImageUnits: NotRequired[int]
|
|
262
|
+
automatedReasoningPolicyUnits: NotRequired[int]
|
|
263
|
+
automatedReasoningPolicies: NotRequired[int]
|
|
247
264
|
|
|
248
265
|
|
|
249
266
|
class ResponseMetadataTypeDef(TypedDict):
|
|
@@ -432,6 +449,20 @@ class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
|
432
449
|
invocationArn: str
|
|
433
450
|
|
|
434
451
|
|
|
452
|
+
class GuardrailAutomatedReasoningRuleTypeDef(TypedDict):
|
|
453
|
+
identifier: NotRequired[str]
|
|
454
|
+
policyVersionArn: NotRequired[str]
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
class GuardrailAutomatedReasoningInputTextReferenceTypeDef(TypedDict):
|
|
458
|
+
text: NotRequired[str]
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
class GuardrailAutomatedReasoningStatementTypeDef(TypedDict):
|
|
462
|
+
logic: NotRequired[str]
|
|
463
|
+
naturalLanguage: NotRequired[str]
|
|
464
|
+
|
|
465
|
+
|
|
435
466
|
class GuardrailTextBlockTypeDef(TypedDict):
|
|
436
467
|
text: str
|
|
437
468
|
qualifiers: NotRequired[Sequence[GuardrailContentQualifierType]]
|
|
@@ -693,6 +724,26 @@ VideoSourceTypeDef = TypedDict(
|
|
|
693
724
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
694
725
|
},
|
|
695
726
|
)
|
|
727
|
+
GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
|
|
728
|
+
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
729
|
+
{
|
|
730
|
+
"type": NotRequired[GuardrailAutomatedReasoningLogicWarningTypeType],
|
|
731
|
+
"premises": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
732
|
+
"claims": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
733
|
+
},
|
|
734
|
+
)
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
class GuardrailAutomatedReasoningScenarioTypeDef(TypedDict):
|
|
738
|
+
statements: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
class GuardrailAutomatedReasoningTranslationTypeDef(TypedDict):
|
|
742
|
+
premises: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
743
|
+
claims: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
744
|
+
untranslatedPremises: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
745
|
+
untranslatedClaims: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
746
|
+
confidence: NotRequired[float]
|
|
696
747
|
|
|
697
748
|
|
|
698
749
|
class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
|
|
@@ -903,6 +954,36 @@ VideoBlockOutputTypeDef = TypedDict(
|
|
|
903
954
|
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
904
955
|
|
|
905
956
|
|
|
957
|
+
class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
|
|
958
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
959
|
+
contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
960
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
class GuardrailAutomatedReasoningInvalidFindingTypeDef(TypedDict):
|
|
964
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
965
|
+
contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
966
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
|
|
970
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
971
|
+
claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
972
|
+
claimsFalseScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
973
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
class GuardrailAutomatedReasoningTranslationOptionTypeDef(TypedDict):
|
|
977
|
+
translations: NotRequired[List[GuardrailAutomatedReasoningTranslationTypeDef]]
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
class GuardrailAutomatedReasoningValidFindingTypeDef(TypedDict):
|
|
981
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
982
|
+
claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
983
|
+
supportingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
984
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
985
|
+
|
|
986
|
+
|
|
906
987
|
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
907
988
|
text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
|
|
908
989
|
image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
|
|
@@ -1012,13 +1093,9 @@ VideoBlockTypeDef = TypedDict(
|
|
|
1012
1093
|
)
|
|
1013
1094
|
|
|
1014
1095
|
|
|
1015
|
-
class
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
1019
|
-
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
1020
|
-
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
1021
|
-
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
1096
|
+
class GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef(TypedDict):
|
|
1097
|
+
options: NotRequired[List[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
|
|
1098
|
+
differenceScenarios: NotRequired[List[GuardrailAutomatedReasoningScenarioTypeDef]]
|
|
1022
1099
|
|
|
1023
1100
|
|
|
1024
1101
|
class ToolConfigurationTypeDef(TypedDict):
|
|
@@ -1062,21 +1139,14 @@ class ToolResultBlockOutputTypeDef(TypedDict):
|
|
|
1062
1139
|
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
1063
1140
|
|
|
1064
1141
|
|
|
1065
|
-
class
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
1076
|
-
modelOutput: NotRequired[List[str]]
|
|
1077
|
-
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
1078
|
-
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
1079
|
-
actionReason: NotRequired[str]
|
|
1142
|
+
class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
|
|
1143
|
+
valid: NotRequired[GuardrailAutomatedReasoningValidFindingTypeDef]
|
|
1144
|
+
invalid: NotRequired[GuardrailAutomatedReasoningInvalidFindingTypeDef]
|
|
1145
|
+
satisfiable: NotRequired[GuardrailAutomatedReasoningSatisfiableFindingTypeDef]
|
|
1146
|
+
impossible: NotRequired[GuardrailAutomatedReasoningImpossibleFindingTypeDef]
|
|
1147
|
+
translationAmbiguous: NotRequired[GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef]
|
|
1148
|
+
tooComplex: NotRequired[Dict[str, Any]]
|
|
1149
|
+
noTranslations: NotRequired[Dict[str, Any]]
|
|
1080
1150
|
|
|
1081
1151
|
|
|
1082
1152
|
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
@@ -1110,14 +1180,8 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
1110
1180
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
1111
1181
|
|
|
1112
1182
|
|
|
1113
|
-
class
|
|
1114
|
-
|
|
1115
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
class ConverseTraceTypeDef(TypedDict):
|
|
1119
|
-
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1120
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1183
|
+
class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
|
|
1184
|
+
findings: NotRequired[List[GuardrailAutomatedReasoningFindingTypeDef]]
|
|
1121
1185
|
|
|
1122
1186
|
|
|
1123
1187
|
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
@@ -1135,11 +1199,14 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
1135
1199
|
]
|
|
1136
1200
|
|
|
1137
1201
|
|
|
1138
|
-
class
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1202
|
+
class GuardrailAssessmentTypeDef(TypedDict):
|
|
1203
|
+
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
1204
|
+
contentPolicy: NotRequired[GuardrailContentPolicyAssessmentTypeDef]
|
|
1205
|
+
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
1206
|
+
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
1207
|
+
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
1208
|
+
automatedReasoningPolicy: NotRequired[GuardrailAutomatedReasoningPolicyAssessmentTypeDef]
|
|
1209
|
+
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
1143
1210
|
|
|
1144
1211
|
|
|
1145
1212
|
class SystemContentBlockTypeDef(TypedDict):
|
|
@@ -1158,37 +1225,34 @@ class ToolResultBlockTypeDef(TypedDict):
|
|
|
1158
1225
|
status: NotRequired[ToolResultStatusType]
|
|
1159
1226
|
|
|
1160
1227
|
|
|
1161
|
-
class
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
modelStreamErrorException: NotRequired[ModelStreamErrorExceptionTypeDef]
|
|
1170
|
-
validationException: NotRequired[ValidationExceptionTypeDef]
|
|
1171
|
-
throttlingException: NotRequired[ThrottlingExceptionTypeDef]
|
|
1172
|
-
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
1228
|
+
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
1229
|
+
usage: GuardrailUsageTypeDef
|
|
1230
|
+
action: GuardrailActionType
|
|
1231
|
+
actionReason: str
|
|
1232
|
+
outputs: List[GuardrailOutputContentTypeDef]
|
|
1233
|
+
assessments: List[GuardrailAssessmentTypeDef]
|
|
1234
|
+
guardrailCoverage: GuardrailCoverageTypeDef
|
|
1235
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
1173
1236
|
|
|
1174
1237
|
|
|
1175
|
-
class
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
additionalModelResponseFields: Dict[str, Any]
|
|
1181
|
-
trace: ConverseTraceTypeDef
|
|
1182
|
-
performanceConfig: PerformanceConfigurationTypeDef
|
|
1183
|
-
ResponseMetadata: ResponseMetadataTypeDef
|
|
1238
|
+
class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
1239
|
+
modelOutput: NotRequired[List[str]]
|
|
1240
|
+
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
1241
|
+
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
1242
|
+
actionReason: NotRequired[str]
|
|
1184
1243
|
|
|
1185
1244
|
|
|
1186
1245
|
ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
|
|
1187
1246
|
|
|
1188
1247
|
|
|
1189
|
-
class
|
|
1190
|
-
|
|
1191
|
-
|
|
1248
|
+
class ConverseStreamTraceTypeDef(TypedDict):
|
|
1249
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1250
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
class ConverseTraceTypeDef(TypedDict):
|
|
1254
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1255
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1192
1256
|
|
|
1193
1257
|
|
|
1194
1258
|
class ContentBlockTypeDef(TypedDict):
|
|
@@ -1204,14 +1268,51 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1204
1268
|
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1205
1269
|
|
|
1206
1270
|
|
|
1271
|
+
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
1272
|
+
usage: TokenUsageTypeDef
|
|
1273
|
+
metrics: ConverseStreamMetricsTypeDef
|
|
1274
|
+
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
1275
|
+
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
class ConverseResponseTypeDef(TypedDict):
|
|
1279
|
+
output: ConverseOutputTypeDef
|
|
1280
|
+
stopReason: StopReasonType
|
|
1281
|
+
usage: TokenUsageTypeDef
|
|
1282
|
+
metrics: ConverseMetricsTypeDef
|
|
1283
|
+
additionalModelResponseFields: Dict[str, Any]
|
|
1284
|
+
trace: ConverseTraceTypeDef
|
|
1285
|
+
performanceConfig: PerformanceConfigurationTypeDef
|
|
1286
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
1287
|
+
|
|
1288
|
+
|
|
1207
1289
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
1208
1290
|
|
|
1209
1291
|
|
|
1292
|
+
class ConverseStreamOutputTypeDef(TypedDict):
|
|
1293
|
+
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
1294
|
+
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
1295
|
+
contentBlockDelta: NotRequired[ContentBlockDeltaEventTypeDef]
|
|
1296
|
+
contentBlockStop: NotRequired[ContentBlockStopEventTypeDef]
|
|
1297
|
+
messageStop: NotRequired[MessageStopEventTypeDef]
|
|
1298
|
+
metadata: NotRequired[ConverseStreamMetadataEventTypeDef]
|
|
1299
|
+
internalServerException: NotRequired[InternalServerExceptionTypeDef]
|
|
1300
|
+
modelStreamErrorException: NotRequired[ModelStreamErrorExceptionTypeDef]
|
|
1301
|
+
validationException: NotRequired[ValidationExceptionTypeDef]
|
|
1302
|
+
throttlingException: NotRequired[ThrottlingExceptionTypeDef]
|
|
1303
|
+
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
1304
|
+
|
|
1305
|
+
|
|
1210
1306
|
class MessageTypeDef(TypedDict):
|
|
1211
1307
|
role: ConversationRoleType
|
|
1212
1308
|
content: Sequence[ContentBlockUnionTypeDef]
|
|
1213
1309
|
|
|
1214
1310
|
|
|
1311
|
+
class ConverseStreamResponseTypeDef(TypedDict):
|
|
1312
|
+
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
1313
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
1314
|
+
|
|
1315
|
+
|
|
1215
1316
|
MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
|
|
1216
1317
|
|
|
1217
1318
|
|
|
@@ -28,6 +28,7 @@ from .literals import (
|
|
|
28
28
|
ConversationRoleType,
|
|
29
29
|
DocumentFormatType,
|
|
30
30
|
GuardrailActionType,
|
|
31
|
+
GuardrailAutomatedReasoningLogicWarningTypeType,
|
|
31
32
|
GuardrailContentFilterConfidenceType,
|
|
32
33
|
GuardrailContentFilterStrengthType,
|
|
33
34
|
GuardrailContentFilterTypeType,
|
|
@@ -120,6 +121,20 @@ __all__ = (
|
|
|
120
121
|
"GetAsyncInvokeRequestTypeDef",
|
|
121
122
|
"GetAsyncInvokeResponseTypeDef",
|
|
122
123
|
"GuardrailAssessmentTypeDef",
|
|
124
|
+
"GuardrailAutomatedReasoningFindingTypeDef",
|
|
125
|
+
"GuardrailAutomatedReasoningImpossibleFindingTypeDef",
|
|
126
|
+
"GuardrailAutomatedReasoningInputTextReferenceTypeDef",
|
|
127
|
+
"GuardrailAutomatedReasoningInvalidFindingTypeDef",
|
|
128
|
+
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
129
|
+
"GuardrailAutomatedReasoningPolicyAssessmentTypeDef",
|
|
130
|
+
"GuardrailAutomatedReasoningRuleTypeDef",
|
|
131
|
+
"GuardrailAutomatedReasoningSatisfiableFindingTypeDef",
|
|
132
|
+
"GuardrailAutomatedReasoningScenarioTypeDef",
|
|
133
|
+
"GuardrailAutomatedReasoningStatementTypeDef",
|
|
134
|
+
"GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef",
|
|
135
|
+
"GuardrailAutomatedReasoningTranslationOptionTypeDef",
|
|
136
|
+
"GuardrailAutomatedReasoningTranslationTypeDef",
|
|
137
|
+
"GuardrailAutomatedReasoningValidFindingTypeDef",
|
|
123
138
|
"GuardrailConfigurationTypeDef",
|
|
124
139
|
"GuardrailContentBlockTypeDef",
|
|
125
140
|
"GuardrailContentFilterTypeDef",
|
|
@@ -241,6 +256,8 @@ class GuardrailUsageTypeDef(TypedDict):
|
|
|
241
256
|
sensitiveInformationPolicyFreeUnits: int
|
|
242
257
|
contextualGroundingPolicyUnits: int
|
|
243
258
|
contentPolicyImageUnits: NotRequired[int]
|
|
259
|
+
automatedReasoningPolicyUnits: NotRequired[int]
|
|
260
|
+
automatedReasoningPolicies: NotRequired[int]
|
|
244
261
|
|
|
245
262
|
class ResponseMetadataTypeDef(TypedDict):
|
|
246
263
|
RequestId: str
|
|
@@ -395,6 +412,17 @@ class S3LocationTypeDef(TypedDict):
|
|
|
395
412
|
class GetAsyncInvokeRequestTypeDef(TypedDict):
|
|
396
413
|
invocationArn: str
|
|
397
414
|
|
|
415
|
+
class GuardrailAutomatedReasoningRuleTypeDef(TypedDict):
|
|
416
|
+
identifier: NotRequired[str]
|
|
417
|
+
policyVersionArn: NotRequired[str]
|
|
418
|
+
|
|
419
|
+
class GuardrailAutomatedReasoningInputTextReferenceTypeDef(TypedDict):
|
|
420
|
+
text: NotRequired[str]
|
|
421
|
+
|
|
422
|
+
class GuardrailAutomatedReasoningStatementTypeDef(TypedDict):
|
|
423
|
+
logic: NotRequired[str]
|
|
424
|
+
naturalLanguage: NotRequired[str]
|
|
425
|
+
|
|
398
426
|
class GuardrailTextBlockTypeDef(TypedDict):
|
|
399
427
|
text: str
|
|
400
428
|
qualifiers: NotRequired[Sequence[GuardrailContentQualifierType]]
|
|
@@ -629,6 +657,24 @@ VideoSourceTypeDef = TypedDict(
|
|
|
629
657
|
"s3Location": NotRequired[S3LocationTypeDef],
|
|
630
658
|
},
|
|
631
659
|
)
|
|
660
|
+
GuardrailAutomatedReasoningLogicWarningTypeDef = TypedDict(
|
|
661
|
+
"GuardrailAutomatedReasoningLogicWarningTypeDef",
|
|
662
|
+
{
|
|
663
|
+
"type": NotRequired[GuardrailAutomatedReasoningLogicWarningTypeType],
|
|
664
|
+
"premises": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
665
|
+
"claims": NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]],
|
|
666
|
+
},
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
class GuardrailAutomatedReasoningScenarioTypeDef(TypedDict):
|
|
670
|
+
statements: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
671
|
+
|
|
672
|
+
class GuardrailAutomatedReasoningTranslationTypeDef(TypedDict):
|
|
673
|
+
premises: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
674
|
+
claims: NotRequired[List[GuardrailAutomatedReasoningStatementTypeDef]]
|
|
675
|
+
untranslatedPremises: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
676
|
+
untranslatedClaims: NotRequired[List[GuardrailAutomatedReasoningInputTextReferenceTypeDef]]
|
|
677
|
+
confidence: NotRequired[float]
|
|
632
678
|
|
|
633
679
|
class GuardrailContentPolicyAssessmentTypeDef(TypedDict):
|
|
634
680
|
filters: List[GuardrailContentFilterTypeDef]
|
|
@@ -812,6 +858,31 @@ VideoBlockOutputTypeDef = TypedDict(
|
|
|
812
858
|
)
|
|
813
859
|
VideoSourceUnionTypeDef = Union[VideoSourceTypeDef, VideoSourceOutputTypeDef]
|
|
814
860
|
|
|
861
|
+
class GuardrailAutomatedReasoningImpossibleFindingTypeDef(TypedDict):
|
|
862
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
863
|
+
contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
864
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
865
|
+
|
|
866
|
+
class GuardrailAutomatedReasoningInvalidFindingTypeDef(TypedDict):
|
|
867
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
868
|
+
contradictingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
869
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
870
|
+
|
|
871
|
+
class GuardrailAutomatedReasoningSatisfiableFindingTypeDef(TypedDict):
|
|
872
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
873
|
+
claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
874
|
+
claimsFalseScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
875
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
876
|
+
|
|
877
|
+
class GuardrailAutomatedReasoningTranslationOptionTypeDef(TypedDict):
|
|
878
|
+
translations: NotRequired[List[GuardrailAutomatedReasoningTranslationTypeDef]]
|
|
879
|
+
|
|
880
|
+
class GuardrailAutomatedReasoningValidFindingTypeDef(TypedDict):
|
|
881
|
+
translation: NotRequired[GuardrailAutomatedReasoningTranslationTypeDef]
|
|
882
|
+
claimsTrueScenario: NotRequired[GuardrailAutomatedReasoningScenarioTypeDef]
|
|
883
|
+
supportingRules: NotRequired[List[GuardrailAutomatedReasoningRuleTypeDef]]
|
|
884
|
+
logicWarning: NotRequired[GuardrailAutomatedReasoningLogicWarningTypeDef]
|
|
885
|
+
|
|
815
886
|
class GuardrailConverseContentBlockOutputTypeDef(TypedDict):
|
|
816
887
|
text: NotRequired[GuardrailConverseTextBlockOutputTypeDef]
|
|
817
888
|
image: NotRequired[GuardrailConverseImageBlockOutputTypeDef]
|
|
@@ -905,13 +976,9 @@ VideoBlockTypeDef = TypedDict(
|
|
|
905
976
|
},
|
|
906
977
|
)
|
|
907
978
|
|
|
908
|
-
class
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
912
|
-
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
913
|
-
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
914
|
-
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
979
|
+
class GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef(TypedDict):
|
|
980
|
+
options: NotRequired[List[GuardrailAutomatedReasoningTranslationOptionTypeDef]]
|
|
981
|
+
differenceScenarios: NotRequired[List[GuardrailAutomatedReasoningScenarioTypeDef]]
|
|
915
982
|
|
|
916
983
|
class ToolConfigurationTypeDef(TypedDict):
|
|
917
984
|
tools: Sequence[ToolTypeDef]
|
|
@@ -946,20 +1013,14 @@ class ToolResultBlockOutputTypeDef(TypedDict):
|
|
|
946
1013
|
|
|
947
1014
|
VideoBlockUnionTypeDef = Union[VideoBlockTypeDef, VideoBlockOutputTypeDef]
|
|
948
1015
|
|
|
949
|
-
class
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
959
|
-
modelOutput: NotRequired[List[str]]
|
|
960
|
-
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
961
|
-
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
962
|
-
actionReason: NotRequired[str]
|
|
1016
|
+
class GuardrailAutomatedReasoningFindingTypeDef(TypedDict):
|
|
1017
|
+
valid: NotRequired[GuardrailAutomatedReasoningValidFindingTypeDef]
|
|
1018
|
+
invalid: NotRequired[GuardrailAutomatedReasoningInvalidFindingTypeDef]
|
|
1019
|
+
satisfiable: NotRequired[GuardrailAutomatedReasoningSatisfiableFindingTypeDef]
|
|
1020
|
+
impossible: NotRequired[GuardrailAutomatedReasoningImpossibleFindingTypeDef]
|
|
1021
|
+
translationAmbiguous: NotRequired[GuardrailAutomatedReasoningTranslationAmbiguousFindingTypeDef]
|
|
1022
|
+
tooComplex: NotRequired[Dict[str, Any]]
|
|
1023
|
+
noTranslations: NotRequired[Dict[str, Any]]
|
|
963
1024
|
|
|
964
1025
|
class GuardrailConverseContentBlockTypeDef(TypedDict):
|
|
965
1026
|
text: NotRequired[GuardrailConverseTextBlockUnionTypeDef]
|
|
@@ -988,13 +1049,8 @@ class ToolResultContentBlockTypeDef(TypedDict):
|
|
|
988
1049
|
document: NotRequired[DocumentBlockUnionTypeDef]
|
|
989
1050
|
video: NotRequired[VideoBlockUnionTypeDef]
|
|
990
1051
|
|
|
991
|
-
class
|
|
992
|
-
|
|
993
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
994
|
-
|
|
995
|
-
class ConverseTraceTypeDef(TypedDict):
|
|
996
|
-
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
997
|
-
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1052
|
+
class GuardrailAutomatedReasoningPolicyAssessmentTypeDef(TypedDict):
|
|
1053
|
+
findings: NotRequired[List[GuardrailAutomatedReasoningFindingTypeDef]]
|
|
998
1054
|
|
|
999
1055
|
GuardrailConverseContentBlockUnionTypeDef = Union[
|
|
1000
1056
|
GuardrailConverseContentBlockTypeDef, GuardrailConverseContentBlockOutputTypeDef
|
|
@@ -1008,11 +1064,14 @@ ToolResultContentBlockUnionTypeDef = Union[
|
|
|
1008
1064
|
ToolResultContentBlockTypeDef, ToolResultContentBlockOutputTypeDef
|
|
1009
1065
|
]
|
|
1010
1066
|
|
|
1011
|
-
class
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1067
|
+
class GuardrailAssessmentTypeDef(TypedDict):
|
|
1068
|
+
topicPolicy: NotRequired[GuardrailTopicPolicyAssessmentTypeDef]
|
|
1069
|
+
contentPolicy: NotRequired[GuardrailContentPolicyAssessmentTypeDef]
|
|
1070
|
+
wordPolicy: NotRequired[GuardrailWordPolicyAssessmentTypeDef]
|
|
1071
|
+
sensitiveInformationPolicy: NotRequired[GuardrailSensitiveInformationPolicyAssessmentTypeDef]
|
|
1072
|
+
contextualGroundingPolicy: NotRequired[GuardrailContextualGroundingPolicyAssessmentTypeDef]
|
|
1073
|
+
automatedReasoningPolicy: NotRequired[GuardrailAutomatedReasoningPolicyAssessmentTypeDef]
|
|
1074
|
+
invocationMetrics: NotRequired[GuardrailInvocationMetricsTypeDef]
|
|
1016
1075
|
|
|
1017
1076
|
class SystemContentBlockTypeDef(TypedDict):
|
|
1018
1077
|
text: NotRequired[str]
|
|
@@ -1027,34 +1086,30 @@ class ToolResultBlockTypeDef(TypedDict):
|
|
|
1027
1086
|
content: Sequence[ToolResultContentBlockUnionTypeDef]
|
|
1028
1087
|
status: NotRequired[ToolResultStatusType]
|
|
1029
1088
|
|
|
1030
|
-
class
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
internalServerException: NotRequired[InternalServerExceptionTypeDef]
|
|
1038
|
-
modelStreamErrorException: NotRequired[ModelStreamErrorExceptionTypeDef]
|
|
1039
|
-
validationException: NotRequired[ValidationExceptionTypeDef]
|
|
1040
|
-
throttlingException: NotRequired[ThrottlingExceptionTypeDef]
|
|
1041
|
-
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
1042
|
-
|
|
1043
|
-
class ConverseResponseTypeDef(TypedDict):
|
|
1044
|
-
output: ConverseOutputTypeDef
|
|
1045
|
-
stopReason: StopReasonType
|
|
1046
|
-
usage: TokenUsageTypeDef
|
|
1047
|
-
metrics: ConverseMetricsTypeDef
|
|
1048
|
-
additionalModelResponseFields: Dict[str, Any]
|
|
1049
|
-
trace: ConverseTraceTypeDef
|
|
1050
|
-
performanceConfig: PerformanceConfigurationTypeDef
|
|
1089
|
+
class ApplyGuardrailResponseTypeDef(TypedDict):
|
|
1090
|
+
usage: GuardrailUsageTypeDef
|
|
1091
|
+
action: GuardrailActionType
|
|
1092
|
+
actionReason: str
|
|
1093
|
+
outputs: List[GuardrailOutputContentTypeDef]
|
|
1094
|
+
assessments: List[GuardrailAssessmentTypeDef]
|
|
1095
|
+
guardrailCoverage: GuardrailCoverageTypeDef
|
|
1051
1096
|
ResponseMetadata: ResponseMetadataTypeDef
|
|
1052
1097
|
|
|
1098
|
+
class GuardrailTraceAssessmentTypeDef(TypedDict):
|
|
1099
|
+
modelOutput: NotRequired[List[str]]
|
|
1100
|
+
inputAssessment: NotRequired[Dict[str, GuardrailAssessmentTypeDef]]
|
|
1101
|
+
outputAssessments: NotRequired[Dict[str, List[GuardrailAssessmentTypeDef]]]
|
|
1102
|
+
actionReason: NotRequired[str]
|
|
1103
|
+
|
|
1053
1104
|
ToolResultBlockUnionTypeDef = Union[ToolResultBlockTypeDef, ToolResultBlockOutputTypeDef]
|
|
1054
1105
|
|
|
1055
|
-
class
|
|
1056
|
-
|
|
1057
|
-
|
|
1106
|
+
class ConverseStreamTraceTypeDef(TypedDict):
|
|
1107
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1108
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1109
|
+
|
|
1110
|
+
class ConverseTraceTypeDef(TypedDict):
|
|
1111
|
+
guardrail: NotRequired[GuardrailTraceAssessmentTypeDef]
|
|
1112
|
+
promptRouter: NotRequired[PromptRouterTraceTypeDef]
|
|
1058
1113
|
|
|
1059
1114
|
class ContentBlockTypeDef(TypedDict):
|
|
1060
1115
|
text: NotRequired[str]
|
|
@@ -1068,12 +1123,45 @@ class ContentBlockTypeDef(TypedDict):
|
|
|
1068
1123
|
reasoningContent: NotRequired[ReasoningContentBlockUnionTypeDef]
|
|
1069
1124
|
citationsContent: NotRequired[CitationsContentBlockUnionTypeDef]
|
|
1070
1125
|
|
|
1126
|
+
class ConverseStreamMetadataEventTypeDef(TypedDict):
|
|
1127
|
+
usage: TokenUsageTypeDef
|
|
1128
|
+
metrics: ConverseStreamMetricsTypeDef
|
|
1129
|
+
trace: NotRequired[ConverseStreamTraceTypeDef]
|
|
1130
|
+
performanceConfig: NotRequired[PerformanceConfigurationTypeDef]
|
|
1131
|
+
|
|
1132
|
+
class ConverseResponseTypeDef(TypedDict):
|
|
1133
|
+
output: ConverseOutputTypeDef
|
|
1134
|
+
stopReason: StopReasonType
|
|
1135
|
+
usage: TokenUsageTypeDef
|
|
1136
|
+
metrics: ConverseMetricsTypeDef
|
|
1137
|
+
additionalModelResponseFields: Dict[str, Any]
|
|
1138
|
+
trace: ConverseTraceTypeDef
|
|
1139
|
+
performanceConfig: PerformanceConfigurationTypeDef
|
|
1140
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
1141
|
+
|
|
1071
1142
|
ContentBlockUnionTypeDef = Union[ContentBlockTypeDef, ContentBlockOutputTypeDef]
|
|
1072
1143
|
|
|
1144
|
+
class ConverseStreamOutputTypeDef(TypedDict):
|
|
1145
|
+
messageStart: NotRequired[MessageStartEventTypeDef]
|
|
1146
|
+
contentBlockStart: NotRequired[ContentBlockStartEventTypeDef]
|
|
1147
|
+
contentBlockDelta: NotRequired[ContentBlockDeltaEventTypeDef]
|
|
1148
|
+
contentBlockStop: NotRequired[ContentBlockStopEventTypeDef]
|
|
1149
|
+
messageStop: NotRequired[MessageStopEventTypeDef]
|
|
1150
|
+
metadata: NotRequired[ConverseStreamMetadataEventTypeDef]
|
|
1151
|
+
internalServerException: NotRequired[InternalServerExceptionTypeDef]
|
|
1152
|
+
modelStreamErrorException: NotRequired[ModelStreamErrorExceptionTypeDef]
|
|
1153
|
+
validationException: NotRequired[ValidationExceptionTypeDef]
|
|
1154
|
+
throttlingException: NotRequired[ThrottlingExceptionTypeDef]
|
|
1155
|
+
serviceUnavailableException: NotRequired[ServiceUnavailableExceptionTypeDef]
|
|
1156
|
+
|
|
1073
1157
|
class MessageTypeDef(TypedDict):
|
|
1074
1158
|
role: ConversationRoleType
|
|
1075
1159
|
content: Sequence[ContentBlockUnionTypeDef]
|
|
1076
1160
|
|
|
1161
|
+
class ConverseStreamResponseTypeDef(TypedDict):
|
|
1162
|
+
stream: EventStream[ConverseStreamOutputTypeDef]
|
|
1163
|
+
ResponseMetadata: ResponseMetadataTypeDef
|
|
1164
|
+
|
|
1077
1165
|
MessageUnionTypeDef = Union[MessageTypeDef, MessageOutputTypeDef]
|
|
1078
1166
|
|
|
1079
1167
|
class ConverseRequestTypeDef(TypedDict):
|
|
@@ -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.40.3
|
|
4
|
+
Summary: Type annotations for boto3 BedrockRuntime 1.40.3 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
|

|
|
58
58
|
|
|
59
59
|
Type annotations for
|
|
60
|
-
[boto3 BedrockRuntime 1.
|
|
60
|
+
[boto3 BedrockRuntime 1.40.3](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.
|
|
122
|
+
`uvx --with 'boto3==1.40.3' 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=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,,
|
|
@@ -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=yKfT2VKQShxbcOCNXgbETSezy8kKkJ9VE_SNAGXeBso,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=dCDbIFfiosedKNHKg8NOkBzop9xLOD1a-TRgl4MkdvM,13293
|
|
7
|
-
types_boto3_bedrock_runtime/literals.pyi,sha256=E_7K74jSTa_388G-NXmQ0QzlH3mGHOKC2HtPSAqoG8M,13291
|
|
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=5AsEk2TfZic7xQ0NCzL2Y-CIsaThT4jEo38tCg3G6S8,37075
|
|
12
|
-
types_boto3_bedrock_runtime/type_defs.pyi,sha256=ZNoNznEY8oxVPRbKmnpfA0iVODbON4nADDaAgo9xJe0,36935
|
|
13
|
-
types_boto3_bedrock_runtime/version.py,sha256=jxfJfzZbd2bOhrSH95Cs4f7hhqOOaKO3EwqoS0pvcBw,92
|
|
14
|
-
types_boto3_bedrock_runtime-1.39.7.dist-info/licenses/LICENSE,sha256=4jNgB8jJbXtUVJkeygwhUQi--6lAG8DIisfE-h_RiUU,1070
|
|
15
|
-
types_boto3_bedrock_runtime-1.39.7.dist-info/METADATA,sha256=9VTgB9CsOH0V-xveYGLvSOuY9Ojz3OmnnAmjHoOprSw,15396
|
|
16
|
-
types_boto3_bedrock_runtime-1.39.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
-
types_boto3_bedrock_runtime-1.39.7.dist-info/top_level.txt,sha256=vs95SHzu94rM38mmauihzrtfinMIBV-tKDaYSV0eMww,28
|
|
18
|
-
types_boto3_bedrock_runtime-1.39.7.dist-info/RECORD,,
|
{types_boto3_bedrock_runtime-1.39.7.dist-info → types_boto3_bedrock_runtime-1.40.3.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|