Module: RubyBots

Defined in:
lib/ruby_bots.rb,
lib/ruby_bots/bot.rb,
lib/ruby_bots/tool.rb,
lib/ruby_bots/version.rb,
lib/ruby_bots/chattable.rb,
lib/ruby_bots/streamable.rb,
lib/ruby_bots/bots/openai_bot.rb,
lib/ruby_bots/bots/router_bot.rb,
lib/ruby_bots/bots/pipeline_bot.rb,
lib/ruby_bots/tools/openai_tool.rb,
lib/ruby_bots/bots/openai_chat_bot.rb,
lib/ruby_bots/bots/openai_react_bot.rb,
lib/ruby_bots/tools/openai_chat_tool.rb,
lib/ruby_bots/tools/openai_streaming_tool.rb

Overview

Main module for RubyBots

Defined Under Namespace

Modules: Chattable, Streamable Classes: Bot, Configuration, Error, InvalidInputError, InvalidOutputError, OpenAIBot, OpenAIChatBot, OpenAIChatTool, OpenAIReactBot, OpenAIStreamingTool, OpenAITool, PipelineBot, RouterBot, Tool

Constant Summary collapse

VERSION =
'0.2.0'.freeze

Class Method Summary collapse

Class Method Details

.botObject



23
24
25
# File 'lib/ruby_bots.rb', line 23

def self.bot
  RubyBots::Bot
end

.configObject



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

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/ruby_bots.rb', line 8

def configure
  yield config
end

.toolObject



27
28
29
# File 'lib/ruby_bots.rb', line 27

def self.tool
  RubyBots::Tool
end