PromptVariant

data class PromptVariant(val additionalModelRequestFields: PromptAdditionalModelRequestFields? = null, val genAiResource: PromptGenAiResourceProperties? = null, val inferenceConfiguration: PromptInferenceConfigurationProperties? = null, val metadata: List<PromptMetadataEntry>? = null, val modelId: String? = null, val name: String, val templateConfiguration: Either<PromptTemplateConfiguration0Properties, PromptTemplateConfiguration1Properties>, val templateType: PromptTemplateType)

Prompt variant

Constructors

Link copied to clipboard
constructor(additionalModelRequestFields: PromptAdditionalModelRequestFields? = null, genAiResource: PromptGenAiResourceProperties? = null, inferenceConfiguration: PromptInferenceConfigurationProperties? = null, metadata: List<PromptMetadataEntry>? = null, modelId: String? = null, name: String, templateConfiguration: Either<PromptTemplateConfiguration0Properties, PromptTemplateConfiguration1Properties>, templateType: PromptTemplateType)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .

Link copied to clipboard

Specifies a generative AI resource with which to use the prompt.

Link copied to clipboard

Contains inference configurations for the prompt variant.

Link copied to clipboard

An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.

Link copied to clipboard
val modelId: String? = null

ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.

Link copied to clipboard

Name for a variant.

Link copied to clipboard
Link copied to clipboard

The type of prompt template to use.