ruby_llm-instrumentation 0.2.1 → 0.3.0

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: 19edafad16b64a3aa803a8ef696f42fc262c5e51d375aaab777e3c7e7a81118b
4
- data.tar.gz: 3e9078fecfb372deb54d00d0f000f84c37456c8cf96a31202db998ecc3a21709
3
+ metadata.gz: fde168567a99ebfefa370628581a109cc389f5127d3f5a0baf2e249394ee42c1
4
+ data.tar.gz: 30427a21ec2c1782175e415c3665689c33468d486d0ddce64d36880edf63efd3
5
5
  SHA512:
6
- metadata.gz: 239edbda2244c0b8388b42da2518b3e1663d712b32ab304228b0229a15337a79a6aaf5232d636a1be63e38c1a916651e19975e8f949da028cd75cb9cbcfb7b95
7
- data.tar.gz: 12a2514fa4c328983a99f6b7850cce1a092ee3fedafd0437c634efe83ce41d6308a0e28ece6f61f38e7d2f86262d064fa4db0eb50d1ec0786b05707ec82cb808
6
+ metadata.gz: dff453272f041dff54b83d3bac473817277a520b48af04ff204ebfc40975d122898ab458212e26760ddce906790e108e139ed092b1846369ce207fd15ea0cc51
7
+ data.tar.gz: bac401c71acc930207b6e48419c756c5b2b951e0d3071d4404175ab825b54b3a7204db3cae407456750b45a29314915587d46fd54239008e5c7e00fa10696dd5
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.0] - 2026-02-27
9
+
10
+ ### Added
11
+
12
+ - add `thinking_tokens` to the `complete_chat.ruby_llm` event payload. [#16](https://github.com/sinaptia/ruby_llm-instrumentation/pull/16) [@patriciomacadden](https://github.com/patriciomacadden)
13
+
8
14
  ## [0.2.1] - 2026-02-10
9
15
 
10
16
  ### Fixed
@@ -16,7 +16,7 @@ module RubyLLM
16
16
  ActiveSupport::Notifications.instrument("complete_chat.ruby_llm", raw_payload) do |payload|
17
17
  original_complete(&).tap do |response|
18
18
  payload[:response] = response
19
- %i[input_tokens output_tokens cached_tokens cache_creation_tokens].each do |field|
19
+ %i[input_tokens output_tokens cached_tokens cache_creation_tokens thinking_tokens].each do |field|
20
20
  value = response.public_send(field)
21
21
  payload[field] = value unless value.nil?
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module RubyLLM
2
2
  module Instrumentation
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
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.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Mac Adden