Class: GetStream::Generated::Models::ModerationEngineConfigResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/moderation_engine_config_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ ModerationEngineConfigResponse

Initialize with attributes



26
27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/moderation_engine_config_response.rb', line 26

def initialize(attributes = {})
  super(attributes)
  @model = attributes.fetch(:model) { attributes.fetch('model', nil) }
  @provider = attributes.fetch(:provider) { attributes.fetch('provider', nil) }
  @reasoning_effort = attributes.fetch(:reasoning_effort) { attributes.fetch('reasoning_effort', nil) }
  @strictness = attributes.fetch(:strictness) { attributes.fetch('strictness', nil) }
end

Instance Attribute Details

#model ⇒ String

Returns LLM model used when the provider resolves to llm, or a Stream model with provider stream (an alias, or a pinned version the server accepts). Not allowed with provider nlp. Empty uses the app's moderation settings, or the latest Stream model.

Returns:

  • (String) —

    LLM model used when the provider resolves to llm, or a Stream model with provider stream (an alias, or a pinned version the server accepts). Not allowed with provider nlp. Empty uses the app's moderation settings, or the latest Stream model



14
15
16
# File 'lib/getstream_ruby/generated/models/moderation_engine_config_response.rb', line 14

def model
  @model
end

#provider ⇒ String

Returns llm, nlp or stream. Empty follows the app's LLM moderation setting.

Returns:

  • (String) —

    llm, nlp or stream. Empty follows the app's LLM moderation setting



17
18
19
# File 'lib/getstream_ruby/generated/models/moderation_engine_config_response.rb', line 17

def provider
  @provider
end

#reasoning_effort ⇒ String

Returns OpenAI reasoning effort for model. Requires model, and must be one the model accepts. Empty uses the model's default.

Returns:

  • (String) —

    OpenAI reasoning effort for model. Requires model, and must be one the model accepts. Empty uses the model's default



20
21
22
# File 'lib/getstream_ruby/generated/models/moderation_engine_config_response.rb', line 20

def reasoning_effort
  @reasoning_effort
end

#strictness ⇒ String

Returns How sure a Stream model must be before it flags: relaxed, balanced or strict. Only with provider stream. Empty is balanced.

Returns:

  • (String) —

    How sure a Stream model must be before it flags: relaxed, balanced or strict. Only with provider stream. Empty is balanced



23
24
25
# File 'lib/getstream_ruby/generated/models/moderation_engine_config_response.rb', line 23

def strictness
  @strictness
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



35
36
37
38
39
40
41
42
# File 'lib/getstream_ruby/generated/models/moderation_engine_config_response.rb', line 35

def self.json_field_mappings
  {
    model: 'model',
    provider: 'provider',
    reasoning_effort: 'reasoning_effort',
    strictness: 'strictness'
  }
end