Class: Google::Cloud::AIPlatform::V1::FunctionResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/tool.rb

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

Instance Attribute Details

#name::String

Returns Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].

Returns:

  • (::String)

    Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].



127
128
129
130
# File 'proto_docs/google/cloud/aiplatform/v1/tool.rb', line 127

class FunctionResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#response::Google::Protobuf::Struct

Returns Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.

Returns:

  • (::Google::Protobuf::Struct)

    Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.



127
128
129
130
# File 'proto_docs/google/cloud/aiplatform/v1/tool.rb', line 127

class FunctionResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end