Class OutputItemRetrieveResponse.Sample
-
- All Implemented Interfaces:
public final class OutputItemRetrieveResponse.SampleA sample containing the input and output of the evaluation run.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutputItemRetrieveResponse.Sample.BuilderA builder for Sample.
public final classOutputItemRetrieveResponse.Sample.InputAn input message.
public final classOutputItemRetrieveResponse.Sample.Outputpublic final classOutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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 OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.Sample.Usage>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final OutputItemRetrieveResponse.Sample.BuildertoBuilder()final OutputItemRetrieveResponse.Samplevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.Sample.Input> input()
An array of input messages.
-
maxCompletionTokens
final Long maxCompletionTokens()
The maximum number of tokens allowed for completion.
-
output
final List<OutputItemRetrieveResponse.Sample.Output> output()
An array of output messages.
-
temperature
final Double temperature()
The sampling temperature used.
-
usage
final OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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<OutputItemRetrieveResponse.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 OutputItemRetrieveResponse.Sample.Builder toBuilder()
-
validate
final OutputItemRetrieveResponse.Sample validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static OutputItemRetrieveResponse.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()
-
-
-
-