Class: Aws::BedrockRuntime::Types::GuardrailContextualGroundingFilter

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

Overview

The details for the guardrails contextual grounding filter.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

The action performed by the guardrails contextual grounding filter.

Returns:

  • (String)


927
928
929
930
931
932
933
934
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 927

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

#scoreFloat

The score generated by contextual grounding filter.

Returns:

  • (Float)


927
928
929
930
931
932
933
934
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 927

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

#thresholdFloat

The threshold used by contextual grounding filter to determine whether the content is grounded or not.

Returns:

  • (Float)


927
928
929
930
931
932
933
934
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 927

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

#typeString

The contextual grounding filter type.

Returns:

  • (String)


927
928
929
930
931
932
933
934
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 927

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