Class: Aws::BedrockRuntime::Types::GuardrailConverseContentBlock

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

Overview

Note:

GuardrailConverseContentBlock is a union - when making an API calls you must set exactly one of the members.

Note:

GuardrailConverseContentBlock is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of GuardrailConverseContentBlock corresponding to the set member.

A content block for selective guarding with the Converse or ConverseStream API operations.

Direct Known Subclasses

Image, Text, Unknown

Defined Under Namespace

Classes: Image, Text, Unknown

Constant Summary collapse

SENSITIVE =
[:image]

Instance Attribute Summary collapse

Instance Attribute Details

#imageTypes::GuardrailConverseImageBlock

Image within converse content block to be evaluated by the guardrail.



2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2207

class GuardrailConverseContentBlock < Struct.new(
  :text,
  :image,
  :unknown)
  SENSITIVE = [:image]
  include Aws::Structure
  include Aws::Structure::Union

  class Text < GuardrailConverseContentBlock; end
  class Image < GuardrailConverseContentBlock; end
  class Unknown < GuardrailConverseContentBlock; end
end

#textTypes::GuardrailConverseTextBlock

The text to guard.



2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2207

class GuardrailConverseContentBlock < Struct.new(
  :text,
  :image,
  :unknown)
  SENSITIVE = [:image]
  include Aws::Structure
  include Aws::Structure::Union

  class Text < GuardrailConverseContentBlock; end
  class Image < GuardrailConverseContentBlock; end
  class Unknown < GuardrailConverseContentBlock; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2207
2208
2209
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2207

def unknown
  @unknown
end