Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionCallingConfig

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

Function calling config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FunctionCallingConfig

Returns a new instance of GoogleCloudAiplatformV1beta1FunctionCallingConfig.



405
406
407
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 405

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

Instance Attribute Details

#allowed_function_namesArray<String>

Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided. Corresponds to the JSON property allowedFunctionNames

Returns:

  • (Array<String>)


398
399
400
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 398

def allowed_function_names
  @allowed_function_names
end

#modeString

Optional. Function calling mode. Corresponds to the JSON property mode

Returns:

  • (String)


403
404
405
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 403

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



410
411
412
413
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 410

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