Class: GetStream::Generated::Models::AIAudioConfigRequest

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @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:



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

def ai_text_config
  @ai_text_config
end

#llm_config ⇒ LLMConfig

Returns:



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

def llm_config
  @llm_config
end

#profile ⇒ String

Returns Bodyguard credentials profile to classify transcripts with. Applies to the NLP engine only; ignored when the policy's engine is LLM. Empty falls back to the app-pinned profile, then the organization's top-level credentials.

Returns:

  • (String) —

    Bodyguard credentials profile to classify transcripts with. Applies to the NLP engine only; ignored when the policy's engine is LLM. Empty falls back to the app-pinned profile, then the organization's top-level credentials



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

def profile
  @profile
end

#rules ⇒ Array<BodyguardRule>

Returns Deprecated pre-split rule list. Still the live config while no engine config exists; once one does it is kept as a fallback for whichever engine has none of its own.

Returns:

  • (Array<BodyguardRule>) —

    Deprecated pre-split rule list. Still the live config while no engine config exists; once one does it is kept as a fallback for whichever engine has none of its own



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

def rules
  @rules
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/ai_audio_config_request.rb', line 35

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