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

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
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].

[1]: docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html

Direct Known Subclasses

CachePoint, GuardContent, Text, Unknown

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.



4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4030

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][1

or [ConverseStream] API operations.

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

[1]: docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html [2]: docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html



4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4030

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)


4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4030

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



4030
4031
4032
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4030

def unknown
  @unknown
end