Class CfnFlow.PromptFlowNodeSourceConfigurationProperty
Contains configurations for a prompt and whether it is from Prompt management or defined inline.
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFlow.PromptFlowNodeSourceConfigurationProperty : CfnFlow.IPromptFlowNodeSourceConfigurationProperty
Syntax (vb)
Public Class CfnFlow.PromptFlowNodeSourceConfigurationProperty Implements CfnFlow.IPromptFlowNodeSourceConfigurationProperty
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 promptFlowNodeSourceConfigurationProperty = new PromptFlowNodeSourceConfigurationProperty {
Inline = new PromptFlowNodeInlineConfigurationProperty {
ModelId = "modelId",
TemplateConfiguration = new PromptTemplateConfigurationProperty {
Text = new TextPromptTemplateConfigurationProperty {
Text = "text",
// the properties below are optional
InputVariables = new [] { new PromptInputVariableProperty {
Name = "name"
} }
}
},
TemplateType = "templateType",
// the properties below are optional
InferenceConfiguration = new PromptInferenceConfigurationProperty {
Text = new PromptModelInferenceConfigurationProperty {
MaxTokens = 123,
StopSequences = new [] { "stopSequences" },
Temperature = 123,
TopP = 123
}
}
},
Resource = new PromptFlowNodeResourceConfigurationProperty {
PromptArn = "promptArn"
}
};
Synopsis
Constructors
| PromptFlowNodeSourceConfigurationProperty() | Contains configurations for a prompt and whether it is from Prompt management or defined inline. |
Properties
| Inline | Contains configurations for a prompt that is defined inline. |
| Resource | Contains configurations for a prompt from Prompt management. |
Constructors
PromptFlowNodeSourceConfigurationProperty()
Contains configurations for a prompt and whether it is from Prompt management or defined inline.
public PromptFlowNodeSourceConfigurationProperty()
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 promptFlowNodeSourceConfigurationProperty = new PromptFlowNodeSourceConfigurationProperty {
Inline = new PromptFlowNodeInlineConfigurationProperty {
ModelId = "modelId",
TemplateConfiguration = new PromptTemplateConfigurationProperty {
Text = new TextPromptTemplateConfigurationProperty {
Text = "text",
// the properties below are optional
InputVariables = new [] { new PromptInputVariableProperty {
Name = "name"
} }
}
},
TemplateType = "templateType",
// the properties below are optional
InferenceConfiguration = new PromptInferenceConfigurationProperty {
Text = new PromptModelInferenceConfigurationProperty {
MaxTokens = 123,
StopSequences = new [] { "stopSequences" },
Temperature = 123,
TopP = 123
}
}
},
Resource = new PromptFlowNodeResourceConfigurationProperty {
PromptArn = "promptArn"
}
};
Properties
Inline
Contains configurations for a prompt that is defined inline.
public object? Inline { get; set; }
Property Value
Remarks
Resource
Contains configurations for a prompt from Prompt management.
public object? Resource { get; set; }