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 +4 -4
- data/README.md +8 -0
- data/lib/oxaiworkers/version.rb +1 -1
- data/template/start +4 -0
- 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: cd23611eb845a63cc6bd0142480645aff071bd569e748cb5aa394f461e360073
|
4
|
+
data.tar.gz: 1b8049ea7ed0a74ddf350bce0e7f9a7b88e0feb16626e7c6eb8891b55fec3995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/oxaiworkers/version.rb
CHANGED
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__)
|