Class: Google::Apis::FirebasemlV2beta::FunctionResponse
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::FunctionResponse
- 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
-
#name ⇒ String
Required.
-
#response ⇒ Hash<String,Object>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FunctionResponse
constructor
A new instance of FunctionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FunctionResponse
Returns a new instance of FunctionResponse.
464 465 466 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 464 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The name of the function to call. Matches [FunctionDeclaration.name]
and [FunctionCall.name].
Corresponds to the JSON property name
457 458 459 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 457 def name @name end |
#response ⇒ Hash<String,Object>
Required. The function response in JSON object format.
Corresponds to the JSON property response
462 463 464 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 462 def response @response end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
469 470 471 472 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 469 def update!(**args) @name = args[:name] if args.key?(:name) @response = args[:response] if args.key?(:response) end |