Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolCallContent

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

Tool call content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ToolCallContent

Returns a new instance of GenaiVertexV1beta1ToolCallContent.



5179
5180
5181
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5179

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

Instance Attribute Details

#code_execution_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionCallContent

Code execution content. Corresponds to the JSON property codeExecutionCall



5136
5137
5138
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5136

def code_execution_call
  @code_execution_call
end

#file_search_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FileSearchCallContent

File Search content. Corresponds to the JSON property fileSearchCall



5141
5142
5143
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5141

def file_search_call
  @file_search_call
end

#function_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionCallContent

A function tool call content block. Corresponds to the JSON property functionCall



5146
5147
5148
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5146

def function_call
  @function_call
end

#google_maps_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleMapsCallContent

Google Maps content. Corresponds to the JSON property googleMapsCall



5151
5152
5153
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5151

def google_maps_call
  @google_maps_call
end

#google_search_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchCallContent

Google Search content. Corresponds to the JSON property googleSearchCall



5156
5157
5158
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5156

def google_search_call
  @google_search_call
end

#idString

Required. A unique ID for this specific tool call. Corresponds to the JSON property id

Returns:

  • (String)


5161
5162
5163
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5161

def id
  @id
end

#mcp_server_tool_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServerToolCallContent

MCPServer tool call content. Corresponds to the JSON property mcpServerToolCall



5166
5167
5168
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5166

def mcp_server_tool_call
  @mcp_server_tool_call
end

#signatureString

A signature hash for backend validation. Corresponds to the JSON property signature NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5172
5173
5174
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5172

def signature
  @signature
end

#url_context_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1UrlContextCallContent

URL context content. Corresponds to the JSON property urlContextCall



5177
5178
5179
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5177

def url_context_call
  @url_context_call
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5184

def update!(**args)
  @code_execution_call = args[:code_execution_call] if args.key?(:code_execution_call)
  @file_search_call = args[:file_search_call] if args.key?(:file_search_call)
  @function_call = args[:function_call] if args.key?(:function_call)
  @google_maps_call = args[:google_maps_call] if args.key?(:google_maps_call)
  @google_search_call = args[:google_search_call] if args.key?(:google_search_call)
  @id = args[:id] if args.key?(:id)
  @mcp_server_tool_call = args[:mcp_server_tool_call] if args.key?(:mcp_server_tool_call)
  @signature = args[:signature] if args.key?(:signature)
  @url_context_call = args[:url_context_call] if args.key?(:url_context_call)
end