Class: OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput::AcknowledgedSafetyCheck
- Defined in:
- lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs
Instance Attribute Summary collapse
-
#code ⇒ String?
The type of the pending safety check.
-
#id ⇒ String
The ID of the pending safety check.
-
#message ⇒ String?
Details about the pending safety check.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(call_id:, output:, id: nil, acknowledged_safety_checks: nil, status: nil, type: :computer_call_output) ⇒ AcknowledgedSafetyCheck
constructor
A new instance of AcknowledgedSafetyCheck.
- #to_hash ⇒ { id: String, ?code: String?, ?message: String? }
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, status: nil, type: :computer_call_output) ⇒ AcknowledgedSafetyCheck
Returns a new instance of AcknowledgedSafetyCheck.
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/openai/models/responses/response_input_item.rb', line 285 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.
296 |
# File 'lib/openai/models/responses/response_input_item.rb', line 296 optional :code, String, nil?: true |
#id ⇒ String
The ID of the pending safety check.
290 |
# File 'lib/openai/models/responses/response_input_item.rb', line 290 required :id, String |
#message ⇒ String?
Details about the pending safety check.
302 |
# File 'lib/openai/models/responses/response_input_item.rb', line 302 optional :message, String, nil?: true |
Instance Method Details
#to_hash ⇒ { id: String, ?code: String?, ?message: String? }
223 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 223
def to_hash: -> { id: String, ?code: String?, ?message: String? }
|