Interface TextAIPromptInferenceConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TextAIPromptInferenceConfiguration.Builder,,TextAIPromptInferenceConfiguration> SdkBuilder<TextAIPromptInferenceConfiguration.Builder,,TextAIPromptInferenceConfiguration> SdkPojo
- Enclosing class:
TextAIPromptInferenceConfiguration
@Mutable
@NotThreadSafe
public static interface TextAIPromptInferenceConfiguration.Builder
extends SdkPojo, CopyableBuilder<TextAIPromptInferenceConfiguration.Builder,TextAIPromptInferenceConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionmaxTokensToSample(Integer maxTokensToSample) The maximum number of tokens to generate in the response.temperature(Float temperature) The temperature setting for controlling randomness in the generated response.The top-K sampling parameter for token selection.The top-P sampling parameter for nucleus sampling.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
-
temperature
The temperature setting for controlling randomness in the generated response.
- Parameters:
temperature- The temperature setting for controlling randomness in the generated response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topP
The top-P sampling parameter for nucleus sampling.
- Parameters:
topP- The top-P sampling parameter for nucleus sampling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topK
The top-K sampling parameter for token selection.
- Parameters:
topK- The top-K sampling parameter for token selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTokensToSample
The maximum number of tokens to generate in the response.
- Parameters:
maxTokensToSample- The maximum number of tokens to generate in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-