Show / Hide Table of Contents

Class CfnFlowPropsMixin.PromptFlowNodeConfigurationProperty

Contains configurations for a prompt node in the flow.

Inheritance
object
CfnFlowPropsMixin.PromptFlowNodeConfigurationProperty
Implements
CfnFlowPropsMixin.IPromptFlowNodeConfigurationProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Bedrock
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnFlowPropsMixin.PromptFlowNodeConfigurationProperty : CfnFlowPropsMixin.IPromptFlowNodeConfigurationProperty
Syntax (vb)
Public Class CfnFlowPropsMixin.PromptFlowNodeConfigurationProperty Implements CfnFlowPropsMixin.IPromptFlowNodeConfigurationProperty
Remarks

You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see Node types in a flow in the Amazon Bedrock User Guide.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.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.CfnPropertyMixins.AWS.Bedrock;

             var promptFlowNodeConfigurationProperty = new PromptFlowNodeConfigurationProperty {
                 GuardrailConfiguration = new GuardrailConfigurationProperty {
                     GuardrailIdentifier = "guardrailIdentifier",
                     GuardrailVersion = "guardrailVersion"
                 },
                 SourceConfiguration = new PromptFlowNodeSourceConfigurationProperty {
                     Inline = new PromptFlowNodeInlineConfigurationProperty {
                         InferenceConfiguration = new PromptInferenceConfigurationProperty {
                             Text = new PromptModelInferenceConfigurationProperty {
                                 MaxTokens = 123,
                                 StopSequences = new [] { "stopSequences" },
                                 Temperature = 123,
                                 TopP = 123
                             }
                         },
                         ModelId = "modelId",
                         TemplateConfiguration = new PromptTemplateConfigurationProperty {
                             Text = new TextPromptTemplateConfigurationProperty {
                                 InputVariables = new [] { new PromptInputVariableProperty {
                                     Name = "name"
                                 } },
                                 Text = "text"
                             }
                         },
                         TemplateType = "templateType"
                     },
                     Resource = new PromptFlowNodeResourceConfigurationProperty {
                         PromptArn = "promptArn"
                     }
                 }
             };

Synopsis

Constructors

PromptFlowNodeConfigurationProperty()

Contains configurations for a prompt node in the flow.

Properties

GuardrailConfiguration

Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.

SourceConfiguration

Specifies whether the prompt is from Prompt management or defined inline.

Constructors

PromptFlowNodeConfigurationProperty()

Contains configurations for a prompt node in the flow.

public PromptFlowNodeConfigurationProperty()
Remarks

You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see Node types in a flow in the Amazon Bedrock User Guide.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.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.CfnPropertyMixins.AWS.Bedrock;

             var promptFlowNodeConfigurationProperty = new PromptFlowNodeConfigurationProperty {
                 GuardrailConfiguration = new GuardrailConfigurationProperty {
                     GuardrailIdentifier = "guardrailIdentifier",
                     GuardrailVersion = "guardrailVersion"
                 },
                 SourceConfiguration = new PromptFlowNodeSourceConfigurationProperty {
                     Inline = new PromptFlowNodeInlineConfigurationProperty {
                         InferenceConfiguration = new PromptInferenceConfigurationProperty {
                             Text = new PromptModelInferenceConfigurationProperty {
                                 MaxTokens = 123,
                                 StopSequences = new [] { "stopSequences" },
                                 Temperature = 123,
                                 TopP = 123
                             }
                         },
                         ModelId = "modelId",
                         TemplateConfiguration = new PromptTemplateConfigurationProperty {
                             Text = new TextPromptTemplateConfigurationProperty {
                                 InputVariables = new [] { new PromptInputVariableProperty {
                                     Name = "name"
                                 } },
                                 Text = "text"
                             }
                         },
                         TemplateType = "templateType"
                     },
                     Resource = new PromptFlowNodeResourceConfigurationProperty {
                         PromptArn = "promptArn"
                     }
                 }
             };

Properties

GuardrailConfiguration

Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.

public object? GuardrailConfiguration { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html#cfn-bedrock-flow-promptflownodeconfiguration-guardrailconfiguration

Type union: either IResolvable or CfnFlowPropsMixin.IGuardrailConfigurationProperty

SourceConfiguration

Specifies whether the prompt is from Prompt management or defined inline.

public object? SourceConfiguration { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-promptflownodeconfiguration.html#cfn-bedrock-flow-promptflownodeconfiguration-sourceconfiguration

Type union: either IResolvable or CfnFlowPropsMixin.IPromptFlowNodeSourceConfigurationProperty

Implements

CfnFlowPropsMixin.IPromptFlowNodeConfigurationProperty
Back to top Generated by DocFX