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
Modifier and TypeMethodDescriptionbooleanFinal evaluation scores after optimization, keyed by scorer name.booleanInitial evaluation scores before optimization, keyed by scorer name.longTimestamp when the job completed (milliseconds since epoch).Configuration for the optimization job.Configuration for the optimization job.longTimestamp when the job was created (milliseconds since epoch).ID of the MLflow experiment where this optimization job is tracked.com.google.protobuf.ByteStringID of the MLflow experiment where this optimization job is tracked.Deprecated.intFinal evaluation scores after optimization, keyed by scorer name.Final evaluation scores after optimization, keyed by scorer name.doublegetFinalEvalScoresOrDefault(String key, double defaultValue) Final evaluation scores after optimization, keyed by scorer name.doubleFinal evaluation scores after optimization, keyed by scorer name.Deprecated.intInitial evaluation scores before optimization, keyed by scorer name.Initial evaluation scores before optimization, keyed by scorer name.doublegetInitialEvalScoresOrDefault(String key, double defaultValue) Initial evaluation scores before optimization, keyed by scorer name.doubleInitial evaluation scores before optimization, keyed by scorer name.getJobId()Unique identifier for the optimization job.com.google.protobuf.ByteStringUnique identifier for the optimization job.URI of the optimized prompt (e.g., "prompts:/my-prompt/2").com.google.protobuf.ByteStringURI of the optimized prompt (e.g., "prompts:/my-prompt/2").getRunId()MLflow run ID where optimization metrics and results are stored.com.google.protobuf.ByteStringMLflow run ID where optimization metrics and results are stored.URI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").com.google.protobuf.ByteStringURI of the source prompt that optimization started from (e.g., "prompts:/my-prompt/1").getState()Current state of the job (status + error message + metadata).Current state of the job (status + error message + metadata).getTags(int index) Tags associated with this job.intTags associated with this job.Tags associated with this job.getTagsOrBuilder(int index) Tags associated with this job.Tags associated with this job.booleanTimestamp when the job completed (milliseconds since epoch).booleanConfiguration for the optimization job.booleanTimestamp when the job was created (milliseconds since epoch).booleanID of the MLflow experiment where this optimization job is tracked.booleanhasJobId()Unique identifier for the optimization job.booleanURI of the optimized prompt (e.g., "prompts:/my-prompt/2").booleanhasRunId()MLflow run ID where optimization metrics and results are stored.booleanURI 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.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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
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
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
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
List<PromptOptimization.PromptOptimizationJobTag> getTagsList()Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10; -
getTags
Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10; -
getTagsCount
int getTagsCount()Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10; -
getTagsOrBuilderList
List<? extends PromptOptimization.PromptOptimizationJobTagOrBuilder> getTagsOrBuilderList()Tags associated with this job.
repeated .mlflow.PromptOptimizationJobTag tags = 10; -
getTagsOrBuilder
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
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.UsegetInitialEvalScoresMap()instead. -
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
Initial evaluation scores before optimization, keyed by scorer name. Example: {"Correctness": 0.65, "Safety": 0.80}map<string, double> initial_eval_scores = 11; -
getInitialEvalScoresOrThrow
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
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.UsegetFinalEvalScoresMap()instead. -
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
Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12; -
getFinalEvalScoresOrThrow
Final evaluation scores after optimization, keyed by scorer name. Example: {"Correctness": 0.89, "Safety": 0.95}map<string, double> final_eval_scores = 12;
-