Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolUseExample

Inherits:
Object
  • Object
show all
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

A single example of the tool usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ToolUseExample

Returns a new instance of GoogleCloudAiplatformV1beta1ToolUseExample.



40011
40012
40013
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40011

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

Instance Attribute Details

#display_nameString

Required. The display name for example. Corresponds to the JSON property displayName

Returns:

  • (String)


39979
39980
39981
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39979

def display_name
  @display_name
end

#extension_operationGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation

Identifies one operation of the extension. Corresponds to the JSON property extensionOperation



39984
39985
39986
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39984

def extension_operation
  @extension_operation
end

#function_nameString

Function name to call. Corresponds to the JSON property functionName

Returns:

  • (String)


39989
39990
39991
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39989

def function_name
  @function_name
end

#queryString

Required. Query that should be routed to this tool. Corresponds to the JSON property query

Returns:

  • (String)


39994
39995
39996
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39994

def query
  @query
end

#request_paramsHash<String,Object>

Request parameters used for executing this tool. Corresponds to the JSON property requestParams

Returns:

  • (Hash<String,Object>)


39999
40000
40001
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39999

def request_params
  @request_params
end

#response_paramsHash<String,Object>

Response parameters generated by this tool. Corresponds to the JSON property responseParams

Returns:

  • (Hash<String,Object>)


40004
40005
40006
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40004

def response_params
  @response_params
end

#response_summaryString

Summary of the tool response to the user query. Corresponds to the JSON property responseSummary

Returns:

  • (String)


40009
40010
40011
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40009

def response_summary
  @response_summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40016
40017
40018
40019
40020
40021
40022
40023
40024
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40016

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @extension_operation = args[:extension_operation] if args.key?(:extension_operation)
  @function_name = args[:function_name] if args.key?(:function_name)
  @query = args[:query] if args.key?(:query)
  @request_params = args[:request_params] if args.key?(:request_params)
  @response_params = args[:response_params] if args.key?(:response_params)
  @response_summary = args[:response_summary] if args.key?(:response_summary)
end