Interface ExternalSourcesRetrieveAndGenerateConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ExternalSourcesRetrieveAndGenerateConfiguration.Builder,
,ExternalSourcesRetrieveAndGenerateConfiguration> SdkBuilder<ExternalSourcesRetrieveAndGenerateConfiguration.Builder,
,ExternalSourcesRetrieveAndGenerateConfiguration> SdkPojo
- Enclosing class:
ExternalSourcesRetrieveAndGenerateConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiongenerationConfiguration
(Consumer<ExternalSourcesGenerationConfiguration.Builder> generationConfiguration) Contains configurations details for response generation based on retrieved text chunks.generationConfiguration
(ExternalSourcesGenerationConfiguration generationConfiguration) Contains configurations details for response generation based on retrieved text chunks.The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.sources
(Collection<ExternalSource> sources) The document for the external source wrapper object in theretrieveAndGenerate
function.sources
(Consumer<ExternalSource.Builder>... sources) The document for the external source wrapper object in theretrieveAndGenerate
function.sources
(ExternalSource... sources) The document for the external source wrapper object in theretrieveAndGenerate
function.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
-
modelArn
The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.
- Parameters:
modelArn
- The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
The document for the external source wrapper object in the
retrieveAndGenerate
function.- Parameters:
sources
- The document for the external source wrapper object in theretrieveAndGenerate
function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
The document for the external source wrapper object in the
retrieveAndGenerate
function.- Parameters:
sources
- The document for the external source wrapper object in theretrieveAndGenerate
function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
ExternalSourcesRetrieveAndGenerateConfiguration.Builder sources(Consumer<ExternalSource.Builder>... sources) The document for the external source wrapper object in the
This is a convenience method that creates an instance of theretrieveAndGenerate
function.ExternalSource.Builder
avoiding the need to create one manually viaExternalSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosources(List<ExternalSource>)
.- Parameters:
sources
- a consumer that will call methods onExternalSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generationConfiguration
ExternalSourcesRetrieveAndGenerateConfiguration.Builder generationConfiguration(ExternalSourcesGenerationConfiguration generationConfiguration) Contains configurations details for response generation based on retrieved text chunks.
- Parameters:
generationConfiguration
- Contains configurations details for response generation based on retrieved text chunks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generationConfiguration
default ExternalSourcesRetrieveAndGenerateConfiguration.Builder generationConfiguration(Consumer<ExternalSourcesGenerationConfiguration.Builder> generationConfiguration) Contains configurations details for response generation based on retrieved text chunks.
This is a convenience method that creates an instance of theExternalSourcesGenerationConfiguration.Builder
avoiding the need to create one manually viaExternalSourcesGenerationConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togenerationConfiguration(ExternalSourcesGenerationConfiguration)
.- Parameters:
generationConfiguration
- a consumer that will call methods onExternalSourcesGenerationConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-