Class EvalCreateParams.Body
-
- All Implemented Interfaces:
public final class EvalCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvalCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final EvalCreateParams.Datadata()The dataset to use final StringprojectId()Unique identifier for the project to run the eval in final List<EvalCreateParams.Score>scores()The functions to score the eval on final EvalCreateParams.Tasktask()The function to evaluate final Optional<String>baseExperimentId()An optional experiment id to use as a base. final Optional<String>baseExperimentName()An optional experiment name to use as a base. final Optional<String>experimentName()An optional name for the experiment created by this eval. final Optional<EvalCreateParams.GitMetadataSettings>gitMetadataSettings()Optional settings for collecting git metadata. final Optional<Boolean>isPublic()Whether the experiment should be public. final Optional<Double>maxConcurrency()The maximum number of tasks/scorers that will be run concurrently. final Optional<EvalCreateParams.Metadata>metadata()Optional experiment-level metadata to store about the evaluation. final Optional<EvalCreateParams.Parent>parent()Options for tracing the evaluation final Optional<RepoInfo>repoInfo()Metadata about the state of the repo when the experiment was created final Optional<Boolean>stream()Whether to stream the results of the eval. final Optional<Double>timeout()The maximum duration, in milliseconds, to run the evaluation. final Optional<Double>trialCount()The number of times to run the evaluator per input. final JsonField<EvalCreateParams.Data>_data()Returns the raw JSON value of data. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<List<EvalCreateParams.Score>>_scores()Returns the raw JSON value of scores. final JsonField<EvalCreateParams.Task>_task()Returns the raw JSON value of task. final JsonField<String>_baseExperimentId()Returns the raw JSON value of baseExperimentId. final JsonField<String>_baseExperimentName()Returns the raw JSON value of baseExperimentName. final JsonField<String>_experimentName()Returns the raw JSON value of experimentName. final JsonField<EvalCreateParams.GitMetadataSettings>_gitMetadataSettings()Returns the raw JSON value of gitMetadataSettings. final JsonField<Boolean>_isPublic()Returns the raw JSON value of isPublic. final JsonField<Double>_maxConcurrency()Returns the raw JSON value of maxConcurrency. final JsonField<EvalCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<EvalCreateParams.Parent>_parent()Returns the raw JSON value of parent. final JsonField<RepoInfo>_repoInfo()Returns the raw JSON value of repoInfo. final JsonField<Boolean>_stream()Returns the raw JSON value of stream. final JsonField<Double>_timeout()Returns the raw JSON value of timeout. final JsonField<Double>_trialCount()Returns the raw JSON value of trialCount. final Map<String, JsonValue>_additionalProperties()final EvalCreateParams.Body.BuildertoBuilder()final EvalCreateParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
data
final EvalCreateParams.Data data()
The dataset to use
-
scores
final List<EvalCreateParams.Score> scores()
The functions to score the eval on
-
task
final EvalCreateParams.Task task()
The function to evaluate
-
baseExperimentId
final Optional<String> baseExperimentId()
An optional experiment id to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
-
baseExperimentName
final Optional<String> baseExperimentName()
An optional experiment name to use as a base. If specified, the new experiment will be summarized and compared to this experiment.
-
experimentName
final Optional<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.
-
gitMetadataSettings
final Optional<EvalCreateParams.GitMetadataSettings> gitMetadataSettings()
Optional settings for collecting git metadata. By default, will collect all git metadata fields allowed in org-level settings.
-
isPublic
final Optional<Boolean> isPublic()
Whether the experiment should be public. Defaults to false.
-
maxConcurrency
final Optional<Double> maxConcurrency()
The maximum number of tasks/scorers that will be run concurrently. Defaults to undefined, in which case there is no max concurrency.
-
metadata
final Optional<EvalCreateParams.Metadata> metadata()
Optional experiment-level metadata to store about the evaluation. You can later use this to slice & dice across experiments.
-
parent
final Optional<EvalCreateParams.Parent> parent()
Options for tracing the evaluation
-
repoInfo
final Optional<RepoInfo> repoInfo()
Metadata about the state of the repo when the experiment was created
-
stream
final Optional<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.
-
timeout
final Optional<Double> timeout()
The maximum duration, in milliseconds, to run the evaluation. Defaults to undefined, in which case there is no timeout.
-
trialCount
final Optional<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.
-
_data
final JsonField<EvalCreateParams.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_scores
final JsonField<List<EvalCreateParams.Score>> _scores()
Returns the raw JSON value of scores.
Unlike scores, this method doesn't throw if the JSON field has an unexpected type.
-
_task
final JsonField<EvalCreateParams.Task> _task()
Returns the raw JSON value of task.
Unlike task, this method doesn't throw if the JSON field has an unexpected type.
-
_baseExperimentId
final JsonField<String> _baseExperimentId()
Returns the raw JSON value of baseExperimentId.
Unlike baseExperimentId, this method doesn't throw if the JSON field has an unexpected type.
-
_baseExperimentName
final JsonField<String> _baseExperimentName()
Returns the raw JSON value of baseExperimentName.
Unlike baseExperimentName, this method doesn't throw if the JSON field has an unexpected type.
-
_experimentName
final JsonField<String> _experimentName()
Returns the raw JSON value of experimentName.
Unlike experimentName, this method doesn't throw if the JSON field has an unexpected type.
-
_gitMetadataSettings
final JsonField<EvalCreateParams.GitMetadataSettings> _gitMetadataSettings()
Returns the raw JSON value of gitMetadataSettings.
Unlike gitMetadataSettings, this method doesn't throw if the JSON field has an unexpected type.
-
_isPublic
final JsonField<Boolean> _isPublic()
Returns the raw JSON value of isPublic.
Unlike isPublic, this method doesn't throw if the JSON field has an unexpected type.
-
_maxConcurrency
final JsonField<Double> _maxConcurrency()
Returns the raw JSON value of maxConcurrency.
Unlike maxConcurrency, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<EvalCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_parent
final JsonField<EvalCreateParams.Parent> _parent()
Returns the raw JSON value of parent.
Unlike parent, this method doesn't throw if the JSON field has an unexpected type.
-
_repoInfo
final JsonField<RepoInfo> _repoInfo()
Returns the raw JSON value of repoInfo.
Unlike repoInfo, this method doesn't throw if the JSON field has an unexpected type.
-
_stream
final JsonField<Boolean> _stream()
Returns the raw JSON value of stream.
Unlike stream, this method doesn't throw if the JSON field has an unexpected type.
-
_timeout
final JsonField<Double> _timeout()
Returns the raw JSON value of timeout.
Unlike timeout, this method doesn't throw if the JSON field has an unexpected type.
-
_trialCount
final JsonField<Double> _trialCount()
Returns the raw JSON value of trialCount.
Unlike trialCount, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalCreateParams.Body.Builder toBuilder()
-
validate
final EvalCreateParams.Body validate()
-
builder
final static EvalCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.data() .projectId() .scores() .task()
-
-
-
-