Class: Telnyx::Models::CallAssistantRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::CallAssistantRequest
- Defined in:
- lib/telnyx/models/call_assistant_request.rb,
sig/telnyx/models/call_assistant_request.rbs
Defined Under Namespace
Modules: DynamicVariable, Tool Classes: ExternalLlm, FallbackConfig
Constant Summary collapse
- Telnyx =
Instance Attribute Summary collapse
-
#dynamic_variables ⇒ Hash{Symbol=>String, Float, Boolean}?
Map of dynamic variables and their default values.
-
#external_llm ⇒ Telnyx::Models::CallAssistantRequest::ExternalLlm?
External LLM configuration for bringing your own LLM endpoint.
-
#fallback_config ⇒ Telnyx::Models::CallAssistantRequest::FallbackConfig?
Fallback LLM configuration used when the primary LLM provider is unavailable.
-
#greeting ⇒ String?
Initial greeting text spoken when the assistant starts.
-
#id ⇒ String
The identifier of the AI assistant to use.
-
#instructions ⇒ String?
System instructions for the voice assistant.
-
#llm_api_key_ref ⇒ String?
Integration secret identifier for the LLM provider API key.
-
#mcp_servers ⇒ Array<Hash{Symbol=>Object}>?
MCP (Model Context Protocol) server configurations for extending the assistant's capabilities with external tools and data sources.
-
#model ⇒ String?
LLM model override for this call.
-
#name ⇒ String?
Assistant name override for this call.
-
#observability_settings ⇒ Hash{Symbol=>Object}?
Observability configuration for the assistant session, including Langfuse integration for tracing and monitoring.
-
#openai_api_key_ref ⇒ String?
deprecated
Deprecated.
This field is deprecated and will be removed soon
-
#tools ⇒ Array<Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool>?
Inline tool definitions available to the assistant (webhook, retrieval, transfer, hangup, etc.).
- #voice_settings ⇒ Telnyx::Models::AI::VoiceSettings?
Class Method Summary collapse
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
88 |
# File 'sig/telnyx/models/call_assistant_request.rbs', line 88
def initialize: (
|
Instance Attribute Details
#dynamic_variables ⇒ Hash{Symbol=>String, Float, Boolean}?
Map of dynamic variables and their default values. Dynamic variables can be
referenced in instructions, greeting, and tool definitions using the
{{variable_name}} syntax. Call-control-agent automatically merges in
telnyx_call_* variables (telnyx_call_to, telnyx_call_from,
telnyx_conversation_channel, telnyx_agent_target, telnyx_end_user_target,
telnyx_call_caller_id_name) and custom header variables.
21 22 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 21 optional :dynamic_variables, -> { Telnyx::Internal::Type::HashOf[union: Telnyx::CallAssistantRequest::DynamicVariable] } |
#external_llm ⇒ Telnyx::Models::CallAssistantRequest::ExternalLlm?
External LLM configuration for bringing your own LLM endpoint.
28 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 28 optional :external_llm, -> { Telnyx::CallAssistantRequest::ExternalLlm } |
#fallback_config ⇒ Telnyx::Models::CallAssistantRequest::FallbackConfig?
Fallback LLM configuration used when the primary LLM provider is unavailable.
34 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 34 optional :fallback_config, -> { Telnyx::CallAssistantRequest::FallbackConfig } |
#greeting ⇒ String?
Initial greeting text spoken when the assistant starts. Can be plain text for
any voice or SSML for AWS.Polly.<voice_id> voices. There is a 3,000 character
limit.
42 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 42 optional :greeting, String |
#id ⇒ String
The identifier of the AI assistant to use.
10 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 10 required :id, String |
#instructions ⇒ String?
System instructions for the voice assistant. Can be templated with dynamic variables. This will overwrite the instructions set in the assistant configuration.
50 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 50 optional :instructions, String |
#llm_api_key_ref ⇒ String?
Integration secret identifier for the LLM provider API key. Use this field to reference an integration secret containing your LLM provider API key. Supports any LLM provider (OpenAI, Anthropic, etc.).
60 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 60 optional :llm_api_key_ref, String |
#mcp_servers ⇒ Array<Hash{Symbol=>Object}>?
MCP (Model Context Protocol) server configurations for extending the assistant's capabilities with external tools and data sources.
67 68 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 67 optional :mcp_servers, Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]] |
#model ⇒ String?
LLM model override for this call. If omitted, the assistant's configured model is used.
75 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 75 optional :model, String |
#name ⇒ String?
Assistant name override for this call.
81 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 81 optional :name, String |
#observability_settings ⇒ Hash{Symbol=>Object}?
Observability configuration for the assistant session, including Langfuse integration for tracing and monitoring.
88 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 88 optional :observability_settings, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown] |
#openai_api_key_ref ⇒ String?
This field is deprecated and will be removed soon
Deprecated — use llm_api_key_ref instead. Integration secret identifier for
the OpenAI API key. This field is maintained for backward compatibility;
llm_api_key_ref is the canonical field name and supports all LLM providers.
98 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 98 optional :openai_api_key_ref, String |
#tools ⇒ Array<Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool>?
Inline tool definitions available to the assistant (webhook, retrieval, transfer, hangup, etc.). Overrides the assistant's stored tools if provided.
105 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 105 optional :tools, -> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::CallAssistantRequest::Tool] } |
#voice_settings ⇒ Telnyx::Models::AI::VoiceSettings?
110 |
# File 'lib/telnyx/models/call_assistant_request.rb', line 110 optional :voice_settings, -> { Telnyx::AI::VoiceSettings } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/call_assistant_request.rb', line 240
|
.variants ⇒ Array(String, Float, Boolean)
|
|
# File 'lib/telnyx/models/call_assistant_request.rb', line 157
|
Instance Method Details
#to_hash ⇒ {
105 |
# File 'sig/telnyx/models/call_assistant_request.rbs', line 105
def to_hash: -> {
|