Interface IPromptVariant

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IPromptVariant.Jsii$Default
All Known Implementing Classes:
IPromptVariant.Jsii$Proxy

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-29T17:51:11.501Z") @Stability(Experimental) public interface IPromptVariant extends software.amazon.jsii.JsiiSerializable
(experimental) 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.

  • Method Details

    • getName

      @Stability(Experimental) @NotNull String getName()
      (experimental) The name of the prompt variant.
    • getTemplateConfiguration

      @Stability(Experimental) @NotNull PromptTemplateConfiguration getTemplateConfiguration()
      (experimental) The template configuration.
    • getTemplateType

      @Stability(Experimental) @NotNull PromptTemplateType getTemplateType()
      (experimental) The type of prompt template.

      Default: - Text

    • getGenAiResource

      @Stability(Experimental) @Nullable default PromptGenAiResource getGenAiResource()
      (experimental) The generative AI resource configuration.
    • getInferenceConfiguration

      @Stability(Experimental) @Nullable default PromptInferenceConfiguration getInferenceConfiguration()
      (experimental) The inference configuration.
    • getModelId

      @Stability(Experimental) @Nullable default String getModelId()
      (experimental) The unique identifier of the model with which to run inference on the prompt.