Class EvaluationSetRun.Builder
- java.lang.Object
-
- ai.extend.types.EvaluationSetRun.Builder
-
- All Implemented Interfaces:
EvaluationSetRun._FinalStage,EvaluationSetRun.CreatedAtStage,EvaluationSetRun.EntityStage,EvaluationSetRun.EntityVersionStage,EvaluationSetRun.EvaluationSetIdStage,EvaluationSetRun.IdStage,EvaluationSetRun.MetricsStage,EvaluationSetRun.OptionsStage,EvaluationSetRun.StatusStage,EvaluationSetRun.UpdatedAtStage
- Enclosing class:
- EvaluationSetRun
public static final class EvaluationSetRun.Builder extends java.lang.Object implements EvaluationSetRun.IdStage, EvaluationSetRun.EvaluationSetIdStage, EvaluationSetRun.EntityStage, EvaluationSetRun.EntityVersionStage, EvaluationSetRun.MetricsStage, EvaluationSetRun.StatusStage, EvaluationSetRun.OptionsStage, EvaluationSetRun.CreatedAtStage, EvaluationSetRun.UpdatedAtStage, EvaluationSetRun._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationSetRunbuild()EvaluationSetRun.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)EvaluationSetRun.EntityVersionStageentity(EvaluationSetRunEntity entity)The extractor, classifier, or splitter that was run.EvaluationSetRun.MetricsStageentityVersion(EvaluationSetRunEntityVersion entityVersion)The version of the extractor, classifier, or splitter that was run.EvaluationSetRun.EntityStageevaluationSetId(java.lang.String evaluationSetId)The ID of the evaluation set that was run.EvaluationSetRun.Builderfrom(EvaluationSetRun other)EvaluationSetRun.EvaluationSetIdStageid(java.lang.String id)The unique identifier for this evaluation set run.EvaluationSetRun.StatusStagemetrics(EvaluationSetRunMetrics metrics)Metrics for the evaluation set run.EvaluationSetRun.CreatedAtStageoptions(EvaluationSetRunOptions options)The options for the evaluation set run.EvaluationSetRun.OptionsStagestatus(BatchRunStatus status)EvaluationSetRun._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)
-
-
-
Method Detail
-
from
public EvaluationSetRun.Builder from(EvaluationSetRun other)
- Specified by:
fromin interfaceEvaluationSetRun.IdStage
-
id
public EvaluationSetRun.EvaluationSetIdStage id(@NotNull java.lang.String id)
The unique identifier for this evaluation set run.
Example:
"bpr_Xj8mK2pL9nR4vT7qY5wZ"The unique identifier for this evaluation set run.
Example:
"bpr_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
idin interfaceEvaluationSetRun.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
evaluationSetId
public EvaluationSetRun.EntityStage evaluationSetId(@NotNull java.lang.String evaluationSetId)
The ID of the evaluation set that was run.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"The ID of the evaluation set that was run.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"- Specified by:
evaluationSetIdin interfaceEvaluationSetRun.EvaluationSetIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
entity
public EvaluationSetRun.EntityVersionStage entity(@NotNull EvaluationSetRunEntity entity)
The extractor, classifier, or splitter that was run.
The extractor, classifier, or splitter that was run.
- Specified by:
entityin interfaceEvaluationSetRun.EntityStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
entityVersion
public EvaluationSetRun.MetricsStage entityVersion(@NotNull EvaluationSetRunEntityVersion entityVersion)
The version of the extractor, classifier, or splitter that was run.
The version of the extractor, classifier, or splitter that was run.
- Specified by:
entityVersionin interfaceEvaluationSetRun.EntityVersionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metrics
public EvaluationSetRun.StatusStage metrics(@NotNull EvaluationSetRunMetrics metrics)
Metrics for the evaluation set run. The shape depends on the entity type.
Metrics for the evaluation set run. The shape depends on the entity type.
- Specified by:
metricsin interfaceEvaluationSetRun.MetricsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public EvaluationSetRun.OptionsStage status(@NotNull BatchRunStatus status)
- Specified by:
statusin interfaceEvaluationSetRun.StatusStage
-
options
public EvaluationSetRun.CreatedAtStage options(@NotNull EvaluationSetRunOptions options)
The options for the evaluation set run.
The options for the evaluation set run.
- Specified by:
optionsin interfaceEvaluationSetRun.OptionsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public EvaluationSetRun.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
- Specified by:
createdAtin interfaceEvaluationSetRun.CreatedAtStage
-
updatedAt
public EvaluationSetRun._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
- Specified by:
updatedAtin interfaceEvaluationSetRun.UpdatedAtStage
-
build
public EvaluationSetRun build()
- Specified by:
buildin interfaceEvaluationSetRun._FinalStage
-
-