aws-sdk-bedrockruntime 1.54.0 → 1.55.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.
@@ -29,6 +29,7 @@ module Aws::BedrockRuntime
29
29
  AsyncInvokeSummaries = Shapes::ListShape.new(name: 'AsyncInvokeSummaries')
30
30
  AsyncInvokeSummary = Shapes::StructureShape.new(name: 'AsyncInvokeSummary')
31
31
  AutoToolChoice = Shapes::StructureShape.new(name: 'AutoToolChoice')
32
+ AutomatedReasoningRuleIdentifier = Shapes::StringShape.new(name: 'AutomatedReasoningRuleIdentifier')
32
33
  BidirectionalInputPayloadPart = Shapes::StructureShape.new(name: 'BidirectionalInputPayloadPart')
33
34
  BidirectionalOutputPayloadPart = Shapes::StructureShape.new(name: 'BidirectionalOutputPayloadPart')
34
35
  Blob = Shapes::BlobShape.new(name: 'Blob')
@@ -100,6 +101,36 @@ module Aws::BedrockRuntime
100
101
  GuardrailAssessmentList = Shapes::ListShape.new(name: 'GuardrailAssessmentList')
101
102
  GuardrailAssessmentListMap = Shapes::MapShape.new(name: 'GuardrailAssessmentListMap')
102
103
  GuardrailAssessmentMap = Shapes::MapShape.new(name: 'GuardrailAssessmentMap')
104
+ GuardrailAutomatedReasoningDifferenceScenarioList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningDifferenceScenarioList')
105
+ GuardrailAutomatedReasoningFinding = Shapes::UnionShape.new(name: 'GuardrailAutomatedReasoningFinding')
106
+ GuardrailAutomatedReasoningFindingList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningFindingList')
107
+ GuardrailAutomatedReasoningImpossibleFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningImpossibleFinding')
108
+ GuardrailAutomatedReasoningInputTextReference = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningInputTextReference')
109
+ GuardrailAutomatedReasoningInputTextReferenceList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningInputTextReferenceList')
110
+ GuardrailAutomatedReasoningInvalidFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningInvalidFinding')
111
+ GuardrailAutomatedReasoningLogicWarning = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningLogicWarning')
112
+ GuardrailAutomatedReasoningLogicWarningType = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningLogicWarningType')
113
+ GuardrailAutomatedReasoningNoTranslationsFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningNoTranslationsFinding')
114
+ GuardrailAutomatedReasoningPoliciesProcessed = Shapes::IntegerShape.new(name: 'GuardrailAutomatedReasoningPoliciesProcessed')
115
+ GuardrailAutomatedReasoningPolicyAssessment = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningPolicyAssessment')
116
+ GuardrailAutomatedReasoningPolicyUnitsProcessed = Shapes::IntegerShape.new(name: 'GuardrailAutomatedReasoningPolicyUnitsProcessed')
117
+ GuardrailAutomatedReasoningPolicyVersionArn = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningPolicyVersionArn')
118
+ GuardrailAutomatedReasoningRule = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningRule')
119
+ GuardrailAutomatedReasoningRuleList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningRuleList')
120
+ GuardrailAutomatedReasoningSatisfiableFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningSatisfiableFinding')
121
+ GuardrailAutomatedReasoningScenario = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningScenario')
122
+ GuardrailAutomatedReasoningStatement = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningStatement')
123
+ GuardrailAutomatedReasoningStatementList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningStatementList')
124
+ GuardrailAutomatedReasoningStatementLogicContent = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningStatementLogicContent')
125
+ GuardrailAutomatedReasoningStatementNaturalLanguageContent = Shapes::StringShape.new(name: 'GuardrailAutomatedReasoningStatementNaturalLanguageContent')
126
+ GuardrailAutomatedReasoningTooComplexFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTooComplexFinding')
127
+ GuardrailAutomatedReasoningTranslation = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTranslation')
128
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTranslationAmbiguousFinding')
129
+ GuardrailAutomatedReasoningTranslationConfidence = Shapes::FloatShape.new(name: 'GuardrailAutomatedReasoningTranslationConfidence')
130
+ GuardrailAutomatedReasoningTranslationList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningTranslationList')
131
+ GuardrailAutomatedReasoningTranslationOption = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningTranslationOption')
132
+ GuardrailAutomatedReasoningTranslationOptionList = Shapes::ListShape.new(name: 'GuardrailAutomatedReasoningTranslationOptionList')
133
+ GuardrailAutomatedReasoningValidFinding = Shapes::StructureShape.new(name: 'GuardrailAutomatedReasoningValidFinding')
103
134
  GuardrailConfiguration = Shapes::StructureShape.new(name: 'GuardrailConfiguration')
104
135
  GuardrailContentBlock = Shapes::UnionShape.new(name: 'GuardrailContentBlock')
105
136
  GuardrailContentBlockList = Shapes::ListShape.new(name: 'GuardrailContentBlockList')
@@ -590,6 +621,7 @@ module Aws::BedrockRuntime
590
621
  GuardrailAssessment.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicyAssessment, location_name: "wordPolicy"))
591
622
  GuardrailAssessment.add_member(:sensitive_information_policy, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyAssessment, location_name: "sensitiveInformationPolicy"))
592
623
  GuardrailAssessment.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyAssessment, location_name: "contextualGroundingPolicy"))
624
+ GuardrailAssessment.add_member(:automated_reasoning_policy, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyAssessment, location_name: "automatedReasoningPolicy"))
593
625
  GuardrailAssessment.add_member(:invocation_metrics, Shapes::ShapeRef.new(shape: GuardrailInvocationMetrics, location_name: "invocationMetrics"))
594
626
  GuardrailAssessment.struct_class = Types::GuardrailAssessment
595
627
 
@@ -601,6 +633,100 @@ module Aws::BedrockRuntime
601
633
  GuardrailAssessmentMap.key = Shapes::ShapeRef.new(shape: String)
602
634
  GuardrailAssessmentMap.value = Shapes::ShapeRef.new(shape: GuardrailAssessment)
603
635
 
636
+ GuardrailAutomatedReasoningDifferenceScenarioList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario)
637
+
638
+ GuardrailAutomatedReasoningFinding.add_member(:valid, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningValidFinding, location_name: "valid"))
639
+ GuardrailAutomatedReasoningFinding.add_member(:invalid, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInvalidFinding, location_name: "invalid"))
640
+ GuardrailAutomatedReasoningFinding.add_member(:satisfiable, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningSatisfiableFinding, location_name: "satisfiable"))
641
+ GuardrailAutomatedReasoningFinding.add_member(:impossible, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningImpossibleFinding, location_name: "impossible"))
642
+ GuardrailAutomatedReasoningFinding.add_member(:translation_ambiguous, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationAmbiguousFinding, location_name: "translationAmbiguous"))
643
+ GuardrailAutomatedReasoningFinding.add_member(:too_complex, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTooComplexFinding, location_name: "tooComplex"))
644
+ GuardrailAutomatedReasoningFinding.add_member(:no_translations, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningNoTranslationsFinding, location_name: "noTranslations"))
645
+ GuardrailAutomatedReasoningFinding.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
646
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:valid, Types::GuardrailAutomatedReasoningFinding::Valid)
647
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:invalid, Types::GuardrailAutomatedReasoningFinding::Invalid)
648
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:satisfiable, Types::GuardrailAutomatedReasoningFinding::Satisfiable)
649
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:impossible, Types::GuardrailAutomatedReasoningFinding::Impossible)
650
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:translation_ambiguous, Types::GuardrailAutomatedReasoningFinding::TranslationAmbiguous)
651
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:too_complex, Types::GuardrailAutomatedReasoningFinding::TooComplex)
652
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:no_translations, Types::GuardrailAutomatedReasoningFinding::NoTranslations)
653
+ GuardrailAutomatedReasoningFinding.add_member_subclass(:unknown, Types::GuardrailAutomatedReasoningFinding::Unknown)
654
+ GuardrailAutomatedReasoningFinding.struct_class = Types::GuardrailAutomatedReasoningFinding
655
+
656
+ GuardrailAutomatedReasoningFindingList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningFinding)
657
+
658
+ GuardrailAutomatedReasoningImpossibleFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
659
+ GuardrailAutomatedReasoningImpossibleFinding.add_member(:contradicting_rules, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRuleList, location_name: "contradictingRules"))
660
+ GuardrailAutomatedReasoningImpossibleFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
661
+ GuardrailAutomatedReasoningImpossibleFinding.struct_class = Types::GuardrailAutomatedReasoningImpossibleFinding
662
+
663
+ GuardrailAutomatedReasoningInputTextReference.add_member(:text, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementNaturalLanguageContent, location_name: "text"))
664
+ GuardrailAutomatedReasoningInputTextReference.struct_class = Types::GuardrailAutomatedReasoningInputTextReference
665
+
666
+ GuardrailAutomatedReasoningInputTextReferenceList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInputTextReference)
667
+
668
+ GuardrailAutomatedReasoningInvalidFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
669
+ GuardrailAutomatedReasoningInvalidFinding.add_member(:contradicting_rules, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRuleList, location_name: "contradictingRules"))
670
+ GuardrailAutomatedReasoningInvalidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
671
+ GuardrailAutomatedReasoningInvalidFinding.struct_class = Types::GuardrailAutomatedReasoningInvalidFinding
672
+
673
+ GuardrailAutomatedReasoningLogicWarning.add_member(:type, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarningType, location_name: "type"))
674
+ GuardrailAutomatedReasoningLogicWarning.add_member(:premises, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "premises"))
675
+ GuardrailAutomatedReasoningLogicWarning.add_member(:claims, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "claims"))
676
+ GuardrailAutomatedReasoningLogicWarning.struct_class = Types::GuardrailAutomatedReasoningLogicWarning
677
+
678
+ GuardrailAutomatedReasoningNoTranslationsFinding.struct_class = Types::GuardrailAutomatedReasoningNoTranslationsFinding
679
+
680
+ GuardrailAutomatedReasoningPolicyAssessment.add_member(:findings, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningFindingList, location_name: "findings"))
681
+ GuardrailAutomatedReasoningPolicyAssessment.struct_class = Types::GuardrailAutomatedReasoningPolicyAssessment
682
+
683
+ GuardrailAutomatedReasoningRule.add_member(:identifier, Shapes::ShapeRef.new(shape: AutomatedReasoningRuleIdentifier, location_name: "identifier"))
684
+ GuardrailAutomatedReasoningRule.add_member(:policy_version_arn, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyVersionArn, location_name: "policyVersionArn"))
685
+ GuardrailAutomatedReasoningRule.struct_class = Types::GuardrailAutomatedReasoningRule
686
+
687
+ GuardrailAutomatedReasoningRuleList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRule)
688
+
689
+ GuardrailAutomatedReasoningSatisfiableFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
690
+ GuardrailAutomatedReasoningSatisfiableFinding.add_member(:claims_true_scenario, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario, location_name: "claimsTrueScenario"))
691
+ GuardrailAutomatedReasoningSatisfiableFinding.add_member(:claims_false_scenario, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario, location_name: "claimsFalseScenario"))
692
+ GuardrailAutomatedReasoningSatisfiableFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
693
+ GuardrailAutomatedReasoningSatisfiableFinding.struct_class = Types::GuardrailAutomatedReasoningSatisfiableFinding
694
+
695
+ GuardrailAutomatedReasoningScenario.add_member(:statements, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "statements"))
696
+ GuardrailAutomatedReasoningScenario.struct_class = Types::GuardrailAutomatedReasoningScenario
697
+
698
+ GuardrailAutomatedReasoningStatement.add_member(:logic, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementLogicContent, location_name: "logic"))
699
+ GuardrailAutomatedReasoningStatement.add_member(:natural_language, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementNaturalLanguageContent, location_name: "naturalLanguage"))
700
+ GuardrailAutomatedReasoningStatement.struct_class = Types::GuardrailAutomatedReasoningStatement
701
+
702
+ GuardrailAutomatedReasoningStatementList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatement)
703
+
704
+ GuardrailAutomatedReasoningTooComplexFinding.struct_class = Types::GuardrailAutomatedReasoningTooComplexFinding
705
+
706
+ GuardrailAutomatedReasoningTranslation.add_member(:premises, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "premises"))
707
+ GuardrailAutomatedReasoningTranslation.add_member(:claims, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningStatementList, location_name: "claims"))
708
+ GuardrailAutomatedReasoningTranslation.add_member(:untranslated_premises, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInputTextReferenceList, location_name: "untranslatedPremises"))
709
+ GuardrailAutomatedReasoningTranslation.add_member(:untranslated_claims, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningInputTextReferenceList, location_name: "untranslatedClaims"))
710
+ GuardrailAutomatedReasoningTranslation.add_member(:confidence, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationConfidence, location_name: "confidence"))
711
+ GuardrailAutomatedReasoningTranslation.struct_class = Types::GuardrailAutomatedReasoningTranslation
712
+
713
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding.add_member(:options, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationOptionList, location_name: "options"))
714
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding.add_member(:difference_scenarios, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningDifferenceScenarioList, location_name: "differenceScenarios"))
715
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding.struct_class = Types::GuardrailAutomatedReasoningTranslationAmbiguousFinding
716
+
717
+ GuardrailAutomatedReasoningTranslationList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation)
718
+
719
+ GuardrailAutomatedReasoningTranslationOption.add_member(:translations, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationList, location_name: "translations"))
720
+ GuardrailAutomatedReasoningTranslationOption.struct_class = Types::GuardrailAutomatedReasoningTranslationOption
721
+
722
+ GuardrailAutomatedReasoningTranslationOptionList.member = Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslationOption)
723
+
724
+ GuardrailAutomatedReasoningValidFinding.add_member(:translation, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningTranslation, location_name: "translation"))
725
+ GuardrailAutomatedReasoningValidFinding.add_member(:claims_true_scenario, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningScenario, location_name: "claimsTrueScenario"))
726
+ GuardrailAutomatedReasoningValidFinding.add_member(:supporting_rules, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningRuleList, location_name: "supportingRules"))
727
+ GuardrailAutomatedReasoningValidFinding.add_member(:logic_warning, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningLogicWarning, location_name: "logicWarning"))
728
+ GuardrailAutomatedReasoningValidFinding.struct_class = Types::GuardrailAutomatedReasoningValidFinding
729
+
604
730
  GuardrailConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location_name: "guardrailIdentifier"))
605
731
  GuardrailConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "guardrailVersion"))
606
732
  GuardrailConfiguration.add_member(:trace, Shapes::ShapeRef.new(shape: GuardrailTrace, location_name: "trace"))
@@ -768,6 +894,8 @@ module Aws::BedrockRuntime
768
894
  GuardrailUsage.add_member(:sensitive_information_policy_free_units, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyFreeUnitsProcessed, required: true, location_name: "sensitiveInformationPolicyFreeUnits"))
769
895
  GuardrailUsage.add_member(:contextual_grounding_policy_units, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyUnitsProcessed, required: true, location_name: "contextualGroundingPolicyUnits"))
770
896
  GuardrailUsage.add_member(:content_policy_image_units, Shapes::ShapeRef.new(shape: GuardrailContentPolicyImageUnitsProcessed, location_name: "contentPolicyImageUnits"))
897
+ GuardrailUsage.add_member(:automated_reasoning_policy_units, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPolicyUnitsProcessed, location_name: "automatedReasoningPolicyUnits"))
898
+ GuardrailUsage.add_member(:automated_reasoning_policies, Shapes::ShapeRef.new(shape: GuardrailAutomatedReasoningPoliciesProcessed, location_name: "automatedReasoningPolicies"))
771
899
  GuardrailUsage.struct_class = Types::GuardrailUsage
772
900
 
773
901
  GuardrailWordPolicyAssessment.add_member(:custom_words, Shapes::ShapeRef.new(shape: GuardrailCustomWordList, required: true, location_name: "customWords"))
@@ -1490,6 +1490,11 @@ module Aws::BedrockRuntime
1490
1490
  # The contextual grounding policy used for the guardrail assessment.
1491
1491
  # @return [Types::GuardrailContextualGroundingPolicyAssessment]
1492
1492
  #
1493
+ # @!attribute [rw] automated_reasoning_policy
1494
+ # The automated reasoning policy assessment results, including logical
1495
+ # validation findings for the input content.
1496
+ # @return [Types::GuardrailAutomatedReasoningPolicyAssessment]
1497
+ #
1493
1498
  # @!attribute [rw] invocation_metrics
1494
1499
  # The invocation metrics for the guardrail assessment.
1495
1500
  # @return [Types::GuardrailInvocationMetrics]
@@ -1502,11 +1507,410 @@ module Aws::BedrockRuntime
1502
1507
  :word_policy,
1503
1508
  :sensitive_information_policy,
1504
1509
  :contextual_grounding_policy,
1510
+ :automated_reasoning_policy,
1505
1511
  :invocation_metrics)
1506
1512
  SENSITIVE = []
1507
1513
  include Aws::Structure
1508
1514
  end
1509
1515
 
1516
+ # Represents a logical validation result from automated reasoning policy
1517
+ # evaluation. The finding indicates whether claims in the input are
1518
+ # logically valid, invalid, satisfiable, impossible, or have other
1519
+ # logical issues.
1520
+ #
1521
+ # @note GuardrailAutomatedReasoningFinding is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of GuardrailAutomatedReasoningFinding corresponding to the set member.
1522
+ #
1523
+ # @!attribute [rw] valid
1524
+ # Indicates that the claims are definitively true and logically
1525
+ # implied by the premises, with no possible alternative
1526
+ # interpretations.
1527
+ # @return [Types::GuardrailAutomatedReasoningValidFinding]
1528
+ #
1529
+ # @!attribute [rw] invalid
1530
+ # Indicates that the claims are logically false and contradictory to
1531
+ # the established rules or premises.
1532
+ # @return [Types::GuardrailAutomatedReasoningInvalidFinding]
1533
+ #
1534
+ # @!attribute [rw] satisfiable
1535
+ # Indicates that the claims could be either true or false depending on
1536
+ # additional assumptions not provided in the input.
1537
+ # @return [Types::GuardrailAutomatedReasoningSatisfiableFinding]
1538
+ #
1539
+ # @!attribute [rw] impossible
1540
+ # Indicates that no valid claims can be made due to logical
1541
+ # contradictions in the premises or rules.
1542
+ # @return [Types::GuardrailAutomatedReasoningImpossibleFinding]
1543
+ #
1544
+ # @!attribute [rw] translation_ambiguous
1545
+ # Indicates that the input has multiple valid logical interpretations,
1546
+ # requiring additional context or clarification.
1547
+ # @return [Types::GuardrailAutomatedReasoningTranslationAmbiguousFinding]
1548
+ #
1549
+ # @!attribute [rw] too_complex
1550
+ # Indicates that the input exceeds the processing capacity due to the
1551
+ # volume or complexity of the logical information.
1552
+ # @return [Types::GuardrailAutomatedReasoningTooComplexFinding]
1553
+ #
1554
+ # @!attribute [rw] no_translations
1555
+ # Indicates that no relevant logical information could be extracted
1556
+ # from the input for validation.
1557
+ # @return [Types::GuardrailAutomatedReasoningNoTranslationsFinding]
1558
+ #
1559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningFinding AWS API Documentation
1560
+ #
1561
+ class GuardrailAutomatedReasoningFinding < Struct.new(
1562
+ :valid,
1563
+ :invalid,
1564
+ :satisfiable,
1565
+ :impossible,
1566
+ :translation_ambiguous,
1567
+ :too_complex,
1568
+ :no_translations,
1569
+ :unknown)
1570
+ SENSITIVE = []
1571
+ include Aws::Structure
1572
+ include Aws::Structure::Union
1573
+
1574
+ class Valid < GuardrailAutomatedReasoningFinding; end
1575
+ class Invalid < GuardrailAutomatedReasoningFinding; end
1576
+ class Satisfiable < GuardrailAutomatedReasoningFinding; end
1577
+ class Impossible < GuardrailAutomatedReasoningFinding; end
1578
+ class TranslationAmbiguous < GuardrailAutomatedReasoningFinding; end
1579
+ class TooComplex < GuardrailAutomatedReasoningFinding; end
1580
+ class NoTranslations < GuardrailAutomatedReasoningFinding; end
1581
+ class Unknown < GuardrailAutomatedReasoningFinding; end
1582
+ end
1583
+
1584
+ # Indicates that no valid claims can be made due to logical
1585
+ # contradictions in the premises or rules.
1586
+ #
1587
+ # @!attribute [rw] translation
1588
+ # The logical translation of the input that this finding evaluates.
1589
+ # @return [Types::GuardrailAutomatedReasoningTranslation]
1590
+ #
1591
+ # @!attribute [rw] contradicting_rules
1592
+ # The automated reasoning policy rules that contradict the claims
1593
+ # and/or premises in the input.
1594
+ # @return [Array<Types::GuardrailAutomatedReasoningRule>]
1595
+ #
1596
+ # @!attribute [rw] logic_warning
1597
+ # Indication of a logic issue with the translation without needing to
1598
+ # consider the automated reasoning policy rules.
1599
+ # @return [Types::GuardrailAutomatedReasoningLogicWarning]
1600
+ #
1601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningImpossibleFinding AWS API Documentation
1602
+ #
1603
+ class GuardrailAutomatedReasoningImpossibleFinding < Struct.new(
1604
+ :translation,
1605
+ :contradicting_rules,
1606
+ :logic_warning)
1607
+ SENSITIVE = []
1608
+ include Aws::Structure
1609
+ end
1610
+
1611
+ # References a portion of the original input text that corresponds to
1612
+ # logical elements.
1613
+ #
1614
+ # @!attribute [rw] text
1615
+ # The specific text from the original input that this reference points
1616
+ # to.
1617
+ # @return [String]
1618
+ #
1619
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningInputTextReference AWS API Documentation
1620
+ #
1621
+ class GuardrailAutomatedReasoningInputTextReference < Struct.new(
1622
+ :text)
1623
+ SENSITIVE = [:text]
1624
+ include Aws::Structure
1625
+ end
1626
+
1627
+ # Indicates that the claims are logically false and contradictory to the
1628
+ # established rules or premises.
1629
+ #
1630
+ # @!attribute [rw] translation
1631
+ # The logical translation of the input that this finding invalidates.
1632
+ # @return [Types::GuardrailAutomatedReasoningTranslation]
1633
+ #
1634
+ # @!attribute [rw] contradicting_rules
1635
+ # The automated reasoning policy rules that contradict the claims in
1636
+ # the input.
1637
+ # @return [Array<Types::GuardrailAutomatedReasoningRule>]
1638
+ #
1639
+ # @!attribute [rw] logic_warning
1640
+ # Indication of a logic issue with the translation without needing to
1641
+ # consider the automated reasoning policy rules.
1642
+ # @return [Types::GuardrailAutomatedReasoningLogicWarning]
1643
+ #
1644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningInvalidFinding AWS API Documentation
1645
+ #
1646
+ class GuardrailAutomatedReasoningInvalidFinding < Struct.new(
1647
+ :translation,
1648
+ :contradicting_rules,
1649
+ :logic_warning)
1650
+ SENSITIVE = []
1651
+ include Aws::Structure
1652
+ end
1653
+
1654
+ # Identifies logical issues in the translated statements that exist
1655
+ # independent of any policy rules, such as statements that are always
1656
+ # true or always false.
1657
+ #
1658
+ # @!attribute [rw] type
1659
+ # The category of the detected logical issue, such as statements that
1660
+ # are always true or always false.
1661
+ # @return [String]
1662
+ #
1663
+ # @!attribute [rw] premises
1664
+ # The logical statements that serve as premises under which the claims
1665
+ # are validated.
1666
+ # @return [Array<Types::GuardrailAutomatedReasoningStatement>]
1667
+ #
1668
+ # @!attribute [rw] claims
1669
+ # The logical statements that are validated while assuming the policy
1670
+ # and premises.
1671
+ # @return [Array<Types::GuardrailAutomatedReasoningStatement>]
1672
+ #
1673
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningLogicWarning AWS API Documentation
1674
+ #
1675
+ class GuardrailAutomatedReasoningLogicWarning < Struct.new(
1676
+ :type,
1677
+ :premises,
1678
+ :claims)
1679
+ SENSITIVE = []
1680
+ include Aws::Structure
1681
+ end
1682
+
1683
+ # Indicates that no relevant logical information could be extracted from
1684
+ # the input for validation.
1685
+ #
1686
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningNoTranslationsFinding AWS API Documentation
1687
+ #
1688
+ class GuardrailAutomatedReasoningNoTranslationsFinding < Aws::EmptyStructure; end
1689
+
1690
+ # Contains the results of automated reasoning policy evaluation,
1691
+ # including logical findings about the validity of claims made in the
1692
+ # input content.
1693
+ #
1694
+ # @!attribute [rw] findings
1695
+ # List of logical validation results produced by evaluating the input
1696
+ # content against automated reasoning policies.
1697
+ # @return [Array<Types::GuardrailAutomatedReasoningFinding>]
1698
+ #
1699
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningPolicyAssessment AWS API Documentation
1700
+ #
1701
+ class GuardrailAutomatedReasoningPolicyAssessment < Struct.new(
1702
+ :findings)
1703
+ SENSITIVE = []
1704
+ include Aws::Structure
1705
+ end
1706
+
1707
+ # References a specific automated reasoning policy rule that was applied
1708
+ # during evaluation.
1709
+ #
1710
+ # @!attribute [rw] identifier
1711
+ # The unique identifier of the automated reasoning rule.
1712
+ # @return [String]
1713
+ #
1714
+ # @!attribute [rw] policy_version_arn
1715
+ # The ARN of the automated reasoning policy version that contains this
1716
+ # rule.
1717
+ # @return [String]
1718
+ #
1719
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningRule AWS API Documentation
1720
+ #
1721
+ class GuardrailAutomatedReasoningRule < Struct.new(
1722
+ :identifier,
1723
+ :policy_version_arn)
1724
+ SENSITIVE = []
1725
+ include Aws::Structure
1726
+ end
1727
+
1728
+ # Indicates that the claims could be either true or false depending on
1729
+ # additional assumptions not provided in the input.
1730
+ #
1731
+ # @!attribute [rw] translation
1732
+ # The logical translation of the input that this finding evaluates.
1733
+ # @return [Types::GuardrailAutomatedReasoningTranslation]
1734
+ #
1735
+ # @!attribute [rw] claims_true_scenario
1736
+ # An example scenario demonstrating how the claims could be logically
1737
+ # true.
1738
+ # @return [Types::GuardrailAutomatedReasoningScenario]
1739
+ #
1740
+ # @!attribute [rw] claims_false_scenario
1741
+ # An example scenario demonstrating how the claims could be logically
1742
+ # false.
1743
+ # @return [Types::GuardrailAutomatedReasoningScenario]
1744
+ #
1745
+ # @!attribute [rw] logic_warning
1746
+ # Indication of a logic issue with the translation without needing to
1747
+ # consider the automated reasoning policy rules.
1748
+ # @return [Types::GuardrailAutomatedReasoningLogicWarning]
1749
+ #
1750
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningSatisfiableFinding AWS API Documentation
1751
+ #
1752
+ class GuardrailAutomatedReasoningSatisfiableFinding < Struct.new(
1753
+ :translation,
1754
+ :claims_true_scenario,
1755
+ :claims_false_scenario,
1756
+ :logic_warning)
1757
+ SENSITIVE = []
1758
+ include Aws::Structure
1759
+ end
1760
+
1761
+ # Represents a logical scenario where claims can be evaluated as true or
1762
+ # false, containing specific logical assignments.
1763
+ #
1764
+ # @!attribute [rw] statements
1765
+ # List of logical assignments and statements that define this
1766
+ # scenario.
1767
+ # @return [Array<Types::GuardrailAutomatedReasoningStatement>]
1768
+ #
1769
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningScenario AWS API Documentation
1770
+ #
1771
+ class GuardrailAutomatedReasoningScenario < Struct.new(
1772
+ :statements)
1773
+ SENSITIVE = []
1774
+ include Aws::Structure
1775
+ end
1776
+
1777
+ # A logical statement that includes both formal logic representation and
1778
+ # natural language explanation.
1779
+ #
1780
+ # @!attribute [rw] logic
1781
+ # The formal logical representation of the statement.
1782
+ # @return [String]
1783
+ #
1784
+ # @!attribute [rw] natural_language
1785
+ # The natural language explanation of the logical statement.
1786
+ # @return [String]
1787
+ #
1788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningStatement AWS API Documentation
1789
+ #
1790
+ class GuardrailAutomatedReasoningStatement < Struct.new(
1791
+ :logic,
1792
+ :natural_language)
1793
+ SENSITIVE = [:logic, :natural_language]
1794
+ include Aws::Structure
1795
+ end
1796
+
1797
+ # Indicates that the input exceeds the processing capacity due to the
1798
+ # volume or complexity of the logical information.
1799
+ #
1800
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningTooComplexFinding AWS API Documentation
1801
+ #
1802
+ class GuardrailAutomatedReasoningTooComplexFinding < Aws::EmptyStructure; end
1803
+
1804
+ # Contains the logical translation of natural language input into formal
1805
+ # logical statements, including premises, claims, and confidence scores.
1806
+ #
1807
+ # @!attribute [rw] premises
1808
+ # The logical statements that serve as the foundation or assumptions
1809
+ # for the claims.
1810
+ # @return [Array<Types::GuardrailAutomatedReasoningStatement>]
1811
+ #
1812
+ # @!attribute [rw] claims
1813
+ # The logical statements that are being validated against the premises
1814
+ # and policy rules.
1815
+ # @return [Array<Types::GuardrailAutomatedReasoningStatement>]
1816
+ #
1817
+ # @!attribute [rw] untranslated_premises
1818
+ # References to portions of the original input text that correspond to
1819
+ # the premises but could not be fully translated.
1820
+ # @return [Array<Types::GuardrailAutomatedReasoningInputTextReference>]
1821
+ #
1822
+ # @!attribute [rw] untranslated_claims
1823
+ # References to portions of the original input text that correspond to
1824
+ # the claims but could not be fully translated.
1825
+ # @return [Array<Types::GuardrailAutomatedReasoningInputTextReference>]
1826
+ #
1827
+ # @!attribute [rw] confidence
1828
+ # A confidence score between 0 and 1 indicating how certain the system
1829
+ # is about the logical translation.
1830
+ # @return [Float]
1831
+ #
1832
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningTranslation AWS API Documentation
1833
+ #
1834
+ class GuardrailAutomatedReasoningTranslation < Struct.new(
1835
+ :premises,
1836
+ :claims,
1837
+ :untranslated_premises,
1838
+ :untranslated_claims,
1839
+ :confidence)
1840
+ SENSITIVE = []
1841
+ include Aws::Structure
1842
+ end
1843
+
1844
+ # Indicates that the input has multiple valid logical interpretations,
1845
+ # requiring additional context or clarification.
1846
+ #
1847
+ # @!attribute [rw] options
1848
+ # Different logical interpretations that were detected during
1849
+ # translation of the input.
1850
+ # @return [Array<Types::GuardrailAutomatedReasoningTranslationOption>]
1851
+ #
1852
+ # @!attribute [rw] difference_scenarios
1853
+ # Scenarios showing how the different translation options differ in
1854
+ # meaning.
1855
+ # @return [Array<Types::GuardrailAutomatedReasoningScenario>]
1856
+ #
1857
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningTranslationAmbiguousFinding AWS API Documentation
1858
+ #
1859
+ class GuardrailAutomatedReasoningTranslationAmbiguousFinding < Struct.new(
1860
+ :options,
1861
+ :difference_scenarios)
1862
+ SENSITIVE = []
1863
+ include Aws::Structure
1864
+ end
1865
+
1866
+ # Represents one possible logical interpretation of ambiguous input
1867
+ # content.
1868
+ #
1869
+ # @!attribute [rw] translations
1870
+ # Example translations that provide this possible interpretation of
1871
+ # the input.
1872
+ # @return [Array<Types::GuardrailAutomatedReasoningTranslation>]
1873
+ #
1874
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningTranslationOption AWS API Documentation
1875
+ #
1876
+ class GuardrailAutomatedReasoningTranslationOption < Struct.new(
1877
+ :translations)
1878
+ SENSITIVE = []
1879
+ include Aws::Structure
1880
+ end
1881
+
1882
+ # Indicates that the claims are definitively true and logically implied
1883
+ # by the premises, with no possible alternative interpretations.
1884
+ #
1885
+ # @!attribute [rw] translation
1886
+ # The logical translation of the input that this finding validates.
1887
+ # @return [Types::GuardrailAutomatedReasoningTranslation]
1888
+ #
1889
+ # @!attribute [rw] claims_true_scenario
1890
+ # An example scenario demonstrating how the claims are logically true.
1891
+ # @return [Types::GuardrailAutomatedReasoningScenario]
1892
+ #
1893
+ # @!attribute [rw] supporting_rules
1894
+ # The automated reasoning policy rules that support why this result is
1895
+ # considered valid.
1896
+ # @return [Array<Types::GuardrailAutomatedReasoningRule>]
1897
+ #
1898
+ # @!attribute [rw] logic_warning
1899
+ # Indication of a logic issue with the translation without needing to
1900
+ # consider the automated reasoning policy rules.
1901
+ # @return [Types::GuardrailAutomatedReasoningLogicWarning]
1902
+ #
1903
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailAutomatedReasoningValidFinding AWS API Documentation
1904
+ #
1905
+ class GuardrailAutomatedReasoningValidFinding < Struct.new(
1906
+ :translation,
1907
+ :claims_true_scenario,
1908
+ :supporting_rules,
1909
+ :logic_warning)
1910
+ SENSITIVE = []
1911
+ include Aws::Structure
1912
+ end
1913
+
1510
1914
  # Configuration information for a guardrail that you use with the
1511
1915
  # [Converse][1] operation.
1512
1916
  #
@@ -2208,6 +2612,16 @@ module Aws::BedrockRuntime
2208
2612
  # The content policy image units processed by the guardrail.
2209
2613
  # @return [Integer]
2210
2614
  #
2615
+ # @!attribute [rw] automated_reasoning_policy_units
2616
+ # The number of text units processed by the automated reasoning
2617
+ # policy.
2618
+ # @return [Integer]
2619
+ #
2620
+ # @!attribute [rw] automated_reasoning_policies
2621
+ # The number of automated reasoning policies that were processed
2622
+ # during the guardrail evaluation.
2623
+ # @return [Integer]
2624
+ #
2211
2625
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-runtime-2023-09-30/GuardrailUsage AWS API Documentation
2212
2626
  #
2213
2627
  class GuardrailUsage < Struct.new(
@@ -2217,7 +2631,9 @@ module Aws::BedrockRuntime
2217
2631
  :sensitive_information_policy_units,
2218
2632
  :sensitive_information_policy_free_units,
2219
2633
  :contextual_grounding_policy_units,
2220
- :content_policy_image_units)
2634
+ :content_policy_image_units,
2635
+ :automated_reasoning_policy_units,
2636
+ :automated_reasoning_policies)
2221
2637
  SENSITIVE = []
2222
2638
  include Aws::Structure
2223
2639
  end
@@ -57,7 +57,7 @@ module Aws::BedrockRuntime
57
57
  autoload :AsyncClient, 'aws-sdk-bedrockruntime/async_client'
58
58
  autoload :EventStreams, 'aws-sdk-bedrockruntime/event_streams'
59
59
 
60
- GEM_VERSION = '1.54.0'
60
+ GEM_VERSION = '1.55.0'
61
61
 
62
62
  end
63
63