ox-ai-workers 1.1.2.8 → 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: 16b98b2ee1b52f0d7ebf2054ad36b005b1aebe2b97af73830590f532691c49f2
4
- data.tar.gz: 2fd1dc3761f725553548559120f873bfcd44ab8c7a60fec4a5155fe0e943f9b1
3
+ metadata.gz: 1ef82e6a33c3141f86ea92557828ea48a66f79d945c235a9329caa422adb7ecd
4
+ data.tar.gz: 360610012b8bff41a4135b1aeaf97aafdfe491ef65982e530b482f630e28d81c
5
5
  SHA512:
6
- metadata.gz: 908b82e92d9c828f8dc968f802c94612ff6b5934e8746ce44f1800451127d25a72304eec3b4461bbd5f4c1183fa1865582da35c816205ec2d5a5ea119e9216b6
7
- data.tar.gz: 7c70255b718e905a172171802f99d1a5791deaaa57e899a92a616d145661c6022f37be836aac6e0cda5486e9c77d1ddc1afbf5f56d5862b4fcc952a6fb4e0b1a
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
@@ -42,10 +42,11 @@ module OxAiWorkers
42
42
  end
43
43
  end
44
44
  @assistants[to_id].execute
45
+ nil
45
46
  else
46
47
  OxAiWorkers.logger.error "Assistant #{to_id} not found"
48
+ "Assistant #{to_id} not found"
47
49
  end
48
- nil
49
50
  end
50
51
 
51
52
  def add_assistant(assistant)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OxAiWorkers
4
- VERSION = '1.1.2.8'
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.8
4
+ version: 1.1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Smolev