Interface CfnFlowPropsMixin.PromptFlowNodeInlineConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlowPropsMixin.PromptFlowNodeInlineConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlowPropsMixin
@Stability(Stable)
public static interface CfnFlowPropsMixin.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.cfnpropertymixins.services.bedrock.*;
PromptFlowNodeInlineConfigurationProperty promptFlowNodeInlineConfigurationProperty = PromptFlowNodeInlineConfigurationProperty.builder()
.inferenceConfiguration(PromptInferenceConfigurationProperty.builder()
.text(PromptModelInferenceConfigurationProperty.builder()
.maxTokens(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topP(123)
.build())
.build())
.modelId("modelId")
.templateConfiguration(PromptTemplateConfigurationProperty.builder()
.text(TextPromptTemplateConfigurationProperty.builder()
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.text("text")
.build())
.build())
.templateType("templateType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnFlowPropsMixin.PromptFlowNodeInlineConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectContains inference configurations for the prompt.default StringThe unique identifier of the model or inference profile to run inference with.default ObjectContains a prompt and variables in the prompt that can be replaced with values at runtime.default StringThe type of prompt template.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInferenceConfiguration
Contains inference configurations for the prompt.Returns union: either
IResolvableorCfnFlowPropsMixin.PromptInferenceConfigurationProperty- See Also:
-
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
IResolvableorCfnFlowPropsMixin.PromptTemplateConfigurationProperty- See Also:
-
getTemplateType
The type of prompt template.- See Also:
-
builder
@Stability(Stable) static CfnFlowPropsMixin.PromptFlowNodeInlineConfigurationProperty.Builder builder()
-