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
-
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 Detail
-
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:
inferenceConfiguration(PromptInferenceConfiguration)
-
modelId
PromptFlowNodeInlineConfiguration.Builder modelId(String 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:
templateConfiguration(PromptTemplateConfiguration)
-
templateType
PromptFlowNodeInlineConfiguration.Builder templateType(String 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:
PromptTemplateType,PromptTemplateType
-
templateType
PromptFlowNodeInlineConfiguration.Builder templateType(PromptTemplateType 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:
PromptTemplateType,PromptTemplateType
-
-