Class: Aws::BedrockRuntime::Types::SystemContentBlock

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

Overview

Note:

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

A system content block.

Direct Known Subclasses

GuardContent, Text, Unknown

Defined Under Namespace

Classes: GuardContent, Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#guard_contentTypes::GuardrailConverseContentBlock

A content block to assess with the guardrail. Use with the Converse API (Converse and ConverseStream).

For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.



1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1565

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

  class Text < SystemContentBlock; end
  class GuardContent < SystemContentBlock; end
  class Unknown < SystemContentBlock; end
end

#textString

A system prompt for the model.

Returns:

  • (String)


1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1565

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

  class Text < SystemContentBlock; end
  class GuardContent < SystemContentBlock; end
  class Unknown < SystemContentBlock; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1565
1566
1567
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1565

def unknown
  @unknown
end