interface IPromptVariant
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.IPromptVariant |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#IPromptVariant |
![]() | software.amazon.awscdk.services.bedrock.alpha.IPromptVariant |
![]() | aws_cdk.aws_bedrock_alpha.IPromptVariant |
![]() | @aws-cdk/aws-bedrock-alpha ยป IPromptVariant |
Obtainable from
Prompt
.agent()
, Prompt
.chat()
, Prompt
.text()
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
Name | Type | Description |
---|---|---|
name | string | The name of the prompt variant. |
template | Prompt | The template configuration. |
template | Prompt | The type of prompt template. |
gen | Prompt | The generative AI resource configuration. |
inference | Prompt | The inference configuration. |
model | string | The unique identifier of the model with which to run inference on the prompt. |
name
Type:
string
The name of the prompt variant.
templateConfiguration
Type:
Prompt
The template configuration.
templateType
Type:
Prompt
The type of prompt template.
genAiResource?
Type:
Prompt
(optional)
The generative AI resource configuration.
inferenceConfiguration?
Type:
Prompt
(optional)
The inference configuration.
modelId?
Type:
string
(optional)
The unique identifier of the model with which to run inference on the prompt.