Class: OpenAI::Models::BetaResponseInputItem::Beta::BetaResponseInputItem::ShellCall

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

Defined Under Namespace

Modules: Caller, Environment, 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



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

def initialize: (

Instance Attribute Details

#actionOpenAI::Beta::BetaResponseInputItem::ShellCall::Action

Returns the value of attribute action.

Returns:

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


1094
1095
1096
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1094

def action
  @action
end

#agentOpenAI::Beta::BetaResponseInputItem::ShellCall::Agent?

Returns the value of attribute agent.

Returns:

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


1102
1103
1104
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1102

def agent
  @agent
end

#call_idString

Returns the value of attribute call_id.

Returns:

  • (String)


1096
1097
1098
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1096

def call_id
  @call_id
end

#caller_OpenAI::Models::Beta::BetaResponseInputItem::ShellCall::caller_?

Returns the value of attribute caller_.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ShellCall::caller_, nil)


1104
1105
1106
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1104

def caller_
  @caller_
end

#environmentOpenAI::Models::Beta::BetaResponseInputItem::ShellCall::environment?

Returns the value of attribute environment.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ShellCall::environment, nil)


1106
1107
1108
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1106

def environment
  @environment
end

#idString?

Returns the value of attribute id.

Returns:

  • (String, nil)


1100
1101
1102
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1100

def id
  @id
end

#statusOpenAI::Models::Beta::BetaResponseInputItem::ShellCall::status?

Returns the value of attribute status.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ShellCall::status, nil)


1108
1109
1110
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1108

def status
  @status
end

#type:shell_call

Returns the value of attribute type.

Returns:

  • (:shell_call)


1098
1099
1100
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1098

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {