Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolCall

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

Overview

Spec for tool call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ToolCall

Returns a new instance of GoogleCloudAiplatformV1ToolCall.



35877
35878
35879
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35877

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

Instance Attribute Details

#tool_inputString

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

Returns:

  • (String)


35870
35871
35872
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35870

def tool_input
  @tool_input
end

#tool_nameString

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

Returns:

  • (String)


35875
35876
35877
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35875

def tool_name
  @tool_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35882
35883
35884
35885
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 35882

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