Skip to content

GuardrailAutomatedReasoningFinding module-attribute

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.

Union Members

GuardrailAutomatedReasoningFindingValid dataclass

Contains the result when the automated reasoning evaluation determines that the claims in the input are logically valid and definitively true based on the provided premises and policy rules.

Source code in src/aws_sdk_bedrock_runtime/models.py
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
@dataclass
class GuardrailAutomatedReasoningFindingValid:
    """Contains the result when the automated reasoning evaluation determines
    that the claims in the input are logically valid and definitively true
    based on the provided premises and policy rules.
    """

    value: GuardrailAutomatedReasoningValidFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members["valid"], self.value
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningValidFinding.deserialize(deserializer)
        )

GuardrailAutomatedReasoningFindingInvalid dataclass

Contains the result when the automated reasoning evaluation determines that the claims in the input are logically invalid and contradict the established premises or policy rules.

Source code in src/aws_sdk_bedrock_runtime/models.py
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
@dataclass
class GuardrailAutomatedReasoningFindingInvalid:
    """Contains the result when the automated reasoning evaluation determines
    that the claims in the input are logically invalid and contradict the
    established premises or policy rules.
    """

    value: GuardrailAutomatedReasoningInvalidFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members["invalid"], self.value
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningInvalidFinding.deserialize(deserializer)
        )

GuardrailAutomatedReasoningFindingSatisfiable dataclass

Contains the result when the automated reasoning evaluation determines that the claims in the input could be either true or false depending on additional assumptions not provided in the input context.

Source code in src/aws_sdk_bedrock_runtime/models.py
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
@dataclass
class GuardrailAutomatedReasoningFindingSatisfiable:
    """Contains the result when the automated reasoning evaluation determines
    that the claims in the input could be either true or false depending on
    additional assumptions not provided in the input context.
    """

    value: GuardrailAutomatedReasoningSatisfiableFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members["satisfiable"],
            self.value,
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningSatisfiableFinding.deserialize(
                deserializer
            )
        )

GuardrailAutomatedReasoningFindingImpossible dataclass

Contains the result when the automated reasoning evaluation determines that no valid logical conclusions can be drawn due to contradictions in the premises or policy rules themselves.

Source code in src/aws_sdk_bedrock_runtime/models.py
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
@dataclass
class GuardrailAutomatedReasoningFindingImpossible:
    """Contains the result when the automated reasoning evaluation determines
    that no valid logical conclusions can be drawn due to contradictions in
    the premises or policy rules themselves.
    """

    value: GuardrailAutomatedReasoningImpossibleFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members["impossible"],
            self.value,
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningImpossibleFinding.deserialize(deserializer)
        )

GuardrailAutomatedReasoningFindingTranslationAmbiguous dataclass

Contains the result when the automated reasoning evaluation detects that the input has multiple valid logical interpretations, requiring additional context or clarification to proceed with validation.

Source code in src/aws_sdk_bedrock_runtime/models.py
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
@dataclass
class GuardrailAutomatedReasoningFindingTranslationAmbiguous:
    """Contains the result when the automated reasoning evaluation detects that
    the input has multiple valid logical interpretations, requiring
    additional context or clarification to proceed with validation.
    """

    value: GuardrailAutomatedReasoningTranslationAmbiguousFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members[
                "translationAmbiguous"
            ],
            self.value,
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningTranslationAmbiguousFinding.deserialize(
                deserializer
            )
        )

GuardrailAutomatedReasoningFindingTooComplex dataclass

Contains the result when the automated reasoning evaluation cannot process the input due to its complexity or volume exceeding the system's processing capacity for logical analysis.

Source code in src/aws_sdk_bedrock_runtime/models.py
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
@dataclass
class GuardrailAutomatedReasoningFindingTooComplex:
    """Contains the result when the automated reasoning evaluation cannot
    process the input due to its complexity or volume exceeding the
    system's processing capacity for logical analysis.
    """

    value: GuardrailAutomatedReasoningTooComplexFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members["tooComplex"],
            self.value,
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningTooComplexFinding.deserialize(deserializer)
        )

GuardrailAutomatedReasoningFindingNoTranslations dataclass

Contains the result when the automated reasoning evaluation cannot extract any relevant logical information from the input that can be validated against the policy rules.

Source code in src/aws_sdk_bedrock_runtime/models.py
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
@dataclass
class GuardrailAutomatedReasoningFindingNoTranslations:
    """Contains the result when the automated reasoning evaluation cannot
    extract any relevant logical information from the input that can be
    validated against the policy rules.
    """

    value: GuardrailAutomatedReasoningNoTranslationsFinding

    def serialize(self, serializer: ShapeSerializer):
        serializer.write_struct(_SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING, self)

    def serialize_members(self, serializer: ShapeSerializer):
        serializer.write_struct(
            _SCHEMA_GUARDRAIL_AUTOMATED_REASONING_FINDING.members["noTranslations"],
            self.value,
        )

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        return cls(
            value=GuardrailAutomatedReasoningNoTranslationsFinding.deserialize(
                deserializer
            )
        )

GuardrailAutomatedReasoningFindingUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Source code in src/aws_sdk_bedrock_runtime/models.py
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
@dataclass
class GuardrailAutomatedReasoningFindingUnknown:
    """Represents an unknown variant.

    If you receive this value, you will need to update your library to receive the
    parsed value.

    This value may not be deliberately sent.
    """

    tag: str

    def serialize(self, serializer: ShapeSerializer):
        raise SerializationError("Unknown union variants may not be serialized.")

    def serialize_members(self, serializer: ShapeSerializer):
        raise SerializationError("Unknown union variants may not be serialized.")

    @classmethod
    def deserialize(cls, deserializer: ShapeDeserializer) -> Self:
        raise NotImplementedError()