Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationParserConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationParserConfig

Returns a new instance of GoogleCloudAiplatformV1EvaluationParserConfig.



10057
10058
10059
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10057

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_code_parser_configGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig

Configuration for parsing the LLM response using custom code. Corresponds to the JSON property customCodeParserConfig



10055
10056
10057
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10055

def custom_code_parser_config
  @custom_code_parser_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10062
10063
10064
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10062

def update!(**args)
  @custom_code_parser_config = args[:custom_code_parser_config] if args.key?(:custom_code_parser_config)
end