Class: RubyBots::Bot
Overview
Base class for all RubyBots bots
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tools ⇒ Object
Returns the value of attribute tools.
Attributes inherited from Tool
Instance Method Summary collapse
-
#initialize(tools:, name: 'RubyBots Bot', description: 'This is a RubyBots bot') ⇒ Bot
constructor
A new instance of Bot.
Methods inherited from Tool
#response, validate_input, validate_output
Constructor Details
#initialize(tools:, name: 'RubyBots Bot', description: 'This is a RubyBots bot') ⇒ Bot
Returns a new instance of Bot.
6 7 8 9 |
# File 'lib/ruby_bots/bot.rb', line 6 def initialize(tools:, name: 'RubyBots Bot', description: 'This is a RubyBots bot') @tools = tools super(name:, description:) end |
Instance Attribute Details
#tools ⇒ Object
Returns the value of attribute tools.
4 5 6 |
# File 'lib/ruby_bots/bot.rb', line 4 def tools @tools end |