Class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams
-
- All Implemented Interfaces:
public final class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder
A builder for SamplingParams.
-
Method Summary
Modifier and Type Method Description final Optional<Long>
maxCompletionTokens()
The maximum number of tokens in the generated output. final Optional<Long>
seed()
A seed value to initialize the randomness, during sampling. final Optional<Double>
temperature()
A higher temperature increases randomness in the outputs. final Optional<Double>
topP()
An alternative to temperature for nucleus sampling; 1.0 includes all tokens. final JsonField<Long>
_maxCompletionTokens()
Returns the raw JSON value of maxCompletionTokens. final JsonField<Long>
_seed()
Returns the raw JSON value of seed. final JsonField<Double>
_temperature()
Returns the raw JSON value of temperature. final JsonField<Double>
_topP()
Returns the raw JSON value of topP. final Map<String, JsonValue>
_additionalProperties()
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder
toBuilder()
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder
builder()
Returns a mutable builder for constructing an instance of SamplingParams. -
-
Method Detail
-
maxCompletionTokens
final Optional<Long> maxCompletionTokens()
The maximum number of tokens in the generated output.
-
temperature
final Optional<Double> temperature()
A higher temperature increases randomness in the outputs.
-
topP
final Optional<Double> topP()
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
-
_maxCompletionTokens
final JsonField<Long> _maxCompletionTokens()
Returns the raw JSON value of maxCompletionTokens.
Unlike maxCompletionTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_seed
final JsonField<Long> _seed()
Returns the raw JSON value of seed.
Unlike seed, this method doesn't throw if the JSON field has an unexpected type.
-
_temperature
final JsonField<Double> _temperature()
Returns the raw JSON value of temperature.
Unlike temperature, this method doesn't throw if the JSON field has an unexpected type.
-
_topP
final JsonField<Double> _topP()
Returns the raw JSON value of topP.
Unlike topP, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder toBuilder()
-
validate
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams validate()
-
builder
final static RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder builder()
Returns a mutable builder for constructing an instance of SamplingParams.
-
-
-
-