Class OutputItemRetrieveResponse.Sample.Builder
-
- All Implemented Interfaces:
public final class OutputItemRetrieveResponse.Sample.BuilderA builder for Sample.
-
-
Method Summary
-
-
Method Detail
-
error
final OutputItemRetrieveResponse.Sample.Builder error(EvalApiError error)
An object representing an error response from the Eval API.
-
error
final OutputItemRetrieveResponse.Sample.Builder error(JsonField<EvalApiError> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed EvalApiError value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
finishReason
final OutputItemRetrieveResponse.Sample.Builder finishReason(String finishReason)
The reason why the sample generation was finished.
-
finishReason
final OutputItemRetrieveResponse.Sample.Builder finishReason(JsonField<String> finishReason)
Sets Builder.finishReason to an arbitrary JSON value.
You should usually call Builder.finishReason with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
input
final OutputItemRetrieveResponse.Sample.Builder input(List<OutputItemRetrieveResponse.Sample.Input> input)
An array of input messages.
-
input
final OutputItemRetrieveResponse.Sample.Builder input(JsonField<List<OutputItemRetrieveResponse.Sample.Input>> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed
List<Input>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInput
final OutputItemRetrieveResponse.Sample.Builder addInput(OutputItemRetrieveResponse.Sample.Input input)
Adds a single Input to Builder.input.
-
maxCompletionTokens
final OutputItemRetrieveResponse.Sample.Builder maxCompletionTokens(Long maxCompletionTokens)
The maximum number of tokens allowed for completion.
-
maxCompletionTokens
final OutputItemRetrieveResponse.Sample.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.
-
model
final OutputItemRetrieveResponse.Sample.Builder model(String model)
The model used for generating the sample.
-
model
final OutputItemRetrieveResponse.Sample.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
output
final OutputItemRetrieveResponse.Sample.Builder output(List<OutputItemRetrieveResponse.Sample.Output> output)
An array of output messages.
-
output
final OutputItemRetrieveResponse.Sample.Builder output(JsonField<List<OutputItemRetrieveResponse.Sample.Output>> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output with a well-typed
List<Output>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addOutput
final OutputItemRetrieveResponse.Sample.Builder addOutput(OutputItemRetrieveResponse.Sample.Output output)
Adds a single Output to Builder.output.
-
seed
final OutputItemRetrieveResponse.Sample.Builder seed(Long seed)
The seed used for generating the sample.
-
seed
final OutputItemRetrieveResponse.Sample.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 OutputItemRetrieveResponse.Sample.Builder temperature(Double temperature)
The sampling temperature used.
-
temperature
final OutputItemRetrieveResponse.Sample.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 OutputItemRetrieveResponse.Sample.Builder topP(Double topP)
The top_p value used for sampling.
-
topP
final OutputItemRetrieveResponse.Sample.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.
-
usage
final OutputItemRetrieveResponse.Sample.Builder usage(OutputItemRetrieveResponse.Sample.Usage usage)
Token usage details for the sample.
-
usage
final OutputItemRetrieveResponse.Sample.Builder usage(JsonField<OutputItemRetrieveResponse.Sample.Usage> usage)
Sets Builder.usage to an arbitrary JSON value.
You should usually call Builder.usage with a well-typed Usage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final OutputItemRetrieveResponse.Sample.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final OutputItemRetrieveResponse.Sample.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OutputItemRetrieveResponse.Sample.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OutputItemRetrieveResponse.Sample.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OutputItemRetrieveResponse.Sample.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OutputItemRetrieveResponse.Sample build()
Returns an immutable instance of Sample.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.error() .finishReason() .input() .maxCompletionTokens() .model() .output() .seed() .temperature() .topP() .usage()
-
-
-
-