Class: Zavudev::Models::CallCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::CallCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/zavudev/models/call_create_params.rb,
sig/zavudev/models/call_create_params.rbs
Overview
Instance Attribute Summary collapse
-
#greeting ⇒ String?
Overrides the agent's configured greeting for this call only.
-
#language ⇒ String?
Language the agent speaks on this call only, as a BCP-47 tag (
en,es,es-ES,pt-BR), orautoto detect the caller's language and follow it. -
#max_duration_minutes ⇒ Integer?
Overrides the agent's maximum call duration for this call only.
-
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary metadata to associate with the call.
-
#sender_id ⇒ String?
Sender profile that places the call.
-
#to ⇒ String
Recipient phone number in E.164 format.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(to:, greeting: nil, language: nil, max_duration_minutes: nil, metadata: nil, sender_id: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see CallCreateParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(to:, greeting: nil, language: nil, max_duration_minutes: nil, metadata: nil, sender_id: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Zavudev::Models::CallCreateParams for more details.
|
|
# File 'lib/zavudev/models/call_create_params.rb', line 53
|
Instance Attribute Details
#greeting ⇒ String?
Overrides the agent's configured greeting for this call only.
20 |
# File 'lib/zavudev/models/call_create_params.rb', line 20 optional :greeting, String |
#language ⇒ String?
Language the agent speaks on this call only, as a BCP-47 tag (en, es,
es-ES, pt-BR), or auto to detect the caller's language and follow it.
Overrides the agent's configured language for speech recognition, the agent's
replies, and the synthesized voice. If the agent uses a custom voice you
supplied, that voice is kept and only the language changes. When omitted, the
agent's configured language is used.
31 |
# File 'lib/zavudev/models/call_create_params.rb', line 31 optional :language, String |
#max_duration_minutes ⇒ Integer?
Overrides the agent's maximum call duration for this call only.
37 |
# File 'lib/zavudev/models/call_create_params.rb', line 37 optional :max_duration_minutes, Integer, api_name: :maxDurationMinutes |
#metadata ⇒ Hash{Symbol=>String}?
Arbitrary metadata to associate with the call. Returned on the call object and included in voice webhooks.
44 |
# File 'lib/zavudev/models/call_create_params.rb', line 44 optional :metadata, Zavudev::Internal::Type::HashOf[String] |
#sender_id ⇒ String?
Sender profile that places the call. Uses the project's default sender if omitted. The sender's agent must have voice enabled.
51 |
# File 'lib/zavudev/models/call_create_params.rb', line 51 optional :sender_id, String, api_name: :senderId |
#to ⇒ String
Recipient phone number in E.164 format.
14 |
# File 'lib/zavudev/models/call_create_params.rb', line 14 required :to, String |
Instance Method Details
#to_hash ⇒ {
50 |
# File 'sig/zavudev/models/call_create_params.rbs', line 50
def to_hash: -> {
|