Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolResultContent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1ToolResultContent

Returns a new instance of GenaiVertexV1beta1ToolResultContent.



4759
4760
4761
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4759

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 call_id

Returns:

  • (String)


4716
4717
4718
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4716

def call_id
  @call_id
end

#code_execution_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionResultContent

Code execution result content. Corresponds to the JSON property codeExecutionResult



4721
4722
4723
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4721

def code_execution_result
  @code_execution_result
end

#file_search_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FileSearchResultContent

File Search result content. Corresponds to the JSON property fileSearchResult



4726
4727
4728
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4726

def file_search_result
  @file_search_result
end

#function_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionResultContent

A function tool result content block. Corresponds to the JSON property functionResult



4731
4732
4733
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4731

def function_result
  @function_result
end

#google_maps_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleMapsResultContent

Google Maps result content. Corresponds to the JSON property googleMapsResult



4736
4737
4738
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4736

def google_maps_result
  @google_maps_result
end

#google_search_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchResultContent

Google Search result content. Corresponds to the JSON property googleSearchResult



4741
4742
4743
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4741

def google_search_result
  @google_search_result
end

#mcp_server_tool_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1McpServerToolResultContent

MCPServer tool result content. Corresponds to the JSON property mcpServerToolResult



4746
4747
4748
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4746

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)


4752
4753
4754
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4752

def signature
  @signature
end

#url_context_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1UrlContextResultContent

URL context result content. Corresponds to the JSON property urlContextResult



4757
4758
4759
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4757

def url_context_result
  @url_context_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4764

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