Class: OpenAI::Models::BetaMcpToolCallError::Beta::BetaMcpToolCallError::McpToolExecutionError

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_mcp_tool_call_error.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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, #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

#initializeObject



45
# File 'sig/openai/models/beta/beta_mcp_tool_call_error.rbs', line 45

def initialize: (

Instance Attribute Details

#contenttop

Returns the value of attribute content.

Returns:

  • (top)


41
42
43
# File 'sig/openai/models/beta/beta_mcp_tool_call_error.rbs', line 41

def content
  @content
end

#type:mcp_tool_execution_error

Returns the value of attribute type.

Returns:

  • (:mcp_tool_execution_error)


43
44
45
# File 'sig/openai/models/beta/beta_mcp_tool_call_error.rbs', line 43

def type
  @type
end

Instance Method Details

#to_hash{ content: top, type: :mcp_tool_execution_error }

Returns:

  • ({ content: top, type: :mcp_tool_execution_error })


50
# File 'sig/openai/models/beta/beta_mcp_tool_call_error.rbs', line 50

def to_hash: -> { content: top, type: :mcp_tool_execution_error }