Package org.mlflow.api.proto
Class PromptOptimization.PromptOptimizationJobConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.mlflow.api.proto.PromptOptimization.PromptOptimizationJobConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,PromptOptimization.PromptOptimizationJobConfigOrBuilder
- Enclosing class:
- PromptOptimization
public static final class PromptOptimization.PromptOptimizationJobConfig
extends com.google.protobuf.GeneratedMessageV3
implements PromptOptimization.PromptOptimizationJobConfigOrBuilder
Configuration for a prompt optimization job. Stored as run parameters in the underlying MLflow run.Protobuf type
mlflow.PromptOptimizationJobConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for a prompt optimization job.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final com.google.protobuf.Parser<PromptOptimization.PromptOptimizationJobConfig>Deprecated.static final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanID of the EvaluationDataset containing training data.com.google.protobuf.ByteStringID of the EvaluationDataset containing training data.static final com.google.protobuf.Descriptors.DescriptorJSON-serialized optimizer-specific configuration.com.google.protobuf.ByteStringJSON-serialized optimizer-specific configuration.The optimizer type to use.com.google.protobuf.Parser<PromptOptimization.PromptOptimizationJobConfig>getScorers(int index) List of scorer names.com.google.protobuf.ByteStringgetScorersBytes(int index) List of scorer names.intList of scorer names.com.google.protobuf.ProtocolStringListList of scorer names.intfinal com.google.protobuf.UnknownFieldSetbooleanID of the EvaluationDataset containing training data.inthashCode()booleanJSON-serialized optimizer-specific configuration.booleanThe optimizer type to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PromptOptimization.PromptOptimizationJobConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
OPTIMIZER_TYPE_FIELD_NUMBER
public static final int OPTIMIZER_TYPE_FIELD_NUMBER- See Also:
-
DATASET_ID_FIELD_NUMBER
public static final int DATASET_ID_FIELD_NUMBER- See Also:
-
SCORERS_FIELD_NUMBER
public static final int SCORERS_FIELD_NUMBER- See Also:
-
OPTIMIZER_CONFIG_JSON_FIELD_NUMBER
public static final int OPTIMIZER_CONFIG_JSON_FIELD_NUMBER- See Also:
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<PromptOptimization.PromptOptimizationJobConfig> PARSERDeprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasOptimizerType
public boolean hasOptimizerType()The optimizer type to use.
optional .mlflow.OptimizerType optimizer_type = 1;- Specified by:
hasOptimizerTypein interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- Whether the optimizerType field is set.
-
getOptimizerType
The optimizer type to use.
optional .mlflow.OptimizerType optimizer_type = 1;- Specified by:
getOptimizerTypein interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- The optimizerType.
-
hasDatasetId
public boolean hasDatasetId()ID of the EvaluationDataset containing training data.
optional string dataset_id = 2;- Specified by:
hasDatasetIdin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- Whether the datasetId field is set.
-
getDatasetId
ID of the EvaluationDataset containing training data.
optional string dataset_id = 2;- Specified by:
getDatasetIdin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- The datasetId.
-
getDatasetIdBytes
public com.google.protobuf.ByteString getDatasetIdBytes()ID of the EvaluationDataset containing training data.
optional string dataset_id = 2;- Specified by:
getDatasetIdBytesin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- The bytes for datasetId.
-
getScorersList
public com.google.protobuf.ProtocolStringList getScorersList()List of scorer names. Can be built-in scorer class names (e.g., "Correctness", "Safety") or registered scorer names.
repeated string scorers = 3;- Specified by:
getScorersListin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- A list containing the scorers.
-
getScorersCount
public 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;- Specified by:
getScorersCountin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- 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;- Specified by:
getScorersin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The scorers at the given index.
-
getScorersBytes
public 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;- Specified by:
getScorersBytesin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the scorers at the given index.
-
hasOptimizerConfigJson
public 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;- Specified by:
hasOptimizerConfigJsonin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- Whether the optimizerConfigJson field is set.
-
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;- Specified by:
getOptimizerConfigJsonin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- The optimizerConfigJson.
-
getOptimizerConfigJsonBytes
public 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;- Specified by:
getOptimizerConfigJsonBytesin interfacePromptOptimization.PromptOptimizationJobConfigOrBuilder- Returns:
- The bytes for optimizerConfigJson.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static PromptOptimization.PromptOptimizationJobConfig parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static PromptOptimization.PromptOptimizationJobConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PromptOptimization.PromptOptimizationJobConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static PromptOptimization.PromptOptimizationJobConfig.Builder newBuilder(PromptOptimization.PromptOptimizationJobConfig prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PromptOptimization.PromptOptimizationJobConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
public com.google.protobuf.Parser<PromptOptimization.PromptOptimizationJobConfig> getParserForType()- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-