@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InferenceConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Configuration for inference in prompt configuration
Constructor and Description |
---|
InferenceConfiguration() |
public void setTemperature(Float temperature)
temperature
- public Float getTemperature()
public InferenceConfiguration withTemperature(Float temperature)
temperature
- public void setTopP(Float topP)
topP
- public Float getTopP()
public InferenceConfiguration withTopP(Float topP)
topP
- public void setTopK(Integer topK)
topK
- public Integer getTopK()
public InferenceConfiguration withTopK(Integer topK)
topK
- public void setMaximumLength(Integer maximumLength)
maximumLength
- public Integer getMaximumLength()
public InferenceConfiguration withMaximumLength(Integer maximumLength)
maximumLength
- public void setStopSequences(Collection<String> stopSequences)
stopSequences
- public InferenceConfiguration withStopSequences(String... stopSequences)
NOTE: This method appends the values to the existing list (if any). Use
setStopSequences(java.util.Collection)
or withStopSequences(java.util.Collection)
if you want
to override the existing values.
stopSequences
- public InferenceConfiguration withStopSequences(Collection<String> stopSequences)
stopSequences
- public String toString()
toString
in class Object
Object.toString()
public InferenceConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.