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.



10009
10010
10011
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10009

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



10007
10008
10009
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10007

def custom_code_parser_config
  @custom_code_parser_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10014
10015
10016
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10014

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