Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCall

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

Spec for tool call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ToolCall

Returns a new instance of GoogleCloudAiplatformV1beta1ToolCall.



39502
39503
39504
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39502

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

Instance Attribute Details

#tool_inputString

Optional. Spec for tool input Corresponds to the JSON property toolInput

Returns:

  • (String)


39495
39496
39497
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39495

def tool_input
  @tool_input
end

#tool_nameString

Required. Spec for tool name Corresponds to the JSON property toolName

Returns:

  • (String)


39500
39501
39502
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39500

def tool_name
  @tool_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39507
39508
39509
39510
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 39507

def update!(**args)
  @tool_input = args[:tool_input] if args.key?(:tool_input)
  @tool_name = args[:tool_name] if args.key?(:tool_name)
end