Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1UrlContextResultContent

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

URL context result content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1UrlContextResultContent

Returns a new instance of GenaiVertexV1beta1UrlContextResultContent.



5111
5112
5113
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5111

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

Instance Attribute Details

#is_errorBoolean Also known as: is_error?

Whether the URL context resulted in an error. Corresponds to the JSON property is_error

Returns:

  • (Boolean)


5103
5104
5105
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5103

def is_error
  @is_error
end

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

Required. The results of the URL context. Corresponds to the JSON property result



5109
5110
5111
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5109

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5116
5117
5118
5119
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5116

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