Interface PromptFlowNodeInlineConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PromptFlowNodeInlineConfiguration.Builder,
,PromptFlowNodeInlineConfiguration> SdkBuilder<PromptFlowNodeInlineConfiguration.Builder,
,PromptFlowNodeInlineConfiguration> SdkPojo
- Enclosing class:
PromptFlowNodeInlineConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionadditionalModelRequestFields
(Document additionalModelRequestFields) Additional fields to be included in the model request for the Prompt node.inferenceConfiguration
(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
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
-
additionalModelRequestFields
PromptFlowNodeInlineConfiguration.Builder additionalModelRequestFields(Document additionalModelRequestFields) Additional fields to be included in the model request for the Prompt node.
- Parameters:
additionalModelRequestFields
- Additional fields to be included in the model request for the Prompt node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.Builder
avoiding the need to create one manually viaPromptInferenceConfiguration.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaPromptTemplateConfiguration.builder()
.When the
Consumer
completes,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:
-