Interface RubricGenerationSpecOrBuilder (3.94.0)

public interface RubricGenerationSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getModelConfig()

public abstract AutoraterConfig getModelConfig()

Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.

optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4;

Returns
Type Description
AutoraterConfig

The modelConfig.

getModelConfigOrBuilder()

public abstract AutoraterConfigOrBuilder getModelConfigOrBuilder()

Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.

optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4;

Returns
Type Description
AutoraterConfigOrBuilder

getPromptTemplate()

public abstract String getPromptTemplate()

Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.

string prompt_template = 1;

Returns
Type Description
String

The promptTemplate.

getPromptTemplateBytes()

public abstract ByteString getPromptTemplateBytes()

Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.

string prompt_template = 1;

Returns
Type Description
ByteString

The bytes for promptTemplate.

getRubricContentType()

public abstract RubricGenerationSpec.RubricContentType getRubricContentType()

The type of rubric content to be generated.

.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;

Returns
Type Description
RubricGenerationSpec.RubricContentType

The rubricContentType.

getRubricContentTypeValue()

public abstract int getRubricContentTypeValue()

The type of rubric content to be generated.

.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5;

Returns
Type Description
int

The enum numeric value on the wire for rubricContentType.

getRubricTypeOntology(int index)

public abstract String getRubricTypeOntology(int index)

Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies include_rubric_type should be true, and the generated rubric types should be chosen from this ontology.

repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The rubricTypeOntology at the given index.

getRubricTypeOntologyBytes(int index)

public abstract ByteString getRubricTypeOntologyBytes(int index)

Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies include_rubric_type should be true, and the generated rubric types should be chosen from this ontology.

repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the rubricTypeOntology at the given index.

getRubricTypeOntologyCount()

public abstract int getRubricTypeOntologyCount()

Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies include_rubric_type should be true, and the generated rubric types should be chosen from this ontology.

repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of rubricTypeOntology.

getRubricTypeOntologyList()

public abstract List<String> getRubricTypeOntologyList()

Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies include_rubric_type should be true, and the generated rubric types should be chosen from this ontology.

repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the rubricTypeOntology.

hasModelConfig()

public abstract boolean hasModelConfig()

Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.

optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4;

Returns
Type Description
boolean

Whether the modelConfig field is set.