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

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

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(call_id:, output:, id: nil, acknowledged_safety_checks: nil, agent: nil, status: nil, type: :computer_call_output) ⇒ AcknowledgedSafetyCheck

Returns a new instance of AcknowledgedSafetyCheck.

Parameters:

  • id (defaults to: nil) —

    The ID of the pending safety check.

  • code —

    The type of the pending safety check.

  • message —

    Details about the pending safety check.

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


327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 327

class AcknowledgedSafetyCheck < OpenAI::Internal::Type::BaseModel
  # @!attribute id
  #   The ID of the pending safety check.
  #
  #   @return [String]
  required :id, String

  # @!attribute code
  #   The type of the pending safety check.
  #
  #   @return [String, nil]
  optional :code, String, nil?: true

  # @!attribute message
  #   Details about the pending safety check.
  #
  #   @return [String, nil]
  optional :message, String, nil?: true

  # @!method initialize(id:, code: nil, message: nil)
  #   A pending safety check for the computer call.
  #
  #   @param id [String]
  #     The ID of the pending safety check.
  #
  #   @param code [String, nil]
  #     The type of the pending safety check.
  #
  #   @param message [String, nil]
  #     Details about the pending safety check.
end

Instance Attribute Details

#code ⇒ String?

The type of the pending safety check.

Returns:

  • (String, nil)


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

optional :code, String, nil?: true

#id ⇒ String

The ID of the pending safety check.

Returns:

  • (String)


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

required :id, String

#message ⇒ String?

Details about the pending safety check.

Returns:

  • (String, nil)


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

optional :message, String, nil?: true

Instance Method Details

#to_hash ⇒ { id: String, ?code: String?, ?message: String? }

Returns:

  • ({ id: String, ?code: String?, ?message: String? })


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

def to_hash: -> { id: String, ?code: String?, ?message: String? }