Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchResultStep

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

Google Search result step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1GoogleSearchResultStep

Returns a new instance of GenaiVertexV1beta1GoogleSearchResultStep.



3014
3015
3016
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3014

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

Instance Attribute Details

#is_errorBoolean Also known as: is_error?

Whether the Google Search resulted in an error. Corresponds to the JSON property isError

Returns:

  • (Boolean)


3006
3007
3008
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3006

def is_error
  @is_error
end

#resultArray<Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchResultStepGoogleSearchResultItem>

Required. The results of the Google Search. Corresponds to the JSON property result



3012
3013
3014
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3012

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3019
3020
3021
3022
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3019

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