Class EvalCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class EvalCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
data
final EvalCreateParams.Body.Builder data(EvalCreateParams.Data data)
The dataset to use
-
data
final EvalCreateParams.Body.Builder data(JsonField<EvalCreateParams.Data> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed Data value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final EvalCreateParams.Body.Builder data(EvalCreateParams.Data.DatasetId datasetId)
Alias for calling data with
Data.ofDatasetId(datasetId).
-
data
final EvalCreateParams.Body.Builder data(EvalCreateParams.Data.ProjectDatasetName projectDatasetName)
Alias for calling data with
Data.ofProjectDatasetName(projectDatasetName).
-
data
final EvalCreateParams.Body.Builder data(EvalCreateParams.Data.DatasetRows datasetRows)
Alias for calling data with
Data.ofDatasetRows(datasetRows).
-
projectId
final EvalCreateParams.Body.Builder projectId(String projectId)
Unique identifier for the project to run the eval in
-
projectId
final EvalCreateParams.Body.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scores
final EvalCreateParams.Body.Builder scores(List<EvalCreateParams.Score> scores)
The functions to score the eval on
-
scores
final EvalCreateParams.Body.Builder scores(JsonField<List<EvalCreateParams.Score>> scores)
Sets Builder.scores to an arbitrary JSON value.
You should usually call Builder.scores with a well-typed
List<Score>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score score)
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score.FunctionId functionId)
Alias for calling addScore with
Score.ofFunctionId(functionId).
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score.ProjectSlug projectSlug)
Alias for calling addScore with
Score.ofProjectSlug(projectSlug).
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score.GlobalFunction globalFunction)
Alias for calling addScore with
Score.ofGlobalFunction(globalFunction).
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score.PromptSessionId promptSessionId)
Alias for calling addScore with
Score.ofPromptSessionId(promptSessionId).
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score.InlineCode inlineCode)
Alias for calling addScore with
Score.ofInlineCode(inlineCode).
-
addScore
final EvalCreateParams.Body.Builder addScore(EvalCreateParams.Score.InlinePrompt inlinePrompt)
Alias for calling addScore with
Score.ofInlinePrompt(inlinePrompt).
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task task)
The function to evaluate
-
task
final EvalCreateParams.Body.Builder task(JsonField<EvalCreateParams.Task> task)
Sets Builder.task to an arbitrary JSON value.
You should usually call Builder.task with a well-typed Task value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task.FunctionId functionId)
Alias for calling task with
Task.ofFunctionId(functionId).
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task.ProjectSlug projectSlug)
Alias for calling task with
Task.ofProjectSlug(projectSlug).
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task.GlobalFunction globalFunction)
Alias for calling task with
Task.ofGlobalFunction(globalFunction).
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task.PromptSessionId promptSessionId)
Alias for calling task with
Task.ofPromptSessionId(promptSessionId).
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task.InlineCode inlineCode)
Alias for calling task with
Task.ofInlineCode(inlineCode).
-
task
final EvalCreateParams.Body.Builder task(EvalCreateParams.Task.InlinePrompt inlinePrompt)
Alias for calling task with
Task.ofInlinePrompt(inlinePrompt).
-
baseExperimentId
final EvalCreateParams.Body.Builder baseExperimentId(String baseExperimentId)
An optional experiment id to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
-
baseExperimentId
final EvalCreateParams.Body.Builder baseExperimentId(Optional<String> baseExperimentId)
Alias for calling Builder.baseExperimentId with
baseExperimentId.orElse(null).
-
baseExperimentId
final EvalCreateParams.Body.Builder baseExperimentId(JsonField<String> baseExperimentId)
Sets Builder.baseExperimentId to an arbitrary JSON value.
You should usually call Builder.baseExperimentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
baseExperimentName
final EvalCreateParams.Body.Builder baseExperimentName(String baseExperimentName)
An optional experiment name to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
-
baseExperimentName
final EvalCreateParams.Body.Builder baseExperimentName(Optional<String> baseExperimentName)
Alias for calling Builder.baseExperimentName with
baseExperimentName.orElse(null).
-
baseExperimentName
final EvalCreateParams.Body.Builder baseExperimentName(JsonField<String> baseExperimentName)
Sets Builder.baseExperimentName to an arbitrary JSON value.
You should usually call Builder.baseExperimentName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
experimentName
final EvalCreateParams.Body.Builder experimentName(String experimentName)
An optional name for the experiment created by this eval. If it conflicts with an existing experiment, it will be suffixed with a unique identifier.
-
experimentName
final EvalCreateParams.Body.Builder experimentName(JsonField<String> experimentName)
Sets Builder.experimentName to an arbitrary JSON value.
You should usually call Builder.experimentName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
gitMetadataSettings
final EvalCreateParams.Body.Builder gitMetadataSettings(EvalCreateParams.GitMetadataSettings gitMetadataSettings)
Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
-
gitMetadataSettings
final EvalCreateParams.Body.Builder gitMetadataSettings(Optional<EvalCreateParams.GitMetadataSettings> gitMetadataSettings)
Alias for calling Builder.gitMetadataSettings with
gitMetadataSettings.orElse(null).
-
gitMetadataSettings
final EvalCreateParams.Body.Builder gitMetadataSettings(JsonField<EvalCreateParams.GitMetadataSettings> gitMetadataSettings)
Sets Builder.gitMetadataSettings to an arbitrary JSON value.
You should usually call Builder.gitMetadataSettings with a well-typed GitMetadataSettings value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
isPublic
final EvalCreateParams.Body.Builder isPublic(Boolean isPublic)
Whether the experiment should be public. Defaults to false.
-
isPublic
final EvalCreateParams.Body.Builder isPublic(Boolean isPublic)
Alias for Builder.isPublic.
This unboxed primitive overload exists for backwards compatibility.
-
isPublic
final EvalCreateParams.Body.Builder isPublic(Optional<Boolean> isPublic)
Alias for calling Builder.isPublic with
isPublic.orElse(null).
-
isPublic
final EvalCreateParams.Body.Builder isPublic(JsonField<Boolean> isPublic)
Sets Builder.isPublic to an arbitrary JSON value.
You should usually call Builder.isPublic with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxConcurrency
final EvalCreateParams.Body.Builder maxConcurrency(Double maxConcurrency)
The maximum number of tasks/scorers that will be run concurrently. Defaults to undefined, in which case there is no max concurrency.
-
maxConcurrency
final EvalCreateParams.Body.Builder maxConcurrency(Double maxConcurrency)
Alias for Builder.maxConcurrency.
This unboxed primitive overload exists for backwards compatibility.
-
maxConcurrency
final EvalCreateParams.Body.Builder maxConcurrency(Optional<Double> maxConcurrency)
Alias for calling Builder.maxConcurrency with
maxConcurrency.orElse(null).
-
maxConcurrency
final EvalCreateParams.Body.Builder maxConcurrency(JsonField<Double> maxConcurrency)
Sets Builder.maxConcurrency to an arbitrary JSON value.
You should usually call Builder.maxConcurrency with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final EvalCreateParams.Body.Builder metadata(EvalCreateParams.Metadata metadata)
Optional experiment-level metadata to store about the evaluation. You can later use this to slice & dice across experiments.
-
metadata
final EvalCreateParams.Body.Builder metadata(JsonField<EvalCreateParams.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.
-
parent
final EvalCreateParams.Body.Builder parent(EvalCreateParams.Parent parent)
Options for tracing the evaluation
-
parent
final EvalCreateParams.Body.Builder parent(JsonField<EvalCreateParams.Parent> parent)
Sets Builder.parent to an arbitrary JSON value.
You should usually call Builder.parent with a well-typed Parent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
parent
final EvalCreateParams.Body.Builder parent(EvalCreateParams.Parent.SpanParentStruct spanParentStruct)
Alias for calling parent with
Parent.ofSpanParentStruct(spanParentStruct).
-
parent
final EvalCreateParams.Body.Builder parent(String string)
Alias for calling parent with
Parent.ofString(string).
-
repoInfo
final EvalCreateParams.Body.Builder repoInfo(RepoInfo repoInfo)
Metadata about the state of the repo when the experiment was created
-
repoInfo
final EvalCreateParams.Body.Builder repoInfo(Optional<RepoInfo> repoInfo)
Alias for calling Builder.repoInfo with
repoInfo.orElse(null).
-
repoInfo
final EvalCreateParams.Body.Builder repoInfo(JsonField<RepoInfo> repoInfo)
Sets Builder.repoInfo to an arbitrary JSON value.
You should usually call Builder.repoInfo with a well-typed RepoInfo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stream
final EvalCreateParams.Body.Builder stream(Boolean stream)
Whether to stream the results of the eval. If true, the request will return two events: one to indicate the experiment has started, and another upon completion. If false, the request will return the evaluation's summary upon completion.
-
stream
final EvalCreateParams.Body.Builder stream(JsonField<Boolean> stream)
Sets Builder.stream to an arbitrary JSON value.
You should usually call Builder.stream with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timeout
final EvalCreateParams.Body.Builder timeout(Double timeout)
The maximum duration, in milliseconds, to run the evaluation. Defaults to undefined, in which case there is no timeout.
-
timeout
final EvalCreateParams.Body.Builder timeout(Double timeout)
Alias for Builder.timeout.
This unboxed primitive overload exists for backwards compatibility.
-
timeout
final EvalCreateParams.Body.Builder timeout(Optional<Double> timeout)
Alias for calling Builder.timeout with
timeout.orElse(null).
-
timeout
final EvalCreateParams.Body.Builder timeout(JsonField<Double> timeout)
Sets Builder.timeout to an arbitrary JSON value.
You should usually call Builder.timeout with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
trialCount
final EvalCreateParams.Body.Builder trialCount(Double trialCount)
The number of times to run the evaluator per input. This is useful for evaluating applications that have non-deterministic behavior and gives you both a stronger aggregate measure and a sense of the variance in the results.
-
trialCount
final EvalCreateParams.Body.Builder trialCount(Double trialCount)
Alias for Builder.trialCount.
This unboxed primitive overload exists for backwards compatibility.
-
trialCount
final EvalCreateParams.Body.Builder trialCount(Optional<Double> trialCount)
Alias for calling Builder.trialCount with
trialCount.orElse(null).
-
trialCount
final EvalCreateParams.Body.Builder trialCount(JsonField<Double> trialCount)
Sets Builder.trialCount to an arbitrary JSON value.
You should usually call Builder.trialCount with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final EvalCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EvalCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EvalCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EvalCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EvalCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EvalCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .projectId() .scores() .task()
-
-
-
-