Class: Anthropic::Models::CodeExecutionToolResultErrorObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::CodeExecutionToolResultErrorObject
- Defined in:
- lib/anthropic/models/code_execution_tool_result_error_object.rb,
sig/anthropic/models/code_execution_tool_result_error_object.rbs
Instance Attribute Summary collapse
- #error_code ⇒ Symbol, Anthropic::Models::CodeExecutionToolResultErrorCode
- #type ⇒ Symbol, :code_execution_tool_result_error
Instance Method Summary collapse
-
#initialize(error_code:, type: :code_execution_tool_result_error) ⇒ CodeExecutionToolResultErrorObject
constructor
A new instance of CodeExecutionToolResultErrorObject.
- #to_hash ⇒ { error_code: Anthropic::Models::code_execution_tool_result_error_code, type: :code_execution_tool_result_error }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(error_code:, type: :code_execution_tool_result_error) ⇒ CodeExecutionToolResultErrorObject
Returns a new instance of CodeExecutionToolResultErrorObject.
|
|
# File 'lib/anthropic/models/code_execution_tool_result_error_object.rb', line 16
|
Instance Attribute Details
#error_code ⇒ Symbol, Anthropic::Models::CodeExecutionToolResultErrorCode
9 |
# File 'lib/anthropic/models/code_execution_tool_result_error_object.rb', line 9 required :error_code, enum: -> { Anthropic::CodeExecutionToolResultErrorCode } |
#type ⇒ Symbol, :code_execution_tool_result_error
14 |
# File 'lib/anthropic/models/code_execution_tool_result_error_object.rb', line 14 required :type, const: :code_execution_tool_result_error |
Instance Method Details
#to_hash ⇒ { error_code: Anthropic::Models::code_execution_tool_result_error_code, type: :code_execution_tool_result_error }
19 20 21 22 |
# File 'sig/anthropic/models/code_execution_tool_result_error_object.rbs', line 19
def to_hash: -> {
error_code: Anthropic::Models::code_execution_tool_result_error_code,
type: :code_execution_tool_result_error
}
|