Package org.mlflow.api.proto
Interface PromptOptimization.PromptOptimizationJobConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PromptOptimization.PromptOptimizationJobConfig,PromptOptimization.PromptOptimizationJobConfig.Builder
- Enclosing class:
- PromptOptimization
public static interface PromptOptimization.PromptOptimizationJobConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionID of the EvaluationDataset containing training data.com.google.protobuf.ByteStringID of the EvaluationDataset containing training data.JSON-serialized optimizer-specific configuration.com.google.protobuf.ByteStringJSON-serialized optimizer-specific configuration.The optimizer type to use.getScorers(int index) List of scorer names.com.google.protobuf.ByteStringgetScorersBytes(int index) List of scorer names.intList of scorer names.List of scorer names.booleanID of the EvaluationDataset containing training data.booleanJSON-serialized optimizer-specific configuration.booleanThe optimizer type to use.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
-
hasOptimizerType
boolean hasOptimizerType()The optimizer type to use.
optional .mlflow.OptimizerType optimizer_type = 1;- Returns:
- Whether the optimizerType field is set.
-
getOptimizerType
PromptOptimization.OptimizerType getOptimizerType()The optimizer type to use.
optional .mlflow.OptimizerType optimizer_type = 1;- Returns:
- The optimizerType.
-
hasDatasetId
boolean hasDatasetId()ID of the EvaluationDataset containing training data.
optional string dataset_id = 2;- Returns:
- Whether the datasetId field is set.
-
getDatasetId
String getDatasetId()ID of the EvaluationDataset containing training data.
optional string dataset_id = 2;- Returns:
- The datasetId.
-
getDatasetIdBytes
com.google.protobuf.ByteString getDatasetIdBytes()ID of the EvaluationDataset containing training data.
optional string dataset_id = 2;- Returns:
- The bytes for datasetId.
-
getScorersList
List of scorer names. Can be built-in scorer class names (e.g., "Correctness", "Safety") or registered scorer names.
repeated string scorers = 3;- Returns:
- A list containing the scorers.
-
getScorersCount
int getScorersCount()List of scorer names. Can be built-in scorer class names (e.g., "Correctness", "Safety") or registered scorer names.
repeated string scorers = 3;- Returns:
- The count of scorers.
-
getScorers
List of scorer names. Can be built-in scorer class names (e.g., "Correctness", "Safety") or registered scorer names.
repeated string scorers = 3;- Parameters:
index- The index of the element to return.- Returns:
- The scorers at the given index.
-
getScorersBytes
com.google.protobuf.ByteString getScorersBytes(int index) List of scorer names. Can be built-in scorer class names (e.g., "Correctness", "Safety") or registered scorer names.
repeated string scorers = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the scorers at the given index.
-
hasOptimizerConfigJson
boolean hasOptimizerConfigJson()JSON-serialized optimizer-specific configuration. Different optimizers accept different parameters: - GEPA: {"reflection_model": "openai:/gpt-5", "max_metric_calls": 300} - MetaPrompt: {"reflection_model": "openai:/gpt-5", "guidelines": "...", "lm_kwargs": {...}}optional string optimizer_config_json = 4;- Returns:
- Whether the optimizerConfigJson field is set.
-
getOptimizerConfigJson
String getOptimizerConfigJson()JSON-serialized optimizer-specific configuration. Different optimizers accept different parameters: - GEPA: {"reflection_model": "openai:/gpt-5", "max_metric_calls": 300} - MetaPrompt: {"reflection_model": "openai:/gpt-5", "guidelines": "...", "lm_kwargs": {...}}optional string optimizer_config_json = 4;- Returns:
- The optimizerConfigJson.
-
getOptimizerConfigJsonBytes
com.google.protobuf.ByteString getOptimizerConfigJsonBytes()JSON-serialized optimizer-specific configuration. Different optimizers accept different parameters: - GEPA: {"reflection_model": "openai:/gpt-5", "max_metric_calls": 300} - MetaPrompt: {"reflection_model": "openai:/gpt-5", "guidelines": "...", "lm_kwargs": {...}}optional string optimizer_config_json = 4;- Returns:
- The bytes for optimizerConfigJson.
-