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.

Contains configurations for instructions to provide the model for how to handle input. To learn more, see Using the Converse API.

Defined Under Namespace

Classes: CachePoint, GuardContent, Text, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cache_pointTypes::CachePointBlock

CachePoint to include in the system prompt.



4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4352

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

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

#guard_contentTypes::GuardrailConverseContentBlock

A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.

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



4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4352

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

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

#textString

A system prompt for the model.

Returns:

  • (String)


4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4352

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

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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



4352
4353
4354
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4352

def unknown
  @unknown
end