Class: OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_item.rb

Defined Under Namespace

Modules: Status

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, 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(id: , output: , status: nil, type: :local_shell_call_output) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput for more details.

The output of a local shell tool call.

Parameters:

  • id (String) (defaults to: )

    The unique ID of the local shell tool call generated by the model.

  • output (String) (defaults to: )

    A JSON string of the output of the local shell tool call.

  • status (Symbol, OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput::Status, nil) (defaults to: nil)

    The status of the item. One of ‘in_progress`, `completed`, or `incomplete`.

  • type (Symbol, :local_shell_call_output) (defaults to: :local_shell_call_output)

    The type of the local shell tool call output. Always ‘local_shell_call_output`.



# File 'lib/openai/models/responses/response_item.rb', line 265

Instance Attribute Details

#idString

The unique ID of the local shell tool call generated by the model.

Returns:

  • (String)


241
# File 'lib/openai/models/responses/response_item.rb', line 241

required :id, String

#outputString

A JSON string of the output of the local shell tool call.

Returns:

  • (String)


247
# File 'lib/openai/models/responses/response_item.rb', line 247

required :output, String

#statusSymbol, ...

The status of the item. One of ‘in_progress`, `completed`, or `incomplete`.



259
260
261
262
263
# File 'lib/openai/models/responses/response_item.rb', line 259

optional :status,
enum: -> {
  OpenAI::Responses::ResponseItem::LocalShellCallOutput::Status
},
nil?: true

#typeSymbol, :local_shell_call_output

The type of the local shell tool call output. Always ‘local_shell_call_output`.

Returns:

  • (Symbol, :local_shell_call_output)


253
# File 'lib/openai/models/responses/response_item.rb', line 253

required :type, const: :local_shell_call_output