Class: Aws::BedrockRuntime::Types::GuardrailConverseContentBlock
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::GuardrailConverseContentBlock
- Includes:
- Structure, Structure::Union
- Defined in:
- lib/aws-sdk-bedrockruntime/types.rb
Overview
GuardrailConverseContentBlock is a union - when making an API calls you must set exactly one of the members.
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][2
-
API operations.
[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html
Defined Under Namespace
Constant Summary collapse
- SENSITIVE =
[:image]
Instance Attribute Summary collapse
-
#image ⇒ Types::GuardrailConverseImageBlock
Image within converse content block to be evaluated by the guardrail.
-
#text ⇒ Types::GuardrailConverseTextBlock
The text to guard.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#image ⇒ Types::GuardrailConverseImageBlock
Image within converse content block to be evaluated by the guardrail.
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1220 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 |
#text ⇒ Types::GuardrailConverseTextBlock
The text to guard.
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1220 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 |
#unknown ⇒ Object
Returns the value of attribute unknown
1220 1221 1222 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1220 def unknown @unknown end |