Class RunCreateResponse.DataSource.Responses.Builder
-
- All Implemented Interfaces:
public final class RunCreateResponse.DataSource.Responses.BuilderA builder for Responses.
-
-
Method Summary
-
-
Method Detail
-
source
final RunCreateResponse.DataSource.Responses.Builder source(RunCreateResponse.DataSource.Responses.Source source)
Determines what populates the
itemnamespace in this run's data source.
-
source
final RunCreateResponse.DataSource.Responses.Builder source(JsonField<RunCreateResponse.DataSource.Responses.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 RunCreateResponse.DataSource.Responses.Builder source(RunCreateResponse.DataSource.Responses.Source.FileContent fileContent)
Alias for calling source with
Source.ofFileContent(fileContent).
-
source
final RunCreateResponse.DataSource.Responses.Builder source(RunCreateResponse.DataSource.Responses.Source.FileId fileId)
Alias for calling source with
Source.ofFileId(fileId).
-
source
final RunCreateResponse.DataSource.Responses.Builder source(RunCreateResponse.DataSource.Responses.Source.InnerResponses responses)
Alias for calling source with
Source.ofResponses(responses).
-
fileContentSource
final RunCreateResponse.DataSource.Responses.Builder fileContentSource(List<RunCreateResponse.DataSource.Responses.Source.FileContent.Content> content)
Alias for calling source with the following:
Source.FileContent.builder() .content(content) .build()
-
fileIdSource
final RunCreateResponse.DataSource.Responses.Builder fileIdSource(String id)
Alias for calling source with the following:
Source.FileId.builder() .id(id) .build()
-
type
final RunCreateResponse.DataSource.Responses.Builder type(JsonValue type)
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("responses")This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputMessages
final RunCreateResponse.DataSource.Responses.Builder inputMessages(RunCreateResponse.DataSource.Responses.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 theitemnamespace.
-
inputMessages
final RunCreateResponse.DataSource.Responses.Builder inputMessages(JsonField<RunCreateResponse.DataSource.Responses.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 RunCreateResponse.DataSource.Responses.Builder inputMessages(RunCreateResponse.DataSource.Responses.InputMessages.Template template)
Alias for calling inputMessages with
InputMessages.ofTemplate(template).
-
inputMessages
final RunCreateResponse.DataSource.Responses.Builder inputMessages(RunCreateResponse.DataSource.Responses.InputMessages.ItemReference itemReference)
Alias for calling inputMessages with
InputMessages.ofItemReference(itemReference).
-
templateInputMessages
final RunCreateResponse.DataSource.Responses.Builder templateInputMessages(List<RunCreateResponse.DataSource.Responses.InputMessages.Template.InnerTemplate> template)
Alias for calling inputMessages with the following:
InputMessages.Template.builder() .template(template) .build()
-
itemReferenceInputMessages
final RunCreateResponse.DataSource.Responses.Builder itemReferenceInputMessages(String itemReference)
Alias for calling inputMessages with the following:
InputMessages.ItemReference.builder() .itemReference(itemReference) .build()
-
model
final RunCreateResponse.DataSource.Responses.Builder model(String model)
The name of the model to use for generating completions (e.g. "o3-mini").
-
model
final RunCreateResponse.DataSource.Responses.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 RunCreateResponse.DataSource.Responses.Builder samplingParams(RunCreateResponse.DataSource.Responses.SamplingParams samplingParams)
-
samplingParams
final RunCreateResponse.DataSource.Responses.Builder samplingParams(JsonField<RunCreateResponse.DataSource.Responses.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 RunCreateResponse.DataSource.Responses.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RunCreateResponse.DataSource.Responses.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RunCreateResponse.DataSource.Responses.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RunCreateResponse.DataSource.Responses.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RunCreateResponse.DataSource.Responses.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RunCreateResponse.DataSource.Responses build()
Returns an immutable instance of Responses.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source()
-
-
-
-