Interface PromptTemplateConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PromptTemplateConfiguration.Builder,
,PromptTemplateConfiguration> SdkBuilder<PromptTemplateConfiguration.Builder,
,PromptTemplateConfiguration> SdkPojo
- Enclosing class:
PromptTemplateConfiguration
@Mutable
@NotThreadSafe
public static interface PromptTemplateConfiguration.Builder
extends SdkPojo, CopyableBuilder<PromptTemplateConfiguration.Builder,PromptTemplateConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionContains configurations to use the prompt in a conversational format.Contains configurations to use the prompt in a conversational format.Contains configurations for the text in a message for a prompt.Contains configurations for the text in a message for a prompt.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, sdkFieldNameToField, sdkFields
-
Method Details
-
chat
Contains configurations to use the prompt in a conversational format.
- Parameters:
chat
- Contains configurations to use the prompt in a conversational format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chat
default PromptTemplateConfiguration.Builder chat(Consumer<ChatPromptTemplateConfiguration.Builder> chat) Contains configurations to use the prompt in a conversational format.
This is a convenience method that creates an instance of theChatPromptTemplateConfiguration.Builder
avoiding the need to create one manually viaChatPromptTemplateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochat(ChatPromptTemplateConfiguration)
.- Parameters:
chat
- a consumer that will call methods onChatPromptTemplateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
Contains configurations for the text in a message for a prompt.
- Parameters:
text
- Contains configurations for the text in a message for a prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
default PromptTemplateConfiguration.Builder text(Consumer<TextPromptTemplateConfiguration.Builder> text) Contains configurations for the text in a message for a prompt.
This is a convenience method that creates an instance of theTextPromptTemplateConfiguration.Builder
avoiding the need to create one manually viaTextPromptTemplateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totext(TextPromptTemplateConfiguration)
.- Parameters:
text
- a consumer that will call methods onTextPromptTemplateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-