Interface ChatPromptTemplateConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ChatPromptTemplateConfiguration.Builder,
,ChatPromptTemplateConfiguration> SdkBuilder<ChatPromptTemplateConfiguration.Builder,
,ChatPromptTemplateConfiguration> SdkPojo
- Enclosing class:
ChatPromptTemplateConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioninputVariables
(Collection<PromptInputVariable> inputVariables) An array of the variables in the prompt template.inputVariables
(Consumer<PromptInputVariable.Builder>... inputVariables) An array of the variables in the prompt template.inputVariables
(PromptInputVariable... inputVariables) An array of the variables in the prompt template.messages
(Collection<Message> messages) Contains messages in the chat for the prompt.messages
(Consumer<Message.Builder>... messages) Contains messages in the chat for the prompt.Contains messages in the chat for the prompt.system
(Collection<SystemContentBlock> system) Contains system prompts to provide context to the model or to describe how it should behave.system
(Consumer<SystemContentBlock.Builder>... system) Contains system prompts to provide context to the model or to describe how it should behave.system
(SystemContentBlock... system) Contains system prompts to provide context to the model or to describe how it should behave.toolConfiguration
(Consumer<ToolConfiguration.Builder> toolConfiguration) Configuration information for the tools that the model can use when generating a response.toolConfiguration
(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 Details
-
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
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.Builder
avoiding the need to create one manually viaPromptInputVariable.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinputVariables(List<PromptInputVariable>)
.- 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:
-
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
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
Contains messages in the chat for the prompt.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessages(List<Message>)
.- 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:
-
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
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
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.Builder
avoiding the need to create one manually viaSystemContentBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosystem(List<SystemContentBlock>)
.- 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:
-
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.Builder
avoiding the need to create one manually viaToolConfiguration.builder()
.When the
Consumer
completes,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:
-