Class OutputItemListResponse.Sample
-
- All Implemented Interfaces:
public final class OutputItemListResponse.SampleA sample containing the input and output of the evaluation run.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutputItemListResponse.Sample.BuilderA builder for Sample.
public final classOutputItemListResponse.Sample.InputAn input message.
public final classOutputItemListResponse.Sample.Outputpublic final classOutputItemListResponse.Sample.UsageToken usage details for the sample.
-
Method Summary
Modifier and Type Method Description final EvalApiErrorerror()An object representing an error response from the Eval API. final StringfinishReason()The reason why the sample generation was finished. final List<OutputItemListResponse.Sample.Input>input()An array of input messages. final LongmaxCompletionTokens()The maximum number of tokens allowed for completion. final Stringmodel()The model used for generating the sample. final List<OutputItemListResponse.Sample.Output>output()An array of output messages. final Longseed()The seed used for generating the sample. final Doubletemperature()The sampling temperature used. final DoubletopP()The top_p value used for sampling. final OutputItemListResponse.Sample.Usageusage()Token usage details for the sample. final JsonField<EvalApiError>_error()Returns the raw JSON value of error. final JsonField<String>_finishReason()Returns the raw JSON value of finishReason. final JsonField<List<OutputItemListResponse.Sample.Input>>_input()Returns the raw JSON value of input. final JsonField<Long>_maxCompletionTokens()Returns the raw JSON value of maxCompletionTokens. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<List<OutputItemListResponse.Sample.Output>>_output()Returns the raw JSON value of output. 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 JsonField<OutputItemListResponse.Sample.Usage>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final OutputItemListResponse.Sample.BuildertoBuilder()final OutputItemListResponse.Samplevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OutputItemListResponse.Sample.Builderbuilder()Returns a mutable builder for constructing an instance of Sample. -
-
Method Detail
-
error
final EvalApiError error()
An object representing an error response from the Eval API.
-
finishReason
final String finishReason()
The reason why the sample generation was finished.
-
input
final List<OutputItemListResponse.Sample.Input> input()
An array of input messages.
-
maxCompletionTokens
final Long maxCompletionTokens()
The maximum number of tokens allowed for completion.
-
output
final List<OutputItemListResponse.Sample.Output> output()
An array of output messages.
-
temperature
final Double temperature()
The sampling temperature used.
-
usage
final OutputItemListResponse.Sample.Usage usage()
Token usage details for the sample.
-
_error
final JsonField<EvalApiError> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_finishReason
final JsonField<String> _finishReason()
Returns the raw JSON value of finishReason.
Unlike finishReason, this method doesn't throw if the JSON field has an unexpected type.
-
_input
final JsonField<List<OutputItemListResponse.Sample.Input>> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_output
final JsonField<List<OutputItemListResponse.Sample.Output>> _output()
Returns the raw JSON value of output.
Unlike output, 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.
-
_usage
final JsonField<OutputItemListResponse.Sample.Usage> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OutputItemListResponse.Sample.Builder toBuilder()
-
validate
final OutputItemListResponse.Sample validate()
-
builder
final static OutputItemListResponse.Sample.Builder builder()
Returns a mutable builder for constructing an instance of Sample.
The following fields are required:
.error() .finishReason() .input() .maxCompletionTokens() .model() .output() .seed() .temperature() .topP() .usage()
-
-
-
-