Class: OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput

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

Defined Under Namespace

Modules: Status Classes: AcknowledgedSafetyCheck

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: , code: nil, message: nil) ⇒ Object

A pending safety check for the computer call.

Parameters:

  • id (String) (defaults to: )

    The ID of the pending safety check.

  • code (String, nil) (defaults to: nil)

    The type of the pending safety check.

  • message (String, nil) (defaults to: nil)

    Details about the pending safety check.



# File 'lib/openai/models/responses/response_input_item.rb', line 257

Instance Attribute Details

#acknowledged_safety_checksArray<OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck>?

The safety checks reported by the API that have been acknowledged by the developer.



204
205
206
207
208
# File 'lib/openai/models/responses/response_input_item.rb', line 204

optional :acknowledged_safety_checks,
-> {
  OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]
},
nil?: true

#call_idString

The ID of the computer tool call that produced the output.

Returns:

  • (String)


179
# File 'lib/openai/models/responses/response_input_item.rb', line 179

required :call_id, String

#idString?

The ID of the computer tool call output.

Returns:

  • (String, nil)


197
# File 'lib/openai/models/responses/response_input_item.rb', line 197

optional :id, String, nil?: true

#outputOpenAI::Models::Responses::ResponseComputerToolCallOutputScreenshot

A computer screenshot image used with the computer use tool.



185
# File 'lib/openai/models/responses/response_input_item.rb', line 185

required :output, -> { OpenAI::Responses::ResponseComputerToolCallOutputScreenshot }

#statusSymbol, ...

The status of the message input. One of ‘in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.



215
216
217
# File 'lib/openai/models/responses/response_input_item.rb', line 215

optional :status,
enum: -> { OpenAI::Responses::ResponseInputItem::ComputerCallOutput::Status },
nil?: true

#typeSymbol, :computer_call_output

The type of the computer tool call output. Always ‘computer_call_output`.

Returns:

  • (Symbol, :computer_call_output)


191
# File 'lib/openai/models/responses/response_input_item.rb', line 191

required :type, const: :computer_call_output