Class: OpenAI::Models::Moderation::CategoryScores

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

Overview

See Also:

  • OpenAI::Models::Moderation#category_scores

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_with_error, 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(harassment:, harassment_threatening:, hate:, hate_threatening:, illicit:, illicit_violent:, self_harm:, self_harm_instructions:, self_harm_intent:, sexual:, sexual_minors:, violence:, violence_graphic:) ⇒ Object

Parameters:

  • harassment —

    The score for the category 'harassment'.

  • harassment_threatening —

    The score for the category 'harassment/threatening'.

  • hate —

    The score for the category 'hate'.

  • hate_threatening —

    The score for the category 'hate/threatening'.

  • illicit —

    The score for the category 'illicit'.

  • illicit_violent —

    The score for the category 'illicit/violent'.

  • self_harm —

    The score for the category 'self-harm'.

  • self_harm_instructions —

    The score for the category 'self-harm/instructions'.

  • self_harm_intent —

    The score for the category 'self-harm/intent'.

  • sexual —

    The score for the category 'sexual'.

  • sexual_minors —

    The score for the category 'sexual/minors'.

  • violence —

    The score for the category 'violence'.

  • violence_graphic —

    The score for the category 'violence/graphic'.



# File 'lib/openai/models/moderation.rb', line 588

Instance Attribute Details

#harassment ⇒ Float

The score for the category 'harassment'.

Returns:

  • (Float)


514
# File 'lib/openai/models/moderation.rb', line 514

required :harassment, Float

#harassment_threatening ⇒ Float

The score for the category 'harassment/threatening'.

Returns:

  • (Float)


520
# File 'lib/openai/models/moderation.rb', line 520

required :harassment_threatening, Float, api_name: :"harassment/threatening"

#hate ⇒ Float

The score for the category 'hate'.

Returns:

  • (Float)


526
# File 'lib/openai/models/moderation.rb', line 526

required :hate, Float

#hate_threatening ⇒ Float

The score for the category 'hate/threatening'.

Returns:

  • (Float)


532
# File 'lib/openai/models/moderation.rb', line 532

required :hate_threatening, Float, api_name: :"hate/threatening"

#illicit ⇒ Float

The score for the category 'illicit'.

Returns:

  • (Float)


538
# File 'lib/openai/models/moderation.rb', line 538

required :illicit, Float

#illicit_violent ⇒ Float

The score for the category 'illicit/violent'.

Returns:

  • (Float)


544
# File 'lib/openai/models/moderation.rb', line 544

required :illicit_violent, Float, api_name: :"illicit/violent"

#self_harm ⇒ Float

The score for the category 'self-harm'.

Returns:

  • (Float)


550
# File 'lib/openai/models/moderation.rb', line 550

required :self_harm, Float, api_name: :"self-harm"

#self_harm_instructions ⇒ Float

The score for the category 'self-harm/instructions'.

Returns:

  • (Float)


556
# File 'lib/openai/models/moderation.rb', line 556

required :self_harm_instructions, Float, api_name: :"self-harm/instructions"

#self_harm_intent ⇒ Float

The score for the category 'self-harm/intent'.

Returns:

  • (Float)


562
# File 'lib/openai/models/moderation.rb', line 562

required :self_harm_intent, Float, api_name: :"self-harm/intent"

#sexual ⇒ Float

The score for the category 'sexual'.

Returns:

  • (Float)


568
# File 'lib/openai/models/moderation.rb', line 568

required :sexual, Float

#sexual_minors ⇒ Float

The score for the category 'sexual/minors'.

Returns:

  • (Float)


574
# File 'lib/openai/models/moderation.rb', line 574

required :sexual_minors, Float, api_name: :"sexual/minors"

#violence ⇒ Float

The score for the category 'violence'.

Returns:

  • (Float)


580
# File 'lib/openai/models/moderation.rb', line 580

required :violence, Float

#violence_graphic ⇒ Float

The score for the category 'violence/graphic'.

Returns:

  • (Float)


586
# File 'lib/openai/models/moderation.rb', line 586

required :violence_graphic, Float, api_name: :"violence/graphic"

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


547
# File 'sig/openai/models/moderation.rbs', line 547

def to_hash: -> {