Class: Aws::Bedrock::Types::AutomatedReasoningPolicyTestCase

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

Overview

Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.

Constant Summary collapse

SENSITIVE =
[:guard_content, :query_content]

Instance Attribute Summary collapse

Instance Attribute Details

#confidence_thresholdFloat

The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.

Returns:

  • (Float)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#created_atTime

The timestamp when the test was created.

Returns:

  • (Time)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#expected_aggregated_findings_resultString

The expected result of the Automated Reasoning check for this test.

Returns:

  • (String)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#guard_contentString

The output content to be validated by the policy, typically representing a foundation model response.

Returns:

  • (String)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :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)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#test_case_idString

The unique identifier of the test.

Returns:

  • (String)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end

#updated_atTime

The timestamp when the test was last updated.

Returns:

  • (Time)


1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 1671

class AutomatedReasoningPolicyTestCase < Struct.new(
  :test_case_id,
  :guard_content,
  :query_content,
  :expected_aggregated_findings_result,
  :created_at,
  :updated_at,
  :confidence_threshold)
  SENSITIVE = [:guard_content, :query_content]
  include Aws::Structure
end