Interface CfnPrompt.MessageProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPrompt.MessageProperty.Jsii$Proxy
- Enclosing class:
CfnPrompt
@Stability(Stable)
public static interface CfnPrompt.MessageProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.bedrock.*;
MessageProperty messageProperty = MessageProperty.builder()
.content(List.of(ContentBlockProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.text("text")
.build()))
.role("role")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPrompt.MessagePropertystatic final classAn implementation forCfnPrompt.MessageProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContent
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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPrompt.ContentBlockProperty>- See Also:
-
getRole
The role that the message plays in the message.- See Also:
-
builder
- Returns:
- a
CfnPrompt.MessageProperty.BuilderofCfnPrompt.MessageProperty
-