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