Class: BotFramework::Prompt
- Inherits:
-
Dialog
- Object
- Dialog
- BotFramework::Prompt
- Defined in:
- lib/bot_framework/prompt.rb
Constant Summary collapse
- @@options =
{ recognizer: BotFramework::SimplePromptRecognizer.new, prompt_after_action: true }
- @@default_retry_prompt =
{ text: 'default_text', number: 'default_number', confirm: 'daefault_confirm', choice: 'default_choice', time: 'default_time', attachment: 'default_file' }
Class Method Summary collapse
- .attachment ⇒ Object
- .choice ⇒ Object
- .configure(_options) ⇒ Object
- .confirm ⇒ Object
- .disambiguate ⇒ Object
- .number ⇒ Object
- .text ⇒ Object
- .time ⇒ Object
Instance Method Summary collapse
- #begin(session, options = {}) ⇒ Object
- #create_prompt ⇒ Object
- #dialog_resumed ⇒ Object
- #recognize ⇒ Object
- #reply_received(session, args = {}) ⇒ Object
- #send_prompt(session, options) ⇒ Object
Class Method Details
.attachment ⇒ Object
54 55 |
# File 'lib/bot_framework/prompt.rb', line 54 def self. end |
.choice ⇒ Object
48 49 |
# File 'lib/bot_framework/prompt.rb', line 48 def self.choice end |
.configure(_options) ⇒ Object
17 18 |
# File 'lib/bot_framework/prompt.rb', line 17 def self.configure() end |
.confirm ⇒ Object
45 46 |
# File 'lib/bot_framework/prompt.rb', line 45 def self.confirm end |
.disambiguate ⇒ Object
57 58 |
# File 'lib/bot_framework/prompt.rb', line 57 def self.disambiguate end |
.number ⇒ Object
42 43 |
# File 'lib/bot_framework/prompt.rb', line 42 def self.number end |
.text ⇒ Object
39 40 |
# File 'lib/bot_framework/prompt.rb', line 39 def self.text end |
.time ⇒ Object
51 52 |
# File 'lib/bot_framework/prompt.rb', line 51 def self.time end |
Instance Method Details
#begin(session, options = {}) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/bot_framework/prompt.rb', line 20 def begin(session, = {}) [:prompt_after_action] = [:prompt_after_action] || [:prompt_after_action] [:retry_count] = 0 .each do |option| # Store in dialog data end send_prompt(session, ) end |
#create_prompt ⇒ Object
37 |
# File 'lib/bot_framework/prompt.rb', line 37 def create_prompt; end |
#dialog_resumed ⇒ Object
31 |
# File 'lib/bot_framework/prompt.rb', line 31 def dialog_resumed; end |
#recognize ⇒ Object
33 |
# File 'lib/bot_framework/prompt.rb', line 33 def recognize; end |
#reply_received(session, args = {}) ⇒ Object
29 |
# File 'lib/bot_framework/prompt.rb', line 29 def reply_received(session, args = {}); end |
#send_prompt(session, options) ⇒ Object
35 |
# File 'lib/bot_framework/prompt.rb', line 35 def send_prompt(session, ); end |