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 +4 -4
- data/lib/oxaiworkers/iterator.rb +2 -0
- data/lib/oxaiworkers/module_request.rb +3 -3
- data/lib/oxaiworkers/version.rb +1 -1
- 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: 1ef82e6a33c3141f86ea92557828ea48a66f79d945c235a9329caa422adb7ecd
|
4
|
+
data.tar.gz: 360610012b8bff41a4135b1aeaf97aafdfe491ef65982e530b482f630e28d81c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9626772a6845bfd288ecccfad79d4ad4a6af3841ab0e2d82f1b441cbf8d7c18e61f0a982a2d6a8307e93942d383173d4f2be4ce9e9630a6f97885575f42e4c1f
|
7
|
+
data.tar.gz: 06ff4b95a972c4346096619878d11d18c93f2512bb940fd856164b0bc74245bc03ddab9a8980c0a5a6b8b68ab68f7e01b300ca649e9c9d2817a8ad094e105f46
|
data/lib/oxaiworkers/iterator.rb
CHANGED
@@ -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(
|
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(
|
47
|
-
OxAiWorkers.logger.info "Request (Array): [#{
|
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
|
data/lib/oxaiworkers/version.rb
CHANGED