Message - Amazon Bedrock (original) (raw)
A message input, or returned from, a call to Converse or ConverseStream.
Contents
content
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
ContentBlockwith adocumentfield in the array, you must also include aContentBlockwith atextfield. - You can only include images and documents if the
roleisuser.
Type: Array of ContentBlock objects
Required: Yes
role
The role that the message plays in the message.
Type: String
Valid Values: user | assistant
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
JsonSchemaDefinition
MessageStartEvent
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.