Show / Hide Table of Contents

Class CfnPrompt.MessageProperty

A message input, or returned from, a call to Converse or ConverseStream .

Inheritance
object
CfnPrompt.MessageProperty
Implements
CfnPrompt.IMessageProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html

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

object

Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html#cfn-bedrock-prompt-message-content

    Type union: either IResolvable or (either IResolvable or CfnPrompt.IContentBlockProperty)[]

    Role

    The role that the message plays in the message.

    public string Role { get; set; }
    Property Value

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-message.html#cfn-bedrock-prompt-message-role

    Implements

    CfnPrompt.IMessageProperty
    Back to top Generated by DocFX