Class CreateEvalCompletionsRunDataSource.Builder
-
- All Implemented Interfaces:
public final class CreateEvalCompletionsRunDataSource.Builder
A builder for CreateEvalCompletionsRunDataSource.
-
-
Method Summary
-
-
Method Detail
-
source
final CreateEvalCompletionsRunDataSource.Builder source(CreateEvalCompletionsRunDataSource.Source source)
Determines what populates the
item
namespace in this run's data source.
-
source
final CreateEvalCompletionsRunDataSource.Builder source(JsonField<CreateEvalCompletionsRunDataSource.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final CreateEvalCompletionsRunDataSource.Builder source(CreateEvalCompletionsRunDataSource.Source.FileContent fileContent)
Alias for calling source with
Source.ofFileContent(fileContent)
.
-
source
final CreateEvalCompletionsRunDataSource.Builder source(CreateEvalCompletionsRunDataSource.Source.FileId fileId)
Alias for calling source with
Source.ofFileId(fileId)
.
-
source
final CreateEvalCompletionsRunDataSource.Builder source(CreateEvalCompletionsRunDataSource.Source.StoredCompletions storedCompletions)
Alias for calling source with
Source.ofStoredCompletions(storedCompletions)
.
-
fileContentSource
final CreateEvalCompletionsRunDataSource.Builder fileContentSource(List<CreateEvalCompletionsRunDataSource.Source.FileContent.Content> content)
Alias for calling source with the following:
Source.FileContent.builder() .content(content) .build()
-
fileIdSource
final CreateEvalCompletionsRunDataSource.Builder fileIdSource(String id)
Alias for calling source with the following:
Source.FileId.builder() .id(id) .build()
-
type
final CreateEvalCompletionsRunDataSource.Builder type(CreateEvalCompletionsRunDataSource.Type type)
The type of run data source. Always
completions
.
-
type
final CreateEvalCompletionsRunDataSource.Builder type(JsonField<CreateEvalCompletionsRunDataSource.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputMessages
final CreateEvalCompletionsRunDataSource.Builder inputMessages(CreateEvalCompletionsRunDataSource.InputMessages inputMessages)
Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie,
item.input_trajectory
), or a template with variable references to theitem
namespace.
-
inputMessages
final CreateEvalCompletionsRunDataSource.Builder inputMessages(JsonField<CreateEvalCompletionsRunDataSource.InputMessages> inputMessages)
Sets Builder.inputMessages to an arbitrary JSON value.
You should usually call Builder.inputMessages with a well-typed InputMessages value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputMessages
final CreateEvalCompletionsRunDataSource.Builder inputMessages(CreateEvalCompletionsRunDataSource.InputMessages.Template template)
Alias for calling inputMessages with
InputMessages.ofTemplate(template)
.
-
inputMessages
final CreateEvalCompletionsRunDataSource.Builder inputMessages(CreateEvalCompletionsRunDataSource.InputMessages.ItemReference itemReference)
Alias for calling inputMessages with
InputMessages.ofItemReference(itemReference)
.
-
templateInputMessages
final CreateEvalCompletionsRunDataSource.Builder templateInputMessages(List<CreateEvalCompletionsRunDataSource.InputMessages.Template.InnerTemplate> template)
Alias for calling inputMessages with the following:
InputMessages.Template.builder() .template(template) .build()
-
itemReferenceInputMessages
final CreateEvalCompletionsRunDataSource.Builder itemReferenceInputMessages(String itemReference)
Alias for calling inputMessages with the following:
InputMessages.ItemReference.builder() .itemReference(itemReference) .build()
-
model
final CreateEvalCompletionsRunDataSource.Builder model(String model)
The name of the model to use for generating completions (e.g. "o3-mini").
-
model
final CreateEvalCompletionsRunDataSource.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.
-
samplingParams
final CreateEvalCompletionsRunDataSource.Builder samplingParams(CreateEvalCompletionsRunDataSource.SamplingParams samplingParams)
-
samplingParams
final CreateEvalCompletionsRunDataSource.Builder samplingParams(JsonField<CreateEvalCompletionsRunDataSource.SamplingParams> samplingParams)
Sets Builder.samplingParams to an arbitrary JSON value.
You should usually call Builder.samplingParams with a well-typed SamplingParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final CreateEvalCompletionsRunDataSource.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CreateEvalCompletionsRunDataSource.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CreateEvalCompletionsRunDataSource.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CreateEvalCompletionsRunDataSource.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CreateEvalCompletionsRunDataSource.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CreateEvalCompletionsRunDataSource build()
Returns an immutable instance of CreateEvalCompletionsRunDataSource.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source() .type()
-
-
-
-