Class: Aws::Bedrock::Types::GuardrailContextualGroundingFilterConfig

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

Overview

The filter configuration details for the guardrails contextual grounding filter.

Constant Summary collapse

SENSITIVE =
[:action]

Instance Attribute Summary collapse

Instance Attribute Details

#action ⇒ String

Specifies the action to take when content fails the contextual grounding evaluation. Supported values include:

  • BLOCK – Block the content and replace it with blocked messaging.

  • NONE – Take no action but return detection information in the trace response.

Returns:

  • (String)


8411
8412
8413
8414
8415
8416
8417
8418
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8411

class GuardrailContextualGroundingFilterConfig < Struct.new(
  :type,
  :threshold,
  :action,
  :enabled)
  SENSITIVE = [:action]
  include Aws::Structure
end

#enabled ⇒ Boolean

Specifies whether to enable contextual grounding evaluation. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.

Returns:

  • (Boolean)


8411
8412
8413
8414
8415
8416
8417
8418
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8411

class GuardrailContextualGroundingFilterConfig < Struct.new(
  :type,
  :threshold,
  :action,
  :enabled)
  SENSITIVE = [:action]
  include Aws::Structure
end

#threshold ⇒ Float

The threshold details for the guardrails contextual grounding filter.

Returns:

  • (Float)


8411
8412
8413
8414
8415
8416
8417
8418
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8411

class GuardrailContextualGroundingFilterConfig < Struct.new(
  :type,
  :threshold,
  :action,
  :enabled)
  SENSITIVE = [:action]
  include Aws::Structure
end

#type ⇒ String

The filter details for the guardrails contextual grounding filter.

Returns:

  • (String)


8411
8412
8413
8414
8415
8416
8417
8418
# File 'gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb', line 8411

class GuardrailContextualGroundingFilterConfig < Struct.new(
  :type,
  :threshold,
  :action,
  :enabled)
  SENSITIVE = [:action]
  include Aws::Structure
end