ruby_llm-responses_api 0.5.1 → 0.5.2

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: '059b94ffc46c9a9505bec39f3c7e11dd55406304b159c9b3e95d37202a085c31'
4
- data.tar.gz: 9371bcaa6539cd987d7688a3901ae855f090576f07f7e00ba0d8613157224e19
3
+ metadata.gz: 0c13536c81c541310d1017204b4d312fa6cca67043cf9600f3e7ef497819a87c
4
+ data.tar.gz: 17b16d29633466bf1d9907ad871afae85029641f4768c849bcc75157e85475f6
5
5
  SHA512:
6
- metadata.gz: 1cfbb8c9fe68c29e7d32a07cd6f039dedb62eba362d9238ad877e5b10801b313ee8b821971d863dcf18d5d5affd1378e53c1bcbf77887811b41ef2daba834cc4
7
- data.tar.gz: 62b356bac7017a796033d7ffd8a7e2ca35650898bbf56a59c18fc6530f00787f57b944932b67a5a5dcedc71922b9056f05057118f50ca6aceeea143eb740b9af
6
+ metadata.gz: b82fa66f5c8b4a5410a6560c6a3e06530f211e9a0d2738e7170d4f198dc826869cb38a0185fd411ea531a1b2c8029f5a0f983f744e86b8c6d3dc28acf6b6395a
7
+ data.tar.gz: 1bb3d6cc3c1ee74f94e66225acbab358d7022e3f1feefa94e123d418b265d12ec11ef8053fcbee619d134f62681f4a5fb0bb1a62bc5de5565ce4f77f9b7b3cb8
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.2] - 2026-03-18
9
+
10
+ ### Fixed
11
+
12
+ - Fix streamed tool call accumulation: argument deltas no longer overwrite the tool name (PR #3 by @shllg)
13
+ - Fix gem packaging: correct file permissions from 600 to 644 (issue #2 by @myxoh)
14
+ - Move streaming unit tests to dedicated spec file
15
+
8
16
  ## [0.5.1] - 2026-03-03
9
17
 
10
18
  ### Added
@@ -92,9 +92,13 @@ module RubyLLM
92
92
  call_id = data['call_id'] || data['item_id']
93
93
  return nil unless call_id
94
94
 
95
+ # Argument delta events don't carry a tool name — only the initial
96
+ # output_item.added event does. Omit `id` on nameless deltas so
97
+ # StreamAccumulator appends arguments to the latest tool call
98
+ # instead of creating a new entry that overwrites the named one.
95
99
  {
96
100
  call_id => ToolCall.new(
97
- id: call_id,
101
+ id: data['name'] ? call_id : nil,
98
102
  name: data['name'],
99
103
  arguments: data['delta'] || ''
100
104
  )
@@ -39,7 +39,7 @@ RubyLLM::Providers::OpenAIResponses::ModelRegistry.register_all!
39
39
  module RubyLLM
40
40
  # ResponsesAPI namespace for direct access to helpers and version
41
41
  module ResponsesAPI
42
- VERSION = '0.5.1'
42
+ VERSION = '0.5.2'
43
43
 
44
44
  # Shorthand access to built-in tool helpers
45
45
  BuiltInTools = Providers::OpenAIResponses::BuiltInTools
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm-responses_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hasinski