handinger 0.0.2 → 0.1.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/handinger/models/worker.rb +7 -1
- data/lib/handinger/version.rb +1 -1
- data/rbi/handinger/models/worker.rbi +12 -3
- data/sig/handinger/models/worker.rbs +10 -3
- 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: 7dae0342381fa57c73c63b01538c6e47a68de902e4a10b8f4bdb593ef1d9a468
|
|
4
|
+
data.tar.gz: de8803ae634451f609533050e1d0bc66d750286c1abc3c09cc34fd679926fdac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '091f26caa999562c9080eb8a223fc685588a7435943d2085d4c94a9ed8c89e94f2d0f4b7be1e853fefbbd52d336ee791988d2a0c7e9f60115b3e1a4520af2817'
|
|
7
|
+
data.tar.gz: 2c7991d7e71d0d129e2fa4b1656b058630e653d12411b91cc6268d8694f91d53f4e20c1297b8b72e554b95f6858167322d10eaaef06bc3b18395d0d56e7db2c7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0 (2026-04-23)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.2...v0.1.0](https://github.com/Ramensoft/handinger-ruby/compare/v0.0.2...v0.1.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([5c0591e](https://github.com/Ramensoft/handinger-ruby/commit/5c0591e29115cea09ef85378a030154bef123afb))
|
|
10
|
+
|
|
3
11
|
## 0.0.2 (2026-04-23)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.0.1...v0.0.2](https://github.com/Ramensoft/handinger-ruby/compare/v0.0.1...v0.0.2)
|
data/README.md
CHANGED
|
@@ -344,7 +344,12 @@ module Handinger
|
|
|
344
344
|
# @return [Integer, nil]
|
|
345
345
|
optional :credits, Integer
|
|
346
346
|
|
|
347
|
-
# @!
|
|
347
|
+
# @!attribute duration_ms
|
|
348
|
+
#
|
|
349
|
+
# @return [Integer, nil]
|
|
350
|
+
optional :duration_ms, Integer, api_name: :durationMs
|
|
351
|
+
|
|
352
|
+
# @!method initialize(cache_read_tokens:, cache_write_tokens:, cost_usd:, input_tokens:, output_tokens:, reasoning_tokens:, steps:, total_tokens:, credits: nil, duration_ms: nil)
|
|
348
353
|
# @param cache_read_tokens [Integer]
|
|
349
354
|
# @param cache_write_tokens [Integer]
|
|
350
355
|
# @param cost_usd [Float]
|
|
@@ -354,6 +359,7 @@ module Handinger
|
|
|
354
359
|
# @param steps [Integer]
|
|
355
360
|
# @param total_tokens [Integer]
|
|
356
361
|
# @param credits [Integer]
|
|
362
|
+
# @param duration_ms [Integer]
|
|
357
363
|
end
|
|
358
364
|
end
|
|
359
365
|
end
|
data/lib/handinger/version.rb
CHANGED
|
@@ -497,6 +497,12 @@ module Handinger
|
|
|
497
497
|
sig { params(credits: Integer).void }
|
|
498
498
|
attr_writer :credits
|
|
499
499
|
|
|
500
|
+
sig { returns(T.nilable(Integer)) }
|
|
501
|
+
attr_reader :duration_ms
|
|
502
|
+
|
|
503
|
+
sig { params(duration_ms: Integer).void }
|
|
504
|
+
attr_writer :duration_ms
|
|
505
|
+
|
|
500
506
|
sig do
|
|
501
507
|
params(
|
|
502
508
|
cache_read_tokens: Integer,
|
|
@@ -507,7 +513,8 @@ module Handinger
|
|
|
507
513
|
reasoning_tokens: Integer,
|
|
508
514
|
steps: Integer,
|
|
509
515
|
total_tokens: Integer,
|
|
510
|
-
credits: Integer
|
|
516
|
+
credits: Integer,
|
|
517
|
+
duration_ms: Integer
|
|
511
518
|
).returns(T.attached_class)
|
|
512
519
|
end
|
|
513
520
|
def self.new(
|
|
@@ -519,7 +526,8 @@ module Handinger
|
|
|
519
526
|
reasoning_tokens:,
|
|
520
527
|
steps:,
|
|
521
528
|
total_tokens:,
|
|
522
|
-
credits: nil
|
|
529
|
+
credits: nil,
|
|
530
|
+
duration_ms: nil
|
|
523
531
|
)
|
|
524
532
|
end
|
|
525
533
|
|
|
@@ -534,7 +542,8 @@ module Handinger
|
|
|
534
542
|
reasoning_tokens: Integer,
|
|
535
543
|
steps: Integer,
|
|
536
544
|
total_tokens: Integer,
|
|
537
|
-
credits: Integer
|
|
545
|
+
credits: Integer,
|
|
546
|
+
duration_ms: Integer
|
|
538
547
|
}
|
|
539
548
|
)
|
|
540
549
|
end
|
|
@@ -311,7 +311,8 @@ module Handinger
|
|
|
311
311
|
reasoning_tokens: Integer,
|
|
312
312
|
steps: Integer,
|
|
313
313
|
total_tokens: Integer,
|
|
314
|
-
credits: Integer
|
|
314
|
+
credits: Integer,
|
|
315
|
+
duration_ms: Integer
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
class Usage < Handinger::Internal::Type::BaseModel
|
|
@@ -335,6 +336,10 @@ module Handinger
|
|
|
335
336
|
|
|
336
337
|
def credits=: (Integer) -> Integer
|
|
337
338
|
|
|
339
|
+
attr_reader duration_ms: Integer?
|
|
340
|
+
|
|
341
|
+
def duration_ms=: (Integer) -> Integer
|
|
342
|
+
|
|
338
343
|
def initialize: (
|
|
339
344
|
cache_read_tokens: Integer,
|
|
340
345
|
cache_write_tokens: Integer,
|
|
@@ -344,7 +349,8 @@ module Handinger
|
|
|
344
349
|
reasoning_tokens: Integer,
|
|
345
350
|
steps: Integer,
|
|
346
351
|
total_tokens: Integer,
|
|
347
|
-
?credits: Integer
|
|
352
|
+
?credits: Integer,
|
|
353
|
+
?duration_ms: Integer
|
|
348
354
|
) -> void
|
|
349
355
|
|
|
350
356
|
def to_hash: -> {
|
|
@@ -356,7 +362,8 @@ module Handinger
|
|
|
356
362
|
reasoning_tokens: Integer,
|
|
357
363
|
steps: Integer,
|
|
358
364
|
total_tokens: Integer,
|
|
359
|
-
credits: Integer
|
|
365
|
+
credits: Integer,
|
|
366
|
+
duration_ms: Integer
|
|
360
367
|
}
|
|
361
368
|
end
|
|
362
369
|
end
|