Interface PromptFlowNodeInlineConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PromptFlowNodeInlineConfiguration.Builder,,PromptFlowNodeInlineConfiguration> SdkBuilder<PromptFlowNodeInlineConfiguration.Builder,,PromptFlowNodeInlineConfiguration> SdkPojo
- Enclosing class:
PromptFlowNodeInlineConfiguration
public static interface PromptFlowNodeInlineConfiguration.Builder
extends SdkPojo, CopyableBuilder<PromptFlowNodeInlineConfiguration.Builder,PromptFlowNodeInlineConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptioninferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration) Contains inference configurations for the prompt.inferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration) Contains inference configurations for the prompt.The unique identifier of the model or inference profile to run inference with.templateConfiguration(Consumer<PromptTemplateConfiguration.Builder> templateConfiguration) Contains a prompt and variables in the prompt that can be replaced with values at runtime.templateConfiguration(PromptTemplateConfiguration templateConfiguration) Contains a prompt and variables in the prompt that can be replaced with values at runtime.templateType(String templateType) The type of prompt template.templateType(PromptTemplateType templateType) The type of prompt template.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
inferenceConfiguration
PromptFlowNodeInlineConfiguration.Builder inferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration) Contains inference configurations for the prompt.
- Parameters:
inferenceConfiguration- Contains inference configurations for the prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceConfiguration
default PromptFlowNodeInlineConfiguration.Builder inferenceConfiguration(Consumer<PromptInferenceConfiguration.Builder> inferenceConfiguration) Contains inference configurations for the prompt.
This is a convenience method that creates an instance of thePromptInferenceConfiguration.Builderavoiding the need to create one manually viaPromptInferenceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceConfiguration(PromptInferenceConfiguration).- Parameters:
inferenceConfiguration- a consumer that will call methods onPromptInferenceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelId
The unique identifier of the model or inference profile to run inference with.
- Parameters:
modelId- The unique identifier of the model or inference profile to run inference with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
PromptFlowNodeInlineConfiguration.Builder templateConfiguration(PromptTemplateConfiguration templateConfiguration) Contains a prompt and variables in the prompt that can be replaced with values at runtime.
- Parameters:
templateConfiguration- Contains a prompt and variables in the prompt that can be replaced with values at runtime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateConfiguration
default PromptFlowNodeInlineConfiguration.Builder templateConfiguration(Consumer<PromptTemplateConfiguration.Builder> templateConfiguration) Contains a prompt and variables in the prompt that can be replaced with values at runtime.
This is a convenience method that creates an instance of thePromptTemplateConfiguration.Builderavoiding the need to create one manually viaPromptTemplateConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateConfiguration(PromptTemplateConfiguration).- Parameters:
templateConfiguration- a consumer that will call methods onPromptTemplateConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The type of prompt template.
- Parameters:
templateType- The type of prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The type of prompt template.
- Parameters:
templateType- The type of prompt template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-