Class: VoiceML::AssistantsV1AssistantWithToolsAndKnowledge
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1AssistantWithToolsAndKnowledge
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Overview
AssistantsV1AssistantWithToolsAndKnowledge — fetch-one shape that includes the attached tools and knowledge arrays inline.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid customer_ai id model name owner url personality_prompt date_created date_updated tools knowledge ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ AssistantsV1AssistantWithToolsAndKnowledge
constructor
A new instance of AssistantsV1AssistantWithToolsAndKnowledge.
Constructor Details
#initialize(attrs = {}) ⇒ AssistantsV1AssistantWithToolsAndKnowledge
Returns a new instance of AssistantsV1AssistantWithToolsAndKnowledge.
49 50 51 |
# File 'lib/voiceml/models/assistants_v1.rb', line 49 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs.key?(f) ? attrs[f] : attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
52 |
# File 'lib/voiceml/models/assistants_v1.rb', line 52 def self.from_hash(h); h.nil? ? nil : new(h); end |