Class: VoiceML::AssistantsV1AssistantScope

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/resources/assistants_v1.rb

Overview

============================================================================ Per-Assistant scope — sub-resources under /v1/Assistants/id/...:

- .tools        attach/detach + list
- .knowledge    attach/detach + list
- .feedbacks    list + create
- .messages     create (send)

============================================================================

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transport, assistant_id) ⇒ AssistantsV1AssistantScope

Returns a new instance of AssistantsV1AssistantScope.



129
130
131
132
# File 'lib/voiceml/resources/assistants_v1.rb', line 129

def initialize(transport, assistant_id)
  @transport    = transport
  @assistant_id = assistant_id
end

Instance Attribute Details

#assistant_idObject (readonly)

Returns the value of attribute assistant_id.



127
128
129
# File 'lib/voiceml/resources/assistants_v1.rb', line 127

def assistant_id
  @assistant_id
end

Instance Method Details

#feedbacksObject



142
143
144
# File 'lib/voiceml/resources/assistants_v1.rb', line 142

def feedbacks
  @feedbacks ||= AssistantsV1AssistantFeedbacksScope.new(@transport, @assistant_id)
end

#knowledgeObject



138
139
140
# File 'lib/voiceml/resources/assistants_v1.rb', line 138

def knowledge
  @knowledge ||= AssistantsV1AssistantKnowledgeScope.new(@transport, @assistant_id)
end

#messagesObject



146
147
148
# File 'lib/voiceml/resources/assistants_v1.rb', line 146

def messages
  @messages ||= AssistantsV1AssistantMessagesScope.new(@transport, @assistant_id)
end

#toolsObject



134
135
136
# File 'lib/voiceml/resources/assistants_v1.rb', line 134

def tools
  @tools ||= AssistantsV1AssistantToolsScope.new(@transport, @assistant_id)
end