View source: R/bedrock_operations.R
| bedrock_create_automated_reasoning_policy_test_case | R Documentation |
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.
See https://www.paws-r-sdk.com/docs/bedrock_create_automated_reasoning_policy_test_case/ for full documentation.
bedrock_create_automated_reasoning_policy_test_case(
policyArn,
guardContent,
queryContent = NULL,
expectedAggregatedFindingsResult,
clientRequestToken = NULL,
confidenceThreshold = NULL
)
policyArn |
[required] The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create the test. |
guardContent |
[required] The output content that's validated by the Automated Reasoning policy. This represents the foundation model response that will be checked for accuracy. |
queryContent |
The input query or prompt that generated the content. This provides context for the validation. |
expectedAggregatedFindingsResult |
[required] The expected result of the Automated Reasoning check. Valid values include: , TOO_COMPLEX, and NO_TRANSLATIONS.
|
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. |
confidenceThreshold |
The minimum confidence level for logic validation. Content that meets the threshold is considered a high-confidence finding that can be validated. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.