Module: Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::Message

Extended by:
Internal::Type::Union
Defined in:
lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb,
sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs

Defined Under Namespace

Classes: WebhookToolRequestResponseDelayedMessage, WebhookToolRequestStartMessage

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(content:, timing_ms: nil, type: :request_start) ⇒ Object

Parameters:

  • content (String)

    The text the assistant speaks.

  • timing_ms (Integer) (defaults to: nil)

    An optional delay value. This value is ignored for request_start messages.

  • type (Symbol, :request_start) (defaults to: :request_start)

    Speak the filler message immediately when the webhook request begins.



# File 'lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb', line 268

#self?.variants::Array[Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::message]

Returns:

  • (::Array[Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::message])


265
# File 'sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs', line 265

def self?.variants: -> ::Array[Telnyx::Models::AI::InferenceEmbeddingWebhookToolParams::Webhook::message]