ruby_bots 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57e874e57f241c81e6b20156905a336fca1dae1226e5363f00ba1e884ddabe75
4
- data.tar.gz: dc6e8a2ff203144a09951fdd13c7785dc10feb32c0f5ebd6cede8579380b9a61
3
+ metadata.gz: e41d3fd3e5462f9fe2a43bc3e071057699e23739736bfce1d16c92d1b36c5088
4
+ data.tar.gz: 616d4c84530e4ab91698cad3542da8a1591e64b27a1c33236a46d2e33b268236
5
5
  SHA512:
6
- metadata.gz: 07cad20b223b0a8e5408b7b5a6f92b089ff582b207f745d8ee6c0ca8c46f3e6a5b9f962e2bc697787ddd982d14aeadcdfeedcf78507459812f5f2d767a4e2efb
7
- data.tar.gz: ac91e36c241e80139a11ab00f44ec01f40e2d817a1ebe374b30f1a0a8ab3fd54e2e7d40eeff51dc59bf377fdb11ad857ca6872e412b0ec9a34f7cd7065ba0522
6
+ metadata.gz: 3ec453f708572136b7c11aa9cc47a8937d3ecbb5b9ff2f78634c384806ccaac76ea44eac6cefa695c97fda78bfb67d5aef8689f8fc4464acd3e60cc0f5394813
7
+ data.tar.gz: b29d355225744e80035bbf75673d13e3cfe90a47db21e5bbaac68e243b8bc79bfb5882e6cbdfa1f14fe661bb8f115f25e5efcc4ffa18292f83019461d664aa02
data/lib/ruby_bots/bot.rb CHANGED
@@ -7,6 +7,8 @@ module RubyBots
7
7
  super(name: name, description: description)
8
8
  end
9
9
 
10
+ private
11
+
10
12
  def run(inputs)
11
13
  raise NotImplementedError
12
14
  end
@@ -8,6 +8,8 @@ module RubyBots
8
8
  @tools = tools
9
9
  super(name: name, description: description)
10
10
  end
11
+
12
+ private
11
13
 
12
14
  def run(inputs)
13
15
  params = {
@@ -5,6 +5,8 @@ module RubyBots
5
5
  def initialize(name: "Pipeline bot", description: DEFAULT_DESCRIPTION, tools:)
6
6
  super(name: name, description: description, tools: tools)
7
7
  end
8
+
9
+ private
8
10
 
9
11
  def run(inputs)
10
12
  tools.each do |tool|
@@ -16,6 +16,8 @@ module RubyBots
16
16
  If no tools match the user's request respond with "I'm sorry, I am still learning." and nothing more.
17
17
  PROMPT
18
18
  end
19
+
20
+ private
19
21
 
20
22
  def run(inputs)
21
23
  params = {
@@ -20,20 +20,22 @@ module RubyBots
20
20
  @output_validators << method
21
21
  end
22
22
 
23
- def run(inputs)
24
- raise NotImplementedError
25
- end
26
-
27
23
  def response(input)
28
24
  @input_validators.each do |validator|
29
25
  validator.call(input)
30
26
  end
31
27
 
32
28
  output = run(input)
33
-
29
+
34
30
  @output_validators.each do |validator|
35
31
  validator.call(output)
36
32
  end
37
33
  end
34
+
35
+ private
36
+
37
+ def run(inputs)
38
+ raise NotImplementedError
39
+ end
38
40
  end
39
41
  end
@@ -24,6 +24,8 @@ module RubyBots
24
24
  def system_instructions
25
25
  "You are a helpful assistant."
26
26
  end
27
+
28
+ private
27
29
 
28
30
  def run(inputs)
29
31
  params = {
@@ -1,3 +1,3 @@
1
1
  module RubyBots
2
- VERSION = "0.0.10".freeze
2
+ VERSION = "0.0.11".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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Paulson