Interface PromptPreProcessingConfigCustomParser
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,PromptStepConfigBase
- All Known Implementing Classes:
PromptPreProcessingConfigCustomParser.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:51.364Z")
@Stability(Experimental)
public interface PromptPreProcessingConfigCustomParser
extends software.amazon.jsii.JsiiSerializable, PromptStepConfigBase
(experimental) Configuration for the pre-processing step.
Example:
Function parserFunction = Function.Builder.create(this, "ParserFunction")
.runtime(Runtime.PYTHON_3_10)
.handler("index.handler")
.code(Code.fromAsset("lambda"))
.build();
Agent agent = Agent.Builder.create(this, "Agent")
.foundationModel(BedrockFoundationModel.AMAZON_NOVA_LITE_V1)
.instruction("You are a helpful assistant.")
.promptOverrideConfiguration(PromptOverrideConfiguration.withCustomParser(CustomParserProps.builder()
.parser(parserFunction)
.preProcessingStep(PromptPreProcessingConfigCustomParser.builder()
.stepType(AgentStepType.PRE_PROCESSING)
.useCustomParser(true)
.build())
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPromptPreProcessingConfigCustomParserstatic final classAn implementation forPromptPreProcessingConfigCustomParser -
Method Summary
Static MethodsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.bedrock.alpha.PromptStepConfigBase
getCustomPromptTemplate, getInferenceConfig, getStepEnabled, getStepType, getUseCustomParser
-
Method Details
-
builder
-