Class CfnPrompt.MessageProperty
A message input, or returned from, a call to Converse or ConverseStream .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPrompt.MessageProperty : CfnPrompt.IMessageProperty
Syntax (vb)
Public Class CfnPrompt.MessageProperty Implements CfnPrompt.IMessageProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var messageProperty = new MessageProperty {
Content = new [] { new ContentBlockProperty {
CachePoint = new CachePointBlockProperty {
Type = "type"
},
Text = "text"
} },
Role = "role"
};
Synopsis
Constructors
| MessageProperty() | A message input, or returned from, a call to Converse or ConverseStream . |
Properties
| Content | The message content. Note the following restrictions:. |
| Role | The role that the message plays in the message. |
Constructors
MessageProperty()
A message input, or returned from, a call to Converse or ConverseStream .
public MessageProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var messageProperty = new MessageProperty {
Content = new [] { new ContentBlockProperty {
CachePoint = new CachePointBlockProperty {
Type = "type"
},
Text = "text"
} },
Role = "role"
};
Properties
Content
The message content. Note the following restrictions:.
public object Content { get; set; }
Property Value
Remarks
Role
The role that the message plays in the message.
public string Role { get; set; }