interface PromptOverrideConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnAgent.PromptOverrideConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnAgent_PromptOverrideConfigurationProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnAgent.PromptOverrideConfigurationProperty |
![]() | aws_cdk.aws_bedrock.CfnAgent.PromptOverrideConfigurationProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnAgent » PromptOverrideConfigurationProperty |
Contains configurations to override prompts in different parts of an agent sequence.
For more information, see Advanced prompts .
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 promptOverrideConfigurationProperty: bedrock.CfnAgent.PromptOverrideConfigurationProperty = {
promptConfigurations: [{
basePromptTemplate: 'basePromptTemplate',
inferenceConfiguration: {
maximumLength: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topK: 123,
topP: 123,
},
parserMode: 'parserMode',
promptCreationMode: 'promptCreationMode',
promptState: 'promptState',
promptType: 'promptType',
}],
// the properties below are optional
overrideLambda: 'overrideLambda',
};
Properties
Name | Type | Description |
---|---|---|
prompt | IResolvable | IResolvable | Prompt [] | Contains configurations to override a prompt template in one part of an agent sequence. |
override | string | The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence. |
promptConfigurations
Type:
IResolvable
|
IResolvable
|
Prompt
[]
Contains configurations to override a prompt template in one part of an agent sequence.
For more information, see Advanced prompts .
overrideLambda?
Type:
string
(optional)
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.
If you specify this field, at least one of the promptConfigurations
must contain a parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in Amazon Bedrock Agents .