Skip to content
v2.277.0

Experimental

@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

IPromptVariant Interface ​

Interface representing a prompt variant configuration.

Variants are specific sets of inputs that guide FMs on Amazon Bedrock to generate an appropriate response or output for a given task or instruction.

Properties ​

genAiResourcemay be undefinedPromptGenAiResourcegen_ai_resourcemay be undefinedPromptGenAiResourcegenAiResourcemay be undefinedPromptGenAiResourceGenAiResourcemay be undefinedPromptGenAiResourceGenAiResourcemay be undefinedPromptGenAiResource #
The generative AI resource configuration.
inferenceConfigurationmay be undefinedPromptInferenceConfigurationinference_configurationmay be undefinedPromptInferenceConfigurationinferenceConfigurationmay be undefinedPromptInferenceConfigurationInferenceConfigurationmay be undefinedPromptInferenceConfigurationInferenceConfigurationmay be undefinedPromptInferenceConfiguration #
The inference configuration.
modelIdmay be undefinedstringmodel_idmay be undefinedstrmodelIdmay be undefinedStringModelIdmay be undefinedstringModelIdmay be undefined*string #
The unique identifier of the model with which to run inference on the prompt.
namestringnamestrnameStringNamestringName*string #
The name of the prompt variant.
templateConfigurationPromptTemplateConfigurationtemplate_configurationPromptTemplateConfigurationtemplateConfigurationPromptTemplateConfigurationTemplateConfigurationPromptTemplateConfigurationTemplateConfigurationPromptTemplateConfiguration #
The template configuration.
templateTypePromptTemplateTypetemplate_typePromptTemplateTypetemplateTypePromptTemplateTypeTemplateTypePromptTemplateTypeTemplateTypePromptTemplateType = Text #
The type of prompt template.