Class TextAIPromptInferenceConfiguration
java.lang.Object
software.amazon.awssdk.services.qconnect.model.TextAIPromptInferenceConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TextAIPromptInferenceConfiguration.Builder,TextAIPromptInferenceConfiguration>
@Generated("software.amazon.awssdk:codegen")
public final class TextAIPromptInferenceConfiguration
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<TextAIPromptInferenceConfiguration.Builder,TextAIPromptInferenceConfiguration>
Inference configuration for text-based AI Prompts.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe maximum number of tokens to generate in the response.static Class<? extends TextAIPromptInferenceConfiguration.Builder> final FloatThe temperature setting for controlling randomness in the generated response.Take this object and create a builder that contains all of the current property values of this object.final IntegertopK()The top-K sampling parameter for token selection.final FloattopP()The top-P sampling parameter for nucleus sampling.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
temperature
The temperature setting for controlling randomness in the generated response.
- Returns:
- The temperature setting for controlling randomness in the generated response.
-
topP
The top-P sampling parameter for nucleus sampling.
- Returns:
- The top-P sampling parameter for nucleus sampling.
-
topK
The top-K sampling parameter for token selection.
- Returns:
- The top-K sampling parameter for token selection.
-
maxTokensToSample
The maximum number of tokens to generate in the response.
- Returns:
- The maximum number of tokens to generate in the response.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TextAIPromptInferenceConfiguration.Builder,TextAIPromptInferenceConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends TextAIPromptInferenceConfiguration.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-