interface MessageProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnPromptVersionPropsMixin.MessageProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnPromptVersionPropsMixin_MessageProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnPromptVersionPropsMixin.MessageProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnPromptVersionPropsMixin.MessageProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnPromptVersionPropsMixin » MessageProperty |
A message input, or returned from, a call to Converse or ConverseStream .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const messageProperty: bedrock_mixins.CfnPromptVersionPropsMixin.MessageProperty = {
content: [{
cachePoint: {
type: 'type',
},
text: 'text',
}],
role: 'role',
};
Properties
| Name | Type | Description |
|---|---|---|
| content? | IResolvable | (IResolvable | Content)[] | The message content. Note the following restrictions:. |
| role? | string | The role that the message plays in the message. |
content?
Type:
IResolvable | (IResolvable | Content)[]
(optional)
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.
role?
Type:
string
(optional)
The role that the message plays in the message.

.NET
Go
Java
Python
TypeScript