Interface GenerationConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GenerationConfiguration.Builder,
,GenerationConfiguration> SdkBuilder<GenerationConfiguration.Builder,
,GenerationConfiguration> SdkPojo
- Enclosing class:
GenerationConfiguration
public static interface GenerationConfiguration.Builder
extends SdkPojo, CopyableBuilder<GenerationConfiguration.Builder,GenerationConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GenerationConfiguration.Builder
promptTemplate
(Consumer<PromptTemplate.Builder> promptTemplate) Contains the template for the prompt that's sent to the model for response generation.promptTemplate
(PromptTemplate promptTemplate) Contains the template for the prompt that's sent to the model for response generation.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
-
promptTemplate
Contains the template for the prompt that's sent to the model for response generation.
- Parameters:
promptTemplate
- Contains the template for the prompt that's sent to the model for response generation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptTemplate
default GenerationConfiguration.Builder promptTemplate(Consumer<PromptTemplate.Builder> promptTemplate) Contains the template for the prompt that's sent to the model for response generation.
This is a convenience method that creates an instance of thePromptTemplate.Builder
avoiding the need to create one manually viaPromptTemplate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topromptTemplate(PromptTemplate)
.- Parameters:
promptTemplate
- a consumer that will call methods onPromptTemplate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-