Class EvaluationSetItemCreateRequest.Builder
- java.lang.Object
-
- ai.extend.resources.evaluationsetitem.requests.EvaluationSetItemCreateRequest.Builder
-
- All Implemented Interfaces:
EvaluationSetItemCreateRequest._FinalStage,EvaluationSetItemCreateRequest.EvaluationSetIdStage,EvaluationSetItemCreateRequest.ExpectedOutputStage,EvaluationSetItemCreateRequest.FileIdStage
- Enclosing class:
- EvaluationSetItemCreateRequest
public static final class EvaluationSetItemCreateRequest.Builder extends java.lang.Object implements EvaluationSetItemCreateRequest.EvaluationSetIdStage, EvaluationSetItemCreateRequest.FileIdStage, EvaluationSetItemCreateRequest.ExpectedOutputStage, EvaluationSetItemCreateRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationSetItemCreateRequestbuild()EvaluationSetItemCreateRequest.FileIdStageevaluationSetId(java.lang.String evaluationSetId)The ID of the evaluation set to add the item to.EvaluationSetItemCreateRequest._FinalStageexpectedOutput(ProvidedProcessorOutput expectedOutput)The expected output that will be used to evaluate the processor's performance.EvaluationSetItemCreateRequest.ExpectedOutputStagefileId(java.lang.String fileId)Extend's internal ID for the file.EvaluationSetItemCreateRequest.Builderfrom(EvaluationSetItemCreateRequest other)
-
-
-
Method Detail
-
from
public EvaluationSetItemCreateRequest.Builder from(EvaluationSetItemCreateRequest other)
- Specified by:
fromin interfaceEvaluationSetItemCreateRequest.EvaluationSetIdStage
-
evaluationSetId
public EvaluationSetItemCreateRequest.FileIdStage evaluationSetId(@NotNull java.lang.String evaluationSetId)
The ID of the evaluation set to add the item to.
Example:
"ev_Xj8mK2pL9nR4vT7qY5wZ"The ID of the evaluation set to add the item to.
Example:
"ev_Xj8mK2pL9nR4vT7qY5wZ"- Specified by:
evaluationSetIdin interfaceEvaluationSetItemCreateRequest.EvaluationSetIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fileId
public EvaluationSetItemCreateRequest.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 interfaceEvaluationSetItemCreateRequest.FileIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expectedOutput
public EvaluationSetItemCreateRequest._FinalStage expectedOutput(@NotNull ProvidedProcessorOutput expectedOutput)
The expected output that will be used to evaluate the processor's performance.
The expected output that will be used to evaluate the processor's performance.
- Specified by:
expectedOutputin interfaceEvaluationSetItemCreateRequest.ExpectedOutputStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public EvaluationSetItemCreateRequest build()
- Specified by:
buildin interfaceEvaluationSetItemCreateRequest._FinalStage
-
-