Interface ICustomParserProps
(experimental) Properties for configuring a custom Lambda parser for prompt overrides.
Namespace: Amazon.CDK.AWS.Bedrock.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Alpha.dll
Syntax (csharp)
public interface ICustomParserProps
Syntax (vb)
Public Interface ICustomParserProps
Remarks
Stability: Experimental
ExampleMetadata: fixture=default infused
Examples
var parserFunction = new Function(this, "ParserFunction", new FunctionProps {
Runtime = Runtime.PYTHON_3_10,
Handler = "index.handler",
Code = Code.FromAsset("lambda")
});
var agent = new Agent(this, "Agent", new AgentProps {
FoundationModel = BedrockFoundationModel.AMAZON_NOVA_LITE_V1,
Instruction = "You are a helpful assistant.",
PromptOverrideConfiguration = PromptOverrideConfiguration.WithCustomParser(new CustomParserProps {
Parser = parserFunction,
PreProcessingStep = new PromptPreProcessingConfigCustomParser {
StepType = AgentStepType.PRE_PROCESSING,
UseCustomParser = true
}
})
});
Synopsis
Properties
| KnowledgeBaseResponseGenerationStep | (experimental) Configuration for the knowledge base response generation step. |
| MemorySummarizationStep | (experimental) Configuration for the memory summarization step. |
| OrchestrationStep | (experimental) Configuration for the orchestration step. |
| Parser | (experimental) Lambda function to use as custom parser. |
| PostProcessingStep | (experimental) Configuration for the post-processing step. |
| PreProcessingStep | (experimental) Configuration for the pre-processing step. |
| RoutingClassifierStep | (experimental) Configuration for the routing classifier step. |
Properties
KnowledgeBaseResponseGenerationStep
(experimental) Configuration for the knowledge base response generation step.
IPromptKnowledgeBaseResponseGenerationConfigCustomParser? KnowledgeBaseResponseGenerationStep { get; }
Property Value
IPromptKnowledgeBaseResponseGenerationConfigCustomParser
Remarks
Default: undefined - No knowledge base response generation configuration
Stability: Experimental
MemorySummarizationStep
(experimental) Configuration for the memory summarization step.
IPromptMemorySummarizationConfigCustomParser? MemorySummarizationStep { get; }
Property Value
IPromptMemorySummarizationConfigCustomParser
Remarks
Default: undefined - No memory summarization configuration
Stability: Experimental
OrchestrationStep
(experimental) Configuration for the orchestration step.
IPromptOrchestrationConfigCustomParser? OrchestrationStep { get; }
Property Value
IPromptOrchestrationConfigCustomParser
Remarks
Default: undefined - No orchestration configuration
Stability: Experimental
Parser
(experimental) Lambda function to use as custom parser.
IFunction? Parser { get; }
Property Value
Remarks
Default: undefined - No custom parser is used
Stability: Experimental
PostProcessingStep
(experimental) Configuration for the post-processing step.
IPromptPostProcessingConfigCustomParser? PostProcessingStep { get; }
Property Value
IPromptPostProcessingConfigCustomParser
Remarks
Default: undefined - No post-processing configuration
Stability: Experimental
PreProcessingStep
(experimental) Configuration for the pre-processing step.
IPromptPreProcessingConfigCustomParser? PreProcessingStep { get; }
Property Value
IPromptPreProcessingConfigCustomParser
Remarks
Default: undefined - No pre-processing configuration
Stability: Experimental
RoutingClassifierStep
(experimental) Configuration for the routing classifier step.
IPromptRoutingClassifierConfigCustomParser? RoutingClassifierStep { get; }
Property Value
IPromptRoutingClassifierConfigCustomParser
Remarks
Default: undefined - No routing classifier configuration
Stability: Experimental