Interface CfnFlow.PromptFlowNodeInlineConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlow.PromptFlowNodeInlineConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlow
@Stability(Stable)
public static interface CfnFlow.PromptFlowNodeInlineConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains configurations for a prompt defined inline in the node.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
PromptFlowNodeInlineConfigurationProperty promptFlowNodeInlineConfigurationProperty = PromptFlowNodeInlineConfigurationProperty.builder()
.modelId("modelId")
.templateConfiguration(PromptTemplateConfigurationProperty.builder()
.text(TextPromptTemplateConfigurationProperty.builder()
.text("text")
// the properties below are optional
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.build())
.build())
.templateType("templateType")
// the properties below are optional
.inferenceConfiguration(PromptInferenceConfigurationProperty.builder()
.text(PromptModelInferenceConfigurationProperty.builder()
.maxTokens(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topP(123)
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFlow.PromptFlowNodeInlineConfigurationPropertystatic final classAn implementation forCfnFlow.PromptFlowNodeInlineConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectContains inference configurations for the prompt.The unique identifier of the model or inference profile to run inference with.Contains a prompt and variables in the prompt that can be replaced with values at runtime.The type of prompt template.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getModelId
The unique identifier of the model or inference profile to run inference with.- See Also:
-
getTemplateConfiguration
Contains a prompt and variables in the prompt that can be replaced with values at runtime.Returns union: either
IResolvableorCfnFlow.PromptTemplateConfigurationProperty- See Also:
-
getTemplateType
The type of prompt template.- See Also:
-
getInferenceConfiguration
Contains inference configurations for the prompt.Returns union: either
IResolvableorCfnFlow.PromptInferenceConfigurationProperty- See Also:
-
builder
-