Class EvaluationSet.Builder
- java.lang.Object
-
- ai.extend.types.EvaluationSet.Builder
-
- All Implemented Interfaces:
EvaluationSet._FinalStage,EvaluationSet.CreatedAtStage,EvaluationSet.DescriptionStage,EvaluationSet.IdStage,EvaluationSet.NameStage,EvaluationSet.ObjectStage,EvaluationSet.ProcessorIdStage,EvaluationSet.UpdatedAtStage
- Enclosing class:
- EvaluationSet
public static final class EvaluationSet.Builder extends java.lang.Object implements EvaluationSet.ObjectStage, EvaluationSet.IdStage, EvaluationSet.NameStage, EvaluationSet.DescriptionStage, EvaluationSet.ProcessorIdStage, EvaluationSet.CreatedAtStage, EvaluationSet.UpdatedAtStage, EvaluationSet._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationSetbuild()EvaluationSet.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)The time (in UTC) at which the evaluation set was created.EvaluationSet.ProcessorIdStagedescription(java.lang.String description)A description of the evaluation set.EvaluationSet.Builderfrom(EvaluationSet other)EvaluationSet.NameStageid(java.lang.String id)The ID of the evaluation set.EvaluationSet.DescriptionStagename(java.lang.String name)The name of the evaluation set.EvaluationSet.IdStageobject(java.lang.String object)The type of response.EvaluationSet.CreatedAtStageprocessorId(java.lang.String processorId)The ID of the processor associated with this evaluation set.EvaluationSet._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)The time (in UTC) at which the evaluation set was last updated.
-
-
-
Method Detail
-
from
public EvaluationSet.Builder from(EvaluationSet other)
- Specified by:
fromin interfaceEvaluationSet.ObjectStage
-
object
public EvaluationSet.IdStage object(@NotNull java.lang.String object)
The type of response. In this case, it will always be
"evaluation_set".The type of response. In this case, it will always be
"evaluation_set".- Specified by:
objectin interfaceEvaluationSet.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public EvaluationSet.NameStage id(@NotNull java.lang.String id)
The ID of the evaluation set.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"The ID of the evaluation set.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"- Specified by:
idin interfaceEvaluationSet.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public EvaluationSet.DescriptionStage name(@NotNull java.lang.String name)
The name of the evaluation set.
Example:
"Invoice Processing Test Set"The name of the evaluation set.
Example:
"Invoice Processing Test Set"- Specified by:
namein interfaceEvaluationSet.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public EvaluationSet.ProcessorIdStage description(@NotNull java.lang.String description)
A description of the evaluation set.
Example:
"Q4 2023 vendor invoices for accuracy testing"A description of the evaluation set.
Example:
"Q4 2023 vendor invoices for accuracy testing"- Specified by:
descriptionin interfaceEvaluationSet.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorId
public EvaluationSet.CreatedAtStage processorId(@NotNull java.lang.String processorId)
The ID of the processor associated with this evaluation set.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"The ID of the processor associated with this evaluation set.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
processorIdin interfaceEvaluationSet.ProcessorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public EvaluationSet.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
The time (in UTC) at which the evaluation set was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"The time (in UTC) at which the evaluation set was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"- Specified by:
createdAtin interfaceEvaluationSet.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public EvaluationSet._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
The time (in UTC) at which the evaluation set was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"The time (in UTC) at which the evaluation set was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"- Specified by:
updatedAtin interfaceEvaluationSet.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public EvaluationSet build()
- Specified by:
buildin interfaceEvaluationSet._FinalStage
-
-