Class: RubyBots::Bot

Inherits:
Tool
  • Object
show all
Defined in:
lib/ruby_bots/bot.rb

Overview

Base class for all RubyBots bots

Direct Known Subclasses

PipelineBot

Instance Attribute Summary collapse

Attributes inherited from Tool

#description, #errors, #name

Instance Method Summary collapse

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

#toolsObject

Returns the value of attribute tools.



4
5
6
# File 'lib/ruby_bots/bot.rb', line 4

def tools
  @tools
end