Class: Rasti::AI::Tool
- Inherits:
-
Object
- Object
- Rasti::AI::Tool
- Defined in:
- lib/rasti/ai/tool.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.form ⇒ Object
5 6 7 |
# File 'lib/rasti/ai/tool.rb', line 5 def self.form constants.include?(:Form) ? const_get(:Form) : Rasti::Form end |
Instance Method Details
#call(params = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/rasti/ai/tool.rb', line 9 def call(params={}) form = self.class.form.new params result = execute form serialize result end |