Interface CfnAgent.PromptOverrideConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAgent.PromptOverrideConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnAgent
@Stability(Stable)
public static interface CfnAgent.PromptOverrideConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.bedrock.*;
Object additionalModelRequestFields;
PromptOverrideConfigurationProperty promptOverrideConfigurationProperty = PromptOverrideConfigurationProperty.builder()
.promptConfigurations(List.of(PromptConfigurationProperty.builder()
.additionalModelRequestFields(additionalModelRequestFields)
.basePromptTemplate("basePromptTemplate")
.foundationModel("foundationModel")
.inferenceConfiguration(InferenceConfigurationProperty.builder()
.maximumLength(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topK(123)
.topP(123)
.build())
.parserMode("parserMode")
.promptCreationMode("promptCreationMode")
.promptState("promptState")
.promptType("promptType")
.build()))
// the properties below are optional
.overrideLambda("overrideLambda")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAgent.PromptOverrideConfigurationPropertystatic final classAn implementation forCfnAgent.PromptOverrideConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPromptConfigurations
Contains configurations to override a prompt template in one part of an agent sequence.For more information, see Advanced prompts .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAgent.PromptConfigurationProperty>- See Also:
-
getOverrideLambda
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
promptConfigurationsmust contain aparserModevalue that is set toOVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents .- See Also:
-
builder
-