Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationParserConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationParserConfig
- 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
-
#custom_code_parser_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig
Configuration for parsing the LLM response using custom code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationParserConfig
constructor
A new instance of GoogleCloudAiplatformV1EvaluationParserConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationParserConfig
Returns a new instance of GoogleCloudAiplatformV1EvaluationParserConfig.
9962 9963 9964 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9962 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_code_parser_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig
Configuration for parsing the LLM response using custom code.
Corresponds to the JSON property customCodeParserConfig
9960 9961 9962 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9960 def custom_code_parser_config @custom_code_parser_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9967 9968 9969 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9967 def update!(**args) @custom_code_parser_config = args[:custom_code_parser_config] if args.key?(:custom_code_parser_config) end |