Class CfnFlowPropsMixin.PromptFlowNodeConfigurationProperty
Contains configurations for a prompt node in the flow.
Inherited Members
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.
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.
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
Remarks
SourceConfiguration
Specifies whether the prompt is from Prompt management or defined inline.
public object? SourceConfiguration { get; set; }