Record Class Options
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.ollama.Options
public record Options(Double temperature, Integer topK, Double topP, Double repeatPenalty, Integer seed, Integer numPredict, Integer numCtx, List<String> stop)
extends Record
request options in completion/embedding API
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Options.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.numCtx()Returns the value of thenumCtxrecord component.Returns the value of thenumPredictrecord component.Returns the value of therepeatPenaltyrecord component.seed()Returns the value of theseedrecord component.stop()Returns the value of thestoprecord component.Returns the value of thetemperaturerecord component.topK()Returns the value of thetopKrecord component.topP()Returns the value of thetopPrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(Double temperature, Integer topK, Double topP, Double repeatPenalty, Integer seed, Integer numPredict, Integer numCtx, List<String> stop) Creates an instance of aOptionsrecord class.- Parameters:
temperature- the value for thetemperaturerecord componenttopK- the value for thetopKrecord componenttopP- the value for thetopPrecord componentrepeatPenalty- the value for therepeatPenaltyrecord componentseed- the value for theseedrecord componentnumPredict- the value for thenumPredictrecord componentnumCtx- the value for thenumCtxrecord componentstop- the value for thestoprecord component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
topK
Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-
topP
Returns the value of thetopPrecord component.- Returns:
- the value of the
topPrecord component
-
repeatPenalty
Returns the value of therepeatPenaltyrecord component.- Returns:
- the value of the
repeatPenaltyrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
numPredict
Returns the value of thenumPredictrecord component.- Returns:
- the value of the
numPredictrecord component
-
numCtx
Returns the value of thenumCtxrecord component.- Returns:
- the value of the
numCtxrecord component
-
stop
Returns the value of thestoprecord component.- Returns:
- the value of the
stoprecord component
-