Message - Amazon Bedrock

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: