Create Automated Reasoning Policy Test Case
| bedrock_create_automated_reasoning_policy_test_case | R Documentation |
Creates a test for an Automated Reasoning policy¶
Description¶
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.
Usage¶
bedrock_create_automated_reasoning_policy_test_case(policyArn,
guardContent, queryContent, expectedAggregatedFindingsResult,
clientRequestToken, confidenceThreshold)
Arguments¶
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. |
Value¶
A list with the following syntax:
list(
policyArn = "string",
testCaseId = "string"
)
Request syntax¶
svc$create_automated_reasoning_policy_test_case(
policyArn = "string",
guardContent = "string",
queryContent = "string",
expectedAggregatedFindingsResult = "VALID"|"INVALID"|"SATISFIABLE"|"IMPOSSIBLE"|"TRANSLATION_AMBIGUOUS"|"TOO_COMPLEX"|"NO_TRANSLATION",
clientRequestToken = "string",
confidenceThreshold = 123.0
)