Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb more...
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) ⇒ GoogleCloudAiplatformV1FunctionResponse
constructor
A new instance of GoogleCloudAiplatformV1FunctionResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1FunctionResponse
Returns a new instance of GoogleCloudAiplatformV1FunctionResponse.
10050 10051 10052 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10050 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
10043 10044 10045 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10043 def name @name end |
#response ⇒ Hash<String,Object>
Required. The function response in JSON object format.
Corresponds to the JSON property response
10048 10049 10050 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10048 def response @response end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10055 10056 10057 10058 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10055 def update!(**args) @name = args[:name] if args.key?(:name) @response = args[:response] if args.key?(:response) end |