Class: Google::Apis::FirebasemlV2beta::FunctionCall

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

A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FunctionCall

Returns a new instance of FunctionCall.



360
361
362
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 360

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

Instance Attribute Details

#argsHash<String,Object>

Optional. Required. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details. Corresponds to the JSON property args

Returns:

  • (Hash<String,Object>)


353
354
355
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 353

def args
  @args
end

#nameString

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

Returns:

  • (String)


358
359
360
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 358

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



365
366
367
368
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 365

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