ruby_bots 0.1.0 → 0.1.1

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: f56766bcb989a9b68b53533877ea832ad917e19abc7010510be7b33d0e731397
4
- data.tar.gz: 9d1d2e530cd12bd3eab152192885f151ef8d77c3d900aad39c5b6d31b2f37883
3
+ metadata.gz: 661bc338ef1cc7a60d6a4b3076c194faaf1c71d21db937d1de05fbfcaa9bc899
4
+ data.tar.gz: b721ca417c4bf4762b1462b2f1672452a7e27ee46b1fec3b35ec369167de7e5d
5
5
  SHA512:
6
- metadata.gz: ae8f1b83d58722bafc6ae60b393b2a1f2f38d97fce6d85b02c4641c6f5fafd805a3755ab4dd0d3da14664c08d837c36e94a5496e5e50631e6cee248cdabf1484
7
- data.tar.gz: f35b3b9a1d7a78f5d81541c631761a29f76f7b48433553082834359fa22892cb22e4bb62a16d4232a8e1ffbcb909eed830806a852b96fd588d85ff79c36fdfca
6
+ metadata.gz: cf2275c793c811c194e4c25e5497ba16a8eb54898b487e53159f966352ea71041d3324717b2f99b4fd1611c1244ed5344422fe15779a8317759b3142ba8097cf
7
+ data.tar.gz: 5532942135eea17d71566e52609f30327da76de6a1be7e3a1e108d7cab31e9576d452edda5ff92c6c829fb25bc87dcddf7f5eb57c5c1c1eeee8b0617d0afcbb6
@@ -0,0 +1,11 @@
1
+ module RubyBots
2
+ module Streamable
3
+ def response(input)
4
+ run_input_validations(input)
5
+
6
+ raise RubyBots::InvalidInputError, { errors: @errors } if @errors.any?
7
+
8
+ run(input)
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module RubyBots
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
data/lib/ruby_bots.rb CHANGED
@@ -50,4 +50,5 @@ require_relative 'ruby_bots/bots/pipeline_bot'
50
50
  require_relative 'ruby_bots/bots/router_bot'
51
51
  require_relative 'ruby_bots/bots/openai_react_bot'
52
52
 
53
+ require_relative 'ruby_bots/streamable'
53
54
  require_relative 'ruby_bots/version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_bots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Paulson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug
@@ -94,6 +94,7 @@ files:
94
94
  - lib/ruby_bots/bots/openai_react_bot.rb
95
95
  - lib/ruby_bots/bots/pipeline_bot.rb
96
96
  - lib/ruby_bots/bots/router_bot.rb
97
+ - lib/ruby_bots/streamable.rb
97
98
  - lib/ruby_bots/tool.rb
98
99
  - lib/ruby_bots/tools/openai_tool.rb
99
100
  - lib/ruby_bots/version.rb