Class OutputItemRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class OutputItemRetrieveResponse.BuilderA builder for OutputItemRetrieveResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final OutputItemRetrieveResponse.Builder id(String id)
Unique identifier for the evaluation run output item.
-
id
final OutputItemRetrieveResponse.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final OutputItemRetrieveResponse.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) when the evaluation run was created.
-
createdAt
final OutputItemRetrieveResponse.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
datasourceItem
final OutputItemRetrieveResponse.Builder datasourceItem(OutputItemRetrieveResponse.DatasourceItem datasourceItem)
Details of the input data source item.
-
datasourceItem
final OutputItemRetrieveResponse.Builder datasourceItem(JsonField<OutputItemRetrieveResponse.DatasourceItem> datasourceItem)
Sets Builder.datasourceItem to an arbitrary JSON value.
You should usually call Builder.datasourceItem with a well-typed DatasourceItem value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
datasourceItemId
final OutputItemRetrieveResponse.Builder datasourceItemId(Long datasourceItemId)
The identifier for the data source item.
-
datasourceItemId
final OutputItemRetrieveResponse.Builder datasourceItemId(JsonField<Long> datasourceItemId)
Sets Builder.datasourceItemId to an arbitrary JSON value.
You should usually call Builder.datasourceItemId with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
evalId
final OutputItemRetrieveResponse.Builder evalId(String evalId)
The identifier of the evaluation group.
-
evalId
final OutputItemRetrieveResponse.Builder evalId(JsonField<String> evalId)
Sets Builder.evalId to an arbitrary JSON value.
You should usually call Builder.evalId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final OutputItemRetrieveResponse.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("eval.run.output_item")This method is primarily for setting the field to an undocumented or not yet supported value.
-
results
final OutputItemRetrieveResponse.Builder results(List<OutputItemRetrieveResponse.Result> results)
A list of grader results for this output item.
-
results
final OutputItemRetrieveResponse.Builder results(JsonField<List<OutputItemRetrieveResponse.Result>> results)
Sets Builder.results to an arbitrary JSON value.
You should usually call Builder.results with a well-typed
List<Result>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResult
final OutputItemRetrieveResponse.Builder addResult(OutputItemRetrieveResponse.Result result)
-
runId
final OutputItemRetrieveResponse.Builder runId(String runId)
The identifier of the evaluation run associated with this output item.
-
runId
final OutputItemRetrieveResponse.Builder runId(JsonField<String> runId)
Sets Builder.runId to an arbitrary JSON value.
You should usually call Builder.runId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sample
final OutputItemRetrieveResponse.Builder sample(OutputItemRetrieveResponse.Sample sample)
A sample containing the input and output of the evaluation run.
-
sample
final OutputItemRetrieveResponse.Builder sample(JsonField<OutputItemRetrieveResponse.Sample> sample)
Sets Builder.sample to an arbitrary JSON value.
You should usually call Builder.sample with a well-typed Sample value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final OutputItemRetrieveResponse.Builder status(String status)
The status of the evaluation run.
-
status
final OutputItemRetrieveResponse.Builder status(JsonField<String> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final OutputItemRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final OutputItemRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OutputItemRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OutputItemRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OutputItemRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OutputItemRetrieveResponse build()
Returns an immutable instance of OutputItemRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .datasourceItem() .datasourceItemId() .evalId() .results() .runId() .sample() .status()
-
-
-
-