Class: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam
- Defined in:
- lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb,
sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbs
Defined Under Namespace
Modules: ErrorCode
Instance Attribute Summary collapse
- #error_code ⇒ Symbol, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam::ErrorCode
- #type ⇒ Symbol, :bash_code_execution_tool_result_error
Instance Method Summary collapse
-
#initialize(error_code:, type: :bash_code_execution_tool_result_error) ⇒ BetaBashCodeExecutionToolResultErrorParam
constructor
A new instance of BetaBashCodeExecutionToolResultErrorParam.
- #to_hash ⇒ { error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam::error_code, type: :bash_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: :bash_code_execution_tool_result_error) ⇒ BetaBashCodeExecutionToolResultErrorParam
Returns a new instance of BetaBashCodeExecutionToolResultErrorParam.
|
|
# File 'lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb', line 17
|
Instance Attribute Details
#error_code ⇒ Symbol, Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam::ErrorCode
10 |
# File 'lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb', line 10 required :error_code, enum: -> { Anthropic::Beta::BetaBashCodeExecutionToolResultErrorParam::ErrorCode } |
#type ⇒ Symbol, :bash_code_execution_tool_result_error
15 |
# File 'lib/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rb', line 15 required :type, const: :bash_code_execution_tool_result_error |
Instance Method Details
#to_hash ⇒ { error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam::error_code, type: :bash_code_execution_tool_result_error }
22 23 24 25 |
# File 'sig/anthropic/models/beta/beta_bash_code_execution_tool_result_error_param.rbs', line 22
def to_hash: -> {
error_code: Anthropic::Models::Beta::BetaBashCodeExecutionToolResultErrorParam::error_code,
type: :bash_code_execution_tool_result_error
}
|