Class: Aws::BedrockRuntime::Types::Message

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#contentArray<Types::ContentBlock>

The message content. Note the following restrictions:

  • You can include up to 20 images. Each image’s size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively.

  • You can include up to five documents. Each document’s size must be no more than 4.5 MB.

  • If you include a ‘ContentBlock` with a `document` field in the array, you must also include a `ContentBlock` with a `text` field.

  • You can only include images and documents if the ‘role` is `user`.

Returns:



2226
2227
2228
2229
2230
2231
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2226

class Message < Struct.new(
  :role,
  :content)
  SENSITIVE = []
  include Aws::Structure
end

#roleString

The role that the message plays in the message.

Returns:

  • (String)


2226
2227
2228
2229
2230
2231
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 2226

class Message < Struct.new(
  :role,
  :content)
  SENSITIVE = []
  include Aws::Structure
end