Class: OpenAI::Models::BetaResponseInputItem::Beta::BetaResponseInputItem::LocalShellCall

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

Defined Under Namespace

Modules: Status Classes: Action, Agent

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

#initializeObject



935
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 935

def initialize: (

Instance Attribute Details

#actionOpenAI::Beta::BetaResponseInputItem::LocalShellCall::Action

Returns the value of attribute action.

Returns:

  • (OpenAI::Beta::BetaResponseInputItem::LocalShellCall::Action)


925
926
927
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 925

def action
  @action
end

#agentOpenAI::Beta::BetaResponseInputItem::LocalShellCall::Agent?

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseInputItem::LocalShellCall::Agent, nil)


933
934
935
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 933

def agent
  @agent
end

#call_idString

Returns the value of attribute call_id.

Returns:

  • (String)


927
928
929
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 927

def call_id
  @call_id
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


923
924
925
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 923

def id
  @id
end

#statusOpenAI::Models::Beta::BetaResponseInputItem::LocalShellCall::status

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::LocalShellCall::status)


929
930
931
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 929

def status
  @status
end

#type:local_shell_call

Returns the value of attribute type.

Returns:

  • (:local_shell_call)


931
932
933
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 931

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


944
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 944

def to_hash: -> {