public final class EvaluationParserConfig extends GeneratedMessage implements EvaluationParserConfigOrBuilderConfig for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters.
Protobuf type google.cloud.aiplatform.v1beta1.EvaluationParserConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > EvaluationParserConfigImplements
EvaluationParserConfigOrBuilderStatic Fields
CUSTOM_CODE_PARSER_CONFIG_FIELD_NUMBER
public static final int CUSTOM_CODE_PARSER_CONFIG_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static EvaluationParserConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static EvaluationParserConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.Builder |
|
newBuilder(EvaluationParserConfig prototype)
public static EvaluationParserConfig.Builder newBuilder(EvaluationParserConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
EvaluationParserConfig |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static EvaluationParserConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EvaluationParserConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static EvaluationParserConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EvaluationParserConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static EvaluationParserConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EvaluationParserConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static EvaluationParserConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EvaluationParserConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static EvaluationParserConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static EvaluationParserConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static EvaluationParserConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EvaluationParserConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<EvaluationParserConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<EvaluationParserConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCustomCodeParserConfig()
public EvaluationParserConfig.CustomCodeParserConfig getCustomCodeParserConfig()Optional. Use custom code to parse the LLM response.
.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.CustomCodeParserConfig |
The customCodeParserConfig. |
getCustomCodeParserConfigOrBuilder()
public EvaluationParserConfig.CustomCodeParserConfigOrBuilder getCustomCodeParserConfigOrBuilder()Optional. Use custom code to parse the LLM response.
.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.CustomCodeParserConfigOrBuilder |
|
getDefaultInstanceForType()
public EvaluationParserConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig |
|
getParserCase()
public EvaluationParserConfig.ParserCase getParserCase()| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.ParserCase |
|
getParserForType()
public Parser<EvaluationParserConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<EvaluationParserConfig> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasCustomCodeParserConfig()
public boolean hasCustomCodeParserConfig()Optional. Use custom code to parse the LLM response.
.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the customCodeParserConfig field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public EvaluationParserConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected EvaluationParserConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.Builder |
|
toBuilder()
public EvaluationParserConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
EvaluationParserConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|