Interface InferenceTargetConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InferenceTargetConfiguration.Builder,,InferenceTargetConfiguration> SdkBuilder<InferenceTargetConfiguration.Builder,,InferenceTargetConfiguration> SdkPojo
- Enclosing class:
InferenceTargetConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe connector-based inference configuration.connector(InferenceConnectorTargetConfiguration connector) The connector-based inference configuration.The provider-based inference configuration.provider(InferenceProviderTargetConfiguration provider) The provider-based inference configuration.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, sdkFieldNameToField, sdkFields
-
Method Details
-
connector
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
- Parameters:
connector- The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connector
default InferenceTargetConfiguration.Builder connector(Consumer<InferenceConnectorTargetConfiguration.Builder> connector) The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
This is a convenience method that creates an instance of theInferenceConnectorTargetConfiguration.Builderavoiding the need to create one manually viaInferenceConnectorTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnector(InferenceConnectorTargetConfiguration).- Parameters:
connector- a consumer that will call methods onInferenceConnectorTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
provider
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
- Parameters:
provider- The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provider
default InferenceTargetConfiguration.Builder provider(Consumer<InferenceProviderTargetConfiguration.Builder> provider) The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
This is a convenience method that creates an instance of theInferenceProviderTargetConfiguration.Builderavoiding the need to create one manually viaInferenceProviderTargetConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprovider(InferenceProviderTargetConfiguration).- Parameters:
provider- a consumer that will call methods onInferenceProviderTargetConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-