Package com.google.genai.types
Class EvaluationParserConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EvaluationParserConfig
Config 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. This data type is not supported in Gemini
API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for EvaluationParserConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for EvaluationParserConfig.Optional.static EvaluationParserConfigDeserializes a JSON string to a EvaluationParserConfig object.abstract EvaluationParserConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
EvaluationParserConfig
public EvaluationParserConfig()
-
-
Method Details
-
customCodeParserConfig
Optional. Use custom code to parse the LLM response. -
builder
Instantiates a builder for EvaluationParserConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EvaluationParserConfig object.
-