Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationParserConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/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) ⇒ GoogleCloudAiplatformV1beta1EvaluationParserConfig

Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationParserConfig.



16741
16742
16743
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16741

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

Instance Attribute Details

#custom_code_parser_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationParserConfigCustomCodeParserConfig

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



16739
16740
16741
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16739

def custom_code_parser_config
  @custom_code_parser_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16746
16747
16748
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 16746

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