Class RunCreateResponse.Builder
-
- All Implemented Interfaces:
public final class RunCreateResponse.Builder
A builder for RunCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final RunCreateResponse.Builder id(String id)
Unique identifier for the evaluation run.
-
id
final RunCreateResponse.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 RunCreateResponse.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) when the evaluation run was created.
-
createdAt
final RunCreateResponse.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 RunCreateResponse.Builder dataSource(RunCreateResponse.DataSource dataSource)
Information about the run's data source.
-
dataSource
final RunCreateResponse.Builder dataSource(JsonField<RunCreateResponse.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 RunCreateResponse.Builder dataSource(CreateEvalJsonlRunDataSource jsonl)
Alias for calling dataSource with
DataSource.ofJsonl(jsonl)
.
-
dataSource
final RunCreateResponse.Builder dataSource(CreateEvalCompletionsRunDataSource completions)
Alias for calling dataSource with
DataSource.ofCompletions(completions)
.
-
dataSource
final RunCreateResponse.Builder dataSource(RunCreateResponse.DataSource.Responses responses)
Alias for calling dataSource with
DataSource.ofResponses(responses)
.
-
jsonlDataSource
final RunCreateResponse.Builder jsonlDataSource(CreateEvalJsonlRunDataSource.Source source)
Alias for calling dataSource with the following:
CreateEvalJsonlRunDataSource.builder() .source(source) .build()
-
jsonlDataSource
final RunCreateResponse.Builder jsonlDataSource(CreateEvalJsonlRunDataSource.Source.FileContent fileContent)
Alias for calling jsonlDataSource with
CreateEvalJsonlRunDataSource.Source.ofFileContent(fileContent)
.
-
jsonlDataSource
final RunCreateResponse.Builder jsonlDataSource(CreateEvalJsonlRunDataSource.Source.FileId fileId)
Alias for calling jsonlDataSource with
CreateEvalJsonlRunDataSource.Source.ofFileId(fileId)
.
-
fileContentJsonlDataSource
final RunCreateResponse.Builder fileContentJsonlDataSource(List<CreateEvalJsonlRunDataSource.Source.FileContent.Content> content)
Alias for calling jsonlDataSource with the following:
CreateEvalJsonlRunDataSource.Source.FileContent.builder() .content(content) .build()
-
fileIdJsonlDataSource
final RunCreateResponse.Builder fileIdJsonlDataSource(String id)
Alias for calling jsonlDataSource with the following:
CreateEvalJsonlRunDataSource.Source.FileId.builder() .id(id) .build()
-
completionsDataSource
final RunCreateResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source source)
Alias for calling dataSource with the following:
CreateEvalCompletionsRunDataSource.builder() .type(CreateEvalCompletionsRunDataSource.Type.COMPLETIONS) .source(source) .build()
-
completionsDataSource
final RunCreateResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source.FileContent fileContent)
Alias for calling completionsDataSource with
CreateEvalCompletionsRunDataSource.Source.ofFileContent(fileContent)
.
-
completionsDataSource
final RunCreateResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source.FileId fileId)
Alias for calling completionsDataSource with
CreateEvalCompletionsRunDataSource.Source.ofFileId(fileId)
.
-
completionsDataSource
final RunCreateResponse.Builder completionsDataSource(CreateEvalCompletionsRunDataSource.Source.StoredCompletions storedCompletions)
Alias for calling completionsDataSource with
CreateEvalCompletionsRunDataSource.Source.ofStoredCompletions(storedCompletions)
.
-
fileContentCompletionsDataSource
final RunCreateResponse.Builder fileContentCompletionsDataSource(List<CreateEvalCompletionsRunDataSource.Source.FileContent.Content> content)
Alias for calling completionsDataSource with the following:
CreateEvalCompletionsRunDataSource.Source.FileContent.builder() .content(content) .build()
-
fileIdCompletionsDataSource
final RunCreateResponse.Builder fileIdCompletionsDataSource(String id)
Alias for calling completionsDataSource with the following:
CreateEvalCompletionsRunDataSource.Source.FileId.builder() .id(id) .build()
-
responsesDataSource
final RunCreateResponse.Builder responsesDataSource(RunCreateResponse.DataSource.Responses.Source source)
Alias for calling dataSource with the following:
DataSource.Responses.builder() .source(source) .build()
-
responsesDataSource
final RunCreateResponse.Builder responsesDataSource(RunCreateResponse.DataSource.Responses.Source.FileContent fileContent)
Alias for calling responsesDataSource with
DataSource.Responses.Source.ofFileContent(fileContent)
.
-
responsesDataSource
final RunCreateResponse.Builder responsesDataSource(RunCreateResponse.DataSource.Responses.Source.FileId fileId)
Alias for calling responsesDataSource with
DataSource.Responses.Source.ofFileId(fileId)
.
-
responsesDataSource
final RunCreateResponse.Builder responsesDataSource(RunCreateResponse.DataSource.Responses.Source.InnerResponses responses)
Alias for calling responsesDataSource with
DataSource.Responses.Source.ofResponses(responses)
.
-
fileContentResponsesDataSource
final RunCreateResponse.Builder fileContentResponsesDataSource(List<RunCreateResponse.DataSource.Responses.Source.FileContent.Content> content)
Alias for calling responsesDataSource with the following:
DataSource.Responses.Source.FileContent.builder() .content(content) .build()
-
fileIdResponsesDataSource
final RunCreateResponse.Builder fileIdResponsesDataSource(String id)
Alias for calling responsesDataSource with the following:
DataSource.Responses.Source.FileId.builder() .id(id) .build()
-
error
final RunCreateResponse.Builder error(EvalApiError error)
An object representing an error response from the Eval API.
-
error
final RunCreateResponse.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 RunCreateResponse.Builder evalId(String evalId)
The identifier of the associated evaluation.
-
evalId
final RunCreateResponse.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 RunCreateResponse.Builder metadata(RunCreateResponse.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 RunCreateResponse.Builder metadata(Optional<RunCreateResponse.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null)
.
-
metadata
final RunCreateResponse.Builder metadata(JsonField<RunCreateResponse.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 RunCreateResponse.Builder model(String model)
The model that is evaluated, if applicable.
-
model
final RunCreateResponse.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 RunCreateResponse.Builder name(String name)
The name of the evaluation run.
-
name
final RunCreateResponse.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 RunCreateResponse.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 RunCreateResponse.Builder perModelUsage(List<RunCreateResponse.PerModelUsage> perModelUsage)
Usage statistics for each model during the evaluation run.
-
perModelUsage
final RunCreateResponse.Builder perModelUsage(JsonField<List<RunCreateResponse.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 RunCreateResponse.Builder addPerModelUsage(RunCreateResponse.PerModelUsage perModelUsage)
Adds a single PerModelUsage to Builder.perModelUsage.
-
perTestingCriteriaResults
final RunCreateResponse.Builder perTestingCriteriaResults(List<RunCreateResponse.PerTestingCriteriaResult> perTestingCriteriaResults)
Results per testing criteria applied during the evaluation run.
-
perTestingCriteriaResults
final RunCreateResponse.Builder perTestingCriteriaResults(JsonField<List<RunCreateResponse.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 RunCreateResponse.Builder addPerTestingCriteriaResult(RunCreateResponse.PerTestingCriteriaResult perTestingCriteriaResult)
Adds a single PerTestingCriteriaResult to perTestingCriteriaResults.
-
reportUrl
final RunCreateResponse.Builder reportUrl(String reportUrl)
The URL to the rendered evaluation run report on the UI dashboard.
-
reportUrl
final RunCreateResponse.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 RunCreateResponse.Builder resultCounts(RunCreateResponse.ResultCounts resultCounts)
Counters summarizing the outcomes of the evaluation run.
-
resultCounts
final RunCreateResponse.Builder resultCounts(JsonField<RunCreateResponse.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 RunCreateResponse.Builder status(String status)
The status of the evaluation run.
-
status
final RunCreateResponse.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 RunCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RunCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RunCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RunCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RunCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RunCreateResponse build()
Returns an immutable instance of RunCreateResponse.
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()
-
-
-
-