Module: Slack::Web::Api::Endpoints::AssistantThreads
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/assistant_threads.rb
Instance Method Summary collapse
-
#assistant_threads_setStatus(options = {}) ⇒ Object
Set the status for an AI assistant thread.
-
#assistant_threads_setSuggestedPrompts(options = {}) ⇒ Object
Set suggested prompts for the given assistant thread.
-
#assistant_threads_setTitle(options = {}) ⇒ Object
Set the title for the given assistant thread.
Instance Method Details
#assistant_threads_setStatus(options = {}) ⇒ Object
Set the status for an AI assistant thread.
28 29 30 31 32 33 |
# File 'lib/slack/web/api/endpoints/assistant_threads.rb', line 28 def assistant_threads_setStatus( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :thread_ts missing' if [:thread_ts].nil? raise ArgumentError, 'Required arguments :status missing' if [:status].nil? post('assistant.threads.setStatus', ) end |
#assistant_threads_setSuggestedPrompts(options = {}) ⇒ Object
Set suggested prompts for the given assistant thread
48 49 50 51 52 |
# File 'lib/slack/web/api/endpoints/assistant_threads.rb', line 48 def assistant_threads_setSuggestedPrompts( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :prompts missing' if [:prompts].nil? post('assistant.threads.setSuggestedPrompts', ) end |
#assistant_threads_setTitle(options = {}) ⇒ Object
Set the title for the given assistant thread
65 66 67 68 69 70 |
# File 'lib/slack/web/api/endpoints/assistant_threads.rb', line 65 def assistant_threads_setTitle( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :thread_ts missing' if [:thread_ts].nil? raise ArgumentError, 'Required arguments :title missing' if [:title].nil? post('assistant.threads.setTitle', ) end |