ox-ai-workers 0.5.5 → 0.5.5.1

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: ca54c1ff9c1f4360ddfe986c4b5bc6fb6b7c0cde0484d1b2f88bfe4d8c5707b7
4
- data.tar.gz: 2c54e55fedd99af36f7a510ab923c54581faecfc8b36caa4d228f14349e293a8
3
+ metadata.gz: cd23611eb845a63cc6bd0142480645aff071bd569e748cb5aa394f461e360073
4
+ data.tar.gz: 1b8049ea7ed0a74ddf350bce0e7f9a7b88e0feb16626e7c6eb8891b55fec3995
5
5
  SHA512:
6
- metadata.gz: b8915a64826c118706328c89a87c01fdf49f13b63408c64d5af1ea53a2f92dbb326b9e537f36aa755297a5c919239d426da1f38a83b3cd5fdfbc5a9ebc4146f7
7
- data.tar.gz: 8614ed16d7771b594bda52de36f87bbd211adfc8c579fff752634fc4ce44a7d554cd25cf7b32bfaa80954830f835a7b3c1f61d0e237c930bc043f433e98534c1
6
+ metadata.gz: b91a2846312a4403eb059f075f76ea39f18a1706b85db6bac1b053841e09a5ba901f11ab4c36397162174b9f696aca51b82ea714644a581409957a8ab5be2bbe
7
+ data.tar.gz: c725fab2dcfaef342000918d9f4a21feceb2196191de27b7d6bf528af41e6db761ceefd439c7bbd3dbc0bb546fb50016b788c22be802f566e61a8f36d114838f
data/README.md CHANGED
@@ -97,9 +97,11 @@ Then you can create an assistant like this:
97
97
  ```ruby
98
98
  assistant = OxAiWorkers::Assistant::Sysop.new()
99
99
  assistant.task = "Remove all cron jobs."
100
+ # assistant.execute # if auto_execute is false
100
101
 
101
102
  # Provide a response to the assistant's question
102
103
  assistant.add_response("blah-blah-blah")
104
+ # assistant.execute # if auto_execute is false
103
105
  ```
104
106
 
105
107
  Besides, you can create assistants with different locales
@@ -132,6 +134,12 @@ iterator.add_task("Show files in current directory.")
132
134
  iterator.add_task("linux")
133
135
  ```
134
136
 
137
+ If `auto_execute` is set to false in the configuration, don't forget to manually execute the iterator or assistant.
138
+
139
+ ```ruby
140
+ iterator.execute # if auto_execute is false
141
+ ```
142
+
135
143
  This way, you have the flexibility to choose between a higher-level assistant for simplicity or a lower-level iterator for finer control over the tasks and tools used.
136
144
 
137
145
  ### Advanced instructions for your Assistant
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '0.5.5'
4
+ VERSION = '0.5.5.1'
5
5
  end
data/template/start CHANGED
@@ -20,6 +20,7 @@ puts "OxAiWorkers #{OxAiWorkers::VERSION}"
20
20
  OxAiWorkers.configure do |config|
21
21
  config.access_token = ENV.fetch('OPENAI')
22
22
  config.model = 'gpt-4o-mini'
23
+ # config.auto_execute = false
23
24
  end
24
25
 
25
26
  # OxAiWorkers.logger.level = :debug
@@ -28,4 +29,7 @@ end
28
29
  @assistant = MyAssistant.new
29
30
  @assistant.task = '2 + 2 is ?'
30
31
 
32
+ # Uncomment this if auto_execute is false
33
+ # @assistant.execute
34
+
31
35
  IRB.start(__FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox-ai-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev