Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance

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

Instance for RubricBasedInstructionFollowing metric - one instance corresponds to one row in an evaluation dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance

Returns a new instance of GoogleCloudAiplatformV1beta1RubricBasedInstructionFollowingInstance.



48820
48821
48822
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48820

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

Instance Attribute Details

#json_instanceString

Required. Instance specified as a json string. String key-value pairs are expected in the json_instance to render RubricBasedInstructionFollowing prompt templates. Corresponds to the JSON property jsonInstance

Returns:

  • (String)


48818
48819
48820
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48818

def json_instance
  @json_instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



48825
48826
48827
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 48825

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