Class EvaluationSetItem.Builder
- java.lang.Object
-
- ai.extend.types.EvaluationSetItem.Builder
-
- All Implemented Interfaces:
EvaluationSetItem._FinalStage,EvaluationSetItem.EvaluationSetIdStage,EvaluationSetItem.ExpectedOutputStage,EvaluationSetItem.FileIdStage,EvaluationSetItem.IdStage,EvaluationSetItem.ObjectStage
- Enclosing class:
- EvaluationSetItem
public static final class EvaluationSetItem.Builder extends java.lang.Object implements EvaluationSetItem.ObjectStage, EvaluationSetItem.IdStage, EvaluationSetItem.EvaluationSetIdStage, EvaluationSetItem.FileIdStage, EvaluationSetItem.ExpectedOutputStage, EvaluationSetItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationSetItembuild()EvaluationSetItem.FileIdStageevaluationSetId(java.lang.String evaluationSetId)The ID of the evaluation set that this item belongs to.EvaluationSetItem._FinalStageexpectedOutput(ProvidedProcessorOutput expectedOutput)The expected output that will be used to evaluate the processor's performance.EvaluationSetItem.ExpectedOutputStagefileId(java.lang.String fileId)Extend's internal ID for the file.EvaluationSetItem.Builderfrom(EvaluationSetItem other)EvaluationSetItem.EvaluationSetIdStageid(java.lang.String id)The ID of the evaluation set item.EvaluationSetItem.IdStageobject(java.lang.String object)The type of response.
-
-
-
Method Detail
-
from
public EvaluationSetItem.Builder from(EvaluationSetItem other)
- Specified by:
fromin interfaceEvaluationSetItem.ObjectStage
-
object
public EvaluationSetItem.IdStage object(@NotNull java.lang.String object)
The type of response. In this case, it will always be
"evaluation_set_item".The type of response. In this case, it will always be
"evaluation_set_item".- Specified by:
objectin interfaceEvaluationSetItem.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public EvaluationSetItem.EvaluationSetIdStage id(@NotNull java.lang.String id)
The ID of the evaluation set item.
Example:
"evi_kR9mNP12Qw4yTv8BdR3H"The ID of the evaluation set item.
Example:
"evi_kR9mNP12Qw4yTv8BdR3H"- Specified by:
idin interfaceEvaluationSetItem.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
evaluationSetId
public EvaluationSetItem.FileIdStage evaluationSetId(@NotNull java.lang.String evaluationSetId)
The ID of the evaluation set that this item belongs to.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"The ID of the evaluation set that this item belongs to.
Example:
"ev_2LcgeY_mp2T5yPaEuq5Lw"- Specified by:
evaluationSetIdin interfaceEvaluationSetItem.EvaluationSetIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fileId
public EvaluationSetItem.ExpectedOutputStage fileId(@NotNull java.lang.String fileId)
Extend's internal ID for the file. It will always start with "file_".
Example:
"file_xK9mLPqRtN3vS8wF5hB2cQ"Extend's internal ID for the file. It will always start with "file_".
Example:
"file_xK9mLPqRtN3vS8wF5hB2cQ"- Specified by:
fileIdin interfaceEvaluationSetItem.FileIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expectedOutput
public EvaluationSetItem._FinalStage expectedOutput(@NotNull ProvidedProcessorOutput expectedOutput)
The expected output that will be used to evaluate the processor's performance. This will confirm to the output type schema of the processor.
The expected output that will be used to evaluate the processor's performance. This will confirm to the output type schema of the processor.
- Specified by:
expectedOutputin interfaceEvaluationSetItem.ExpectedOutputStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public EvaluationSetItem build()
- Specified by:
buildin interfaceEvaluationSetItem._FinalStage
-
-