Class: OpenAI::Models::Responses::McpToolCallError::HTTPError
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::McpToolCallError::HTTPError
- Defined in:
- lib/openai/models/responses/mcp_tool_call_error.rb,
sig/openai/models/responses/mcp_tool_call_error.rbs
Instance Attribute Summary collapse
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(code:, message:, type: :http_error) ⇒ HTTPError
constructor
A new instance of HTTPError.
- #to_hash ⇒ { code: Integer, message: String, ?type: :http_error }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(code:, message:, type: :http_error) ⇒ HTTPError
Returns a new instance of HTTPError.
|
|
# File 'lib/openai/models/responses/mcp_tool_call_error.rb', line 71
|
Instance Attribute Details
#code ⇒ Integer
59 |
# File 'lib/openai/models/responses/mcp_tool_call_error.rb', line 59 required :code, Integer |
#message ⇒ String
64 |
# File 'lib/openai/models/responses/mcp_tool_call_error.rb', line 64 required :message, String |
#type ⇒ Symbol, :http_error
69 |
# File 'lib/openai/models/responses/mcp_tool_call_error.rb', line 69 required :type, const: :http_error |
Instance Method Details
#to_hash ⇒ { code: Integer, message: String, ?type: :http_error }
66 |
# File 'sig/openai/models/responses/mcp_tool_call_error.rbs', line 66 def to_hash: -> { code: Integer, message: String, ?type: :http_error } |