Class: OpenAI::Models::ConversationItem::Conversations::ConversationItem::LocalShellCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/conversations/conversation_item.rbs

Defined Under Namespace

Modules: Status Classes: Action

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



246
# File 'sig/openai/models/conversations/conversation_item.rbs', line 246

def initialize: (

Instance Attribute Details

#actionOpenAI::Conversations::ConversationItem::LocalShellCall::Action

Returns the value of attribute action.

Returns:

  • (OpenAI::Conversations::ConversationItem::LocalShellCall::Action)


238
239
240
# File 'sig/openai/models/conversations/conversation_item.rbs', line 238

def action
  @action
end

#call_idString

Returns the value of attribute call_id.

Returns:

  • (String)


240
241
242
# File 'sig/openai/models/conversations/conversation_item.rbs', line 240

def call_id
  @call_id
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


236
237
238
# File 'sig/openai/models/conversations/conversation_item.rbs', line 236

def id
  @id
end

#statusOpenAI::Models::Conversations::ConversationItem::LocalShellCall::status

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Conversations::ConversationItem::LocalShellCall::status)


242
243
244
# File 'sig/openai/models/conversations/conversation_item.rbs', line 242

def status
  @status
end

#type:local_shell_call

Returns the value of attribute type.

Returns:

  • (:local_shell_call)


244
245
246
# File 'sig/openai/models/conversations/conversation_item.rbs', line 244

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


254
# File 'sig/openai/models/conversations/conversation_item.rbs', line 254

def to_hash: -> {