ruby_llm-instrumentation 0.3.0 → 0.3.1

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: fde168567a99ebfefa370628581a109cc389f5127d3f5a0baf2e249394ee42c1
4
- data.tar.gz: 30427a21ec2c1782175e415c3665689c33468d486d0ddce64d36880edf63efd3
3
+ metadata.gz: e861856eccb1d42ea968a65fd75edc8712ca82c4e0432bffe827023422f76603
4
+ data.tar.gz: 3ab1cc3ad7e05fb924e75bd9a56b56384644218721d39b29301681d09192ee20
5
5
  SHA512:
6
- metadata.gz: dff453272f041dff54b83d3bac473817277a520b48af04ff204ebfc40975d122898ab458212e26760ddce906790e108e139ed092b1846369ce207fd15ea0cc51
7
- data.tar.gz: bac401c71acc930207b6e48419c756c5b2b951e0d3071d4404175ab825b54b3a7204db3cae407456750b45a29314915587d46fd54239008e5c7e00fa10696dd5
6
+ metadata.gz: b617a7577aefa3565f7313dfae005e542284cca901295cbb9ac91f1c2da6212b08af4d22afa7046b4bd8562c719e4a3a5b9e27c71071a35c053842e021e662ae
7
+ data.tar.gz: 283354aba13c3cf102c138713dece6cdb8247e744bdb5d09fa31b6d897a3607f0f52460336b3a80af4191e81f6e38732faf82967e9b0fcc8aaac3798dba00e0f
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.1] - 2026-04-07
9
+
10
+ ### Fixed
11
+
12
+ - Handles instrumentation when response is a RubyLLM::Tool::Halt. [#27](https://github.com/sinaptia/ruby_llm-instrumentation/pull/27) [@kplawver](https://github.com/kplawver)
13
+
8
14
  ## [0.3.0] - 2026-02-27
9
15
 
10
16
  ### Added
@@ -17,6 +17,8 @@ module RubyLLM
17
17
  original_complete(&).tap do |response|
18
18
  payload[:response] = response
19
19
  %i[input_tokens output_tokens cached_tokens cache_creation_tokens thinking_tokens].each do |field|
20
+ next unless response.respond_to?(field)
21
+
20
22
  value = response.public_send(field)
21
23
  payload[field] = value unless value.nil?
22
24
  end
@@ -1,5 +1,5 @@
1
1
  module RubyLLM
2
2
  module Instrumentation
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Mac Adden