Class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder
-
- All Implemented Interfaces:
public final class RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder
A builder for SamplingParams.
-
-
Method Summary
-
-
Method Detail
-
maxCompletionTokens
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder maxCompletionTokens(Long maxCompletionTokens)
The maximum number of tokens in the generated output.
-
maxCompletionTokens
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder maxCompletionTokens(JsonField<Long> maxCompletionTokens)
Sets Builder.maxCompletionTokens to an arbitrary JSON value.
You should usually call Builder.maxCompletionTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
seed
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder seed(Long seed)
A seed value to initialize the randomness, during sampling.
-
seed
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder seed(JsonField<Long> seed)
Sets Builder.seed to an arbitrary JSON value.
You should usually call Builder.seed with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
temperature
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder temperature(Double temperature)
A higher temperature increases randomness in the outputs.
-
temperature
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder temperature(JsonField<Double> temperature)
Sets Builder.temperature to an arbitrary JSON value.
You should usually call Builder.temperature with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
topP
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder topP(Double topP)
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
-
topP
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder topP(JsonField<Double> topP)
Sets Builder.topP to an arbitrary JSON value.
You should usually call Builder.topP with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RunCreateParams.DataSource.CreateEvalResponsesRunDataSource.SamplingParams build()
Returns an immutable instance of SamplingParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-