public final class LLMBasedMetricSpec extends GeneratedMessage implements LLMBasedMetricSpecOrBuilder
Specification for an LLM based metric.
Protobuf type google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int ADDITIONAL_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int JUDGE_AUTORATER_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int METRIC_PROMPT_TEMPLATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RUBRIC_GROUP_KEY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static LLMBasedMetricSpec getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static LLMBasedMetricSpec.Builder newBuilder()
public static LLMBasedMetricSpec.Builder newBuilder(LLMBasedMetricSpec prototype)
public static LLMBasedMetricSpec parseDelimitedFrom(InputStream input)
public static LLMBasedMetricSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LLMBasedMetricSpec parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static LLMBasedMetricSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LLMBasedMetricSpec parseFrom(ByteString data)
public static LLMBasedMetricSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LLMBasedMetricSpec parseFrom(CodedInputStream input)
public static LLMBasedMetricSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LLMBasedMetricSpec parseFrom(InputStream input)
public static LLMBasedMetricSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LLMBasedMetricSpec parseFrom(ByteBuffer data)
public static LLMBasedMetricSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<LLMBasedMetricSpec> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public Struct getAdditionalConfig()
Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Struct |
The additionalConfig.
|
public StructOrBuilder getAdditionalConfigOrBuilder()
Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public LLMBasedMetricSpec getDefaultInstanceForType()
public AutoraterConfig getJudgeAutoraterConfig()
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
public AutoraterConfigOrBuilder getJudgeAutoraterConfigOrBuilder()
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
public String getMetricPromptTemplate()
Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The metricPromptTemplate.
|
public ByteString getMetricPromptTemplateBytes()
Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for metricPromptTemplate.
|
public Parser<LLMBasedMetricSpec> getParserForType()
Overrides
public PredefinedMetricSpec getPredefinedRubricGenerationSpec()
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
public PredefinedMetricSpecOrBuilder getPredefinedRubricGenerationSpecOrBuilder()
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
public String getRubricGroupKey()
Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
string rubric_group_key = 4;
| Returns |
| Type |
Description |
String |
The rubricGroupKey.
|
public ByteString getRubricGroupKeyBytes()
Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
string rubric_group_key = 4;
| Returns |
| Type |
Description |
ByteString |
The bytes for rubricGroupKey.
|
public LLMBasedMetricSpec.RubricsSourceCase getRubricsSourceCase()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getSystemInstruction()
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The systemInstruction.
|
public ByteString getSystemInstructionBytes()
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for systemInstruction.
|
public boolean hasAdditionalConfig()
Optional. Optional additional configuration for the metric.
optional .google.protobuf.Struct additional_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the additionalConfig field is set.
|
public boolean hasJudgeAutoraterConfig()
Optional. Optional configuration for the judge LLM (Autorater).
optional .google.cloud.aiplatform.v1beta1.AutoraterConfig judge_autorater_config = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the judgeAutoraterConfig field is set.
|
public boolean hasMetricPromptTemplate()
Required. Template for the prompt sent to the judge model.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the metricPromptTemplate field is set.
|
public boolean hasPredefinedRubricGenerationSpec()
Dynamically generate rubrics using a predefined spec.
.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 6;
| Returns |
| Type |
Description |
boolean |
Whether the predefinedRubricGenerationSpec field is set.
|
public boolean hasRubricGroupKey()
Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.
string rubric_group_key = 4;
| Returns |
| Type |
Description |
boolean |
Whether the rubricGroupKey field is set.
|
public boolean hasSystemInstruction()
Optional. System instructions for the judge model.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the systemInstruction field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LLMBasedMetricSpec.Builder newBuilderForType()
protected LLMBasedMetricSpec.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public LLMBasedMetricSpec.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides