Bedrock / Paginator / ListAutomatedReasoningPolicyTestCases
ListAutomatedReasoningPolicyTestCases¶
- class Bedrock.Paginator.ListAutomatedReasoningPolicyTestCases¶
paginator = client.get_paginator('list_automated_reasoning_policy_test_cases')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Bedrock.Client.list_automated_reasoning_policy_test_cases()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( policyArn='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
policyArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to list tests.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'testCases': [ { '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 }, ], 'NextToken': 'string' }
Response Structure
(dict) –
testCases (list) –
A list of tests for the specified policy.
(dict) –
Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.
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.
NextToken (string) –
A token to resume pagination.