Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionResultStep

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

Result of a function tool call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1FunctionResultStep

Returns a new instance of GenaiVertexV1beta1FunctionResultStep.



2164
2165
2166
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2164

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

Instance Attribute Details

#content_listGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1FunctionResultSubcontentList

Corresponds to the JSON property contentList



2140
2141
2142
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2140

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 is_error

Returns:

  • (Boolean)


2145
2146
2147
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2145

def is_error
  @is_error
end

#nameString

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

Returns:

  • (String)


2151
2152
2153
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2151

def name
  @name
end

#string_resultString

Corresponds to the JSON property stringResult

Returns:

  • (String)


2156
2157
2158
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2156

def string_result
  @string_result
end

#struct_resultGoogle::Apis::AiplatformV1beta1::GenaiStruct

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



2162
2163
2164
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2162

def struct_result
  @struct_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2169
2170
2171
2172
2173
2174
2175
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2169

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