Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolResultStep

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ToolResultStep

Returns a new instance of GenaiVertexV1beta1ToolResultStep.



5538
5539
5540
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5538

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

Instance Attribute Details

#call_idString

Required. ID to match the ID from the function call block. Corresponds to the JSON property callId

Returns:

  • (String)


5495
5496
5497
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5495

def call_id
  @call_id
end

#code_execution_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionResultStep

Code execution result step. Corresponds to the JSON property codeExecutionResult



5500
5501
5502
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5500

def code_execution_result
  @code_execution_result
end

#file_search_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FileSearchResultStep

File Search result step. Corresponds to the JSON property fileSearchResult



5505
5506
5507
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5505

def file_search_result
  @file_search_result
end

#function_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionResultStep

Result of a function tool call. Corresponds to the JSON property functionResult



5510
5511
5512
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5510

def function_result
  @function_result
end

#google_maps_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleMapsResultStep

Google Maps result step. Corresponds to the JSON property googleMapsResult



5515
5516
5517
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5515

def google_maps_result
  @google_maps_result
end

#google_search_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchResultStep

Google Search result step. Corresponds to the JSON property googleSearchResult



5520
5521
5522
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5520

def google_search_result
  @google_search_result
end

#mcp_server_tool_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServerToolResultStep

MCPServer tool result step. Corresponds to the JSON property mcpServerToolResult



5525
5526
5527
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5525

def mcp_server_tool_result
  @mcp_server_tool_result
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)


5531
5532
5533
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5531

def signature
  @signature
end

#url_context_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1UrlContextResultStep

URL context result step. Corresponds to the JSON property urlContextResult



5536
5537
5538
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5536

def url_context_result
  @url_context_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5543

def update!(**args)
  @call_id = args[:call_id] if args.key?(:call_id)
  @code_execution_result = args[:code_execution_result] if args.key?(:code_execution_result)
  @file_search_result = args[:file_search_result] if args.key?(:file_search_result)
  @function_result = args[:function_result] if args.key?(:function_result)
  @google_maps_result = args[:google_maps_result] if args.key?(:google_maps_result)
  @google_search_result = args[:google_search_result] if args.key?(:google_search_result)
  @mcp_server_tool_result = args[:mcp_server_tool_result] if args.key?(:mcp_server_tool_result)
  @signature = args[:signature] if args.key?(:signature)
  @url_context_result = args[:url_context_result] if args.key?(:url_context_result)
end