Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionResultContent
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1CodeExecutionResultContent
- 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 content.
Instance Attribute Summary collapse
-
#is_error ⇒ Boolean
(also: #is_error?)
Whether the code execution resulted in an error.
-
#result ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1CodeExecutionResultContent
constructor
A new instance of GenaiVertexV1beta1CodeExecutionResultContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1CodeExecutionResultContent
Returns a new instance of GenaiVertexV1beta1CodeExecutionResultContent.
1211 1212 1213 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_error ⇒ Boolean Also known as: is_error?
Whether the code execution resulted in an error.
Corresponds to the JSON property isError
1203 1204 1205 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1203 def is_error @is_error end |
#result ⇒ String
Required. The output of the code execution.
Corresponds to the JSON property result
1209 1210 1211 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1209 def result @result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1216 1217 1218 1219 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1216 def update!(**args) @is_error = args[:is_error] if args.key?(:is_error) @result = args[:result] if args.key?(:result) end |