Class: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject
- Defined in:
- lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb,
sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbs
Defined Under Namespace
Modules: ErrorCode
Instance Attribute Summary collapse
- #error_code ⇒ Symbol, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject::ErrorCode
- #error_message ⇒ String?
- #type ⇒ Symbol, :text_editor_code_execution_tool_result_error
Instance Method Summary collapse
-
#initialize(error_code:, error_message:, type: :text_editor_code_execution_tool_result_error) ⇒ BetaTextEditorCodeExecutionToolResultErrorObject
constructor
A new instance of BetaTextEditorCodeExecutionToolResultErrorObject.
- #to_hash ⇒ { error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject::error_code, error_message: String?, type: :text_editor_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:, error_message:, type: :text_editor_code_execution_tool_result_error) ⇒ BetaTextEditorCodeExecutionToolResultErrorObject
Returns a new instance of BetaTextEditorCodeExecutionToolResultErrorObject.
|
|
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb', line 23
|
Instance Attribute Details
#error_code ⇒ Symbol, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject::ErrorCode
10 11 |
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb', line 10 required :error_code, enum: -> { Anthropic::Beta::BetaTextEditorCodeExecutionToolResultErrorObject::ErrorCode } |
#error_message ⇒ String?
16 |
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb', line 16 required :error_message, String, nil?: true |
#type ⇒ Symbol, :text_editor_code_execution_tool_result_error
21 |
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rb', line 21 required :type, const: :text_editor_code_execution_tool_result_error |
Instance Method Details
#to_hash ⇒ { error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject::error_code, error_message: String?, type: :text_editor_code_execution_tool_result_error }
26 27 28 29 30 |
# File 'sig/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error_object.rbs', line 26
def to_hash: -> {
error_code: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultErrorObject::error_code,
error_message: String?,
type: :text_editor_code_execution_tool_result_error
}
|