Class: OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput

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

Defined Under Namespace

Modules: Status Classes: AcknowledgedSafetyCheck, Agent

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(agent_name:) ⇒ ComputerCallOutput

Returns a new instance of ComputerCallOutput.

Parameters:

  • call_id —

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

  • output —

    A computer screenshot image used with the computer use tool.

  • id —

    The ID of the computer tool call output.

  • acknowledged_safety_checks —

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

  • agent —

    The agent that produced this item.

  • status —

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

  • type —

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

  • call_id: (String)
  • output: (OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot)
  • id: (String, nil)
  • acknowledged_safety_checks: (::Array[OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck], nil)
  • agent: (OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Agent, nil)
  • status: (OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput::status, nil)
  • type: (:computer_call_output)


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 346

Instance Attribute Details

#acknowledged_safety_checks ⇒ ::Array[OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?

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

Returns:

  • (::Array[OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck], nil)


273
274
275
276
277
278
279
280
281
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 273

optional(
  :acknowledged_safety_checks,
  -> {
    OpenAI::Internal::Type::ArrayOf[
      OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck
    ]
  },
  nil?: true
)

#agent ⇒ OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Agent?

The agent that produced this item.

Returns:

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


287
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 287

optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Agent }, nil?: true

#call_id ⇒ String

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

Returns:

  • (String)


248
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 248

required :call_id, String

#id ⇒ String?

The ID of the computer tool call output.

Returns:

  • (String, nil)


266
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 266

optional :id, String, nil?: true

#output ⇒ OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot

A computer screenshot image used with the computer use tool.

Returns:

  • (OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot)


254
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 254

required :output, -> { OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot }

#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput::status?

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

Returns:

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


294
295
296
297
298
299
300
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 294

optional(
  :status,
  enum: -> {
    OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Status
  },
  nil?: true
)

#type ⇒ :computer_call_output

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

Returns:

  • (:computer_call_output)


260
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 260

required :type, const: :computer_call_output

Instance Method Details

#to_hash ⇒ { call_id: String, output: OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot, ?type: :computer_call_output, ?id: String?, ?acknowledged_safety_checks: ::Array[OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?, ?agent: OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Agent?, ?status: OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput::status? }

Returns:

  • ({ call_id: String, output: OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot, ?type: :computer_call_output, ?id: String?, ?acknowledged_safety_checks: ::Array[OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?, ?agent: OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Agent?, ?status: OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput::status? })


222
223
224
225
226
227
228
229
230
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 222

def to_hash: -> {
  call_id: String,
  output: OpenAI::Beta::BetaResponseComputerToolCallOutputScreenshot,
  ?type: :computer_call_output,
  ?id: String?,
  ?acknowledged_safety_checks: ::Array[OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck]?,
  ?agent: OpenAI::Beta::BetaResponseInputItem::ComputerCallOutput::Agent?,
  ?status: OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput::status?
}