Interface CfnPromptVersion.PromptVariantProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPromptVersion.PromptVariantProperty.Jsii$Proxy
- Enclosing class:
CfnPromptVersion
@Stability(Stable)
public static interface CfnPromptVersion.PromptVariantProperty
extends software.amazon.jsii.JsiiSerializable
Contains details about a variant of the prompt.
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.*; PromptVariantProperty promptVariantProperty = PromptVariantProperty.builder() .name("name") .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()) .modelId("modelId") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPromptVersion.PromptVariantProperty
static final class
An implementation forCfnPromptVersion.PromptVariantProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Contains inference configurations for the prompt variant.default String
The unique identifier of the model or inference profile with which to run inference on the prompt.getName()
The name of the prompt variant.Contains configurations for the prompt template.The type of prompt template to use.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the prompt variant.- See Also:
-
getTemplateConfiguration
Contains configurations for the prompt template.- See Also:
-
getTemplateType
The type of prompt template to use.- See Also:
-
getInferenceConfiguration
Contains inference configurations for the prompt variant.- See Also:
-
getModelId
The unique identifier of the model or inference profile with which to run inference on the prompt.- See Also:
-
builder
-