Class: Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::VoicemailMessage

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/telnyx/models/ai/assistant_tool.rb

Overview

See Also:

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message: nil, type: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::VoicemailMessage for more details.

Configuration for the voicemail message to leave. Only applicable when action is ‘leave_message_and_stop_transfer’.

Parameters:



# File 'lib/telnyx/models/ai/assistant_tool.rb', line 454

Instance Attribute Details

#messageString?

The specific message to leave as voicemail (converted to speech). Only applicable when type is ‘message’.

Returns:

  • (String, nil)


444
# File 'lib/telnyx/models/ai/assistant_tool.rb', line 444

optional :message, String

#typeSymbol, ...

The type of voicemail message. Use ‘message’ to leave a specific TTS message, or ‘warm_transfer_instructions’ to play the warm transfer audio.



451
452
# File 'lib/telnyx/models/ai/assistant_tool.rb', line 451

optional :type,
enum: -> { Telnyx::AI::AssistantTool::Transfer::Transfer::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::Type }