Class CustomParserProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.CustomParserProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomParserProps>
- Enclosing interface:
CustomParserProps
@Stability(Experimental)
public static final class CustomParserProps.Builder
extends Object
implements software.amazon.jsii.Builder<CustomParserProps>
A builder for
CustomParserProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.knowledgeBaseResponseGenerationStep(PromptKnowledgeBaseResponseGenerationConfigCustomParser knowledgeBaseResponseGenerationStep) Sets the value ofCustomParserProps.getKnowledgeBaseResponseGenerationStep()memorySummarizationStep(PromptMemorySummarizationConfigCustomParser memorySummarizationStep) Sets the value ofCustomParserProps.getMemorySummarizationStep()orchestrationStep(PromptOrchestrationConfigCustomParser orchestrationStep) Sets the value ofCustomParserProps.getOrchestrationStep()Sets the value ofCustomParserProps.getParser()postProcessingStep(PromptPostProcessingConfigCustomParser postProcessingStep) Sets the value ofCustomParserProps.getPostProcessingStep()preProcessingStep(PromptPreProcessingConfigCustomParser preProcessingStep) Sets the value ofCustomParserProps.getPreProcessingStep()routingClassifierStep(PromptRoutingClassifierConfigCustomParser routingClassifierStep) Sets the value ofCustomParserProps.getRoutingClassifierStep()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
knowledgeBaseResponseGenerationStep
@Stability(Experimental) public CustomParserProps.Builder knowledgeBaseResponseGenerationStep(PromptKnowledgeBaseResponseGenerationConfigCustomParser knowledgeBaseResponseGenerationStep) Sets the value ofCustomParserProps.getKnowledgeBaseResponseGenerationStep()- Parameters:
knowledgeBaseResponseGenerationStep- Configuration for the knowledge base response generation step.- Returns:
this
-
memorySummarizationStep
@Stability(Experimental) public CustomParserProps.Builder memorySummarizationStep(PromptMemorySummarizationConfigCustomParser memorySummarizationStep) Sets the value ofCustomParserProps.getMemorySummarizationStep()- Parameters:
memorySummarizationStep- Configuration for the memory summarization step.- Returns:
this
-
orchestrationStep
@Stability(Experimental) public CustomParserProps.Builder orchestrationStep(PromptOrchestrationConfigCustomParser orchestrationStep) Sets the value ofCustomParserProps.getOrchestrationStep()- Parameters:
orchestrationStep- Configuration for the orchestration step.- Returns:
this
-
parser
Sets the value ofCustomParserProps.getParser()- Parameters:
parser- Lambda function to use as custom parser.- Returns:
this
-
postProcessingStep
@Stability(Experimental) public CustomParserProps.Builder postProcessingStep(PromptPostProcessingConfigCustomParser postProcessingStep) Sets the value ofCustomParserProps.getPostProcessingStep()- Parameters:
postProcessingStep- Configuration for the post-processing step.- Returns:
this
-
preProcessingStep
@Stability(Experimental) public CustomParserProps.Builder preProcessingStep(PromptPreProcessingConfigCustomParser preProcessingStep) Sets the value ofCustomParserProps.getPreProcessingStep()- Parameters:
preProcessingStep- Configuration for the pre-processing step.- Returns:
this
-
routingClassifierStep
@Stability(Experimental) public CustomParserProps.Builder routingClassifierStep(PromptRoutingClassifierConfigCustomParser routingClassifierStep) Sets the value ofCustomParserProps.getRoutingClassifierStep()- Parameters:
routingClassifierStep- Configuration for the routing classifier step.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomParserProps>- Returns:
- a new instance of
CustomParserProps - Throws:
NullPointerException- if any required attribute was not provided
-