interface PromptVariantProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnPromptVersion.PromptVariantProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnPromptVersion_PromptVariantProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptVariantProperty |
![]() | aws_cdk.aws_bedrock.CfnPromptVersion.PromptVariantProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnPromptVersion » PromptVariantProperty |
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 { aws_bedrock as bedrock } from 'aws-cdk-lib';
const promptVariantProperty: bedrock.CfnPromptVersion.PromptVariantProperty = {
name: 'name',
templateType: 'templateType',
// the properties below are optional
inferenceConfiguration: {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topK: 123,
topP: 123,
},
},
modelId: 'modelId',
templateConfiguration: {
text: {
text: 'text',
// the properties below are optional
inputVariables: [{
name: 'name',
}],
},
},
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name of the prompt variant. |
template | string | The type of prompt template to use. |
inference | IResolvable | Prompt | Contains inference configurations for the prompt variant. |
model | string | The unique identifier of the model or inference profile with which to run inference on the prompt. |
template | IResolvable | Prompt | Contains configurations for the prompt template. |
name
Type:
string
The name of the prompt variant.
templateType
Type:
string
The type of prompt template to use.
inferenceConfiguration?
Type:
IResolvable
|
Prompt
(optional)
Contains inference configurations for the prompt variant.
modelId?
Type:
string
(optional)
The unique identifier of the model or inference profile with which to run inference on the prompt.
templateConfiguration?
Type:
IResolvable
|
Prompt
(optional)
Contains configurations for the prompt template.