Class OptimizerRun.Builder
- java.lang.Object
-
- ai.extend.types.OptimizerRun.Builder
-
- All Implemented Interfaces:
OptimizerRun._FinalStage,OptimizerRun.AgentRunIdStage,OptimizerRun.AgentTypeStage,OptimizerRun.CreatedAtStage,OptimizerRun.EvalSetIdStage,OptimizerRun.ProcessorIdStage,OptimizerRun.ProcessorVersionIdStage,OptimizerRun.StatusStage,OptimizerRun.UpdatedAtStage
- Enclosing class:
- OptimizerRun
public static final class OptimizerRun.Builder extends java.lang.Object implements OptimizerRun.AgentRunIdStage, OptimizerRun.ProcessorIdStage, OptimizerRun.ProcessorVersionIdStage, OptimizerRun.EvalSetIdStage, OptimizerRun.AgentTypeStage, OptimizerRun.StatusStage, OptimizerRun.CreatedAtStage, OptimizerRun.UpdatedAtStage, OptimizerRun._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptimizerRun.ProcessorIdStageagentRunId(java.lang.String agentRunId)Unique identifier for the optimizer runOptimizerRun.StatusStageagentType(OptimizerRunAgentType agentType)Type of optimizer agent that ranOptimizerRun._FinalStagebatchProcessorRuns(java.util.List<OptimizerBatchProcessorRunResult> batchProcessorRuns)Array of batch processor run results.OptimizerRun._FinalStagebatchProcessorRuns(java.util.Optional<java.util.List<OptimizerBatchProcessorRunResult>> batchProcessorRuns)Array of batch processor run results.OptimizerRunbuild()OptimizerRun.UpdatedAtStagecreatedAt(java.time.OffsetDateTime createdAt)ISO 8601 timestamp of when the run was createdOptimizerRun.AgentTypeStageevalSetId(java.lang.String evalSetId)ID of the evaluation set usedOptimizerRun.Builderfrom(OptimizerRun other)OptimizerRun.ProcessorVersionIdStageprocessorId(java.lang.String processorId)ID of the processor being optimizedOptimizerRun.EvalSetIdStageprocessorVersionId(java.lang.String processorVersionId)ID of the processor version being optimizedOptimizerRun.CreatedAtStagestatus(OptimizerRunStatus status)Current status of the optimizer runOptimizerRun._FinalStageupdatedAt(java.time.OffsetDateTime updatedAt)ISO 8601 timestamp of when the run was last updated
-
-
-
Method Detail
-
from
public OptimizerRun.Builder from(OptimizerRun other)
- Specified by:
fromin interfaceOptimizerRun.AgentRunIdStage
-
agentRunId
public OptimizerRun.ProcessorIdStage agentRunId(@NotNull java.lang.String agentRunId)
Unique identifier for the optimizer run
Unique identifier for the optimizer run
- Specified by:
agentRunIdin interfaceOptimizerRun.AgentRunIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorId
public OptimizerRun.ProcessorVersionIdStage processorId(@NotNull java.lang.String processorId)
ID of the processor being optimized
ID of the processor being optimized
- Specified by:
processorIdin interfaceOptimizerRun.ProcessorIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processorVersionId
public OptimizerRun.EvalSetIdStage processorVersionId(@NotNull java.lang.String processorVersionId)
ID of the processor version being optimized
ID of the processor version being optimized
- Specified by:
processorVersionIdin interfaceOptimizerRun.ProcessorVersionIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
evalSetId
public OptimizerRun.AgentTypeStage evalSetId(@NotNull java.lang.String evalSetId)
ID of the evaluation set used
ID of the evaluation set used
- Specified by:
evalSetIdin interfaceOptimizerRun.EvalSetIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
agentType
public OptimizerRun.StatusStage agentType(@NotNull OptimizerRunAgentType agentType)
Type of optimizer agent that ran
Type of optimizer agent that ran
- Specified by:
agentTypein interfaceOptimizerRun.AgentTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public OptimizerRun.CreatedAtStage status(@NotNull OptimizerRunStatus status)
Current status of the optimizer run
Current status of the optimizer run
- Specified by:
statusin interfaceOptimizerRun.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public OptimizerRun.UpdatedAtStage createdAt(@NotNull java.time.OffsetDateTime createdAt)
ISO 8601 timestamp of when the run was created
ISO 8601 timestamp of when the run was created
- Specified by:
createdAtin interfaceOptimizerRun.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public OptimizerRun._FinalStage updatedAt(@NotNull java.time.OffsetDateTime updatedAt)
ISO 8601 timestamp of when the run was last updated
ISO 8601 timestamp of when the run was last updated
- Specified by:
updatedAtin interfaceOptimizerRun.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
batchProcessorRuns
public OptimizerRun._FinalStage batchProcessorRuns(java.util.List<OptimizerBatchProcessorRunResult> batchProcessorRuns)
Array of batch processor run results. Each run represents one iteration of the optimization process. The first result (with
isBaseline: true) is the baseline configuration. Subsequent results are optimization attempts, sorted chronologically. Only present when status isPROCESSED.- Specified by:
batchProcessorRunsin interfaceOptimizerRun._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
batchProcessorRuns
public OptimizerRun._FinalStage batchProcessorRuns(java.util.Optional<java.util.List<OptimizerBatchProcessorRunResult>> batchProcessorRuns)
Array of batch processor run results. Each run represents one iteration of the optimization process. The first result (with
isBaseline: true) is the baseline configuration. Subsequent results are optimization attempts, sorted chronologically. Only present when status isPROCESSED.- Specified by:
batchProcessorRunsin interfaceOptimizerRun._FinalStage
-
build
public OptimizerRun build()
- Specified by:
buildin interfaceOptimizerRun._FinalStage
-
-