Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionResultStep

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

Code execution result step.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1CodeExecutionResultStep

Returns a new instance of GenaiVertexV1beta1CodeExecutionResultStep.



1287
1288
1289
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1287

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

Instance Attribute Details

#is_errorBoolean Also known as: is_error?

Whether the code execution resulted in an error. Corresponds to the JSON property is_error

Returns:

  • (Boolean)


1279
1280
1281
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1279

def is_error
  @is_error
end

#resultString

Required. The output of the code execution. Corresponds to the JSON property result

Returns:

  • (String)


1285
1286
1287
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1285

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1292

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