Class: Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultError

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb

Defined Under Namespace

Modules: ErrorCode

Instance Attribute Summary collapse

Instance Method Summary collapse

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) ⇒ Object

Parameters:



# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb', line 22

Instance Attribute Details

#error_codeSymbol, Anthropic::Models::Beta::BetaTextEditorCodeExecutionToolResultError::ErrorCode



10
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb', line 10

required :error_code, enum: -> { Anthropic::Beta::BetaTextEditorCodeExecutionToolResultError::ErrorCode }

#error_messageString?

Returns:

  • (String, nil)


15
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb', line 15

required :error_message, String, nil?: true

#typeSymbol, :text_editor_code_execution_tool_result_error

Returns:

  • (Symbol, :text_editor_code_execution_tool_result_error)


20
# File 'lib/anthropic/models/beta/beta_text_editor_code_execution_tool_result_error.rb', line 20

required :type, const: :text_editor_code_execution_tool_result_error