Class RunListResponse.Builder
-
- All Implemented Interfaces:
public final class RunListResponse.BuilderA builder for RunListResponse.
-
-
Method Summary
Modifier and Type Method Description final RunListResponse.Builderid(String id)Unique identifier for the evaluation run. final RunListResponse.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final RunListResponse.BuildercreatedAt(Long createdAt)Unix timestamp (in seconds) when the evaluation run was created. final RunListResponse.BuildercreatedAt(JsonField<Long> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final RunListResponse.BuilderdataSource(RunListResponse.DataSource dataSource)Information about the run's data source. final RunListResponse.BuilderdataSource(JsonField<RunListResponse.DataSource> dataSource)Sets Builder.dataSource to an arbitrary JSON value. final RunListResponse.BuilderdataSource(CreateEvalJsonlRunDataSource jsonl)Alias for calling dataSource with DataSource.ofJsonl(jsonl).final RunListResponse.BuilderdataSource(CreateEvalCompletionsRunDataSource completions)Alias for calling dataSource with DataSource.ofCompletions(completions).final RunListResponse.BuilderdataSource(RunListResponse.DataSource.Responses responses)Alias for calling dataSource with DataSource.ofResponses(responses).final RunListResponse.BuilderjsonlDataSource(CreateEvalJsonlRunDataSource.Source source)Alias for calling dataSource with the following: CreateEvalJsonlRunDataSource.builder() .source(source) .build()final RunListResponse.BuilderjsonlDataSource(CreateEvalJsonlRunDataSource.Source.FileContent fileContent)Alias for calling jsonlDataSource with CreateEvalJsonlRunDataSource.Source.ofFileContent(fileContent).final RunListResponse.BuilderjsonlDataSource(CreateEvalJsonlRunDataSource.Source.FileId fileId)Alias for calling jsonlDataSource with CreateEvalJsonlRunDataSource.Source.ofFileId(fileId).final RunListResponse.BuilderfileContentJsonlDataSource(List<CreateEvalJsonlRunDataSource.Source.FileContent.Content> content)Alias for calling jsonlDataSource with the following: CreateEvalJsonlRunDataSource.Source.FileContent.builder() .content(content) .build()final RunListResponse.BuilderfileIdJsonlDataSource(String id)Alias for calling jsonlDataSource with the following: CreateEvalJsonlRunDataSource.Source.FileId.builder() .id(id) .build()final RunListResponse.BuildercompletionsDataSource(CreateEvalCompletionsRunDataSource.Source source)Alias for calling dataSource with the following: CreateEvalCompletionsRunDataSource.builder() .type(CreateEvalCompletionsRunDataSource.Type.COMPLETIONS) .source(source) .build()final RunListResponse.BuildercompletionsDataSource(CreateEvalCompletionsRunDataSource.Source.FileContent fileContent)Alias for calling completionsDataSource with CreateEvalCompletionsRunDataSource.Source.ofFileContent(fileContent).final RunListResponse.BuildercompletionsDataSource(CreateEvalCompletionsRunDataSource.Source.FileId fileId)Alias for calling completionsDataSource with CreateEvalCompletionsRunDataSource.Source.ofFileId(fileId).final RunListResponse.BuildercompletionsDataSource(CreateEvalCompletionsRunDataSource.Source.StoredCompletions storedCompletions)Alias for calling completionsDataSource with CreateEvalCompletionsRunDataSource.Source.ofStoredCompletions(storedCompletions).final RunListResponse.BuilderfileContentCompletionsDataSource(List<CreateEvalCompletionsRunDataSource.Source.FileContent.Content> content)Alias for calling completionsDataSource with the following: CreateEvalCompletionsRunDataSource.Source.FileContent.builder() .content(content) .build()final RunListResponse.BuilderfileIdCompletionsDataSource(String id)Alias for calling completionsDataSource with the following: CreateEvalCompletionsRunDataSource.Source.FileId.builder() .id(id) .build()final RunListResponse.BuilderresponsesDataSource(RunListResponse.DataSource.Responses.Source source)Alias for calling dataSource with the following: DataSource.Responses.builder() .source(source) .build()final RunListResponse.BuilderresponsesDataSource(RunListResponse.DataSource.Responses.Source.FileContent fileContent)Alias for calling responsesDataSource with DataSource.Responses.Source.ofFileContent(fileContent).final RunListResponse.BuilderresponsesDataSource(RunListResponse.DataSource.Responses.Source.FileId fileId)Alias for calling responsesDataSource with DataSource.Responses.Source.ofFileId(fileId).final RunListResponse.BuilderresponsesDataSource(RunListResponse.DataSource.Responses.Source.InnerResponses responses)Alias for calling responsesDataSource with DataSource.Responses.Source.ofResponses(responses).final RunListResponse.BuilderfileContentResponsesDataSource(List<RunListResponse.DataSource.Responses.Source.FileContent.Content> content)Alias for calling responsesDataSource with the following: DataSource.Responses.Source.FileContent.builder() .content(content) .build()final RunListResponse.BuilderfileIdResponsesDataSource(String id)Alias for calling responsesDataSource with the following: DataSource.Responses.Source.FileId.builder() .id(id) .build()final RunListResponse.Buildererror(EvalApiError error)An object representing an error response from the Eval API. final RunListResponse.Buildererror(JsonField<EvalApiError> error)Sets Builder.error to an arbitrary JSON value. final RunListResponse.BuilderevalId(String evalId)The identifier of the associated evaluation. final RunListResponse.BuilderevalId(JsonField<String> evalId)Sets Builder.evalId to an arbitrary JSON value. final RunListResponse.Buildermetadata(RunListResponse.Metadata metadata)Set of 16 key-value pairs that can be attached to an object. final RunListResponse.Buildermetadata(Optional<RunListResponse.Metadata> metadata)Alias for calling Builder.metadata with metadata.orElse(null).final RunListResponse.Buildermetadata(JsonField<RunListResponse.Metadata> metadata)Sets Builder.metadata to an arbitrary JSON value. final RunListResponse.Buildermodel(String model)The model that is evaluated, if applicable. final RunListResponse.Buildermodel(JsonField<String> model)Sets Builder.model to an arbitrary JSON value. final RunListResponse.Buildername(String name)The name of the evaluation run. final RunListResponse.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final RunListResponse.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final RunListResponse.BuilderperModelUsage(List<RunListResponse.PerModelUsage> perModelUsage)Usage statistics for each model during the evaluation run. final RunListResponse.BuilderperModelUsage(JsonField<List<RunListResponse.PerModelUsage>> perModelUsage)Sets Builder.perModelUsage to an arbitrary JSON value. final RunListResponse.BuilderaddPerModelUsage(RunListResponse.PerModelUsage perModelUsage)Adds a single PerModelUsage to Builder.perModelUsage. final RunListResponse.BuilderperTestingCriteriaResults(List<RunListResponse.PerTestingCriteriaResult> perTestingCriteriaResults)Results per testing criteria applied during the evaluation run. final RunListResponse.BuilderperTestingCriteriaResults(JsonField<List<RunListResponse.PerTestingCriteriaResult>> perTestingCriteriaResults)Sets Builder.perTestingCriteriaResults to an arbitrary JSON value. final RunListResponse.BuilderaddPerTestingCriteriaResult(RunListResponse.PerTestingCriteriaResult perTestingCriteriaResult)Adds a single PerTestingCriteriaResult to perTestingCriteriaResults. final RunListResponse.BuilderreportUrl(String reportUrl)The URL to the rendered evaluation run report on the UI dashboard. final RunListResponse.BuilderreportUrl(JsonField<String> reportUrl)Sets Builder.reportUrl to an arbitrary JSON value. final RunListResponse.BuilderresultCounts(RunListResponse.ResultCounts resultCounts)Counters summarizing the outcomes of the evaluation run. final RunListResponse.BuilderresultCounts(JsonField<RunListResponse.ResultCounts> resultCounts)Sets Builder.resultCounts to an arbitrary JSON value. final RunListResponse.Builderstatus(String status)The status of the evaluation run. final RunListResponse.Builderstatus(JsonField<String> status)Sets Builder.status to an arbitrary JSON value. final RunListResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final RunListResponse.BuilderputAdditionalProperty(String key, JsonValue value)final RunListResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final RunListResponse.BuilderremoveAdditionalProperty(String key)final RunListResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final RunListResponsebuild()Returns an immutable instance of RunListResponse. -
-
Method Detail
-
id
final RunListResponse.Builder id(String id)
Unique identifier for the evaluation run.
-
id
final RunListResponse.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 RunListResponse.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) when the evaluation run was created.
-
createdAt
final RunListResponse.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.
-
dataSource
final RunListResponse.Builder dataSource(RunListResponse.DataSource dataSource)
Information about the run's data source.
-
dataSource
final RunListResponse.Builder dataSource(JsonField<RunListResponse.DataSource> dataSource)
Sets Builder.dataSource to an arbitrary JSON value.
You should usually call Builder.dataSource with a well-typed DataSource value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dataSource
final RunListResponse.Builder dataSource(CreateEvalJsonlRunDataSource jsonl)
Alias for calling dataSource with
DataSource.ofJsonl(jsonl).
-
dataSource
final RunListResponse.Builder dataSource(CreateEvalCompletionsRunDataSource completions)
Alias for calling dataSource with
DataSource.ofCompletions(completions).
-
dataSource
final RunListResponse.Builder dataSource(RunListResponse.DataSource.Responses responses)
Alias for calling dataSource with
DataSource.ofResponses(responses).
-
jsonlDataSource
final RunListResponse.Builder jsonlDataSource(CreateEvalJsonlRunDataSource.Source source)
Alias for calling dataSource with the following:
CreateEvalJsonlRunDataSource.builder() .source(source) .build()
-
jsonlDataSource
final RunListResponse.Builder jsonlDataSource(CreateEvalJsonlRunDataSource.Source.FileContent fileContent)
Alias for calling jsonlDataSource with
CreateEvalJsonlRunDataSource.Source.ofFileContent(fileContent).
-
jsonlDataSource
final RunListResponse.Builder jsonlDataSource(CreateEvalJsonlRunDataSource.Source.FileId fileId)
Alias for calling jsonlDataSource with
CreateEvalJsonlRunDataSource.Source.ofFileId(fileId).
-
fileContentJsonlDataSource
final RunListResponse.Builder fileContentJsonlDataSource(List<CreateEvalJsonlRunDataSource.Source.FileContent.Content> content)
Alias for calling jsonlDataSource with the following:
CreateEvalJsonlRunDataSource.Source.FileContent.builder() .content(content) .build()
-
fileIdJsonlDataSource
final RunListResponse.Builder fileIdJsonlDataSource(String id)
Alias for calling jsonlDataSource with the following:
CreateEvalJsonlRunDataSource.Source.FileId.builder() .id(id) .build()
-
completionsDataSource
final RunListResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source source)
Alias for calling dataSource with the following:
CreateEvalCompletionsRunDataSource.builder() .type(CreateEvalCompletionsRunDataSource.Type.COMPLETIONS) .source(source) .build()
-
completionsDataSource
final RunListResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source.FileContent fileContent)
Alias for calling completionsDataSource with
CreateEvalCompletionsRunDataSource.Source.ofFileContent(fileContent).
-
completionsDataSource
final RunListResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source.FileId fileId)
Alias for calling completionsDataSource with
CreateEvalCompletionsRunDataSource.Source.ofFileId(fileId).
-
completionsDataSource
final RunListResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source.StoredCompletions storedCompletions)
Alias for calling completionsDataSource with
CreateEvalCompletionsRunDataSource.Source.ofStoredCompletions(storedCompletions).
-
fileContentCompletionsDataSource
final RunListResponse.Builder fileContentCompletionsDataSource(List<CreateEvalCompletionsRunDataSource.Source.FileContent.Content> content)
Alias for calling completionsDataSource with the following:
CreateEvalCompletionsRunDataSource.Source.FileContent.builder() .content(content) .build()
-
fileIdCompletionsDataSource
final RunListResponse.Builder fileIdCompletionsDataSource(String id)
Alias for calling completionsDataSource with the following:
CreateEvalCompletionsRunDataSource.Source.FileId.builder() .id(id) .build()
-
responsesDataSource
final RunListResponse.Builder responsesDataSource(RunListResponse.DataSource.Responses.Source source)
Alias for calling dataSource with the following:
DataSource.Responses.builder() .source(source) .build()
-
responsesDataSource
final RunListResponse.Builder responsesDataSource(RunListResponse.DataSource.Responses.Source.FileContent fileContent)
Alias for calling responsesDataSource with
DataSource.Responses.Source.ofFileContent(fileContent).
-
responsesDataSource
final RunListResponse.Builder responsesDataSource(RunListResponse.DataSource.Responses.Source.FileId fileId)
Alias for calling responsesDataSource with
DataSource.Responses.Source.ofFileId(fileId).
-
responsesDataSource
final RunListResponse.Builder responsesDataSource(RunListResponse.DataSource.Responses.Source.InnerResponses responses)
Alias for calling responsesDataSource with
DataSource.Responses.Source.ofResponses(responses).
-
fileContentResponsesDataSource
final RunListResponse.Builder fileContentResponsesDataSource(List<RunListResponse.DataSource.Responses.Source.FileContent.Content> content)
Alias for calling responsesDataSource with the following:
DataSource.Responses.Source.FileContent.builder() .content(content) .build()
-
fileIdResponsesDataSource
final RunListResponse.Builder fileIdResponsesDataSource(String id)
Alias for calling responsesDataSource with the following:
DataSource.Responses.Source.FileId.builder() .id(id) .build()
-
error
final RunListResponse.Builder error(EvalApiError error)
An object representing an error response from the Eval API.
-
error
final RunListResponse.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.
-
evalId
final RunListResponse.Builder evalId(String evalId)
The identifier of the associated evaluation.
-
evalId
final RunListResponse.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.
-
metadata
final RunListResponse.Builder metadata(RunListResponse.Metadata metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final RunListResponse.Builder metadata(Optional<RunListResponse.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final RunListResponse.Builder metadata(JsonField<RunListResponse.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final RunListResponse.Builder model(String model)
The model that is evaluated, if applicable.
-
model
final RunListResponse.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.
-
name
final RunListResponse.Builder name(String name)
The name of the evaluation run.
-
name
final RunListResponse.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name 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 RunListResponse.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")This method is primarily for setting the field to an undocumented or not yet supported value.
-
perModelUsage
final RunListResponse.Builder perModelUsage(List<RunListResponse.PerModelUsage> perModelUsage)
Usage statistics for each model during the evaluation run.
-
perModelUsage
final RunListResponse.Builder perModelUsage(JsonField<List<RunListResponse.PerModelUsage>> perModelUsage)
Sets Builder.perModelUsage to an arbitrary JSON value.
You should usually call Builder.perModelUsage with a well-typed
List<PerModelUsage>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPerModelUsage
final RunListResponse.Builder addPerModelUsage(RunListResponse.PerModelUsage perModelUsage)
Adds a single PerModelUsage to Builder.perModelUsage.
-
perTestingCriteriaResults
final RunListResponse.Builder perTestingCriteriaResults(List<RunListResponse.PerTestingCriteriaResult> perTestingCriteriaResults)
Results per testing criteria applied during the evaluation run.
-
perTestingCriteriaResults
final RunListResponse.Builder perTestingCriteriaResults(JsonField<List<RunListResponse.PerTestingCriteriaResult>> perTestingCriteriaResults)
Sets Builder.perTestingCriteriaResults to an arbitrary JSON value.
You should usually call Builder.perTestingCriteriaResults with a well-typed
List<PerTestingCriteriaResult>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPerTestingCriteriaResult
final RunListResponse.Builder addPerTestingCriteriaResult(RunListResponse.PerTestingCriteriaResult perTestingCriteriaResult)
Adds a single PerTestingCriteriaResult to perTestingCriteriaResults.
-
reportUrl
final RunListResponse.Builder reportUrl(String reportUrl)
The URL to the rendered evaluation run report on the UI dashboard.
-
reportUrl
final RunListResponse.Builder reportUrl(JsonField<String> reportUrl)
Sets Builder.reportUrl to an arbitrary JSON value.
You should usually call Builder.reportUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
resultCounts
final RunListResponse.Builder resultCounts(RunListResponse.ResultCounts resultCounts)
Counters summarizing the outcomes of the evaluation run.
-
resultCounts
final RunListResponse.Builder resultCounts(JsonField<RunListResponse.ResultCounts> resultCounts)
Sets Builder.resultCounts to an arbitrary JSON value.
You should usually call Builder.resultCounts with a well-typed ResultCounts value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final RunListResponse.Builder status(String status)
The status of the evaluation run.
-
status
final RunListResponse.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 RunListResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RunListResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RunListResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RunListResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RunListResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RunListResponse build()
Returns an immutable instance of RunListResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .dataSource() .error() .evalId() .metadata() .model() .name() .perModelUsage() .perTestingCriteriaResults() .reportUrl() .resultCounts() .status()
-
-
-
-