Exception: Ask::Tool::Halt

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ask/tools/tool.rb

Overview

Raised (or returned from #call) to signal the conversation loop should stop rather than continuing after this tool’s result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Halt

Returns a new instance of Halt.



28
29
30
31
# File 'lib/ask/tools/tool.rb', line 28

def initialize(content)
  @content = content
  super(content.to_s)
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



26
27
28
# File 'lib/ask/tools/tool.rb', line 26

def content
  @content
end