Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionResultContent

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

A function tool result content block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1FunctionResultContent

Returns a new instance of GenaiVertexV1beta1FunctionResultContent.



2249
2250
2251
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2249

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

Instance Attribute Details

#content_listGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionResultSubcontentList

Corresponds to the JSON property contentList



2225
2226
2227
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2225

def content_list
  @content_list
end

#is_errorBoolean Also known as: is_error?

Whether the tool call resulted in an error. Corresponds to the JSON property isError

Returns:

  • (Boolean)


2230
2231
2232
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2230

def is_error
  @is_error
end

#nameString

The name of the tool that was called. Corresponds to the JSON property name

Returns:

  • (String)


2236
2237
2238
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2236

def name
  @name
end

#string_resultString

Corresponds to the JSON property stringResult

Returns:

  • (String)


2241
2242
2243
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2241

def string_result
  @string_result
end

#struct_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1Struct

Struct represents a structured data value, consisting of fields which map to dynamically typed values. Corresponds to the JSON property structResult



2247
2248
2249
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2247

def struct_result
  @struct_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2254
2255
2256
2257
2258
2259
2260
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2254

def update!(**args)
  @content_list = args[:content_list] if args.key?(:content_list)
  @is_error = args[:is_error] if args.key?(:is_error)
  @name = args[:name] if args.key?(:name)
  @string_result = args[:string_result] if args.key?(:string_result)
  @struct_result = args[:struct_result] if args.key?(:struct_result)
end