ruby_bots 0.0.7 → 0.0.9
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 +4 -4
- data/lib/ruby_bots/bots/openai_bot.rb +1 -2
- data/lib/ruby_bots/bots/pipeline_bot.rb +1 -3
- data/lib/ruby_bots/bots/router_bot.rb +2 -4
- data/lib/ruby_bots/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0283c6e919cc857290addbc845465629cc14c9838afd7cf3fb6dfdda5babae
|
4
|
+
data.tar.gz: c673d66b8b6549be57cb9a26d1a836cef873ceb0c66d27b9f5ebeb71c2d43485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e1678ad3e4fb11399afc74ec921e49feb5e172546bd4a5c615986961cc1d785a685bde4f7a95375854b8ea0a822909c889d276312d1474442b3f040bb873c98
|
7
|
+
data.tar.gz: 55e3fc759fc604c5c5ad7f0fc24d54aab1e597fcaea165b2577a954cb30d322969734f62fb88996418251067931bb77f6d89b334ca9c836622a67657e3bc8a6c
|
@@ -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
|
-
|
7
|
-
@description = description
|
8
|
-
@tools = tools
|
6
|
+
super(name: name, description: description, tools: tools)
|
9
7
|
end
|
10
8
|
|
11
9
|
def run(inputs)
|
@@ -2,10 +2,8 @@ module RubyBots
|
|
2
2
|
class RouterBot < OpenAIBot
|
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
|
-
def initialize(name: "Router bot",
|
6
|
-
|
7
|
-
@description = description
|
8
|
-
@tools = tools
|
5
|
+
def initialize(name: "Router bot", description: DEFAULT_DESCRIPTION, tools:)
|
6
|
+
super(name: name, description: description, tools: tools)
|
9
7
|
end
|
10
8
|
|
11
9
|
def system_instructions
|
data/lib/ruby_bots/version.rb
CHANGED