Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Function declaration details.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#name ⇒ String
Required.
-
#parameters ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema
Represents a select subset of an OpenAPI 3.0 Schema object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FunctionDeclaration
constructor
A new instance of GoogleCloudAiplatformV1beta1FunctionDeclaration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FunctionDeclaration
Returns a new instance of GoogleCloudAiplatformV1beta1FunctionDeclaration.
8580 8581 8582 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8580 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
8563 8564 8565 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8563 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 and dashes, with a
maximum length of 64.
Corresponds to the JSON property name
8570 8571 8572 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8570 def name @name end |
#parameters ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema
Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
define the format of input/output data. More fields may be added in the future
as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
0.2.md#schemaObject
Corresponds to the JSON property parameters
8578 8579 8580 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8578 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8585 8586 8587 8588 8589 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8585 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @parameters = args[:parameters] if args.key?(:parameters) end |