ox-ai-workers 0.8.0 → 0.8.1.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: b177fcb5d7633d2cf26c608db3ec4ee0c69a301bf3913397be7cdd146de52cc5
4
- data.tar.gz: 172312df86eba2fd578100467da9b7ac17ebfff577889f3df1b6888643c129e8
3
+ metadata.gz: 3fe884d812aa3c7b476f681b34169cb340ce689d40512607e1cc8b77c31038f4
4
+ data.tar.gz: a74aaa7b95f849a1e1ac147044c05eac5379f22837ff56f46c5502c6136692e9
5
5
  SHA512:
6
- metadata.gz: 6d812c840212f8651ae58c09378c1eff43f4f8b69c0a6d50e17997863e3b1635d66470b9edec3eff270f8fe910dd309df994f07a4a18654799b82166fb52ee25
7
- data.tar.gz: 24615b0e9a421c538d926fe97ad843f78d6795c54334d005fd03d0b6016dd4d24f694e267d0d18cb0ad653a25b8791893658557299fb6aa3558f17980fc2b696
6
+ metadata.gz: 45e53034f2b954bec138dbb4bafc6e11b842a62a46d1c0be334cfcedb56f99b6b1ee851b7ee6d4e2ef89a2f4922fa4b93845947a8d3b7b9f76f75c1b34b05eb9
7
+ data.tar.gz: d8b191cf4535cada200592ae389ead90120b35b55fbcbdb49a280425da71f1b18c06d39a88abf9f39051d678b3ba6a301303c3113bf7fc43f741116c5fc79b8e
@@ -80,7 +80,7 @@ module OxAiWorkers
80
80
  # @return [nil] This method does not return a value.
81
81
  def inner_monologue(speach:)
82
82
  # @queue.pop
83
- # @queue << { role: :assistant, content: speach.to_s }
83
+ @queue << { role: :assistant, content: speach.to_s }
84
84
  @on_inner_monologue&.call(text: speach)
85
85
  nil
86
86
  end
@@ -233,9 +233,7 @@ module OxAiWorkers
233
233
 
234
234
  out = tool.send(external_call[:name], **external_call[:args])
235
235
  @queue << { role: :assistant,
236
- content: "Call #{external_call[:name]} with args #{external_call[:args]}" }
237
- @queue << { role: :system,
238
- content: "Tool call #{external_call[:name]} complited" }
236
+ content: "Tool call #{external_call[:name]} completed." }
239
237
  @queue << { role: :system, content: "Result: #{out}" } if out.present?
240
238
  end
241
239
  @worker.finish
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1.1'
5
5
  end
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.8.0
4
+ version: 0.8.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev