Class: Aws::Bedrock::Types::CreateAutomatedReasoningPolicyTestCaseRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[:guard_content, :query_content]

Instance Attribute Summary collapse

Instance Attribute Details

#client_request_tokenString

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.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2345

class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
  :policy_arn,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :client_request_token,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#confidence_thresholdFloat

The minimum confidence level for logic validation. Content that meets the threshold is considered a high-confidence finding that can be validated.

Returns:

  • (Float)


2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2345

class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
  :policy_arn,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :client_request_token,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#expected_aggregated_findings_resultString

The expected result of the Automated Reasoning check. Valid values include: , TOO_COMPLEX, and NO_TRANSLATIONS.

  • VALID - The claims are true. The claims are implied by the premises and the Automated Reasoning policy. Given the Automated Reasoning policy and premises, it is not possible for these claims to be false. In other words, there are no alternative answers that are true that contradict the claims.

  • INVALID - The claims are false. The claims are not implied by the premises and Automated Reasoning policy. Furthermore, there exists different claims that are consistent with the premises and Automated Reasoning policy.

  • SATISFIABLE - The claims can be true or false. It depends on what assumptions are made for the claim to be implied from the premises and Automated Reasoning policy rules. In this situation, different assumptions can make input claims false and alternative claims true.

  • IMPOSSIBLE - Automated Reasoning can’t make a statement about the claims. This can happen if the premises are logically incorrect, or if there is a conflict within the Automated Reasoning policy itself.

  • TRANSLATION_AMBIGUOUS - Detected an ambiguity in the translation meant it would be unsound to continue with validity checking. Additional context or follow-up questions might be needed to get translation to succeed.

  • TOO_COMPLEX - The input contains too much information for Automated Reasoning to process within its latency limits.

  • NO_TRANSLATIONS - Identifies that some or all of the input prompt wasn't translated into logic. This can happen if the input isn't relevant to the Automated Reasoning policy, or if the policy doesn't have variables to model relevant input. If Automated Reasoning can't translate anything, you get a single NO_TRANSLATIONS finding. You might also see a NO_TRANSLATIONS (along with other findings) if some part of the validation isn't translated.

Returns:

  • (String)


2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2345

class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
  :policy_arn,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :client_request_token,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#guard_contentString

The output content that's validated by the Automated Reasoning policy. This represents the foundation model response that will be checked for accuracy.

Returns:

  • (String)


2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2345

class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
  :policy_arn,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :client_request_token,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#policy_arnString

The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create the test.

Returns:

  • (String)


2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2345

class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
  :policy_arn,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :client_request_token,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#query_contentString

The input query or prompt that generated the content. This provides context for the validation.

Returns:

  • (String)


2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 2345

class CreateAutomatedReasoningPolicyTestCaseRequest < Struct.new(
  :policy_arn,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :client_request_token,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end