Class: Google::Apis::FirebasemlV2beta::FunctionDeclaration
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::FunctionDeclaration
- 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
Structured representation of a function declaration as defined by the OpenAPI
3.0 specification. Included in this
declaration are the function name and parameters. This FunctionDeclaration is
a representation of a block of code that can be used as a Tool by the model
and executed by the client.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#name ⇒ String
Required.
-
#parameters ⇒ Google::Apis::FirebasemlV2beta::Schema
Schema is used to define the format of input/output data.
-
#response ⇒ Google::Apis::FirebasemlV2beta::Schema
Schema is used to define the format of input/output data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FunctionDeclaration
constructor
A new instance of FunctionDeclaration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FunctionDeclaration
Returns a new instance of FunctionDeclaration.
433 434 435 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. Description and purpose of the function. Model uses it to decide how
and whether to call the function.
Corresponds to the JSON property description
410 411 412 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 410 def description @description end |
#name ⇒ String
Required. The name of the function to call. Must start with a letter or an
underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes,
with a maximum length of 64.
Corresponds to the JSON property name
417 418 419 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 417 def name @name end |
#parameters ⇒ Google::Apis::FirebasemlV2beta::Schema
Schema is used to define the format of input/output data. Represents a select
subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
Corresponds to the JSON property parameters
424 425 426 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 424 def parameters @parameters end |
#response ⇒ Google::Apis::FirebasemlV2beta::Schema
Schema is used to define the format of input/output data. Represents a select
subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
Corresponds to the JSON property response
431 432 433 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 431 def response @response end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
438 439 440 441 442 443 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 438 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @parameters = args[:parameters] if args.key?(:parameters) @response = args[:response] if args.key?(:response) end |