AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateAutomatedReasoningPolicyTestCase operation. Creates a test for an Automated Reasoning policy. Tests validate that your policy works as expected by providing sample inputs and expected outcomes. Use tests to verify policy behavior before deploying to production.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Bedrock.AmazonBedrockRequest
      Amazon.Bedrock.Model.CreateAutomatedReasoningPolicyTestCaseRequest

Namespace: Amazon.Bedrock.Model
Assembly: AWSSDK.Bedrock.dll
Version: 3.x.y.z

Syntax

C#
public class CreateAutomatedReasoningPolicyTestCaseRequest : AmazonBedrockRequest
         IAmazonWebServiceRequest

The CreateAutomatedReasoningPolicyTestCaseRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ClientRequestToken System.String

Gets and sets the property ClientRequestToken.

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

Public Property ConfidenceThreshold System.Double

Gets and sets the property ConfidenceThreshold.

The minimum confidence level for logic validation. Content that meets the threshold is considered a high-confidence finding that can be validated.

Public Property ExpectedAggregatedFindingsResult Amazon.Bedrock.AutomatedReasoningCheckResult

Gets and sets the property ExpectedAggregatedFindingsResult.

The expected result of the Automated Reasoning check. Valid values include: , TOO_COMPLEX, and NO_TRANSLATIONS.

  • VALID - The claims are true. The claims are implied by the premises and the Automated Reasoning policy. Given the Automated Reasoning policy and premises, it is not possible for these claims to be false. In other words, there are no alternative answers that are true that contradict the claims.

  • INVALID - The claims are false. The claims are not implied by the premises and Automated Reasoning policy. Furthermore, there exists different claims that are consistent with the premises and Automated Reasoning policy.

  • SATISFIABLE - The claims can be true or false. It depends on what assumptions are made for the claim to be implied from the premises and Automated Reasoning policy rules. In this situation, different assumptions can make input claims false and alternative claims true.

  • IMPOSSIBLE - Automated Reasoning can’t make a statement about the claims. This can happen if the premises are logically incorrect, or if there is a conflict within the Automated Reasoning policy itself.

  • TRANSLATION_AMBIGUOUS - Detected an ambiguity in the translation meant it would be unsound to continue with validity checking. Additional context or follow-up questions might be needed to get translation to succeed.

  • TOO_COMPLEX - The input contains too much information for Automated Reasoning to process within its latency limits.

  • NO_TRANSLATIONS - Identifies that some or all of the input prompt wasn't translated into logic. This can happen if the input isn't relevant to the Automated Reasoning policy, or if the policy doesn't have variables to model relevant input. If Automated Reasoning can't translate anything, you get a single NO_TRANSLATIONS finding. You might also see a NO_TRANSLATIONS (along with other findings) if some part of the validation isn't translated.

Public Property GuardContent System.String

Gets and sets the property GuardContent.

The output content that's validated by the Automated Reasoning policy. This represents the foundation model response that will be checked for accuracy.

Public Property PolicyArn System.String

Gets and sets the property PolicyArn.

The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create the test.

Public Property QueryContent System.String

Gets and sets the property QueryContent.

The input query or prompt that generated the content. This provides context for the validation.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5