Class: GetStream::Generated::Models::AIAudioConfigResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/ai_audio_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 = {}) ⇒ AIAudioConfigResponse

Initialize with attributes



29
30
31
32
33
34
35
36
# File 'lib/getstream_ruby/generated/models/ai_audio_config_response.rb', line 29

def initialize(attributes = {})
  super(attributes)
  @enabled = attributes.fetch(:enabled) { attributes.fetch('enabled', nil) }
  @profile = attributes.fetch(:profile) { attributes.fetch('profile', nil) }
  @rules = attributes.fetch(:rules) { attributes.fetch('rules', nil) }
  @ai_text_config = attributes.fetch(:ai_text_config) { attributes.fetch('ai_text_config', nil) }
  @llm_config = attributes.fetch(:llm_config) { attributes.fetch('llm_config', nil) }
end

Instance Attribute Details

#ai_text_config ⇒ AITextConfig

Returns:



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

def ai_text_config
  @ai_text_config
end

#enabled ⇒ Boolean

Returns Whether the policy's engine (engine.provider, else the application's LLM configurability flag) has a rule that does something. Derived, not stored.

Returns:

  • (Boolean) —

    Whether the policy's engine (engine.provider, else the application's LLM configurability flag) has a rule that does something. Derived, not stored



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

def enabled
  @enabled
end

#llm_config ⇒ LLMConfig

Returns:



26
27
28
# File 'lib/getstream_ruby/generated/models/ai_audio_config_response.rb', line 26

def llm_config
  @llm_config
end

#profile ⇒ String

Returns Bodyguard credentials profile transcripts are classified with. Applies to the NLP engine only.

Returns:

  • (String) —

    Bodyguard credentials profile transcripts are classified with. Applies to the NLP engine only



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

def profile
  @profile
end

#rules ⇒ Array<BodyguardRule>

Returns The active engine's rules, flattened into the pre-split shape for clients that predate the per-engine configs. This is the whole config for a policy that has no per-engine config stored.

Returns:

  • (Array<BodyguardRule>) —

    The active engine's rules, flattened into the pre-split shape for clients that predate the per-engine configs. This is the whole config for a policy that has no per-engine config stored



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

def rules
  @rules
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



39
40
41
42
43
44
45
46
47
# File 'lib/getstream_ruby/generated/models/ai_audio_config_response.rb', line 39

def self.json_field_mappings
  {
    enabled: 'enabled',
    profile: 'profile',
    rules: 'rules',
    ai_text_config: 'ai_text_config',
    llm_config: 'llm_config'
  }
end