liter_llm 2.4.0-aarch64-linux → 2.4.2-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/lib/liter_llm/native.rb +16 -16
- data/lib/liter_llm/version.rb +2 -2
- data/lib/liter_llm_rb.so +2 -2
- data/sig/types.rbs +321 -8
- 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: 8183ed8265dce0f02fc8c777d5a524f58125b85810c08f3bd39c0c3cce1fb379
|
|
4
|
+
data.tar.gz: c8afcd9fd2d29138017db420f5291ca6511c959c964609ae7b41aac1259d87c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2989c31a694db6690edba486b1b2096a3672b3a6fc24c33312640a947a4b260af702555f34239cfe86957e96d030bc102e0fca78226704c108e00389259ddcc0
|
|
7
|
+
data.tar.gz: 3c23f8d573ca5c7e9739a1d54b349c3360ac0148454f3480e53ffedf3ed94fb42a0b1feb96194a7242b3c3f8e9f1e71f8b3828ca3c4437f11d1d55d5b9877192
|
data/lib/liter_llm/native.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:2ec0e6553bbcedb66f6c3024962b14e6abefa6fe12da4e3932e31f38aebab98b
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -80,7 +80,7 @@ module LiterLlm
|
|
|
80
80
|
# @return [self]
|
|
81
81
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
82
82
|
def self.from_hash(hash)
|
|
83
|
-
new(text: hash[:text]
|
|
83
|
+
new(text: hash.key?(:text) ? hash[:text] : hash["text"])
|
|
84
84
|
end
|
|
85
85
|
end
|
|
86
86
|
## A refusal — the model declined to respond.
|
|
@@ -103,7 +103,7 @@ module LiterLlm
|
|
|
103
103
|
# @return [self]
|
|
104
104
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
105
105
|
def self.from_hash(hash)
|
|
106
|
-
new(refusal: hash[:refusal]
|
|
106
|
+
new(refusal: hash.key?(:refusal) ? hash[:refusal] : hash["refusal"])
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
## An image produced by the model (e.g. `gpt-image-1`, Gemini Imagen).
|
|
@@ -126,7 +126,7 @@ module LiterLlm
|
|
|
126
126
|
# @return [self]
|
|
127
127
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
128
128
|
def self.from_hash(hash)
|
|
129
|
-
new(image_url: hash[:image_url]
|
|
129
|
+
new(image_url: hash.key?(:image_url) ? hash[:image_url] : hash["image_url"])
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
## Audio produced by the model (e.g. `gpt-4o-audio-preview`).
|
|
@@ -149,7 +149,7 @@ module LiterLlm
|
|
|
149
149
|
# @return [self]
|
|
150
150
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
151
151
|
def self.from_hash(hash)
|
|
152
|
-
new(audio: hash[:audio]
|
|
152
|
+
new(audio: hash.key?(:audio) ? hash[:audio] : hash["audio"])
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
155
|
end
|
|
@@ -210,7 +210,7 @@ module LiterLlm
|
|
|
210
210
|
# @return [self]
|
|
211
211
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
212
212
|
def self.from_hash(hash)
|
|
213
|
-
new(scheme: hash[:scheme]
|
|
213
|
+
new(scheme: hash.key?(:scheme) ? hash[:scheme] : hash["scheme"], config: hash.key?(:config) ? hash[:config] : hash["config"])
|
|
214
214
|
end
|
|
215
215
|
end
|
|
216
216
|
end
|
|
@@ -258,7 +258,7 @@ module LiterLlm
|
|
|
258
258
|
# @return [self]
|
|
259
259
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
260
260
|
def self.from_hash(hash)
|
|
261
|
-
new(text: hash[:text]
|
|
261
|
+
new(text: hash.key?(:text) ? hash[:text] : hash["text"])
|
|
262
262
|
end
|
|
263
263
|
end
|
|
264
264
|
## Image identified by URL (with optional detail level).
|
|
@@ -281,7 +281,7 @@ module LiterLlm
|
|
|
281
281
|
# @return [self]
|
|
282
282
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
283
283
|
def self.from_hash(hash)
|
|
284
|
-
new(image_url: hash[:image_url]
|
|
284
|
+
new(image_url: hash.key?(:image_url) ? hash[:image_url] : hash["image_url"])
|
|
285
285
|
end
|
|
286
286
|
end
|
|
287
287
|
## Document file (PDF, CSV, etc.) as base64 or URL.
|
|
@@ -304,7 +304,7 @@ module LiterLlm
|
|
|
304
304
|
# @return [self]
|
|
305
305
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
306
306
|
def self.from_hash(hash)
|
|
307
|
-
new(document: hash[:document]
|
|
307
|
+
new(document: hash.key?(:document) ? hash[:document] : hash["document"])
|
|
308
308
|
end
|
|
309
309
|
end
|
|
310
310
|
## Audio input as base64.
|
|
@@ -327,7 +327,7 @@ module LiterLlm
|
|
|
327
327
|
# @return [self]
|
|
328
328
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
329
329
|
def self.from_hash(hash)
|
|
330
|
-
new(input_audio: hash[:input_audio]
|
|
330
|
+
new(input_audio: hash.key?(:input_audio) ? hash[:input_audio] : hash["input_audio"])
|
|
331
331
|
end
|
|
332
332
|
end
|
|
333
333
|
end
|
|
@@ -372,7 +372,7 @@ module LiterLlm
|
|
|
372
372
|
# @return [self]
|
|
373
373
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
374
374
|
def self.from_hash(hash)
|
|
375
|
-
new(text: hash[:text]
|
|
375
|
+
new(text: hash.key?(:text) ? hash[:text] : hash["text"])
|
|
376
376
|
end
|
|
377
377
|
end
|
|
378
378
|
## Image identified by a data URL or HTTP/HTTPS URL.
|
|
@@ -393,7 +393,7 @@ module LiterLlm
|
|
|
393
393
|
# @return [self]
|
|
394
394
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
395
395
|
def self.from_hash(hash)
|
|
396
|
-
new(image_url: hash[:image_url]
|
|
396
|
+
new(image_url: hash.key?(:image_url) ? hash[:image_url] : hash["image_url"])
|
|
397
397
|
end
|
|
398
398
|
end
|
|
399
399
|
## Image encoded as a complete data URL.
|
|
@@ -414,7 +414,7 @@ module LiterLlm
|
|
|
414
414
|
# @return [self]
|
|
415
415
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
416
416
|
def self.from_hash(hash)
|
|
417
|
-
new(image_base64: hash[:image_base64]
|
|
417
|
+
new(image_base64: hash.key?(:image_base64) ? hash[:image_base64] : hash["image_base64"])
|
|
418
418
|
end
|
|
419
419
|
end
|
|
420
420
|
end
|
|
@@ -651,7 +651,7 @@ module LiterLlm
|
|
|
651
651
|
# @return [self]
|
|
652
652
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
653
653
|
def self.from_hash(hash)
|
|
654
|
-
new(url: hash[:url]
|
|
654
|
+
new(url: hash.key?(:url) ? hash[:url] : hash["url"])
|
|
655
655
|
end
|
|
656
656
|
end
|
|
657
657
|
## Inline base64-encoded document data.
|
|
@@ -673,7 +673,7 @@ module LiterLlm
|
|
|
673
673
|
# @return [self]
|
|
674
674
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
675
675
|
def self.from_hash(hash)
|
|
676
|
-
new(data: hash[:data]
|
|
676
|
+
new(data: hash.key?(:data) ? hash[:data] : hash["data"], media_type: hash.key?(:media_type) ? hash[:media_type] : hash["media_type"])
|
|
677
677
|
end
|
|
678
678
|
end
|
|
679
679
|
end
|
|
@@ -769,7 +769,7 @@ module LiterLlm
|
|
|
769
769
|
# @return [self]
|
|
770
770
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
771
771
|
def self.from_hash(hash)
|
|
772
|
-
new(json_schema: hash[:json_schema]
|
|
772
|
+
new(json_schema: hash.key?(:json_schema) ? hash[:json_schema] : hash["json_schema"])
|
|
773
773
|
end
|
|
774
774
|
end
|
|
775
775
|
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:c89495466c65186e43ff5f42c4f53d168e8052f4596c5b279eb42c2216e42e7e
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module LiterLlm
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "2.4.
|
|
9
|
+
VERSION = "2.4.2"
|
|
10
10
|
end
|
data/lib/liter_llm_rb.so
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/liter_llm_rb.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 37502664 bytes
|
|
4
|
+
sha256: 0d877f271d886dc0f5ef96fb466ed57187960e250123f73aa29218c72e71fcc5
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:0cefba00d6fed9bda30333573b644b571f0f024e4984d23c65a5835b4510c46b
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -981,7 +981,60 @@ module LiterLlm
|
|
|
981
981
|
class AssistantContent
|
|
982
982
|
end
|
|
983
983
|
|
|
984
|
-
|
|
984
|
+
module AssistantPart
|
|
985
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
class AssistantPartText
|
|
989
|
+
include AssistantPart
|
|
990
|
+
attr_reader text: String
|
|
991
|
+
|
|
992
|
+
def text?: () -> bool
|
|
993
|
+
def refusal?: () -> bool
|
|
994
|
+
def output_image?: () -> bool
|
|
995
|
+
def output_audio?: () -> bool
|
|
996
|
+
|
|
997
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
998
|
+
def self.new: (text: String) -> AssistantPartText
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
class AssistantPartRefusal
|
|
1002
|
+
include AssistantPart
|
|
1003
|
+
attr_reader refusal: String
|
|
1004
|
+
|
|
1005
|
+
def text?: () -> bool
|
|
1006
|
+
def refusal?: () -> bool
|
|
1007
|
+
def output_image?: () -> bool
|
|
1008
|
+
def output_audio?: () -> bool
|
|
1009
|
+
|
|
1010
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1011
|
+
def self.new: (refusal: String) -> AssistantPartRefusal
|
|
1012
|
+
end
|
|
1013
|
+
|
|
1014
|
+
class AssistantPartOutputImage
|
|
1015
|
+
include AssistantPart
|
|
1016
|
+
attr_reader image_url: ImageUrl
|
|
1017
|
+
|
|
1018
|
+
def text?: () -> bool
|
|
1019
|
+
def refusal?: () -> bool
|
|
1020
|
+
def output_image?: () -> bool
|
|
1021
|
+
def output_audio?: () -> bool
|
|
1022
|
+
|
|
1023
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1024
|
+
def self.new: (image_url: ImageUrl) -> AssistantPartOutputImage
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
class AssistantPartOutputAudio
|
|
1028
|
+
include AssistantPart
|
|
1029
|
+
attr_reader audio: AudioContent
|
|
1030
|
+
|
|
1031
|
+
def text?: () -> bool
|
|
1032
|
+
def refusal?: () -> bool
|
|
1033
|
+
def output_image?: () -> bool
|
|
1034
|
+
def output_audio?: () -> bool
|
|
1035
|
+
|
|
1036
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1037
|
+
def self.new: (audio: AudioContent) -> AssistantPartOutputAudio
|
|
985
1038
|
end
|
|
986
1039
|
|
|
987
1040
|
class AuthHeaderFormat
|
|
@@ -991,15 +1044,127 @@ module LiterLlm
|
|
|
991
1044
|
|
|
992
1045
|
type enum_BatchStatus = :validating | :failed | :in_progress | :finalizing | :completed | :expired | :cancelling | :cancelled
|
|
993
1046
|
|
|
994
|
-
|
|
1047
|
+
module CacheBackend
|
|
1048
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
class CacheBackendMemory
|
|
1052
|
+
include CacheBackend
|
|
1053
|
+
def memory?: () -> bool
|
|
1054
|
+
def open_dal?: () -> bool
|
|
1055
|
+
|
|
1056
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1057
|
+
def self.new: -> CacheBackendMemory
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
class CacheBackendOpenDal
|
|
1061
|
+
include CacheBackend
|
|
1062
|
+
attr_reader scheme: String
|
|
1063
|
+
attr_reader config: Hash[String, String]
|
|
1064
|
+
|
|
1065
|
+
def memory?: () -> bool
|
|
1066
|
+
def open_dal?: () -> bool
|
|
1067
|
+
|
|
1068
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1069
|
+
def self.new: (scheme: String, config: Hash[String, String]) -> CacheBackendOpenDal
|
|
995
1070
|
end
|
|
996
1071
|
|
|
997
1072
|
type enum_CircuitState = :Closed | :Open | :HalfOpen
|
|
998
1073
|
|
|
999
|
-
|
|
1074
|
+
module ContentPart
|
|
1075
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
class ContentPartText
|
|
1079
|
+
include ContentPart
|
|
1080
|
+
attr_reader text: String
|
|
1081
|
+
|
|
1082
|
+
def text?: () -> bool
|
|
1083
|
+
def image_url?: () -> bool
|
|
1084
|
+
def document?: () -> bool
|
|
1085
|
+
def input_audio?: () -> bool
|
|
1086
|
+
|
|
1087
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1088
|
+
def self.new: (text: String) -> ContentPartText
|
|
1000
1089
|
end
|
|
1001
1090
|
|
|
1002
|
-
class
|
|
1091
|
+
class ContentPartImageUrl
|
|
1092
|
+
include ContentPart
|
|
1093
|
+
attr_reader image_url: ImageUrl
|
|
1094
|
+
|
|
1095
|
+
def text?: () -> bool
|
|
1096
|
+
def image_url?: () -> bool
|
|
1097
|
+
def document?: () -> bool
|
|
1098
|
+
def input_audio?: () -> bool
|
|
1099
|
+
|
|
1100
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1101
|
+
def self.new: (image_url: ImageUrl) -> ContentPartImageUrl
|
|
1102
|
+
end
|
|
1103
|
+
|
|
1104
|
+
class ContentPartDocument
|
|
1105
|
+
include ContentPart
|
|
1106
|
+
attr_reader document: DocumentContent
|
|
1107
|
+
|
|
1108
|
+
def text?: () -> bool
|
|
1109
|
+
def image_url?: () -> bool
|
|
1110
|
+
def document?: () -> bool
|
|
1111
|
+
def input_audio?: () -> bool
|
|
1112
|
+
|
|
1113
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1114
|
+
def self.new: (document: DocumentContent) -> ContentPartDocument
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
class ContentPartInputAudio
|
|
1118
|
+
include ContentPart
|
|
1119
|
+
attr_reader input_audio: AudioContent
|
|
1120
|
+
|
|
1121
|
+
def text?: () -> bool
|
|
1122
|
+
def image_url?: () -> bool
|
|
1123
|
+
def document?: () -> bool
|
|
1124
|
+
def input_audio?: () -> bool
|
|
1125
|
+
|
|
1126
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1127
|
+
def self.new: (input_audio: AudioContent) -> ContentPartInputAudio
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
module EmbeddingContentPart
|
|
1131
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1134
|
+
class EmbeddingContentPartText
|
|
1135
|
+
include EmbeddingContentPart
|
|
1136
|
+
attr_reader text: String
|
|
1137
|
+
|
|
1138
|
+
def text?: () -> bool
|
|
1139
|
+
def image_url?: () -> bool
|
|
1140
|
+
def image_base64?: () -> bool
|
|
1141
|
+
|
|
1142
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1143
|
+
def self.new: (text: String) -> EmbeddingContentPartText
|
|
1144
|
+
end
|
|
1145
|
+
|
|
1146
|
+
class EmbeddingContentPartImageUrl
|
|
1147
|
+
include EmbeddingContentPart
|
|
1148
|
+
attr_reader image_url: ImageUrl
|
|
1149
|
+
|
|
1150
|
+
def text?: () -> bool
|
|
1151
|
+
def image_url?: () -> bool
|
|
1152
|
+
def image_base64?: () -> bool
|
|
1153
|
+
|
|
1154
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1155
|
+
def self.new: (image_url: ImageUrl) -> EmbeddingContentPartImageUrl
|
|
1156
|
+
end
|
|
1157
|
+
|
|
1158
|
+
class EmbeddingContentPartImageBase64
|
|
1159
|
+
include EmbeddingContentPart
|
|
1160
|
+
attr_reader image_base64: String
|
|
1161
|
+
|
|
1162
|
+
def text?: () -> bool
|
|
1163
|
+
def image_url?: () -> bool
|
|
1164
|
+
def image_base64?: () -> bool
|
|
1165
|
+
|
|
1166
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1167
|
+
def self.new: (image_base64: String) -> EmbeddingContentPartImageBase64
|
|
1003
1168
|
end
|
|
1004
1169
|
|
|
1005
1170
|
type enum_EmbeddingFormat = :float | :base64
|
|
@@ -1017,7 +1182,98 @@ module LiterLlm
|
|
|
1017
1182
|
|
|
1018
1183
|
type enum_ImageDetail = :low | :high | :auto
|
|
1019
1184
|
|
|
1020
|
-
|
|
1185
|
+
module Message
|
|
1186
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
class MessageSystem
|
|
1190
|
+
include Message
|
|
1191
|
+
attr_reader value: SystemMessage
|
|
1192
|
+
|
|
1193
|
+
def system?: () -> bool
|
|
1194
|
+
def user?: () -> bool
|
|
1195
|
+
def assistant?: () -> bool
|
|
1196
|
+
def tool?: () -> bool
|
|
1197
|
+
def developer?: () -> bool
|
|
1198
|
+
def function?: () -> bool
|
|
1199
|
+
|
|
1200
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1201
|
+
def self.new: (value: SystemMessage) -> MessageSystem
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
class MessageUser
|
|
1205
|
+
include Message
|
|
1206
|
+
attr_reader value: UserMessage
|
|
1207
|
+
|
|
1208
|
+
def system?: () -> bool
|
|
1209
|
+
def user?: () -> bool
|
|
1210
|
+
def assistant?: () -> bool
|
|
1211
|
+
def tool?: () -> bool
|
|
1212
|
+
def developer?: () -> bool
|
|
1213
|
+
def function?: () -> bool
|
|
1214
|
+
|
|
1215
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1216
|
+
def self.new: (value: UserMessage) -> MessageUser
|
|
1217
|
+
end
|
|
1218
|
+
|
|
1219
|
+
class MessageAssistant
|
|
1220
|
+
include Message
|
|
1221
|
+
attr_reader value: AssistantMessage
|
|
1222
|
+
|
|
1223
|
+
def system?: () -> bool
|
|
1224
|
+
def user?: () -> bool
|
|
1225
|
+
def assistant?: () -> bool
|
|
1226
|
+
def tool?: () -> bool
|
|
1227
|
+
def developer?: () -> bool
|
|
1228
|
+
def function?: () -> bool
|
|
1229
|
+
|
|
1230
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1231
|
+
def self.new: (value: AssistantMessage) -> MessageAssistant
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
class MessageTool
|
|
1235
|
+
include Message
|
|
1236
|
+
attr_reader value: ToolMessage
|
|
1237
|
+
|
|
1238
|
+
def system?: () -> bool
|
|
1239
|
+
def user?: () -> bool
|
|
1240
|
+
def assistant?: () -> bool
|
|
1241
|
+
def tool?: () -> bool
|
|
1242
|
+
def developer?: () -> bool
|
|
1243
|
+
def function?: () -> bool
|
|
1244
|
+
|
|
1245
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1246
|
+
def self.new: (value: ToolMessage) -> MessageTool
|
|
1247
|
+
end
|
|
1248
|
+
|
|
1249
|
+
class MessageDeveloper
|
|
1250
|
+
include Message
|
|
1251
|
+
attr_reader value: DeveloperMessage
|
|
1252
|
+
|
|
1253
|
+
def system?: () -> bool
|
|
1254
|
+
def user?: () -> bool
|
|
1255
|
+
def assistant?: () -> bool
|
|
1256
|
+
def tool?: () -> bool
|
|
1257
|
+
def developer?: () -> bool
|
|
1258
|
+
def function?: () -> bool
|
|
1259
|
+
|
|
1260
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1261
|
+
def self.new: (value: DeveloperMessage) -> MessageDeveloper
|
|
1262
|
+
end
|
|
1263
|
+
|
|
1264
|
+
class MessageFunction
|
|
1265
|
+
include Message
|
|
1266
|
+
attr_reader value: FunctionMessage
|
|
1267
|
+
|
|
1268
|
+
def system?: () -> bool
|
|
1269
|
+
def user?: () -> bool
|
|
1270
|
+
def assistant?: () -> bool
|
|
1271
|
+
def tool?: () -> bool
|
|
1272
|
+
def developer?: () -> bool
|
|
1273
|
+
def function?: () -> bool
|
|
1274
|
+
|
|
1275
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1276
|
+
def self.new: (value: FunctionMessage) -> MessageFunction
|
|
1021
1277
|
end
|
|
1022
1278
|
|
|
1023
1279
|
type enum_Modality = :text | :audio | :image
|
|
@@ -1025,7 +1281,31 @@ module LiterLlm
|
|
|
1025
1281
|
class ModerationInput
|
|
1026
1282
|
end
|
|
1027
1283
|
|
|
1028
|
-
|
|
1284
|
+
module OcrDocument
|
|
1285
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
class OcrDocumentUrl
|
|
1289
|
+
include OcrDocument
|
|
1290
|
+
attr_reader url: String
|
|
1291
|
+
|
|
1292
|
+
def url?: () -> bool
|
|
1293
|
+
def base64?: () -> bool
|
|
1294
|
+
|
|
1295
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1296
|
+
def self.new: (url: String) -> OcrDocumentUrl
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
|
+
class OcrDocumentBase64
|
|
1300
|
+
include OcrDocument
|
|
1301
|
+
attr_reader data: String
|
|
1302
|
+
attr_reader media_type: String
|
|
1303
|
+
|
|
1304
|
+
def url?: () -> bool
|
|
1305
|
+
def base64?: () -> bool
|
|
1306
|
+
|
|
1307
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1308
|
+
def self.new: (data: String, media_type: String) -> OcrDocumentBase64
|
|
1029
1309
|
end
|
|
1030
1310
|
|
|
1031
1311
|
type enum_ReasoningEffort = :low | :medium | :high | :minimal | :max | :none
|
|
@@ -1037,7 +1317,40 @@ module LiterLlm
|
|
|
1037
1317
|
|
|
1038
1318
|
end
|
|
1039
1319
|
|
|
1040
|
-
|
|
1320
|
+
module ResponseFormat
|
|
1321
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
class ResponseFormatText
|
|
1325
|
+
include ResponseFormat
|
|
1326
|
+
def text?: () -> bool
|
|
1327
|
+
def json_object?: () -> bool
|
|
1328
|
+
def json_schema?: () -> bool
|
|
1329
|
+
|
|
1330
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1331
|
+
def self.new: -> ResponseFormatText
|
|
1332
|
+
end
|
|
1333
|
+
|
|
1334
|
+
class ResponseFormatJsonObject
|
|
1335
|
+
include ResponseFormat
|
|
1336
|
+
def text?: () -> bool
|
|
1337
|
+
def json_object?: () -> bool
|
|
1338
|
+
def json_schema?: () -> bool
|
|
1339
|
+
|
|
1340
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1341
|
+
def self.new: -> ResponseFormatJsonObject
|
|
1342
|
+
end
|
|
1343
|
+
|
|
1344
|
+
class ResponseFormatJsonSchema
|
|
1345
|
+
include ResponseFormat
|
|
1346
|
+
attr_reader json_schema: JsonSchemaFormat
|
|
1347
|
+
|
|
1348
|
+
def text?: () -> bool
|
|
1349
|
+
def json_object?: () -> bool
|
|
1350
|
+
def json_schema?: () -> bool
|
|
1351
|
+
|
|
1352
|
+
def self.from_hash: (untyped hash) -> untyped
|
|
1353
|
+
def self.new: (json_schema: JsonSchemaFormat) -> ResponseFormatJsonSchema
|
|
1041
1354
|
end
|
|
1042
1355
|
|
|
1043
1356
|
class StopSequence
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: liter_llm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.2
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-10-
|
|
12
|
+
date: 2026-10-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sorbet-runtime
|