@aws-sdk/client-bedrock-runtime 3.858.0 → 3.861.0
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.
- package/dist-cjs/index.js +323 -3
- package/dist-es/commands/ApplyGuardrailCommand.js +2 -2
- package/dist-es/models/models_0.js +161 -1
- package/dist-es/protocols/Aws_restJson1.js +118 -0
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +160 -0
- package/dist-types/commands/ConverseCommand.d.ts +218 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +218 -0
- package/dist-types/models/models_0.d.ts +485 -0
- package/dist-types/ts3.4/models/models_0.d.ts +241 -0
- package/package.json +3 -3
|
@@ -1162,6 +1162,7 @@ const de_DocumentSource = (output, context) => {
|
|
|
1162
1162
|
};
|
|
1163
1163
|
const de_GuardrailAssessment = (output, context) => {
|
|
1164
1164
|
return take(output, {
|
|
1165
|
+
automatedReasoningPolicy: (_) => de_GuardrailAutomatedReasoningPolicyAssessment(_, context),
|
|
1165
1166
|
contentPolicy: _json,
|
|
1166
1167
|
contextualGroundingPolicy: (_) => de_GuardrailContextualGroundingPolicyAssessment(_, context),
|
|
1167
1168
|
invocationMetrics: _json,
|
|
@@ -1196,6 +1197,123 @@ const de_GuardrailAssessmentMap = (output, context) => {
|
|
|
1196
1197
|
return acc;
|
|
1197
1198
|
}, {});
|
|
1198
1199
|
};
|
|
1200
|
+
const de_GuardrailAutomatedReasoningFinding = (output, context) => {
|
|
1201
|
+
if (output.impossible != null) {
|
|
1202
|
+
return {
|
|
1203
|
+
impossible: de_GuardrailAutomatedReasoningImpossibleFinding(output.impossible, context),
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
if (output.invalid != null) {
|
|
1207
|
+
return {
|
|
1208
|
+
invalid: de_GuardrailAutomatedReasoningInvalidFinding(output.invalid, context),
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
if (output.noTranslations != null) {
|
|
1212
|
+
return {
|
|
1213
|
+
noTranslations: _json(output.noTranslations),
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
if (output.satisfiable != null) {
|
|
1217
|
+
return {
|
|
1218
|
+
satisfiable: de_GuardrailAutomatedReasoningSatisfiableFinding(output.satisfiable, context),
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
if (output.tooComplex != null) {
|
|
1222
|
+
return {
|
|
1223
|
+
tooComplex: _json(output.tooComplex),
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
if (output.translationAmbiguous != null) {
|
|
1227
|
+
return {
|
|
1228
|
+
translationAmbiguous: de_GuardrailAutomatedReasoningTranslationAmbiguousFinding(output.translationAmbiguous, context),
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1231
|
+
if (output.valid != null) {
|
|
1232
|
+
return {
|
|
1233
|
+
valid: de_GuardrailAutomatedReasoningValidFinding(output.valid, context),
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1237
|
+
};
|
|
1238
|
+
const de_GuardrailAutomatedReasoningFindingList = (output, context) => {
|
|
1239
|
+
const retVal = (output || [])
|
|
1240
|
+
.filter((e) => e != null)
|
|
1241
|
+
.map((entry) => {
|
|
1242
|
+
return de_GuardrailAutomatedReasoningFinding(__expectUnion(entry), context);
|
|
1243
|
+
});
|
|
1244
|
+
return retVal;
|
|
1245
|
+
};
|
|
1246
|
+
const de_GuardrailAutomatedReasoningImpossibleFinding = (output, context) => {
|
|
1247
|
+
return take(output, {
|
|
1248
|
+
contradictingRules: _json,
|
|
1249
|
+
logicWarning: _json,
|
|
1250
|
+
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_, context),
|
|
1251
|
+
});
|
|
1252
|
+
};
|
|
1253
|
+
const de_GuardrailAutomatedReasoningInvalidFinding = (output, context) => {
|
|
1254
|
+
return take(output, {
|
|
1255
|
+
contradictingRules: _json,
|
|
1256
|
+
logicWarning: _json,
|
|
1257
|
+
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_, context),
|
|
1258
|
+
});
|
|
1259
|
+
};
|
|
1260
|
+
const de_GuardrailAutomatedReasoningPolicyAssessment = (output, context) => {
|
|
1261
|
+
return take(output, {
|
|
1262
|
+
findings: (_) => de_GuardrailAutomatedReasoningFindingList(_, context),
|
|
1263
|
+
});
|
|
1264
|
+
};
|
|
1265
|
+
const de_GuardrailAutomatedReasoningSatisfiableFinding = (output, context) => {
|
|
1266
|
+
return take(output, {
|
|
1267
|
+
claimsFalseScenario: _json,
|
|
1268
|
+
claimsTrueScenario: _json,
|
|
1269
|
+
logicWarning: _json,
|
|
1270
|
+
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_, context),
|
|
1271
|
+
});
|
|
1272
|
+
};
|
|
1273
|
+
const de_GuardrailAutomatedReasoningTranslation = (output, context) => {
|
|
1274
|
+
return take(output, {
|
|
1275
|
+
claims: _json,
|
|
1276
|
+
confidence: __limitedParseDouble,
|
|
1277
|
+
premises: _json,
|
|
1278
|
+
untranslatedClaims: _json,
|
|
1279
|
+
untranslatedPremises: _json,
|
|
1280
|
+
});
|
|
1281
|
+
};
|
|
1282
|
+
const de_GuardrailAutomatedReasoningTranslationAmbiguousFinding = (output, context) => {
|
|
1283
|
+
return take(output, {
|
|
1284
|
+
differenceScenarios: _json,
|
|
1285
|
+
options: (_) => de_GuardrailAutomatedReasoningTranslationOptionList(_, context),
|
|
1286
|
+
});
|
|
1287
|
+
};
|
|
1288
|
+
const de_GuardrailAutomatedReasoningTranslationList = (output, context) => {
|
|
1289
|
+
const retVal = (output || [])
|
|
1290
|
+
.filter((e) => e != null)
|
|
1291
|
+
.map((entry) => {
|
|
1292
|
+
return de_GuardrailAutomatedReasoningTranslation(entry, context);
|
|
1293
|
+
});
|
|
1294
|
+
return retVal;
|
|
1295
|
+
};
|
|
1296
|
+
const de_GuardrailAutomatedReasoningTranslationOption = (output, context) => {
|
|
1297
|
+
return take(output, {
|
|
1298
|
+
translations: (_) => de_GuardrailAutomatedReasoningTranslationList(_, context),
|
|
1299
|
+
});
|
|
1300
|
+
};
|
|
1301
|
+
const de_GuardrailAutomatedReasoningTranslationOptionList = (output, context) => {
|
|
1302
|
+
const retVal = (output || [])
|
|
1303
|
+
.filter((e) => e != null)
|
|
1304
|
+
.map((entry) => {
|
|
1305
|
+
return de_GuardrailAutomatedReasoningTranslationOption(entry, context);
|
|
1306
|
+
});
|
|
1307
|
+
return retVal;
|
|
1308
|
+
};
|
|
1309
|
+
const de_GuardrailAutomatedReasoningValidFinding = (output, context) => {
|
|
1310
|
+
return take(output, {
|
|
1311
|
+
claimsTrueScenario: _json,
|
|
1312
|
+
logicWarning: _json,
|
|
1313
|
+
supportingRules: _json,
|
|
1314
|
+
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_, context),
|
|
1315
|
+
});
|
|
1316
|
+
};
|
|
1199
1317
|
const de_GuardrailContextualGroundingFilter = (output, context) => {
|
|
1200
1318
|
return take(output, {
|
|
1201
1319
|
action: __expectString,
|
|
@@ -67,6 +67,8 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
67
67
|
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
|
|
68
68
|
* // contextualGroundingPolicyUnits: Number("int"), // required
|
|
69
69
|
* // contentPolicyImageUnits: Number("int"),
|
|
70
|
+
* // automatedReasoningPolicyUnits: Number("int"),
|
|
71
|
+
* // automatedReasoningPolicies: Number("int"),
|
|
70
72
|
* // },
|
|
71
73
|
* // action: "NONE" || "GUARDRAIL_INTERVENED", // required
|
|
72
74
|
* // actionReason: "STRING_VALUE",
|
|
@@ -145,6 +147,162 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
145
147
|
* // },
|
|
146
148
|
* // ],
|
|
147
149
|
* // },
|
|
150
|
+
* // automatedReasoningPolicy: { // GuardrailAutomatedReasoningPolicyAssessment
|
|
151
|
+
* // findings: [ // GuardrailAutomatedReasoningFindingList
|
|
152
|
+
* // { // GuardrailAutomatedReasoningFinding Union: only one key present
|
|
153
|
+
* // valid: { // GuardrailAutomatedReasoningValidFinding
|
|
154
|
+
* // translation: { // GuardrailAutomatedReasoningTranslation
|
|
155
|
+
* // premises: [ // GuardrailAutomatedReasoningStatementList
|
|
156
|
+
* // { // GuardrailAutomatedReasoningStatement
|
|
157
|
+
* // logic: "STRING_VALUE",
|
|
158
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
159
|
+
* // },
|
|
160
|
+
* // ],
|
|
161
|
+
* // claims: [
|
|
162
|
+
* // {
|
|
163
|
+
* // logic: "STRING_VALUE",
|
|
164
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
165
|
+
* // },
|
|
166
|
+
* // ],
|
|
167
|
+
* // untranslatedPremises: [ // GuardrailAutomatedReasoningInputTextReferenceList
|
|
168
|
+
* // { // GuardrailAutomatedReasoningInputTextReference
|
|
169
|
+
* // text: "STRING_VALUE",
|
|
170
|
+
* // },
|
|
171
|
+
* // ],
|
|
172
|
+
* // untranslatedClaims: [
|
|
173
|
+
* // {
|
|
174
|
+
* // text: "STRING_VALUE",
|
|
175
|
+
* // },
|
|
176
|
+
* // ],
|
|
177
|
+
* // confidence: Number("double"),
|
|
178
|
+
* // },
|
|
179
|
+
* // claimsTrueScenario: { // GuardrailAutomatedReasoningScenario
|
|
180
|
+
* // statements: [
|
|
181
|
+
* // {
|
|
182
|
+
* // logic: "STRING_VALUE",
|
|
183
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
184
|
+
* // },
|
|
185
|
+
* // ],
|
|
186
|
+
* // },
|
|
187
|
+
* // supportingRules: [ // GuardrailAutomatedReasoningRuleList
|
|
188
|
+
* // { // GuardrailAutomatedReasoningRule
|
|
189
|
+
* // identifier: "STRING_VALUE",
|
|
190
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
191
|
+
* // },
|
|
192
|
+
* // ],
|
|
193
|
+
* // logicWarning: { // GuardrailAutomatedReasoningLogicWarning
|
|
194
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
195
|
+
* // premises: [
|
|
196
|
+
* // {
|
|
197
|
+
* // logic: "STRING_VALUE",
|
|
198
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
199
|
+
* // },
|
|
200
|
+
* // ],
|
|
201
|
+
* // claims: [
|
|
202
|
+
* // {
|
|
203
|
+
* // logic: "STRING_VALUE",
|
|
204
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
205
|
+
* // },
|
|
206
|
+
* // ],
|
|
207
|
+
* // },
|
|
208
|
+
* // },
|
|
209
|
+
* // invalid: { // GuardrailAutomatedReasoningInvalidFinding
|
|
210
|
+
* // translation: {
|
|
211
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
212
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
213
|
+
* // untranslatedPremises: [
|
|
214
|
+
* // {
|
|
215
|
+
* // text: "STRING_VALUE",
|
|
216
|
+
* // },
|
|
217
|
+
* // ],
|
|
218
|
+
* // untranslatedClaims: [
|
|
219
|
+
* // {
|
|
220
|
+
* // text: "STRING_VALUE",
|
|
221
|
+
* // },
|
|
222
|
+
* // ],
|
|
223
|
+
* // confidence: Number("double"),
|
|
224
|
+
* // },
|
|
225
|
+
* // contradictingRules: [
|
|
226
|
+
* // {
|
|
227
|
+
* // identifier: "STRING_VALUE",
|
|
228
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
229
|
+
* // },
|
|
230
|
+
* // ],
|
|
231
|
+
* // logicWarning: {
|
|
232
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
233
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
234
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
235
|
+
* // },
|
|
236
|
+
* // },
|
|
237
|
+
* // satisfiable: { // GuardrailAutomatedReasoningSatisfiableFinding
|
|
238
|
+
* // translation: {
|
|
239
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
240
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
241
|
+
* // untranslatedPremises: [
|
|
242
|
+
* // {
|
|
243
|
+
* // text: "STRING_VALUE",
|
|
244
|
+
* // },
|
|
245
|
+
* // ],
|
|
246
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
247
|
+
* // confidence: Number("double"),
|
|
248
|
+
* // },
|
|
249
|
+
* // claimsTrueScenario: {
|
|
250
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
251
|
+
* // },
|
|
252
|
+
* // claimsFalseScenario: {
|
|
253
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
254
|
+
* // },
|
|
255
|
+
* // logicWarning: {
|
|
256
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
257
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
258
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
259
|
+
* // },
|
|
260
|
+
* // },
|
|
261
|
+
* // impossible: { // GuardrailAutomatedReasoningImpossibleFinding
|
|
262
|
+
* // translation: {
|
|
263
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
264
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
265
|
+
* // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
266
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
267
|
+
* // confidence: Number("double"),
|
|
268
|
+
* // },
|
|
269
|
+
* // contradictingRules: [
|
|
270
|
+
* // {
|
|
271
|
+
* // identifier: "STRING_VALUE",
|
|
272
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
273
|
+
* // },
|
|
274
|
+
* // ],
|
|
275
|
+
* // logicWarning: {
|
|
276
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
277
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
278
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
279
|
+
* // },
|
|
280
|
+
* // },
|
|
281
|
+
* // translationAmbiguous: { // GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
|
282
|
+
* // options: [ // GuardrailAutomatedReasoningTranslationOptionList
|
|
283
|
+
* // { // GuardrailAutomatedReasoningTranslationOption
|
|
284
|
+
* // translations: [ // GuardrailAutomatedReasoningTranslationList
|
|
285
|
+
* // {
|
|
286
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
287
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
288
|
+
* // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
289
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
290
|
+
* // confidence: Number("double"),
|
|
291
|
+
* // },
|
|
292
|
+
* // ],
|
|
293
|
+
* // },
|
|
294
|
+
* // ],
|
|
295
|
+
* // differenceScenarios: [ // GuardrailAutomatedReasoningDifferenceScenarioList
|
|
296
|
+
* // {
|
|
297
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
298
|
+
* // },
|
|
299
|
+
* // ],
|
|
300
|
+
* // },
|
|
301
|
+
* // tooComplex: {},
|
|
302
|
+
* // noTranslations: {},
|
|
303
|
+
* // },
|
|
304
|
+
* // ],
|
|
305
|
+
* // },
|
|
148
306
|
* // invocationMetrics: { // GuardrailInvocationMetrics
|
|
149
307
|
* // guardrailProcessingLatency: Number("long"),
|
|
150
308
|
* // usage: {
|
|
@@ -155,6 +313,8 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
155
313
|
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
|
|
156
314
|
* // contextualGroundingPolicyUnits: Number("int"), // required
|
|
157
315
|
* // contentPolicyImageUnits: Number("int"),
|
|
316
|
+
* // automatedReasoningPolicyUnits: Number("int"),
|
|
317
|
+
* // automatedReasoningPolicies: Number("int"),
|
|
158
318
|
* // },
|
|
159
319
|
* // guardrailCoverage: { // GuardrailCoverage
|
|
160
320
|
* // textCharacters: { // GuardrailTextCharactersCoverage
|
|
@@ -522,6 +522,162 @@ declare const ConverseCommand_base: {
|
|
|
522
522
|
* // },
|
|
523
523
|
* // ],
|
|
524
524
|
* // },
|
|
525
|
+
* // automatedReasoningPolicy: { // GuardrailAutomatedReasoningPolicyAssessment
|
|
526
|
+
* // findings: [ // GuardrailAutomatedReasoningFindingList
|
|
527
|
+
* // { // GuardrailAutomatedReasoningFinding Union: only one key present
|
|
528
|
+
* // valid: { // GuardrailAutomatedReasoningValidFinding
|
|
529
|
+
* // translation: { // GuardrailAutomatedReasoningTranslation
|
|
530
|
+
* // premises: [ // GuardrailAutomatedReasoningStatementList
|
|
531
|
+
* // { // GuardrailAutomatedReasoningStatement
|
|
532
|
+
* // logic: "STRING_VALUE",
|
|
533
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
534
|
+
* // },
|
|
535
|
+
* // ],
|
|
536
|
+
* // claims: [
|
|
537
|
+
* // {
|
|
538
|
+
* // logic: "STRING_VALUE",
|
|
539
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
540
|
+
* // },
|
|
541
|
+
* // ],
|
|
542
|
+
* // untranslatedPremises: [ // GuardrailAutomatedReasoningInputTextReferenceList
|
|
543
|
+
* // { // GuardrailAutomatedReasoningInputTextReference
|
|
544
|
+
* // text: "STRING_VALUE",
|
|
545
|
+
* // },
|
|
546
|
+
* // ],
|
|
547
|
+
* // untranslatedClaims: [
|
|
548
|
+
* // {
|
|
549
|
+
* // text: "STRING_VALUE",
|
|
550
|
+
* // },
|
|
551
|
+
* // ],
|
|
552
|
+
* // confidence: Number("double"),
|
|
553
|
+
* // },
|
|
554
|
+
* // claimsTrueScenario: { // GuardrailAutomatedReasoningScenario
|
|
555
|
+
* // statements: [
|
|
556
|
+
* // {
|
|
557
|
+
* // logic: "STRING_VALUE",
|
|
558
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
559
|
+
* // },
|
|
560
|
+
* // ],
|
|
561
|
+
* // },
|
|
562
|
+
* // supportingRules: [ // GuardrailAutomatedReasoningRuleList
|
|
563
|
+
* // { // GuardrailAutomatedReasoningRule
|
|
564
|
+
* // identifier: "STRING_VALUE",
|
|
565
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
566
|
+
* // },
|
|
567
|
+
* // ],
|
|
568
|
+
* // logicWarning: { // GuardrailAutomatedReasoningLogicWarning
|
|
569
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
570
|
+
* // premises: [
|
|
571
|
+
* // {
|
|
572
|
+
* // logic: "STRING_VALUE",
|
|
573
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
574
|
+
* // },
|
|
575
|
+
* // ],
|
|
576
|
+
* // claims: [
|
|
577
|
+
* // {
|
|
578
|
+
* // logic: "STRING_VALUE",
|
|
579
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
580
|
+
* // },
|
|
581
|
+
* // ],
|
|
582
|
+
* // },
|
|
583
|
+
* // },
|
|
584
|
+
* // invalid: { // GuardrailAutomatedReasoningInvalidFinding
|
|
585
|
+
* // translation: {
|
|
586
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
587
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
588
|
+
* // untranslatedPremises: [
|
|
589
|
+
* // {
|
|
590
|
+
* // text: "STRING_VALUE",
|
|
591
|
+
* // },
|
|
592
|
+
* // ],
|
|
593
|
+
* // untranslatedClaims: [
|
|
594
|
+
* // {
|
|
595
|
+
* // text: "STRING_VALUE",
|
|
596
|
+
* // },
|
|
597
|
+
* // ],
|
|
598
|
+
* // confidence: Number("double"),
|
|
599
|
+
* // },
|
|
600
|
+
* // contradictingRules: [
|
|
601
|
+
* // {
|
|
602
|
+
* // identifier: "STRING_VALUE",
|
|
603
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
604
|
+
* // },
|
|
605
|
+
* // ],
|
|
606
|
+
* // logicWarning: {
|
|
607
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
608
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
609
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
610
|
+
* // },
|
|
611
|
+
* // },
|
|
612
|
+
* // satisfiable: { // GuardrailAutomatedReasoningSatisfiableFinding
|
|
613
|
+
* // translation: {
|
|
614
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
615
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
616
|
+
* // untranslatedPremises: [
|
|
617
|
+
* // {
|
|
618
|
+
* // text: "STRING_VALUE",
|
|
619
|
+
* // },
|
|
620
|
+
* // ],
|
|
621
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
622
|
+
* // confidence: Number("double"),
|
|
623
|
+
* // },
|
|
624
|
+
* // claimsTrueScenario: {
|
|
625
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
626
|
+
* // },
|
|
627
|
+
* // claimsFalseScenario: {
|
|
628
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
629
|
+
* // },
|
|
630
|
+
* // logicWarning: {
|
|
631
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
632
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
633
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
634
|
+
* // },
|
|
635
|
+
* // },
|
|
636
|
+
* // impossible: { // GuardrailAutomatedReasoningImpossibleFinding
|
|
637
|
+
* // translation: {
|
|
638
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
639
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
640
|
+
* // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
641
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
642
|
+
* // confidence: Number("double"),
|
|
643
|
+
* // },
|
|
644
|
+
* // contradictingRules: [
|
|
645
|
+
* // {
|
|
646
|
+
* // identifier: "STRING_VALUE",
|
|
647
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
648
|
+
* // },
|
|
649
|
+
* // ],
|
|
650
|
+
* // logicWarning: {
|
|
651
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
652
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
653
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
654
|
+
* // },
|
|
655
|
+
* // },
|
|
656
|
+
* // translationAmbiguous: { // GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
|
657
|
+
* // options: [ // GuardrailAutomatedReasoningTranslationOptionList
|
|
658
|
+
* // { // GuardrailAutomatedReasoningTranslationOption
|
|
659
|
+
* // translations: [ // GuardrailAutomatedReasoningTranslationList
|
|
660
|
+
* // {
|
|
661
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
662
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
663
|
+
* // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
664
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
665
|
+
* // confidence: Number("double"),
|
|
666
|
+
* // },
|
|
667
|
+
* // ],
|
|
668
|
+
* // },
|
|
669
|
+
* // ],
|
|
670
|
+
* // differenceScenarios: [ // GuardrailAutomatedReasoningDifferenceScenarioList
|
|
671
|
+
* // {
|
|
672
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
673
|
+
* // },
|
|
674
|
+
* // ],
|
|
675
|
+
* // },
|
|
676
|
+
* // tooComplex: {},
|
|
677
|
+
* // noTranslations: {},
|
|
678
|
+
* // },
|
|
679
|
+
* // ],
|
|
680
|
+
* // },
|
|
525
681
|
* // invocationMetrics: { // GuardrailInvocationMetrics
|
|
526
682
|
* // guardrailProcessingLatency: Number("long"),
|
|
527
683
|
* // usage: { // GuardrailUsage
|
|
@@ -532,6 +688,8 @@ declare const ConverseCommand_base: {
|
|
|
532
688
|
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
|
|
533
689
|
* // contextualGroundingPolicyUnits: Number("int"), // required
|
|
534
690
|
* // contentPolicyImageUnits: Number("int"),
|
|
691
|
+
* // automatedReasoningPolicyUnits: Number("int"),
|
|
692
|
+
* // automatedReasoningPolicies: Number("int"),
|
|
535
693
|
* // },
|
|
536
694
|
* // guardrailCoverage: { // GuardrailCoverage
|
|
537
695
|
* // textCharacters: { // GuardrailTextCharactersCoverage
|
|
@@ -617,6 +775,64 @@ declare const ConverseCommand_base: {
|
|
|
617
775
|
* // },
|
|
618
776
|
* // ],
|
|
619
777
|
* // },
|
|
778
|
+
* // automatedReasoningPolicy: {
|
|
779
|
+
* // findings: [
|
|
780
|
+
* // {// Union: only one key present
|
|
781
|
+
* // valid: {
|
|
782
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
783
|
+
* // claimsTrueScenario: {
|
|
784
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
785
|
+
* // },
|
|
786
|
+
* // supportingRules: [
|
|
787
|
+
* // {
|
|
788
|
+
* // identifier: "STRING_VALUE",
|
|
789
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
790
|
+
* // },
|
|
791
|
+
* // ],
|
|
792
|
+
* // logicWarning: {
|
|
793
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
794
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
795
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
796
|
+
* // },
|
|
797
|
+
* // },
|
|
798
|
+
* // invalid: {
|
|
799
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
800
|
+
* // contradictingRules: [
|
|
801
|
+
* // {
|
|
802
|
+
* // identifier: "STRING_VALUE",
|
|
803
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
804
|
+
* // },
|
|
805
|
+
* // ],
|
|
806
|
+
* // logicWarning: "<GuardrailAutomatedReasoningLogicWarning>",
|
|
807
|
+
* // },
|
|
808
|
+
* // satisfiable: {
|
|
809
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
810
|
+
* // claimsTrueScenario: "<GuardrailAutomatedReasoningScenario>",
|
|
811
|
+
* // claimsFalseScenario: "<GuardrailAutomatedReasoningScenario>",
|
|
812
|
+
* // logicWarning: "<GuardrailAutomatedReasoningLogicWarning>",
|
|
813
|
+
* // },
|
|
814
|
+
* // impossible: {
|
|
815
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
816
|
+
* // contradictingRules: "<GuardrailAutomatedReasoningRuleList>",
|
|
817
|
+
* // logicWarning: "<GuardrailAutomatedReasoningLogicWarning>",
|
|
818
|
+
* // },
|
|
819
|
+
* // translationAmbiguous: {
|
|
820
|
+
* // options: [
|
|
821
|
+
* // {
|
|
822
|
+
* // translations: [
|
|
823
|
+
* // "<GuardrailAutomatedReasoningTranslation>",
|
|
824
|
+
* // ],
|
|
825
|
+
* // },
|
|
826
|
+
* // ],
|
|
827
|
+
* // differenceScenarios: [
|
|
828
|
+
* // "<GuardrailAutomatedReasoningScenario>",
|
|
829
|
+
* // ],
|
|
830
|
+
* // },
|
|
831
|
+
* // tooComplex: {},
|
|
832
|
+
* // noTranslations: {},
|
|
833
|
+
* // },
|
|
834
|
+
* // ],
|
|
835
|
+
* // },
|
|
620
836
|
* // invocationMetrics: {
|
|
621
837
|
* // guardrailProcessingLatency: Number("long"),
|
|
622
838
|
* // usage: {
|
|
@@ -627,6 +843,8 @@ declare const ConverseCommand_base: {
|
|
|
627
843
|
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
|
|
628
844
|
* // contextualGroundingPolicyUnits: Number("int"), // required
|
|
629
845
|
* // contentPolicyImageUnits: Number("int"),
|
|
846
|
+
* // automatedReasoningPolicyUnits: Number("int"),
|
|
847
|
+
* // automatedReasoningPolicies: Number("int"),
|
|
630
848
|
* // },
|
|
631
849
|
* // guardrailCoverage: {
|
|
632
850
|
* // textCharacters: {
|