lex-llm-bedrock 0.3.12 → 0.3.13

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: 939ac50e6240dcde55f7bc9b24fb0a7f1f6fd527ec46cea27d8255f8a401fcd6
4
- data.tar.gz: 899da50daa4595d92b0bb23a14bd4c873c03d41bc72235e8337b17f61fe69d99
3
+ metadata.gz: 8c5285ad57dfe5af3c170bba3cb60235eb4dce2533f9b867d0b58ca58bc19d10
4
+ data.tar.gz: 83350c00d45f7ceefe602133aa06fe98a10d592a4d6fa5ee7625965d6cf03f81
5
5
  SHA512:
6
- metadata.gz: b2e824ee11517dbbfaf7710bd25a8329ee9007ccb35226776a57131d4ba859fc90fc2b8f0dc3e31ff349b2cc15e3a82778e491fca0f75b2b76d6a4783a8e7e67
7
- data.tar.gz: c06248c9b3c047db80193c7a3c9666b0b251de5bb6a62199f135902f91295cfcfc069e2994cdc93168b66a1c11a7ad755875bc1c9ba8fd60ae0850a7277dae30
6
+ metadata.gz: 14c3fec80a33c7a03b8376f250e15bf84397674a01c457642f86c840a87084369acfd7f58691dd4d3c282395ea994021320dc07f7694c1a046639769ae7bf89f
7
+ data.tar.gz: 2c734dca4b576dbd1ae108daee041deed7cfbc1ea046591c8326a432eea0f3bf2553483c8e69b1d80167427d93467ab067b10cdf4de4a7978b7a9a7c91878f23
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.13 - 2026-06-02
4
+
5
+ ### Fixed
6
+ - **Tool call iteration crash on Bedrock escalation** — `assistant_tool_use_blocks` iterated `message.tool_calls` (a `Hash`) with `each`, which yields `[key, value]` pairs rather than `ToolCall` objects. Calling `.id` on the Array raised `NoMethodError` on every Bedrock call with tool-call history, tripping the circuit breaker and exhausting the escalation chain. Fixed by using `each_value` (provider.rb)
7
+
3
8
  ## 0.3.12 - 2026-06-02
4
9
 
5
10
  ### Fixed
@@ -439,7 +439,7 @@ module Legion
439
439
  text = content_text(message.content)
440
440
  blocks << { text: text } if text && !text.strip.empty?
441
441
 
442
- message.tool_calls.each do |call|
442
+ message.tool_calls.each_value do |call|
443
443
  blocks << {
444
444
  tool_use: {
445
445
  tool_use_id: call.id,
@@ -4,7 +4,7 @@ module Legion
4
4
  module Extensions
5
5
  module Llm
6
6
  module Bedrock
7
- VERSION = '0.3.12'
7
+ VERSION = '0.3.13'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-llm-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - LegionIO