Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationParserConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationParserConfig
- 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
-
#custom_code_parser_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationParserConfigCustomCodeParserConfig
Configuration for parsing the LLM response using custom code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationParserConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1EvaluationParserConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EvaluationParserConfig
Returns a new instance of GoogleCloudAiplatformV1beta1EvaluationParserConfig.
11399 11400 11401 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_code_parser_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationParserConfigCustomCodeParserConfig
Configuration for parsing the LLM response using custom code.
Corresponds to the JSON property customCodeParserConfig
11397 11398 11399 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11397 def custom_code_parser_config @custom_code_parser_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11404 11405 11406 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11404 def update!(**args) @custom_code_parser_config = args[:custom_code_parser_config] if args.key?(:custom_code_parser_config) end |