Module: Telnyx::Models::AI::Assistant::Tool
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/telnyx/models/ai/assistant.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instructions: nil, model: nil, openai_api_key_ref: nil, tools: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AI::Assistant for more details.
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, 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
Class Method Details
.variants ⇒ Array(Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool)
|
|
# File 'lib/telnyx/models/ai/assistant.rb', line 66
|
Instance Method Details
#initialize(instructions: nil, model: nil, openai_api_key_ref: nil, tools: nil) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AI::Assistant for more details.
Assistant configuration including choice of LLM, custom instructions, and tools.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/telnyx/models/ai/assistant.rb', line 49 module Tool extend Telnyx::Internal::Type::Union discriminator :type variant :book_appointment, -> { Telnyx::BookAppointmentTool } variant :check_availability, -> { Telnyx::CheckAvailabilityTool } variant :webhook, -> { Telnyx::AI::WebhookTool } variant :hangup, -> { Telnyx::AI::HangupTool } variant :transfer, -> { Telnyx::AI::TransferTool } variant :retrieval, -> { Telnyx::CallControlRetrievalTool } # @!method self.variants # @return [Array(Telnyx::Models::BookAppointmentTool, Telnyx::Models::CheckAvailabilityTool, Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::CallControlRetrievalTool)] end |