@aws-sdk/client-bedrock-runtime 3.859.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 +1 -1
|
@@ -419,6 +419,162 @@ declare const ConverseStreamCommand_base: {
|
|
|
419
419
|
* // },
|
|
420
420
|
* // ],
|
|
421
421
|
* // },
|
|
422
|
+
* // automatedReasoningPolicy: { // GuardrailAutomatedReasoningPolicyAssessment
|
|
423
|
+
* // findings: [ // GuardrailAutomatedReasoningFindingList
|
|
424
|
+
* // { // GuardrailAutomatedReasoningFinding Union: only one key present
|
|
425
|
+
* // valid: { // GuardrailAutomatedReasoningValidFinding
|
|
426
|
+
* // translation: { // GuardrailAutomatedReasoningTranslation
|
|
427
|
+
* // premises: [ // GuardrailAutomatedReasoningStatementList
|
|
428
|
+
* // { // GuardrailAutomatedReasoningStatement
|
|
429
|
+
* // logic: "STRING_VALUE",
|
|
430
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
431
|
+
* // },
|
|
432
|
+
* // ],
|
|
433
|
+
* // claims: [
|
|
434
|
+
* // {
|
|
435
|
+
* // logic: "STRING_VALUE",
|
|
436
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
437
|
+
* // },
|
|
438
|
+
* // ],
|
|
439
|
+
* // untranslatedPremises: [ // GuardrailAutomatedReasoningInputTextReferenceList
|
|
440
|
+
* // { // GuardrailAutomatedReasoningInputTextReference
|
|
441
|
+
* // text: "STRING_VALUE",
|
|
442
|
+
* // },
|
|
443
|
+
* // ],
|
|
444
|
+
* // untranslatedClaims: [
|
|
445
|
+
* // {
|
|
446
|
+
* // text: "STRING_VALUE",
|
|
447
|
+
* // },
|
|
448
|
+
* // ],
|
|
449
|
+
* // confidence: Number("double"),
|
|
450
|
+
* // },
|
|
451
|
+
* // claimsTrueScenario: { // GuardrailAutomatedReasoningScenario
|
|
452
|
+
* // statements: [
|
|
453
|
+
* // {
|
|
454
|
+
* // logic: "STRING_VALUE",
|
|
455
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
456
|
+
* // },
|
|
457
|
+
* // ],
|
|
458
|
+
* // },
|
|
459
|
+
* // supportingRules: [ // GuardrailAutomatedReasoningRuleList
|
|
460
|
+
* // { // GuardrailAutomatedReasoningRule
|
|
461
|
+
* // identifier: "STRING_VALUE",
|
|
462
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
463
|
+
* // },
|
|
464
|
+
* // ],
|
|
465
|
+
* // logicWarning: { // GuardrailAutomatedReasoningLogicWarning
|
|
466
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
467
|
+
* // premises: [
|
|
468
|
+
* // {
|
|
469
|
+
* // logic: "STRING_VALUE",
|
|
470
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
471
|
+
* // },
|
|
472
|
+
* // ],
|
|
473
|
+
* // claims: [
|
|
474
|
+
* // {
|
|
475
|
+
* // logic: "STRING_VALUE",
|
|
476
|
+
* // naturalLanguage: "STRING_VALUE",
|
|
477
|
+
* // },
|
|
478
|
+
* // ],
|
|
479
|
+
* // },
|
|
480
|
+
* // },
|
|
481
|
+
* // invalid: { // GuardrailAutomatedReasoningInvalidFinding
|
|
482
|
+
* // translation: {
|
|
483
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
484
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
485
|
+
* // untranslatedPremises: [
|
|
486
|
+
* // {
|
|
487
|
+
* // text: "STRING_VALUE",
|
|
488
|
+
* // },
|
|
489
|
+
* // ],
|
|
490
|
+
* // untranslatedClaims: [
|
|
491
|
+
* // {
|
|
492
|
+
* // text: "STRING_VALUE",
|
|
493
|
+
* // },
|
|
494
|
+
* // ],
|
|
495
|
+
* // confidence: Number("double"),
|
|
496
|
+
* // },
|
|
497
|
+
* // contradictingRules: [
|
|
498
|
+
* // {
|
|
499
|
+
* // identifier: "STRING_VALUE",
|
|
500
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
501
|
+
* // },
|
|
502
|
+
* // ],
|
|
503
|
+
* // logicWarning: {
|
|
504
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
505
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
506
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
507
|
+
* // },
|
|
508
|
+
* // },
|
|
509
|
+
* // satisfiable: { // GuardrailAutomatedReasoningSatisfiableFinding
|
|
510
|
+
* // translation: {
|
|
511
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
512
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
513
|
+
* // untranslatedPremises: [
|
|
514
|
+
* // {
|
|
515
|
+
* // text: "STRING_VALUE",
|
|
516
|
+
* // },
|
|
517
|
+
* // ],
|
|
518
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
519
|
+
* // confidence: Number("double"),
|
|
520
|
+
* // },
|
|
521
|
+
* // claimsTrueScenario: {
|
|
522
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
523
|
+
* // },
|
|
524
|
+
* // claimsFalseScenario: {
|
|
525
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
526
|
+
* // },
|
|
527
|
+
* // logicWarning: {
|
|
528
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
529
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
530
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
531
|
+
* // },
|
|
532
|
+
* // },
|
|
533
|
+
* // impossible: { // GuardrailAutomatedReasoningImpossibleFinding
|
|
534
|
+
* // translation: {
|
|
535
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
536
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
537
|
+
* // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
538
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
539
|
+
* // confidence: Number("double"),
|
|
540
|
+
* // },
|
|
541
|
+
* // contradictingRules: [
|
|
542
|
+
* // {
|
|
543
|
+
* // identifier: "STRING_VALUE",
|
|
544
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
545
|
+
* // },
|
|
546
|
+
* // ],
|
|
547
|
+
* // logicWarning: {
|
|
548
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
549
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
550
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
551
|
+
* // },
|
|
552
|
+
* // },
|
|
553
|
+
* // translationAmbiguous: { // GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
|
554
|
+
* // options: [ // GuardrailAutomatedReasoningTranslationOptionList
|
|
555
|
+
* // { // GuardrailAutomatedReasoningTranslationOption
|
|
556
|
+
* // translations: [ // GuardrailAutomatedReasoningTranslationList
|
|
557
|
+
* // {
|
|
558
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
559
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
560
|
+
* // untranslatedPremises: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
561
|
+
* // untranslatedClaims: "<GuardrailAutomatedReasoningInputTextReferenceList>",
|
|
562
|
+
* // confidence: Number("double"),
|
|
563
|
+
* // },
|
|
564
|
+
* // ],
|
|
565
|
+
* // },
|
|
566
|
+
* // ],
|
|
567
|
+
* // differenceScenarios: [ // GuardrailAutomatedReasoningDifferenceScenarioList
|
|
568
|
+
* // {
|
|
569
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
570
|
+
* // },
|
|
571
|
+
* // ],
|
|
572
|
+
* // },
|
|
573
|
+
* // tooComplex: {},
|
|
574
|
+
* // noTranslations: {},
|
|
575
|
+
* // },
|
|
576
|
+
* // ],
|
|
577
|
+
* // },
|
|
422
578
|
* // invocationMetrics: { // GuardrailInvocationMetrics
|
|
423
579
|
* // guardrailProcessingLatency: Number("long"),
|
|
424
580
|
* // usage: { // GuardrailUsage
|
|
@@ -429,6 +585,8 @@ declare const ConverseStreamCommand_base: {
|
|
|
429
585
|
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
|
|
430
586
|
* // contextualGroundingPolicyUnits: Number("int"), // required
|
|
431
587
|
* // contentPolicyImageUnits: Number("int"),
|
|
588
|
+
* // automatedReasoningPolicyUnits: Number("int"),
|
|
589
|
+
* // automatedReasoningPolicies: Number("int"),
|
|
432
590
|
* // },
|
|
433
591
|
* // guardrailCoverage: { // GuardrailCoverage
|
|
434
592
|
* // textCharacters: { // GuardrailTextCharactersCoverage
|
|
@@ -514,6 +672,64 @@ declare const ConverseStreamCommand_base: {
|
|
|
514
672
|
* // },
|
|
515
673
|
* // ],
|
|
516
674
|
* // },
|
|
675
|
+
* // automatedReasoningPolicy: {
|
|
676
|
+
* // findings: [
|
|
677
|
+
* // {// Union: only one key present
|
|
678
|
+
* // valid: {
|
|
679
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
680
|
+
* // claimsTrueScenario: {
|
|
681
|
+
* // statements: "<GuardrailAutomatedReasoningStatementList>",
|
|
682
|
+
* // },
|
|
683
|
+
* // supportingRules: [
|
|
684
|
+
* // {
|
|
685
|
+
* // identifier: "STRING_VALUE",
|
|
686
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
687
|
+
* // },
|
|
688
|
+
* // ],
|
|
689
|
+
* // logicWarning: {
|
|
690
|
+
* // type: "ALWAYS_FALSE" || "ALWAYS_TRUE",
|
|
691
|
+
* // premises: "<GuardrailAutomatedReasoningStatementList>",
|
|
692
|
+
* // claims: "<GuardrailAutomatedReasoningStatementList>",
|
|
693
|
+
* // },
|
|
694
|
+
* // },
|
|
695
|
+
* // invalid: {
|
|
696
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
697
|
+
* // contradictingRules: [
|
|
698
|
+
* // {
|
|
699
|
+
* // identifier: "STRING_VALUE",
|
|
700
|
+
* // policyVersionArn: "STRING_VALUE",
|
|
701
|
+
* // },
|
|
702
|
+
* // ],
|
|
703
|
+
* // logicWarning: "<GuardrailAutomatedReasoningLogicWarning>",
|
|
704
|
+
* // },
|
|
705
|
+
* // satisfiable: {
|
|
706
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
707
|
+
* // claimsTrueScenario: "<GuardrailAutomatedReasoningScenario>",
|
|
708
|
+
* // claimsFalseScenario: "<GuardrailAutomatedReasoningScenario>",
|
|
709
|
+
* // logicWarning: "<GuardrailAutomatedReasoningLogicWarning>",
|
|
710
|
+
* // },
|
|
711
|
+
* // impossible: {
|
|
712
|
+
* // translation: "<GuardrailAutomatedReasoningTranslation>",
|
|
713
|
+
* // contradictingRules: "<GuardrailAutomatedReasoningRuleList>",
|
|
714
|
+
* // logicWarning: "<GuardrailAutomatedReasoningLogicWarning>",
|
|
715
|
+
* // },
|
|
716
|
+
* // translationAmbiguous: {
|
|
717
|
+
* // options: [
|
|
718
|
+
* // {
|
|
719
|
+
* // translations: [
|
|
720
|
+
* // "<GuardrailAutomatedReasoningTranslation>",
|
|
721
|
+
* // ],
|
|
722
|
+
* // },
|
|
723
|
+
* // ],
|
|
724
|
+
* // differenceScenarios: [
|
|
725
|
+
* // "<GuardrailAutomatedReasoningScenario>",
|
|
726
|
+
* // ],
|
|
727
|
+
* // },
|
|
728
|
+
* // tooComplex: {},
|
|
729
|
+
* // noTranslations: {},
|
|
730
|
+
* // },
|
|
731
|
+
* // ],
|
|
732
|
+
* // },
|
|
517
733
|
* // invocationMetrics: {
|
|
518
734
|
* // guardrailProcessingLatency: Number("long"),
|
|
519
735
|
* // usage: {
|
|
@@ -524,6 +740,8 @@ declare const ConverseStreamCommand_base: {
|
|
|
524
740
|
* // sensitiveInformationPolicyFreeUnits: Number("int"), // required
|
|
525
741
|
* // contextualGroundingPolicyUnits: Number("int"), // required
|
|
526
742
|
* // contentPolicyImageUnits: Number("int"),
|
|
743
|
+
* // automatedReasoningPolicyUnits: Number("int"),
|
|
744
|
+
* // automatedReasoningPolicies: Number("int"),
|
|
527
745
|
* // },
|
|
528
746
|
* // guardrailCoverage: {
|
|
529
747
|
* // textCharacters: {
|