liter_llm 1.4.0.pre.rc.30-aarch64-linux → 1.4.0.pre.rc.31-aarch64-linux
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/Steepfile +10 -2
- data/lib/liter_llm/native.rb +40 -40
- data/lib/liter_llm/version.rb +2 -2
- data/lib/liter_llm.rb +3 -3
- data/lib/liter_llm_rb.so +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8014f4dad66cf2071b532dcc2d846bc68c98f0ac5c6dfba41f3d618242cd5962
|
|
4
|
+
data.tar.gz: '007684c36477bb0d1f7227086d81b2487dc7b8350dca57e56f07bd3b7072fddb'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db3d4e7053a656ad34b9325c5afa37a1ebfeeb3e853d0bfa5ab4353bd1d62d93d8b98484c04572963561782cde2fc1aacfaf3e82e7ded9a82b46aef81ad52500
|
|
7
|
+
data.tar.gz: 23a4b8b59b8cfc56b3dc08220ef8f04f77778a4311a8cfc2a4b103727a6fe9ca30deda2144f9f361131871164e1cd29455b6af1a9b9a95898bbd5986a588bd31
|
data/Steepfile
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
target :lib do
|
|
4
|
-
signature
|
|
5
|
-
check
|
|
4
|
+
signature "sig"
|
|
5
|
+
check "lib"
|
|
6
|
+
# The generated `lib/liter_llm/native.rb` carries inline Sorbet
|
|
7
|
+
# `sig { ... }` blocks on tagged-enum variant Data classes. Sorbet's runtime
|
|
8
|
+
# provides those via `extend T::Sig`, but Steep does not understand the
|
|
9
|
+
# extension (it relies on RBS, not Sorbet sigs) and reports
|
|
10
|
+
# `Type `self` does not have method `sig`` on every block. RBS coverage
|
|
11
|
+
# for the same surface lives in `sig/types.rbs`, so we steer Steep to the
|
|
12
|
+
# RBS file by ignoring the .rb.
|
|
13
|
+
ignore "lib/liter_llm/native.rb"
|
|
6
14
|
end
|
data/lib/liter_llm/native.rb
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:d7ebc889faf1ad5e0b0b7d8d28e5cb721652476ad7f37bd8bb22af480f1a8b10
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
6
|
# frozen_string_literal: true
|
|
7
7
|
|
|
8
|
-
require
|
|
9
|
-
require
|
|
10
|
-
require
|
|
8
|
+
require "json"
|
|
9
|
+
require "sorbet-runtime"
|
|
10
|
+
require "liter_llm_rb"
|
|
11
11
|
module LiterLlm
|
|
12
12
|
# A chat message in a conversation.
|
|
13
13
|
module Message
|
|
@@ -21,14 +21,14 @@ module LiterLlm
|
|
|
21
21
|
# @return [variant_class] an instance of the appropriate variant
|
|
22
22
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
23
23
|
def self.from_hash(hash)
|
|
24
|
-
discriminator = hash[:role] || hash[
|
|
24
|
+
discriminator = hash[:role] || hash["role"]
|
|
25
25
|
case discriminator
|
|
26
|
-
when
|
|
27
|
-
when
|
|
28
|
-
when
|
|
29
|
-
when
|
|
30
|
-
when
|
|
31
|
-
when
|
|
26
|
+
when "system" then MessageSystem.from_hash(hash)
|
|
27
|
+
when "user" then MessageUser.from_hash(hash)
|
|
28
|
+
when "assistant" then MessageAssistant.from_hash(hash)
|
|
29
|
+
when "tool" then MessageTool.from_hash(hash)
|
|
30
|
+
when "developer" then MessageDeveloper.from_hash(hash)
|
|
31
|
+
when "function" then MessageFunction.from_hash(hash)
|
|
32
32
|
else raise "Unknown discriminator: #{discriminator}"
|
|
33
33
|
end
|
|
34
34
|
end
|
|
@@ -65,7 +65,7 @@ module LiterLlm
|
|
|
65
65
|
# @return [self]
|
|
66
66
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
67
67
|
def self.from_hash(hash)
|
|
68
|
-
new(value: hash[:_0] || hash[
|
|
68
|
+
new(value: hash[:_0] || hash["_0"])
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -100,7 +100,7 @@ module LiterLlm
|
|
|
100
100
|
# @return [self]
|
|
101
101
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
102
102
|
def self.from_hash(hash)
|
|
103
|
-
new(value: hash[:_0] || hash[
|
|
103
|
+
new(value: hash[:_0] || hash["_0"])
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
|
|
@@ -135,7 +135,7 @@ module LiterLlm
|
|
|
135
135
|
# @return [self]
|
|
136
136
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
137
137
|
def self.from_hash(hash)
|
|
138
|
-
new(value: hash[:_0] || hash[
|
|
138
|
+
new(value: hash[:_0] || hash["_0"])
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
141
|
|
|
@@ -170,7 +170,7 @@ module LiterLlm
|
|
|
170
170
|
# @return [self]
|
|
171
171
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
172
172
|
def self.from_hash(hash)
|
|
173
|
-
new(value: hash[:_0] || hash[
|
|
173
|
+
new(value: hash[:_0] || hash["_0"])
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -205,7 +205,7 @@ module LiterLlm
|
|
|
205
205
|
# @return [self]
|
|
206
206
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
207
207
|
def self.from_hash(hash)
|
|
208
|
-
new(value: hash[:_0] || hash[
|
|
208
|
+
new(value: hash[:_0] || hash["_0"])
|
|
209
209
|
end
|
|
210
210
|
end
|
|
211
211
|
|
|
@@ -240,7 +240,7 @@ module LiterLlm
|
|
|
240
240
|
# @return [self]
|
|
241
241
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
242
242
|
def self.from_hash(hash)
|
|
243
|
-
new(value: hash[:_0] || hash[
|
|
243
|
+
new(value: hash[:_0] || hash["_0"])
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
246
|
end
|
|
@@ -258,12 +258,12 @@ module LiterLlm
|
|
|
258
258
|
# @return [variant_class] an instance of the appropriate variant
|
|
259
259
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
260
260
|
def self.from_hash(hash)
|
|
261
|
-
discriminator = hash[:type] || hash[
|
|
261
|
+
discriminator = hash[:type] || hash["type"]
|
|
262
262
|
case discriminator
|
|
263
|
-
when
|
|
264
|
-
when
|
|
265
|
-
when
|
|
266
|
-
when
|
|
263
|
+
when "text" then ContentPartText.from_hash(hash)
|
|
264
|
+
when "image_url" then ContentPartImageUrl.from_hash(hash)
|
|
265
|
+
when "document" then ContentPartDocument.from_hash(hash)
|
|
266
|
+
when "input_audio" then ContentPartInputAudio.from_hash(hash)
|
|
267
267
|
else raise "Unknown discriminator: #{discriminator}"
|
|
268
268
|
end
|
|
269
269
|
end
|
|
@@ -294,7 +294,7 @@ module LiterLlm
|
|
|
294
294
|
# @return [self]
|
|
295
295
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
296
296
|
def self.from_hash(hash)
|
|
297
|
-
new(text: hash[:text] || hash[
|
|
297
|
+
new(text: hash[:text] || hash["text"])
|
|
298
298
|
end
|
|
299
299
|
end
|
|
300
300
|
|
|
@@ -323,7 +323,7 @@ module LiterLlm
|
|
|
323
323
|
# @return [self]
|
|
324
324
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
325
325
|
def self.from_hash(hash)
|
|
326
|
-
new(image_url: hash[:image_url] || hash[
|
|
326
|
+
new(image_url: hash[:image_url] || hash["image_url"])
|
|
327
327
|
end
|
|
328
328
|
end
|
|
329
329
|
|
|
@@ -352,7 +352,7 @@ module LiterLlm
|
|
|
352
352
|
# @return [self]
|
|
353
353
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
354
354
|
def self.from_hash(hash)
|
|
355
|
-
new(document: hash[:document] || hash[
|
|
355
|
+
new(document: hash[:document] || hash["document"])
|
|
356
356
|
end
|
|
357
357
|
end
|
|
358
358
|
|
|
@@ -381,7 +381,7 @@ module LiterLlm
|
|
|
381
381
|
# @return [self]
|
|
382
382
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
383
383
|
def self.from_hash(hash)
|
|
384
|
-
new(input_audio: hash[:input_audio] || hash[
|
|
384
|
+
new(input_audio: hash[:input_audio] || hash["input_audio"])
|
|
385
385
|
end
|
|
386
386
|
end
|
|
387
387
|
end
|
|
@@ -399,11 +399,11 @@ module LiterLlm
|
|
|
399
399
|
# @return [variant_class] an instance of the appropriate variant
|
|
400
400
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
401
401
|
def self.from_hash(hash)
|
|
402
|
-
discriminator = hash[:type] || hash[
|
|
402
|
+
discriminator = hash[:type] || hash["type"]
|
|
403
403
|
case discriminator
|
|
404
|
-
when
|
|
405
|
-
when
|
|
406
|
-
when
|
|
404
|
+
when "text" then ResponseFormatText.from_hash(hash)
|
|
405
|
+
when "json_object" then ResponseFormatJsonObject.from_hash(hash)
|
|
406
|
+
when "json_schema" then ResponseFormatJsonSchema.from_hash(hash)
|
|
407
407
|
else raise "Unknown discriminator: #{discriminator}"
|
|
408
408
|
end
|
|
409
409
|
end
|
|
@@ -475,7 +475,7 @@ module LiterLlm
|
|
|
475
475
|
# @return [self]
|
|
476
476
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
477
477
|
def self.from_hash(hash)
|
|
478
|
-
new(json_schema: hash[:json_schema] || hash[
|
|
478
|
+
new(json_schema: hash[:json_schema] || hash["json_schema"])
|
|
479
479
|
end
|
|
480
480
|
end
|
|
481
481
|
end
|
|
@@ -493,10 +493,10 @@ module LiterLlm
|
|
|
493
493
|
# @return [variant_class] an instance of the appropriate variant
|
|
494
494
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
495
495
|
def self.from_hash(hash)
|
|
496
|
-
discriminator = hash[:type] || hash[
|
|
496
|
+
discriminator = hash[:type] || hash["type"]
|
|
497
497
|
case discriminator
|
|
498
|
-
when
|
|
499
|
-
when
|
|
498
|
+
when "document_url" then OcrDocumentUrl.from_hash(hash)
|
|
499
|
+
when "base64" then OcrDocumentBase64.from_hash(hash)
|
|
500
500
|
else raise "Unknown discriminator: #{discriminator}"
|
|
501
501
|
end
|
|
502
502
|
end
|
|
@@ -521,7 +521,7 @@ module LiterLlm
|
|
|
521
521
|
# @return [self]
|
|
522
522
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
523
523
|
def self.from_hash(hash)
|
|
524
|
-
new(url: hash[:url] || hash[
|
|
524
|
+
new(url: hash[:url] || hash["url"])
|
|
525
525
|
end
|
|
526
526
|
end
|
|
527
527
|
|
|
@@ -548,7 +548,7 @@ module LiterLlm
|
|
|
548
548
|
# @return [self]
|
|
549
549
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
550
550
|
def self.from_hash(hash)
|
|
551
|
-
new(data: hash[:data] || hash[
|
|
551
|
+
new(data: hash[:data] || hash["data"], media_type: hash[:media_type] || hash["media_type"])
|
|
552
552
|
end
|
|
553
553
|
end
|
|
554
554
|
end
|
|
@@ -566,10 +566,10 @@ module LiterLlm
|
|
|
566
566
|
# @return [variant_class] an instance of the appropriate variant
|
|
567
567
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
568
568
|
def self.from_hash(hash)
|
|
569
|
-
discriminator = hash[:type] || hash[
|
|
569
|
+
discriminator = hash[:type] || hash["type"]
|
|
570
570
|
case discriminator
|
|
571
|
-
when
|
|
572
|
-
when
|
|
571
|
+
when "memory" then CacheBackendMemory.from_hash(hash)
|
|
572
|
+
when "open_dal" then CacheBackendOpenDal.from_hash(hash)
|
|
573
573
|
else raise "Unknown discriminator: #{discriminator}"
|
|
574
574
|
end
|
|
575
575
|
end
|
|
@@ -617,7 +617,7 @@ module LiterLlm
|
|
|
617
617
|
# @return [self]
|
|
618
618
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
619
619
|
def self.from_hash(hash)
|
|
620
|
-
new(scheme: hash[:scheme] || hash[
|
|
620
|
+
new(scheme: hash[:scheme] || hash["scheme"], config: hash[:config] || hash["config"])
|
|
621
621
|
end
|
|
622
622
|
end
|
|
623
623
|
end
|
data/lib/liter_llm/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:43210bb1522b0a2e25b70264aa029964f8e4dfebe5ca69bb2bf0b1be3d791a5b
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
6
|
# frozen_string_literal: true
|
|
7
7
|
|
|
8
8
|
module LiterLlm
|
|
9
|
-
VERSION =
|
|
9
|
+
VERSION = "1.4.0.pre.rc.31"
|
|
10
10
|
end
|
data/lib/liter_llm.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:1bfbc98e9f45f9c4ddb5c1c3632aebdfb3f458e41d1c752045804068e525fd35
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify --exit-code
|
|
5
5
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
6
6
|
# frozen_string_literal: true
|
|
7
7
|
|
|
8
|
-
require_relative
|
|
9
|
-
require_relative
|
|
8
|
+
require_relative "liter_llm/version"
|
|
9
|
+
require_relative "liter_llm/native"
|
|
10
10
|
|
|
11
11
|
module LiterLlm
|
|
12
12
|
# Re-export all types and functions from native extension
|
data/lib/liter_llm_rb.so
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: liter_llm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.0.pre.rc.
|
|
4
|
+
version: 1.4.0.pre.rc.31
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-runtime
|