Interface PromptOverrideConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PromptOverrideConfiguration.Builder,
,PromptOverrideConfiguration> SdkBuilder<PromptOverrideConfiguration.Builder,
,PromptOverrideConfiguration> SdkPojo
- Enclosing class:
PromptOverrideConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionoverrideLambda
(String overrideLambda) The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence.promptConfigurations
(Collection<PromptConfiguration> promptConfigurations) Contains configurations to override a prompt template in one part of an agent sequence.promptConfigurations
(Consumer<PromptConfiguration.Builder>... promptConfigurations) Contains configurations to override a prompt template in one part of an agent sequence.promptConfigurations
(PromptConfiguration... promptConfigurations) Contains configurations to override a prompt template in one part of an agent sequence.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
overrideLambda
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
.- Parameters:
overrideLambda
- 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 thepromptConfigurations
must contain aparserMode
value that is set toOVERRIDDEN
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptConfigurations
PromptOverrideConfiguration.Builder promptConfigurations(Collection<PromptConfiguration> promptConfigurations) Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
- Parameters:
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptConfigurations
PromptOverrideConfiguration.Builder promptConfigurations(PromptConfiguration... promptConfigurations) Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
- Parameters:
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptConfigurations
PromptOverrideConfiguration.Builder promptConfigurations(Consumer<PromptConfiguration.Builder>... promptConfigurations) Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
This is a convenience method that creates an instance of thePromptConfiguration.Builder
avoiding the need to create one manually viaPromptConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topromptConfigurations(List<PromptConfiguration>)
.- Parameters:
promptConfigurations
- a consumer that will call methods onPromptConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-