@aws-sdk/client-bedrock-runtime 3.859.0 → 3.862.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.
@@ -601,6 +601,400 @@ export declare const GuardrailAction: {
601
601
  * @public
602
602
  */
603
603
  export type GuardrailAction = (typeof GuardrailAction)[keyof typeof GuardrailAction];
604
+ /**
605
+ * <p>References a specific automated reasoning policy rule that was applied during evaluation.</p>
606
+ * @public
607
+ */
608
+ export interface GuardrailAutomatedReasoningRule {
609
+ /**
610
+ * <p>The unique identifier of the automated reasoning rule.</p>
611
+ * @public
612
+ */
613
+ identifier?: string | undefined;
614
+ /**
615
+ * <p>The ARN of the automated reasoning policy version that contains this rule.</p>
616
+ * @public
617
+ */
618
+ policyVersionArn?: string | undefined;
619
+ }
620
+ /**
621
+ * <p>A logical statement that includes both formal logic representation and natural language explanation.</p>
622
+ * @public
623
+ */
624
+ export interface GuardrailAutomatedReasoningStatement {
625
+ /**
626
+ * <p>The formal logical representation of the statement.</p>
627
+ * @public
628
+ */
629
+ logic?: string | undefined;
630
+ /**
631
+ * <p>The natural language explanation of the logical statement.</p>
632
+ * @public
633
+ */
634
+ naturalLanguage?: string | undefined;
635
+ }
636
+ /**
637
+ * @public
638
+ * @enum
639
+ */
640
+ export declare const GuardrailAutomatedReasoningLogicWarningType: {
641
+ readonly ALWAYS_FALSE: "ALWAYS_FALSE";
642
+ readonly ALWAYS_TRUE: "ALWAYS_TRUE";
643
+ };
644
+ /**
645
+ * @public
646
+ */
647
+ export type GuardrailAutomatedReasoningLogicWarningType = (typeof GuardrailAutomatedReasoningLogicWarningType)[keyof typeof GuardrailAutomatedReasoningLogicWarningType];
648
+ /**
649
+ * <p>Identifies logical issues in the translated statements that exist independent of any policy rules, such as statements that are always true or always false.</p>
650
+ * @public
651
+ */
652
+ export interface GuardrailAutomatedReasoningLogicWarning {
653
+ /**
654
+ * <p>The category of the detected logical issue, such as statements that are always true or always false.</p>
655
+ * @public
656
+ */
657
+ type?: GuardrailAutomatedReasoningLogicWarningType | undefined;
658
+ /**
659
+ * <p>The logical statements that serve as premises under which the claims are validated.</p>
660
+ * @public
661
+ */
662
+ premises?: GuardrailAutomatedReasoningStatement[] | undefined;
663
+ /**
664
+ * <p>The logical statements that are validated while assuming the policy and premises.</p>
665
+ * @public
666
+ */
667
+ claims?: GuardrailAutomatedReasoningStatement[] | undefined;
668
+ }
669
+ /**
670
+ * <p>References a portion of the original input text that corresponds to logical elements.</p>
671
+ * @public
672
+ */
673
+ export interface GuardrailAutomatedReasoningInputTextReference {
674
+ /**
675
+ * <p>The specific text from the original input that this reference points to.</p>
676
+ * @public
677
+ */
678
+ text?: string | undefined;
679
+ }
680
+ /**
681
+ * <p>Contains the logical translation of natural language input into formal logical statements, including premises, claims, and confidence scores.</p>
682
+ * @public
683
+ */
684
+ export interface GuardrailAutomatedReasoningTranslation {
685
+ /**
686
+ * <p>The logical statements that serve as the foundation or assumptions for the claims.</p>
687
+ * @public
688
+ */
689
+ premises?: GuardrailAutomatedReasoningStatement[] | undefined;
690
+ /**
691
+ * <p>The logical statements that are being validated against the premises and policy rules.</p>
692
+ * @public
693
+ */
694
+ claims?: GuardrailAutomatedReasoningStatement[] | undefined;
695
+ /**
696
+ * <p>References to portions of the original input text that correspond to the premises but could not be fully translated.</p>
697
+ * @public
698
+ */
699
+ untranslatedPremises?: GuardrailAutomatedReasoningInputTextReference[] | undefined;
700
+ /**
701
+ * <p>References to portions of the original input text that correspond to the claims but could not be fully translated.</p>
702
+ * @public
703
+ */
704
+ untranslatedClaims?: GuardrailAutomatedReasoningInputTextReference[] | undefined;
705
+ /**
706
+ * <p>A confidence score between 0 and 1 indicating how certain the system is about the logical translation.</p>
707
+ * @public
708
+ */
709
+ confidence?: number | undefined;
710
+ }
711
+ /**
712
+ * <p>Indicates that no valid claims can be made due to logical contradictions in the premises or rules.</p>
713
+ * @public
714
+ */
715
+ export interface GuardrailAutomatedReasoningImpossibleFinding {
716
+ /**
717
+ * <p>The logical translation of the input that this finding evaluates.</p>
718
+ * @public
719
+ */
720
+ translation?: GuardrailAutomatedReasoningTranslation | undefined;
721
+ /**
722
+ * <p>The automated reasoning policy rules that contradict the claims and/or premises in the input.</p>
723
+ * @public
724
+ */
725
+ contradictingRules?: GuardrailAutomatedReasoningRule[] | undefined;
726
+ /**
727
+ * <p>Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.</p>
728
+ * @public
729
+ */
730
+ logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
731
+ }
732
+ /**
733
+ * <p>Indicates that the claims are logically false and contradictory to the established rules or premises.</p>
734
+ * @public
735
+ */
736
+ export interface GuardrailAutomatedReasoningInvalidFinding {
737
+ /**
738
+ * <p>The logical translation of the input that this finding invalidates.</p>
739
+ * @public
740
+ */
741
+ translation?: GuardrailAutomatedReasoningTranslation | undefined;
742
+ /**
743
+ * <p>The automated reasoning policy rules that contradict the claims in the input.</p>
744
+ * @public
745
+ */
746
+ contradictingRules?: GuardrailAutomatedReasoningRule[] | undefined;
747
+ /**
748
+ * <p>Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.</p>
749
+ * @public
750
+ */
751
+ logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
752
+ }
753
+ /**
754
+ * <p>Indicates that no relevant logical information could be extracted from the input for validation.</p>
755
+ * @public
756
+ */
757
+ export interface GuardrailAutomatedReasoningNoTranslationsFinding {
758
+ }
759
+ /**
760
+ * <p>Represents a logical scenario where claims can be evaluated as true or false, containing specific logical assignments.</p>
761
+ * @public
762
+ */
763
+ export interface GuardrailAutomatedReasoningScenario {
764
+ /**
765
+ * <p>List of logical assignments and statements that define this scenario.</p>
766
+ * @public
767
+ */
768
+ statements?: GuardrailAutomatedReasoningStatement[] | undefined;
769
+ }
770
+ /**
771
+ * <p>Indicates that the claims could be either true or false depending on additional assumptions not provided in the input.</p>
772
+ * @public
773
+ */
774
+ export interface GuardrailAutomatedReasoningSatisfiableFinding {
775
+ /**
776
+ * <p>The logical translation of the input that this finding evaluates.</p>
777
+ * @public
778
+ */
779
+ translation?: GuardrailAutomatedReasoningTranslation | undefined;
780
+ /**
781
+ * <p>An example scenario demonstrating how the claims could be logically true.</p>
782
+ * @public
783
+ */
784
+ claimsTrueScenario?: GuardrailAutomatedReasoningScenario | undefined;
785
+ /**
786
+ * <p>An example scenario demonstrating how the claims could be logically false.</p>
787
+ * @public
788
+ */
789
+ claimsFalseScenario?: GuardrailAutomatedReasoningScenario | undefined;
790
+ /**
791
+ * <p>Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.</p>
792
+ * @public
793
+ */
794
+ logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
795
+ }
796
+ /**
797
+ * <p>Indicates that the input exceeds the processing capacity due to the volume or complexity of the logical information.</p>
798
+ * @public
799
+ */
800
+ export interface GuardrailAutomatedReasoningTooComplexFinding {
801
+ }
802
+ /**
803
+ * <p>Represents one possible logical interpretation of ambiguous input content.</p>
804
+ * @public
805
+ */
806
+ export interface GuardrailAutomatedReasoningTranslationOption {
807
+ /**
808
+ * <p>Example translations that provide this possible interpretation of the input.</p>
809
+ * @public
810
+ */
811
+ translations?: GuardrailAutomatedReasoningTranslation[] | undefined;
812
+ }
813
+ /**
814
+ * <p>Indicates that the input has multiple valid logical interpretations, requiring additional context or clarification.</p>
815
+ * @public
816
+ */
817
+ export interface GuardrailAutomatedReasoningTranslationAmbiguousFinding {
818
+ /**
819
+ * <p>Different logical interpretations that were detected during translation of the input.</p>
820
+ * @public
821
+ */
822
+ options?: GuardrailAutomatedReasoningTranslationOption[] | undefined;
823
+ /**
824
+ * <p>Scenarios showing how the different translation options differ in meaning.</p>
825
+ * @public
826
+ */
827
+ differenceScenarios?: GuardrailAutomatedReasoningScenario[] | undefined;
828
+ }
829
+ /**
830
+ * <p>Indicates that the claims are definitively true and logically implied by the premises, with no possible alternative interpretations.</p>
831
+ * @public
832
+ */
833
+ export interface GuardrailAutomatedReasoningValidFinding {
834
+ /**
835
+ * <p>The logical translation of the input that this finding validates.</p>
836
+ * @public
837
+ */
838
+ translation?: GuardrailAutomatedReasoningTranslation | undefined;
839
+ /**
840
+ * <p>An example scenario demonstrating how the claims are logically true.</p>
841
+ * @public
842
+ */
843
+ claimsTrueScenario?: GuardrailAutomatedReasoningScenario | undefined;
844
+ /**
845
+ * <p>The automated reasoning policy rules that support why this result is considered valid.</p>
846
+ * @public
847
+ */
848
+ supportingRules?: GuardrailAutomatedReasoningRule[] | undefined;
849
+ /**
850
+ * <p>Indication of a logic issue with the translation without needing to consider the automated reasoning policy rules.</p>
851
+ * @public
852
+ */
853
+ logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
854
+ }
855
+ /**
856
+ * <p>Represents a logical validation result from automated reasoning policy evaluation. The finding indicates whether claims in the input are logically valid, invalid, satisfiable, impossible, or have other logical issues.</p>
857
+ * @public
858
+ */
859
+ export type GuardrailAutomatedReasoningFinding = GuardrailAutomatedReasoningFinding.ImpossibleMember | GuardrailAutomatedReasoningFinding.InvalidMember | GuardrailAutomatedReasoningFinding.NoTranslationsMember | GuardrailAutomatedReasoningFinding.SatisfiableMember | GuardrailAutomatedReasoningFinding.TooComplexMember | GuardrailAutomatedReasoningFinding.TranslationAmbiguousMember | GuardrailAutomatedReasoningFinding.ValidMember | GuardrailAutomatedReasoningFinding.$UnknownMember;
860
+ /**
861
+ * @public
862
+ */
863
+ export declare namespace GuardrailAutomatedReasoningFinding {
864
+ /**
865
+ * <p>Indicates that the claims are definitively true and logically implied by the premises, with no possible alternative interpretations.</p>
866
+ * @public
867
+ */
868
+ interface ValidMember {
869
+ valid: GuardrailAutomatedReasoningValidFinding;
870
+ invalid?: never;
871
+ satisfiable?: never;
872
+ impossible?: never;
873
+ translationAmbiguous?: never;
874
+ tooComplex?: never;
875
+ noTranslations?: never;
876
+ $unknown?: never;
877
+ }
878
+ /**
879
+ * <p>Indicates that the claims are logically false and contradictory to the established rules or premises.</p>
880
+ * @public
881
+ */
882
+ interface InvalidMember {
883
+ valid?: never;
884
+ invalid: GuardrailAutomatedReasoningInvalidFinding;
885
+ satisfiable?: never;
886
+ impossible?: never;
887
+ translationAmbiguous?: never;
888
+ tooComplex?: never;
889
+ noTranslations?: never;
890
+ $unknown?: never;
891
+ }
892
+ /**
893
+ * <p>Indicates that the claims could be either true or false depending on additional assumptions not provided in the input.</p>
894
+ * @public
895
+ */
896
+ interface SatisfiableMember {
897
+ valid?: never;
898
+ invalid?: never;
899
+ satisfiable: GuardrailAutomatedReasoningSatisfiableFinding;
900
+ impossible?: never;
901
+ translationAmbiguous?: never;
902
+ tooComplex?: never;
903
+ noTranslations?: never;
904
+ $unknown?: never;
905
+ }
906
+ /**
907
+ * <p>Indicates that no valid claims can be made due to logical contradictions in the premises or rules.</p>
908
+ * @public
909
+ */
910
+ interface ImpossibleMember {
911
+ valid?: never;
912
+ invalid?: never;
913
+ satisfiable?: never;
914
+ impossible: GuardrailAutomatedReasoningImpossibleFinding;
915
+ translationAmbiguous?: never;
916
+ tooComplex?: never;
917
+ noTranslations?: never;
918
+ $unknown?: never;
919
+ }
920
+ /**
921
+ * <p>Indicates that the input has multiple valid logical interpretations, requiring additional context or clarification.</p>
922
+ * @public
923
+ */
924
+ interface TranslationAmbiguousMember {
925
+ valid?: never;
926
+ invalid?: never;
927
+ satisfiable?: never;
928
+ impossible?: never;
929
+ translationAmbiguous: GuardrailAutomatedReasoningTranslationAmbiguousFinding;
930
+ tooComplex?: never;
931
+ noTranslations?: never;
932
+ $unknown?: never;
933
+ }
934
+ /**
935
+ * <p>Indicates that the input exceeds the processing capacity due to the volume or complexity of the logical information.</p>
936
+ * @public
937
+ */
938
+ interface TooComplexMember {
939
+ valid?: never;
940
+ invalid?: never;
941
+ satisfiable?: never;
942
+ impossible?: never;
943
+ translationAmbiguous?: never;
944
+ tooComplex: GuardrailAutomatedReasoningTooComplexFinding;
945
+ noTranslations?: never;
946
+ $unknown?: never;
947
+ }
948
+ /**
949
+ * <p>Indicates that no relevant logical information could be extracted from the input for validation.</p>
950
+ * @public
951
+ */
952
+ interface NoTranslationsMember {
953
+ valid?: never;
954
+ invalid?: never;
955
+ satisfiable?: never;
956
+ impossible?: never;
957
+ translationAmbiguous?: never;
958
+ tooComplex?: never;
959
+ noTranslations: GuardrailAutomatedReasoningNoTranslationsFinding;
960
+ $unknown?: never;
961
+ }
962
+ /**
963
+ * @public
964
+ */
965
+ interface $UnknownMember {
966
+ valid?: never;
967
+ invalid?: never;
968
+ satisfiable?: never;
969
+ impossible?: never;
970
+ translationAmbiguous?: never;
971
+ tooComplex?: never;
972
+ noTranslations?: never;
973
+ $unknown: [string, any];
974
+ }
975
+ interface Visitor<T> {
976
+ valid: (value: GuardrailAutomatedReasoningValidFinding) => T;
977
+ invalid: (value: GuardrailAutomatedReasoningInvalidFinding) => T;
978
+ satisfiable: (value: GuardrailAutomatedReasoningSatisfiableFinding) => T;
979
+ impossible: (value: GuardrailAutomatedReasoningImpossibleFinding) => T;
980
+ translationAmbiguous: (value: GuardrailAutomatedReasoningTranslationAmbiguousFinding) => T;
981
+ tooComplex: (value: GuardrailAutomatedReasoningTooComplexFinding) => T;
982
+ noTranslations: (value: GuardrailAutomatedReasoningNoTranslationsFinding) => T;
983
+ _: (name: string, value: any) => T;
984
+ }
985
+ const visit: <T>(value: GuardrailAutomatedReasoningFinding, visitor: Visitor<T>) => T;
986
+ }
987
+ /**
988
+ * <p>Contains the results of automated reasoning policy evaluation, including logical findings about the validity of claims made in the input content.</p>
989
+ * @public
990
+ */
991
+ export interface GuardrailAutomatedReasoningPolicyAssessment {
992
+ /**
993
+ * <p>List of logical validation results produced by evaluating the input content against automated reasoning policies.</p>
994
+ * @public
995
+ */
996
+ findings?: GuardrailAutomatedReasoningFinding[] | undefined;
997
+ }
604
998
  /**
605
999
  * @public
606
1000
  * @enum
@@ -853,6 +1247,16 @@ export interface GuardrailUsage {
853
1247
  * @public
854
1248
  */
855
1249
  contentPolicyImageUnits?: number | undefined;
1250
+ /**
1251
+ * <p>The number of text units processed by the automated reasoning policy.</p>
1252
+ * @public
1253
+ */
1254
+ automatedReasoningPolicyUnits?: number | undefined;
1255
+ /**
1256
+ * <p>The number of automated reasoning policies that were processed during the guardrail evaluation.</p>
1257
+ * @public
1258
+ */
1259
+ automatedReasoningPolicies?: number | undefined;
856
1260
  }
857
1261
  /**
858
1262
  * <p>The invocation metrics for the guardrail.</p>
@@ -1178,6 +1582,11 @@ export interface GuardrailAssessment {
1178
1582
  * @public
1179
1583
  */
1180
1584
  contextualGroundingPolicy?: GuardrailContextualGroundingPolicyAssessment | undefined;
1585
+ /**
1586
+ * <p>The automated reasoning policy assessment results, including logical validation findings for the input content.</p>
1587
+ * @public
1588
+ */
1589
+ automatedReasoningPolicy?: GuardrailAutomatedReasoningPolicyAssessment | undefined;
1181
1590
  /**
1182
1591
  * <p>The invocation metrics for the guardrail assessment.</p>
1183
1592
  * @public
@@ -4247,6 +4656,66 @@ export declare const GuardrailContentBlockFilterSensitiveLog: (obj: GuardrailCon
4247
4656
  * @internal
4248
4657
  */
4249
4658
  export declare const ApplyGuardrailRequestFilterSensitiveLog: (obj: ApplyGuardrailRequest) => any;
4659
+ /**
4660
+ * @internal
4661
+ */
4662
+ export declare const GuardrailAutomatedReasoningStatementFilterSensitiveLog: (obj: GuardrailAutomatedReasoningStatement) => any;
4663
+ /**
4664
+ * @internal
4665
+ */
4666
+ export declare const GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog: (obj: GuardrailAutomatedReasoningLogicWarning) => any;
4667
+ /**
4668
+ * @internal
4669
+ */
4670
+ export declare const GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog: (obj: GuardrailAutomatedReasoningInputTextReference) => any;
4671
+ /**
4672
+ * @internal
4673
+ */
4674
+ export declare const GuardrailAutomatedReasoningTranslationFilterSensitiveLog: (obj: GuardrailAutomatedReasoningTranslation) => any;
4675
+ /**
4676
+ * @internal
4677
+ */
4678
+ export declare const GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog: (obj: GuardrailAutomatedReasoningImpossibleFinding) => any;
4679
+ /**
4680
+ * @internal
4681
+ */
4682
+ export declare const GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog: (obj: GuardrailAutomatedReasoningInvalidFinding) => any;
4683
+ /**
4684
+ * @internal
4685
+ */
4686
+ export declare const GuardrailAutomatedReasoningScenarioFilterSensitiveLog: (obj: GuardrailAutomatedReasoningScenario) => any;
4687
+ /**
4688
+ * @internal
4689
+ */
4690
+ export declare const GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog: (obj: GuardrailAutomatedReasoningSatisfiableFinding) => any;
4691
+ /**
4692
+ * @internal
4693
+ */
4694
+ export declare const GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog: (obj: GuardrailAutomatedReasoningTranslationOption) => any;
4695
+ /**
4696
+ * @internal
4697
+ */
4698
+ export declare const GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog: (obj: GuardrailAutomatedReasoningTranslationAmbiguousFinding) => any;
4699
+ /**
4700
+ * @internal
4701
+ */
4702
+ export declare const GuardrailAutomatedReasoningValidFindingFilterSensitiveLog: (obj: GuardrailAutomatedReasoningValidFinding) => any;
4703
+ /**
4704
+ * @internal
4705
+ */
4706
+ export declare const GuardrailAutomatedReasoningFindingFilterSensitiveLog: (obj: GuardrailAutomatedReasoningFinding) => any;
4707
+ /**
4708
+ * @internal
4709
+ */
4710
+ export declare const GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog: (obj: GuardrailAutomatedReasoningPolicyAssessment) => any;
4711
+ /**
4712
+ * @internal
4713
+ */
4714
+ export declare const GuardrailAssessmentFilterSensitiveLog: (obj: GuardrailAssessment) => any;
4715
+ /**
4716
+ * @internal
4717
+ */
4718
+ export declare const ApplyGuardrailResponseFilterSensitiveLog: (obj: ApplyGuardrailResponse) => any;
4250
4719
  /**
4251
4720
  * @internal
4252
4721
  */
@@ -4287,6 +4756,14 @@ export declare const ConverseRequestFilterSensitiveLog: (obj: ConverseRequest) =
4287
4756
  * @internal
4288
4757
  */
4289
4758
  export declare const ConverseOutputFilterSensitiveLog: (obj: ConverseOutput) => any;
4759
+ /**
4760
+ * @internal
4761
+ */
4762
+ export declare const GuardrailTraceAssessmentFilterSensitiveLog: (obj: GuardrailTraceAssessment) => any;
4763
+ /**
4764
+ * @internal
4765
+ */
4766
+ export declare const ConverseTraceFilterSensitiveLog: (obj: ConverseTrace) => any;
4290
4767
  /**
4291
4768
  * @internal
4292
4769
  */
@@ -4307,6 +4784,14 @@ export declare const ContentBlockDeltaFilterSensitiveLog: (obj: ContentBlockDelt
4307
4784
  * @internal
4308
4785
  */
4309
4786
  export declare const ContentBlockDeltaEventFilterSensitiveLog: (obj: ContentBlockDeltaEvent) => any;
4787
+ /**
4788
+ * @internal
4789
+ */
4790
+ export declare const ConverseStreamTraceFilterSensitiveLog: (obj: ConverseStreamTrace) => any;
4791
+ /**
4792
+ * @internal
4793
+ */
4794
+ export declare const ConverseStreamMetadataEventFilterSensitiveLog: (obj: ConverseStreamMetadataEvent) => any;
4310
4795
  /**
4311
4796
  * @internal
4312
4797
  */