Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolCallStep

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 step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ToolCallStep

Returns a new instance of GenaiVertexV1beta1ToolCallStep.



5634
5635
5636
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5634

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

Instance Attribute Details

#code_execution_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionCallStep

Code execution call step. Corresponds to the JSON property codeExecutionCall



5585
5586
5587
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5585

def code_execution_call
  @code_execution_call
end

#file_search_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FileSearchCallStep

File Search call step. Corresponds to the JSON property fileSearchCall



5590
5591
5592
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5590

def file_search_call
  @file_search_call
end

#function_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionCallStep

A function tool call step. Corresponds to the JSON property functionCall



5595
5596
5597
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5595

def function_call
  @function_call
end

#google_maps_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleMapsCallStep

Google Maps call step. Corresponds to the JSON property googleMapsCall



5600
5601
5602
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5600

def google_maps_call
  @google_maps_call
end

#google_search_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchCallStep

Google Search call step. Corresponds to the JSON property googleSearchCall



5605
5606
5607
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5605

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)


5610
5611
5612
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5610

def id
  @id
end

#mcp_server_tool_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServerToolCallStep

MCPServer tool call step. Corresponds to the JSON property mcpServerToolCall



5615
5616
5617
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5615

def mcp_server_tool_call
  @mcp_server_tool_call
end

#retrieval_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1RetrievalCallStep

Retrieval call step. Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search, etc. RetrievalType decides which tool is used. Corresponds to the JSON property retrievalCall



5621
5622
5623
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5621

def retrieval_call
  @retrieval_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)


5627
5628
5629
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5627

def signature
  @signature
end

#url_context_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1UrlContextCallStep

URL context call step. Corresponds to the JSON property urlContextCall



5632
5633
5634
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5632

def url_context_call
  @url_context_call
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5639

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)
  @retrieval_call = args[:retrieval_call] if args.key?(:retrieval_call)
  @signature = args[:signature] if args.key?(:signature)
  @url_context_call = args[:url_context_call] if args.key?(:url_context_call)
end