Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb

Overview

The result output from a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall] made based on model prediction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FunctionResponse

Returns a new instance of GoogleCloudAiplatformV1beta1FunctionResponse.



482
483
484
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 482

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

Instance Attribute Details

#nameString

Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]. Corresponds to the JSON property name

Returns:

  • (String)


475
476
477
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 475

def name
  @name
end

#responseHash<String,Object>

Required. The function response in JSON object format. Corresponds to the JSON property response

Returns:

  • (Hash<String,Object>)


480
481
482
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 480

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



487
488
489
490
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 487

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