Bedrock / Client / get_automated_reasoning_policy_test_case
get_automated_reasoning_policy_test_case¶
- Bedrock.Client.get_automated_reasoning_policy_test_case(**kwargs)¶
Retrieves details about a specific Automated Reasoning policy test.
See also: AWS API Documentation
Request Syntax
response = client.get_automated_reasoning_policy_test_case( policyArn='string', testCaseId='string' )
- Parameters:
policyArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
testCaseId (string) –
[REQUIRED]
The unique identifier of the test to retrieve.
- Return type:
dict
- Returns:
Response Syntax
{ 'policyArn': 'string', 'testCase': { 'testCaseId': 'string', 'guardContent': 'string', 'queryContent': 'string', 'expectedAggregatedFindingsResult': 'VALID'|'INVALID'|'SATISFIABLE'|'IMPOSSIBLE'|'TRANSLATION_AMBIGUOUS'|'TOO_COMPLEX'|'NO_TRANSLATION', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'confidenceThreshold': 123.0 } }
Response Structure
(dict) –
policyArn (string) –
The Amazon Resource Name (ARN) of the policy that contains the test.
testCase (dict) –
The test details including the content, query, expected result, and metadata.
testCaseId (string) –
The unique identifier of the test.
guardContent (string) –
The output content to be validated by the policy, typically representing a foundation model response.
queryContent (string) –
The input query or prompt that generated the content. This provides context for the validation.
expectedAggregatedFindingsResult (string) –
The expected result of the Automated Reasoning check for this test.
createdAt (datetime) –
The timestamp when the test was created.
updatedAt (datetime) –
The timestamp when the test was last updated.
confidenceThreshold (float) –
The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.
Exceptions