Class: VoiceML::AssistantsV1AssistantScope
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1AssistantScope
- 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
-
#assistant_id ⇒ Object
readonly
Returns the value of attribute assistant_id.
Instance Method Summary collapse
- #feedbacks ⇒ Object
-
#initialize(transport, assistant_id) ⇒ AssistantsV1AssistantScope
constructor
A new instance of AssistantsV1AssistantScope.
- #knowledge ⇒ Object
- #messages ⇒ Object
- #tools ⇒ Object
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_id ⇒ Object (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
#feedbacks ⇒ Object
142 143 144 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 142 def feedbacks @feedbacks ||= AssistantsV1AssistantFeedbacksScope.new(@transport, @assistant_id) end |
#knowledge ⇒ Object
138 139 140 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 138 def knowledge @knowledge ||= AssistantsV1AssistantKnowledgeScope.new(@transport, @assistant_id) end |
#messages ⇒ Object
146 147 148 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 146 def @messages ||= AssistantsV1AssistantMessagesScope.new(@transport, @assistant_id) end |
#tools ⇒ Object
134 135 136 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 134 def tools @tools ||= AssistantsV1AssistantToolsScope.new(@transport, @assistant_id) end |