Class: SafetyKit::Models::ContentCreateResponse::Label::UnionMember0
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::ContentCreateResponse::Label::UnionMember0
- Defined in:
- lib/safety_kit/models/content_create_response.rb,
sig/safety_kit/models/content_create_response.rbs
Defined Under Namespace
Modules: Decision, Escalation, Type
Instance Attribute Summary collapse
-
#decision ⇒ Symbol, SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Decision
Whether the submitted content matches the label.
-
#escalation ⇒ Symbol, SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Escalation
Escalation outcome for this label.
-
#label ⇒ String
Label identifier.
-
#score ⇒ Float?
Classifier score between 0 and 1.
- #type ⇒ Symbol, SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Type
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(decision:, escalation:, label:, score:, type:) ⇒ Object
constructor
Some parameter documentations has been truncated, see UnionMember0 for more details.
- #to_hash ⇒ {
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, meta_info, new_coerce_state, 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(decision:, escalation:, label:, score:, type:) ⇒ Object
Some parameter documentations has been truncated, see SafetyKit::Models::ContentCreateResponse::Label::UnionMember0 for more details.
|
|
# File 'lib/safety_kit/models/content_create_response.rb', line 83
|
Instance Attribute Details
#decision ⇒ Symbol, SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Decision
Whether the submitted content matches the label.
56 |
# File 'lib/safety_kit/models/content_create_response.rb', line 56 required :decision, enum: -> { SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Decision } |
#escalation ⇒ Symbol, SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Escalation
Escalation outcome for this label.
62 63 |
# File 'lib/safety_kit/models/content_create_response.rb', line 62 required :escalation, enum: -> { SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Escalation } |
#label ⇒ String
Label identifier.
69 |
# File 'lib/safety_kit/models/content_create_response.rb', line 69 required :label, String |
#score ⇒ Float?
Classifier score between 0 and 1. Higher means more likely matching. Null when no classifier scored the label.
76 |
# File 'lib/safety_kit/models/content_create_response.rb', line 76 required :score, Float, nil?: true |
#type ⇒ Symbol, SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Type
81 |
# File 'lib/safety_kit/models/content_create_response.rb', line 81 required :type, enum: -> { SafetyKit::Models::ContentCreateResponse::Label::UnionMember0::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/safety_kit/models/content_create_response.rb', line 108
|
Instance Method Details
#to_hash ⇒ {
69 |
# File 'sig/safety_kit/models/content_create_response.rbs', line 69
def to_hash: -> {
|