Message - Amazon Bedrock
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Message

A message input or response from a model. For more information, see Create a prompt using Prompt management.

Contents

content

The content in the message.

Type: Array of ContentBlock objects

Required: Yes

role

The role that the message belongs to.

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: