Class: OpenAI::Models::Safety::SafetyCase
Overview
Defined Under Namespace
Classes: Notice
Instance Attribute Summary collapse
#last_response
Instance Method Summary
collapse
==, #==, #[], #_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
#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, entity_identifier:, notice:, reason:, object: :"safety.case") ⇒ Object
|
# File 'lib/openai/models/safety/safety_case.rb', line 38
|
Instance Attribute Details
#created_at ⇒ Integer
16
|
# File 'lib/openai/models/safety/safety_case.rb', line 16
required :created_at, Integer
|
#entity_identifier ⇒ String
21
|
# File 'lib/openai/models/safety/safety_case.rb', line 21
required :entity_identifier, String
|
#id ⇒ String
11
|
# File 'lib/openai/models/safety/safety_case.rb', line 11
required :id, String
|
26
|
# File 'lib/openai/models/safety/safety_case.rb', line 26
required :notice, -> { OpenAI::Safety::SafetyCase::Notice }
|
#object ⇒ Symbol, :"safety.case"
31
|
# File 'lib/openai/models/safety/safety_case.rb', line 31
required :object, const: :"safety.case"
|
#reason ⇒ String?
36
|
# File 'lib/openai/models/safety/safety_case.rb', line 36
required :reason, String, nil?: true
|
Instance Method Details
#to_hash ⇒ {
38
|
# File 'sig/openai/models/safety/safety_case.rbs', line 38
def to_hash: -> {
|