Package org.mlflow.api.proto
Interface PromptOptimization.PromptOptimizationJobOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PromptOptimization.PromptOptimizationJob,PromptOptimization.PromptOptimizationJob.Builder
- Enclosing class:
- PromptOptimization
public static interface PromptOptimization.PromptOptimizationJobOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsFinalEvalScores(java.lang.String key)Final evaluation scores after optimization, keyed by scorer name.booleancontainsInitialEvalScores(java.lang.String key)Initial evaluation scores before optimization, keyed by scorer name.longgetCompletionTimestampMs()Timestamp when the job completed (milliseconds since epoch).PromptOptimization.PromptOptimizationJobConfiggetConfig()Configuration for the optimization job.PromptOptimization.PromptOptimizationJobConfigOrBuildergetConfigOrBuilder()Configuration for the optimization job.longgetCreationTimestampMs()Timestamp when the job was created (milliseconds since epoch).java.lang.StringgetExperimentId()ID of the MLflow experiment where this optimization job is tracked.com.google.protobuf.ByteStringgetExperimentIdBytes()ID of the MLflow experiment where this optimization job is tracked.java.util.Map<java.lang.String,java.lang.Double>getFinalEvalScores()Deprecated.intgetFinalEvalScoresCount()Final evaluation scores after optimization, keyed by scorer name.java.util.Map<java.lang.String,java.lang.Double>getFinalEvalScoresMap()Final evaluation scores after optimization, keyed by scorer name.doublegetFinalEvalScoresOrDefault(java.lang.String key, double defaultValue)Final evaluation scores after optimization, keyed by scorer name.doublegetFinalEvalScoresOrThrow(java.lang.String key)Final evaluation scores after optimization, keyed by scorer name.java.util.Map<java.lang.String,java.lang.Double>getInitialEvalScores()Deprecated.intgetInitialEvalScoresCount()Initial evaluation scores before optimization, keyed by scorer name.java.util.Map<java.lang.String,java.lang.Double>getInitialEvalScoresMap()Initial evaluation scores before optimization, keyed by scorer name.doublegetInitialEvalScoresOrDefault(java.lang.String key, double defaultValue)Initial evaluation scores before optimization, keyed by scorer name.doublegetInitialEvalScoresOrThrow(java.lang.String key)Initial evaluation scores before optimization, keyed by scorer name.java.lang.StringgetJobId()Unique identifier for the optimization job.com.google.protobuf.ByteStringgetJobIdBytes()Unique identifier for the optimization job.java.lang.StringgetOptimizedPromptUri()URI of the optimized prompt (e.g., "prompts:/my-prompt/2").com.google.protobuf.ByteStringgetOptimizedPromptUriBytes()URI of the optimized prompt (e.g., "prompts:/my-prompt/2").java.lang.StringgetRunId()MLflow run ID where optimization metrics and results are stored.com.google.protobuf.ByteStringgetRunIdBytes()MLflow run ID where optimization metrics and results are stored.java.lang.StringgetSourcePromptUri()URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").com.google.protobuf.ByteStringgetSourcePromptUriBytes()URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").Jobs.JobStategetState()Current state of the job (status + error message + metadata).Jobs.JobStateOrBuildergetStateOrBuilder()Current state of the job (status + error message + metadata).PromptOptimization.PromptOptimizationJobTaggetTags(int index)Tags associated with this job.intgetTagsCount()Tags associated with this job.java.util.List<PromptOptimization.PromptOptimizationJobTag>getTagsList()Tags associated with this job.PromptOptimization.PromptOptimizationJobTagOrBuildergetTagsOrBuilder(int index)Tags associated with this job.java.util.List<? extends PromptOptimization.PromptOptimizationJobTagOrBuilder>getTagsOrBuilderList()Tags associated with this job.booleanhasCompletionTimestampMs()Timestamp when the job completed (milliseconds since epoch).booleanhasConfig()Configuration for the optimization job.booleanhasCreationTimestampMs()Timestamp when the job was created (milliseconds since epoch).booleanhasExperimentId()ID of the MLflow experiment where this optimization job is tracked.booleanhasJobId()Unique identifier for the optimization job.booleanhasOptimizedPromptUri()URI of the optimized prompt (e.g., "prompts:/my-prompt/2").booleanhasRunId()MLflow run ID where optimization metrics and results are stored.booleanhasSourcePromptUri()URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").booleanhasState()Current state of the job (status + error message + metadata).-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasJobId
boolean hasJobId()
Unique identifier for the optimization job. Used to poll job execution status (pending/running/completed/failed).
optional string job_id = 1;- Returns:
- Whether the jobId field is set.
-
getJobId
java.lang.String getJobId()
Unique identifier for the optimization job. Used to poll job execution status (pending/running/completed/failed).
optional string job_id = 1;- Returns:
- The jobId.
-
getJobIdBytes
com.google.protobuf.ByteString getJobIdBytes()
Unique identifier for the optimization job. Used to poll job execution status (pending/running/completed/failed).
optional string job_id = 1;- Returns:
- The bytes for jobId.
-
hasRunId
boolean hasRunId()
MLflow run ID where optimization metrics and results are stored. Use this to view results in MLflow UI. Only available after job starts running.
optional string run_id = 2;- Returns:
- Whether the runId field is set.
-
getRunId
java.lang.String getRunId()
MLflow run ID where optimization metrics and results are stored. Use this to view results in MLflow UI. Only available after job starts running.
optional string run_id = 2;- Returns:
- The runId.
-
getRunIdBytes
com.google.protobuf.ByteString getRunIdBytes()
MLflow run ID where optimization metrics and results are stored. Use this to view results in MLflow UI. Only available after job starts running.
optional string run_id = 2;- Returns:
- The bytes for runId.
-
hasState
boolean hasState()
Current state of the job (status + error message + metadata).
optional .mlflow.JobState state = 3;- Returns:
- Whether the state field is set.
-
getState
Jobs.JobState getState()
Current state of the job (status + error message + metadata).
optional .mlflow.JobState state = 3;- Returns:
- The state.
-
getStateOrBuilder
Jobs.JobStateOrBuilder getStateOrBuilder()
Current state of the job (status + error message + metadata).
optional .mlflow.JobState state = 3;
-
hasExperimentId
boolean hasExperimentId()
ID of the MLflow experiment where this optimization job is tracked.
optional string experiment_id = 4;- Returns:
- Whether the experimentId field is set.
-
getExperimentId
java.lang.String getExperimentId()
ID of the MLflow experiment where this optimization job is tracked.
optional string experiment_id = 4;- Returns:
- The experimentId.
-
getExperimentIdBytes
com.google.protobuf.ByteString getExperimentIdBytes()
ID of the MLflow experiment where this optimization job is tracked.
optional string experiment_id = 4;- Returns:
- The bytes for experimentId.
-
hasSourcePromptUri
boolean hasSourcePromptUri()
URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").
optional string source_prompt_uri = 5;- Returns:
- Whether the sourcePromptUri field is set.
-
getSourcePromptUri
java.lang.String getSourcePromptUri()
URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").
optional string source_prompt_uri = 5;- Returns:
- The sourcePromptUri.
-
getSourcePromptUriBytes
com.google.protobuf.ByteString getSourcePromptUriBytes()
URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").
optional string source_prompt_uri = 5;- Returns:
- The bytes for sourcePromptUri.
-
hasOptimizedPromptUri
boolean hasOptimizedPromptUri()
URI of the optimized prompt (e.g., "prompts:/my-prompt/2"). Only set if optimization completed successfully.
optional string optimized_prompt_uri = 6;- Returns:
- Whether the optimizedPromptUri field is set.
-
getOptimizedPromptUri
java.lang.String getOptimizedPromptUri()
URI of the optimized prompt (e.g., "prompts:/my-prompt/2"). Only set if optimization completed successfully.
optional string optimized_prompt_uri = 6;- Returns:
- The optimizedPromptUri.
-
getOptimizedPromptUriBytes
com.google.protobuf.ByteString getOptimizedPromptUriBytes()
URI of the optimized prompt (e.g., "prompts:/my-prompt/2"). Only set if optimization completed successfully.
optional string optimized_prompt_uri = 6;- Returns:
- The bytes for optimizedPromptUri.
-
hasConfig
boolean hasConfig()
Configuration for the optimization job.
optional .mlflow.PromptOptimizationJobConfig config = 7;- Returns:
- Whether the config field is set.
-
getConfig
PromptOptimization.PromptOptimizationJobConfig getConfig()
Configuration for the optimization job.
optional .mlflow.PromptOptimizationJobConfig config = 7;- Returns:
- The config.
-
getConfigOrBuilder
PromptOptimization.PromptOptimizationJobConfigOrBuilder getConfigOrBuilder()
Configuration for the optimization job.
optional .mlflow.PromptOptimizationJobConfig config = 7;
-
hasCreationTimestampMs
boolean hasCreationTimestampMs()
Timestamp when the job was created (milliseconds since epoch).
optional int64 creation_timestamp_ms = 8;- Returns:
- Whether the creationTimestampMs field is set.
-
getCreationTimestampMs
long getCreationTimestampMs()
Timestamp when the job was created (milliseconds since epoch).
optional int64 creation_timestamp_ms = 8;- Returns:
- The creationTimestampMs.
-
hasCompletionTimestampMs
boolean hasCompletionTimestampMs()
Timestamp when the job completed (milliseconds since epoch). Only set if status is COMPLETED, FAILED, or CANCELED.
optional int64 completion_timestamp_ms = 9;- Returns:
- Whether the completionTimestampMs field is set.
-
getCompletionTimestampMs
long getCompletionTimestampMs()
Timestamp when the job completed (milliseconds since epoch). Only set if status is COMPLETED, FAILED, or CANCELED.
optional int64 completion_timestamp_ms = 9;- Returns:
- The completionTimestampMs.
-
getTagsList
java.util.List<PromptOptimization.PromptOptimizationJobTag> getTagsList()
Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10;
-
getTags
PromptOptimization.PromptOptimizationJobTag getTags(int index)
Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10;
-
getTagsCount
int getTagsCount()
Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10;
-
getTagsOrBuilderList
java.util.List<? extends PromptOptimization.PromptOptimizationJobTagOrBuilder> getTagsOrBuilderList()
Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10;
-
getTagsOrBuilder
PromptOptimization.PromptOptimizationJobTagOrBuilder getTagsOrBuilder(int index)
Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10;
-
getInitialEvalScoresCount
int getInitialEvalScoresCount()
Initial evaluation scores before optimization, keyed by scorer name. Example: {"Correctness": 0.65, "Safety": 0.80}map<string, double> initial_eval_scores = 11;
-
containsInitialEvalScores
boolean containsInitialEvalScores(java.lang.String key)
Initial evaluation scores before optimization, keyed by scorer name. Example: {"Correctness": 0.65, "Safety": 0.80}map<string, double> initial_eval_scores = 11;
-
getInitialEvalScores
@Deprecated java.util.Map<java.lang.String,java.lang.Double> getInitialEvalScores()
Deprecated.UsegetInitialEvalScoresMap()instead.
-
getInitialEvalScoresMap
java.util.Map<java.lang.String,java.lang.Double> getInitialEvalScoresMap()
Initial evaluation scores before optimization, keyed by scorer name. Example: {"Correctness": 0.65, "Safety": 0.80}map<string, double> initial_eval_scores = 11;
-
getInitialEvalScoresOrDefault
double getInitialEvalScoresOrDefault(java.lang.String key, double defaultValue)Initial evaluation scores before optimization, keyed by scorer name. Example: {"Correctness": 0.65, "Safety": 0.80}map<string, double> initial_eval_scores = 11;
-
getInitialEvalScoresOrThrow
double getInitialEvalScoresOrThrow(java.lang.String key)
Initial evaluation scores before optimization, keyed by scorer name. Example: {"Correctness": 0.65, "Safety": 0.80}map<string, double> initial_eval_scores = 11;
-
getFinalEvalScoresCount
int getFinalEvalScoresCount()
Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12;
-
containsFinalEvalScores
boolean containsFinalEvalScores(java.lang.String key)
Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12;
-
getFinalEvalScores
@Deprecated java.util.Map<java.lang.String,java.lang.Double> getFinalEvalScores()
Deprecated.UsegetFinalEvalScoresMap()instead.
-
getFinalEvalScoresMap
java.util.Map<java.lang.String,java.lang.Double> getFinalEvalScoresMap()
Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12;
-
getFinalEvalScoresOrDefault
double getFinalEvalScoresOrDefault(java.lang.String key, double defaultValue)Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12;
-
getFinalEvalScoresOrThrow
double getFinalEvalScoresOrThrow(java.lang.String key)
Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12;
-
-