ruby_bots 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c80d6dfdae46c6b515e2e27594773ccfc1b3b19a1c7eba1d178e086141749af
4
- data.tar.gz: 3012aced81f609620abeec7308b71a1c9c5c1303070b09afc58496f3e51b2a40
3
+ metadata.gz: 57e874e57f241c81e6b20156905a336fca1dae1226e5363f00ba1e884ddabe75
4
+ data.tar.gz: dc6e8a2ff203144a09951fdd13c7785dc10feb32c0f5ebd6cede8579380b9a61
5
5
  SHA512:
6
- metadata.gz: 30321966a0d82c39d3ded4a522f701a2d9aa02cce2580171e6261fcb8347aa2fa01ebd1f98cc6fc8879471df47e274692c0264f1fcca8f0439bdbc7c8e398496
7
- data.tar.gz: da45ebe03183f331cdb285a1e3ad25f72a1661d9150695a5b70ec54fdfe4f6a7926f7bfcefc9672807c468ffa6fd76d2dbfa597a00d33a1c84de5559def3538e
6
+ metadata.gz: 07cad20b223b0a8e5408b7b5a6f92b089ff582b207f745d8ee6c0ca8c46f3e6a5b9f962e2bc697787ddd982d14aeadcdfeedcf78507459812f5f2d767a4e2efb
7
+ data.tar.gz: ac91e36c241e80139a11ab00f44ec01f40e2d817a1ebe374b30f1a0a8ab3fd54e2e7d40eeff51dc59bf377fdb11ad857ca6872e412b0ec9a34f7cd7065ba0522
data/lib/ruby_bots/bot.rb CHANGED
@@ -2,9 +2,9 @@ module RubyBots
2
2
  class Bot < Tool
3
3
  attr_accessor :tools
4
4
 
5
- def initialize(tools:, **kwargs)
5
+ def initialize(name:, description:, tools:)
6
6
  @tools = tools
7
- super(**kwargs)
7
+ super(name: name, description: description)
8
8
  end
9
9
 
10
10
  def run(inputs)
@@ -5,9 +5,8 @@ module RubyBots
5
5
  DEFAULT_DESCRIPTION = "This bot will use OpenAI to determine the appropriate tool."
6
6
 
7
7
  def initialize(name: "OpenAI bot", description: DEFAULT_DESCRIPTION, tools:)
8
- @name = name
9
- @description = description
10
8
  @tools = tools
9
+ super(name: name, description: description)
11
10
  end
12
11
 
13
12
  def run(inputs)
@@ -3,9 +3,7 @@ module RubyBots
3
3
  DEFAULT_DESCRIPTION = "This bot will utilize all of its tools in a syncronouse pipeline based on the order the tools are provided."
4
4
 
5
5
  def initialize(name: "Pipeline bot", description: DEFAULT_DESCRIPTION, tools:)
6
- @name = name
7
- @description = description
8
- @tools = tools
6
+ super(name: name, description: description, tools: tools)
9
7
  end
10
8
 
11
9
  def run(inputs)
@@ -3,9 +3,7 @@ module RubyBots
3
3
  DEFAULT_DESCRIPTION = "This bot will route the user's input to the appropriate tool. It will only select and use one tool."
4
4
 
5
5
  def initialize(name: "Router bot", description: DEFAULT_DESCRIPTION, tools:)
6
- @name = name
7
- @description = description
8
- @tools = tools
6
+ super(name: name, description: description, tools: tools)
9
7
  end
10
8
 
11
9
  def system_instructions
@@ -1,3 +1,3 @@
1
1
  module RubyBots
2
- VERSION = "0.0.8".freeze
2
+ VERSION = "0.0.10".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_bots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Paulson