Class: OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_function_shell_call_output_content.rb,
sig/openai/models/responses/response_function_shell_call_output_content.rbs

Defined Under Namespace

Modules: Outcome

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, 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(outcome:, stderr:, stdout:) ⇒ ResponseFunctionShellCallOutputContent

Returns a new instance of ResponseFunctionShellCallOutputContent.

Parameters:

  • outcome —

    The exit or timeout outcome associated with this shell call.

  • stderr —

    Captured stderr output for the shell call.

  • stdout —

    Captured stdout output for the shell call.

  • outcome: (OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::outcome)
  • stderr: (String)
  • stdout: (String)


# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 25

Instance Attribute Details

#outcome ⇒ OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::outcome

The exit or timeout outcome associated with this shell call.

Returns:

  • (OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::outcome)


11
# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 11

required :outcome, union: -> { OpenAI::Responses::ResponseFunctionShellCallOutputContent::Outcome }

#stderr ⇒ String

Captured stderr output for the shell call.

Returns:

  • (String)


17
# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 17

required :stderr, String

#stdout ⇒ String

Captured stdout output for the shell call.

Returns:

  • (String)


23
# File 'lib/openai/models/responses/response_function_shell_call_output_content.rb', line 23

required :stdout, String

Instance Method Details

#to_hash ⇒ { outcome: OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::outcome, stderr: String, stdout: String }

Returns:

  • ({ outcome: OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::outcome, stderr: String, stdout: String })


33
34
35
36
37
# File 'sig/openai/models/responses/response_function_shell_call_output_content.rbs', line 33

def to_hash: -> {
  outcome: OpenAI::Models::Responses::ResponseFunctionShellCallOutputContent::outcome,
  stderr: String,
  stdout: String
}