|
| 1 | +# frozen_string_literal: true |
| 2 | +# This file was auto-generated by lib/tasks/web.rake |
| 3 | + |
| 4 | +module Slack |
| 5 | + module Cli |
| 6 | + class App |
| 7 | + desc 'AssistantThreads methods.' |
| 8 | + command 'assistant_threads' do |g| |
| 9 | + g.desc 'Set the status for an AI assistant thread.' |
| 10 | + g.long_desc %( Set the status for an AI assistant thread. ) |
| 11 | + g.command 'setStatus' do |c| |
| 12 | + c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.' |
| 13 | + c.flag 'status', desc: "Status of the specified bot user, e.g. 'is thinking...'." |
| 14 | + c.flag 'thread_ts', desc: 'Message timestamp of the thread of where to set the status.' |
| 15 | + c.action do |_global_options, options, _args| |
| 16 | + puts JSON.dump(@client.assistant_threads_setStatus(options)) |
| 17 | + end |
| 18 | + end |
| 19 | + |
| 20 | + g.desc 'Set suggested prompts for the given assistant thread' |
| 21 | + g.long_desc %( Set suggested prompts for the given assistant thread ) |
| 22 | + g.command 'setSuggestedPrompts' do |c| |
| 23 | + c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.' |
| 24 | + c.flag 'prompts', desc: 'Each prompt should be supplied with its title and message attribute.' |
| 25 | + c.flag 'thread_ts', desc: 'Message timestamp of the thread to set suggested prompts for.' |
| 26 | + c.flag 'title', desc: 'Title for the list of provided prompts. For example: Suggested Prompts, Related Questions.' |
| 27 | + c.action do |_global_options, options, _args| |
| 28 | + puts JSON.dump(@client.assistant_threads_setSuggestedPrompts(options)) |
| 29 | + end |
| 30 | + end |
| 31 | + |
| 32 | + g.desc 'Set the title for the given assistant thread' |
| 33 | + g.long_desc %( Set the title for the given assistant thread ) |
| 34 | + g.command 'setTitle' do |c| |
| 35 | + c.flag 'channel_id', desc: 'Channel ID containing the assistant thread.' |
| 36 | + c.flag 'thread_ts', desc: 'Message timestamp of the thread to set suggested prompts for.' |
| 37 | + c.flag 'title', desc: 'The title to use for the thread.' |
| 38 | + c.action do |_global_options, options, _args| |
| 39 | + puts JSON.dump(@client.assistant_threads_setTitle(options)) |
| 40 | + end |
| 41 | + end |
| 42 | + end |
| 43 | + end |
| 44 | + end |
| 45 | +end |
0 commit comments