ox-ai-workers 1.1.2.9 → 1.1.2.10

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: 3d6c48bf58686ba65100f5d18a0cd3dea53e0af817fda56380df77964038828e
4
- data.tar.gz: 3dabc31da873b233d2e9f74aebfb4d45f3ed83fd8513bad1b64817a56e5d4a88
3
+ metadata.gz: 1ef82e6a33c3141f86ea92557828ea48a66f79d945c235a9329caa422adb7ecd
4
+ data.tar.gz: 360610012b8bff41a4135b1aeaf97aafdfe491ef65982e530b482f630e28d81c
5
5
  SHA512:
6
- metadata.gz: 232cafcae6234bf5166de0e550747977ce23d50878cca0bff801a6ba74790b62b3bbf6aa53a288ea1f84ab79b544ddf3641df6727b5f1e27f75a386436b9c9be
7
- data.tar.gz: 1898cd2b205cfb2e578bea503cc6419725ab73afd8d7d46f3df9367e3e8c29ff7d59fe9a8ae27bab4e52400be1139544830e9030092167ec7a2a02c78541fa5c
6
+ metadata.gz: 9626772a6845bfd288ecccfad79d4ad4a6af3841ab0e2d82f1b441cbf8d7c18e61f0a982a2d6a8307e93942d383173d4f2be4ce9e9630a6f97885575f42e4c1f
7
+ data.tar.gz: 06ff4b95a972c4346096619878d11d18c93f2512bb940fd856164b0bc74245bc03ddab9a8980c0a5a6b8b68ab68f7e01b300ca649e9c9d2817a8ad094e105f46
@@ -232,6 +232,7 @@ module OxAiWorkers
232
232
 
233
233
  @call_id += 1
234
234
  # Add tool call message in the correct format
235
+ OxAiWorkers.logger.info "Iterator::Tool call: #{@call_id}"
235
236
  out = tool.send(external_call[:name], **external_call[:args])
236
237
  @queue += @worker.model.tool_call(
237
238
  name: external_call[:name],
@@ -244,6 +245,7 @@ module OxAiWorkers
244
245
  iterate! if can_iterate?
245
246
  end
246
247
  result = @worker.result || @worker.errors
248
+ OxAiWorkers.logger.info "Iterator::No tool calls: #{result}"
247
249
  outer_voice text: result if result.present?
248
250
  end
249
251
 
@@ -41,10 +41,10 @@ module OxAiWorkers
41
41
  @messages.each do |message|
42
42
  content = message[:content]
43
43
  if content.is_a?(String)
44
- OxAiWorkers.logger.info "Request (String): #{content.truncate(50)}"
44
+ OxAiWorkers.logger.info "Request (String): #{content.truncate(500)}"
45
45
  elsif content.is_a?(Array)
46
- types = content.map { |item| "#{item[:type]}: #{item[:content]&.truncate(50)}" }.compact.join(', ')
47
- OxAiWorkers.logger.info "Request (Array): [#{content.inspect}]"
46
+ types = content.map { |item| "#{item[:type]}: #{item[:content]&.truncate(500)}" }.compact.join(', ')
47
+ OxAiWorkers.logger.info "Request (Array): [#{types}]"
48
48
  else
49
49
  OxAiWorkers.logger.info "Request (Other): #{message.inspect}"
50
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '1.1.2.9'
4
+ VERSION = '1.1.2.10'
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: 1.1.2.9
4
+ version: 1.1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev