update_automated_reasoning_policy_test_case¶
Operation¶
update_automated_reasoning_policy_test_case
async
¶
update_automated_reasoning_policy_test_case(input: UpdateAutomatedReasoningPolicyTestCaseInput, plugins: list[Plugin] | None = None) -> UpdateAutomatedReasoningPolicyTestCaseOutput
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
UpdateAutomatedReasoningPolicyTestCaseInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
UpdateAutomatedReasoningPolicyTestCaseOutput
|
An instance of |
Input¶
UpdateAutomatedReasoningPolicyTestCaseInput
dataclass
¶
Dataclass for UpdateAutomatedReasoningPolicyTestCaseInput structure.
Attributes¶
client_request_token
class-attribute
instance-attribute
¶
client_request_token: str | None = None
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.
confidence_threshold
class-attribute
instance-attribute
¶
confidence_threshold: float | None = None
The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
expected_aggregated_findings_result
class-attribute
instance-attribute
¶
expected_aggregated_findings_result: AutomatedReasoningCheckResult | None = None
The updated expected result of the Automated Reasoning check.
guard_content
class-attribute
instance-attribute
¶
guard_content: str | None = field(repr=False, default=None)
The updated content to be validated by the Automated Reasoning policy.
last_updated_at
class-attribute
instance-attribute
¶
last_updated_at: datetime | None = None
The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
policy_arn
class-attribute
instance-attribute
¶
policy_arn: str | None = None
The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
query_content
class-attribute
instance-attribute
¶
query_content: str | None = field(repr=False, default=None)
The updated input query or prompt that generated the content.
test_case_id
class-attribute
instance-attribute
¶
test_case_id: str | None = None
The unique identifier of the test to update.
Output¶
UpdateAutomatedReasoningPolicyTestCaseOutput
dataclass
¶
Dataclass for UpdateAutomatedReasoningPolicyTestCaseOutput structure.