Enumeration ResponseParseType

Defines the type for parsing sample response. This enum is not supported in Gemini API.

Enumeration Members

IDENTITY: "IDENTITY"

Returns the sample response as is.

REGEX_EXTRACT: "REGEX_EXTRACT"

Uses regex to extract the important part of sample response. Similar to GoogleSQL REGEX_EXTRACT(response, regex_extract_expression), but different in that if there are multiple matches, the last match will be returned.

RESPONSE_PARSE_TYPE_UNSPECIFIED: "RESPONSE_PARSE_TYPE_UNSPECIFIED"

Default value. Fallback to IDENTITY