Interface ExternalSourcesGenerationConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExternalSourcesGenerationConfiguration.Builder,ExternalSourcesGenerationConfiguration>,SdkBuilder<ExternalSourcesGenerationConfiguration.Builder,ExternalSourcesGenerationConfiguration>,SdkPojo
- Enclosing class:
- ExternalSourcesGenerationConfiguration
@Mutable @NotThreadSafe public static interface ExternalSourcesGenerationConfiguration.Builder extends SdkPojo, CopyableBuilder<ExternalSourcesGenerationConfiguration.Builder,ExternalSourcesGenerationConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExternalSourcesGenerationConfiguration.BuilderadditionalModelRequestFields(Map<String,Document> additionalModelRequestFields)Additional model parameters and their corresponding values not included in the text inference configuration for an external source.default ExternalSourcesGenerationConfiguration.BuilderguardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration)Configuration details for the guardrail.ExternalSourcesGenerationConfiguration.BuilderguardrailConfiguration(GuardrailConfiguration guardrailConfiguration)Configuration details for the guardrail.default ExternalSourcesGenerationConfiguration.BuilderkbInferenceConfig(Consumer<KbInferenceConfig.Builder> kbInferenceConfig)Configuration details for inference when usingRetrieveAndGenerateto generate responses while using an external source.ExternalSourcesGenerationConfiguration.BuilderkbInferenceConfig(KbInferenceConfig kbInferenceConfig)Configuration details for inference when usingRetrieveAndGenerateto generate responses while using an external source.default ExternalSourcesGenerationConfiguration.BuilderpromptTemplate(Consumer<PromptTemplate.Builder> promptTemplate)Contains the template for the prompt for the external source wrapper object.ExternalSourcesGenerationConfiguration.BuilderpromptTemplate(PromptTemplate promptTemplate)Contains the template for the prompt for the external source wrapper object.-
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
-
promptTemplate
ExternalSourcesGenerationConfiguration.Builder promptTemplate(PromptTemplate promptTemplate)
Contains the template for the prompt for the external source wrapper object.
- Parameters:
promptTemplate- Contains the template for the prompt for the external source wrapper object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptTemplate
default ExternalSourcesGenerationConfiguration.Builder promptTemplate(Consumer<PromptTemplate.Builder> promptTemplate)
Contains the template for the prompt for the external source wrapper object.
This is a convenience method that creates an instance of thePromptTemplate.Builderavoiding the need to create one manually viaPromptTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptTemplate(PromptTemplate).- Parameters:
promptTemplate- a consumer that will call methods onPromptTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
promptTemplate(PromptTemplate)
-
guardrailConfiguration
ExternalSourcesGenerationConfiguration.Builder guardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
Configuration details for the guardrail.
- Parameters:
guardrailConfiguration- Configuration details for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailConfiguration
default ExternalSourcesGenerationConfiguration.Builder guardrailConfiguration(Consumer<GuardrailConfiguration.Builder> guardrailConfiguration)
Configuration details for the guardrail.
This is a convenience method that creates an instance of theGuardrailConfiguration.Builderavoiding the need to create one manually viaGuardrailConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailConfiguration(GuardrailConfiguration).- Parameters:
guardrailConfiguration- a consumer that will call methods onGuardrailConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
guardrailConfiguration(GuardrailConfiguration)
-
kbInferenceConfig
ExternalSourcesGenerationConfiguration.Builder kbInferenceConfig(KbInferenceConfig kbInferenceConfig)
Configuration details for inference when using
RetrieveAndGenerateto generate responses while using an external source.- Parameters:
kbInferenceConfig- Configuration details for inference when usingRetrieveAndGenerateto generate responses while using an external source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kbInferenceConfig
default ExternalSourcesGenerationConfiguration.Builder kbInferenceConfig(Consumer<KbInferenceConfig.Builder> kbInferenceConfig)
Configuration details for inference when using
This is a convenience method that creates an instance of theRetrieveAndGenerateto generate responses while using an external source.KbInferenceConfig.Builderavoiding the need to create one manually viaKbInferenceConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokbInferenceConfig(KbInferenceConfig).- Parameters:
kbInferenceConfig- a consumer that will call methods onKbInferenceConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
kbInferenceConfig(KbInferenceConfig)
-
additionalModelRequestFields
ExternalSourcesGenerationConfiguration.Builder additionalModelRequestFields(Map<String,Document> additionalModelRequestFields)
Additional model parameters and their corresponding values not included in the text inference configuration for an external source. Takes in custom model parameters specific to the language model being used.
- Parameters:
additionalModelRequestFields- Additional model parameters and their corresponding values not included in the text inference configuration for an external source. Takes in custom model parameters specific to the language model being used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-