Interface ChatPromptTemplateConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ChatPromptTemplateConfiguration.Builder,ChatPromptTemplateConfiguration>,SdkBuilder<ChatPromptTemplateConfiguration.Builder,ChatPromptTemplateConfiguration>,SdkPojo
- Enclosing class:
- ChatPromptTemplateConfiguration
@Mutable @NotThreadSafe public static interface ChatPromptTemplateConfiguration.Builder extends SdkPojo, CopyableBuilder<ChatPromptTemplateConfiguration.Builder,ChatPromptTemplateConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ChatPromptTemplateConfiguration.BuilderinputVariables(Collection<PromptInputVariable> inputVariables)An array of the variables in the prompt template.ChatPromptTemplateConfiguration.BuilderinputVariables(Consumer<PromptInputVariable.Builder>... inputVariables)An array of the variables in the prompt template.ChatPromptTemplateConfiguration.BuilderinputVariables(PromptInputVariable... inputVariables)An array of the variables in the prompt template.ChatPromptTemplateConfiguration.Buildermessages(Collection<Message> messages)Contains messages in the chat for the prompt.ChatPromptTemplateConfiguration.Buildermessages(Consumer<Message.Builder>... messages)Contains messages in the chat for the prompt.ChatPromptTemplateConfiguration.Buildermessages(Message... messages)Contains messages in the chat for the prompt.ChatPromptTemplateConfiguration.Buildersystem(Collection<SystemContentBlock> system)Contains system prompts to provide context to the model or to describe how it should behave.ChatPromptTemplateConfiguration.Buildersystem(Consumer<SystemContentBlock.Builder>... system)Contains system prompts to provide context to the model or to describe how it should behave.ChatPromptTemplateConfiguration.Buildersystem(SystemContentBlock... system)Contains system prompts to provide context to the model or to describe how it should behave.default ChatPromptTemplateConfiguration.BuildertoolConfiguration(Consumer<ToolConfiguration.Builder> toolConfiguration)Configuration information for the tools that the model can use when generating a response.ChatPromptTemplateConfiguration.BuildertoolConfiguration(ToolConfiguration toolConfiguration)Configuration information for the tools that the model can use when generating a response.-
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 Detail
-
messages
ChatPromptTemplateConfiguration.Builder messages(Collection<Message> messages)
Contains messages in the chat for the prompt.
- Parameters:
messages- Contains messages in the chat for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
ChatPromptTemplateConfiguration.Builder messages(Message... messages)
Contains messages in the chat for the prompt.
- Parameters:
messages- Contains messages in the chat for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
ChatPromptTemplateConfiguration.Builder messages(Consumer<Message.Builder>... messages)
Contains messages in the chat for the prompt.
This is a convenience method that creates an instance of theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messages(List.) - Parameters:
messages- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messages(java.util.Collection)
-
system
ChatPromptTemplateConfiguration.Builder system(Collection<SystemContentBlock> system)
Contains system prompts to provide context to the model or to describe how it should behave.
- Parameters:
system- Contains system prompts to provide context to the model or to describe how it should behave.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
system
ChatPromptTemplateConfiguration.Builder system(SystemContentBlock... system)
Contains system prompts to provide context to the model or to describe how it should behave.
- Parameters:
system- Contains system prompts to provide context to the model or to describe how it should behave.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
system
ChatPromptTemplateConfiguration.Builder system(Consumer<SystemContentBlock.Builder>... system)
Contains system prompts to provide context to the model or to describe how it should behave.
This is a convenience method that creates an instance of theSystemContentBlock.Builderavoiding the need to create one manually viaSystemContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#system(List.) - Parameters:
system- a consumer that will call methods onSystemContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#system(java.util.Collection)
-
inputVariables
ChatPromptTemplateConfiguration.Builder inputVariables(Collection<PromptInputVariable> inputVariables)
An array of the variables in the prompt template.
- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputVariables
ChatPromptTemplateConfiguration.Builder inputVariables(PromptInputVariable... inputVariables)
An array of the variables in the prompt template.
- Parameters:
inputVariables- An array of the variables in the prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputVariables
ChatPromptTemplateConfiguration.Builder inputVariables(Consumer<PromptInputVariable.Builder>... inputVariables)
An array of the variables in the prompt template.
This is a convenience method that creates an instance of thePromptInputVariable.Builderavoiding the need to create one manually viaPromptInputVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#inputVariables(List.) - Parameters:
inputVariables- a consumer that will call methods onPromptInputVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#inputVariables(java.util.Collection)
-
toolConfiguration
ChatPromptTemplateConfiguration.Builder toolConfiguration(ToolConfiguration toolConfiguration)
Configuration information for the tools that the model can use when generating a response.
- Parameters:
toolConfiguration- Configuration information for the tools that the model can use when generating a response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolConfiguration
default ChatPromptTemplateConfiguration.Builder toolConfiguration(Consumer<ToolConfiguration.Builder> toolConfiguration)
Configuration information for the tools that the model can use when generating a response.
This is a convenience method that creates an instance of theToolConfiguration.Builderavoiding the need to create one manually viaToolConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolConfiguration(ToolConfiguration).- Parameters:
toolConfiguration- a consumer that will call methods onToolConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
toolConfiguration(ToolConfiguration)
-
-