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.*; PromptOverrideConfigurationProperty promptOverrideConfigurationProperty = PromptOverrideConfigurationProperty.builder() .promptConfigurations(List.of(PromptConfigurationProperty.builder() .basePromptTemplate("basePromptTemplate") .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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAgent.PromptOverrideConfigurationProperty
static final class
An 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 .
- 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
promptConfigurations
must contain aparserMode
value that is set toOVERRIDDEN
. For more information, see Parser Lambda function in Amazon Bedrock Agents .- See Also:
-
builder
-