liter_llm 2.0.2-aarch64-linux → 2.1.0-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92a93462b7c34c2722e5db24902bfdc063e52236169fff2f9a2cfa129646adce
4
- data.tar.gz: c1576c8ec6af00f88d7f53c5b8af6db47fe543bd66408f5d1dfb389cdc857ec9
3
+ metadata.gz: f4daf5fff3250e7287c86bc008cc6cc16ebcd5f56ba1aed201f011831be4393c
4
+ data.tar.gz: 10c67bec127723a3084ee785cda5828642cc38583705898647e8583584fa5dc7
5
5
  SHA512:
6
- metadata.gz: f564b6dc6bc4e4db18ae54ce427723d6ef110a658d2e80d22756aee8d44213e4ec4eb278c801fc43704408837f587c09528067f2ccc7bc563b565562e8ff397e
7
- data.tar.gz: e0bb40ebdfc604422bec9cd0a1ac2b2c09c1295dfdbe16bfaae1ee5c277153bf835cac8efe590c06e38b2a06e9e40af7b866d7f9dec76d0ac6693feeeb610130
6
+ metadata.gz: bd39f71883013c84bfd0d309548ef807efeeaaea5e1f9319d66855dc068e31470974797f0bed51f7d76af5197463c0d961074fd3aee43689de0a31fe620550b1
7
+ data.tar.gz: 072ca16357f0c92ba6151bc60d213cdd4e236803ff1462ed0724e72dfe2ae3e8074214894ff212710100e0c90c42b18d16f02381b26eb5242f8fbe7715c28078
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:7741a503ea5d9c58eaf8bc26506efdb605765d05e5cf3030e50b7ac601e9d829
2
+ # alef:hash:f9c34cee048c81df48cda37154d91613e0dca5c6757b38ff6b06a71c11ef3266
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
  # frozen_string_literal: true
@@ -67,7 +67,7 @@ module LiterLlm
67
67
 
68
68
  # The text content of this part.
69
69
  sig { returns(String) }
70
- def text = super # rubocop:disable Lint/UselessMethodDefinition
70
+ def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
71
71
  sig { returns(T::Boolean) }
72
72
  def text? = true
73
73
  sig { returns(T::Boolean) }
@@ -90,7 +90,7 @@ module LiterLlm
90
90
 
91
91
  # The refusal reason.
92
92
  sig { returns(String) }
93
- def refusal = super # rubocop:disable Lint/UselessMethodDefinition
93
+ def refusal = Data.instance_method(:to_h).bind_call(self).fetch(:refusal)
94
94
  sig { returns(T::Boolean) }
95
95
  def text? = false
96
96
  sig { returns(T::Boolean) }
@@ -113,7 +113,7 @@ module LiterLlm
113
113
 
114
114
  # Image URL or data URI referencing the generated image.
115
115
  sig { returns(ImageUrl) }
116
- def image_url = super # rubocop:disable Lint/UselessMethodDefinition
116
+ def image_url = Data.instance_method(:to_h).bind_call(self).fetch(:image_url)
117
117
  sig { returns(T::Boolean) }
118
118
  def text? = false
119
119
  sig { returns(T::Boolean) }
@@ -136,7 +136,7 @@ module LiterLlm
136
136
 
137
137
  # Base64-encoded audio data and its format.
138
138
  sig { returns(AudioContent) }
139
- def audio = super # rubocop:disable Lint/UselessMethodDefinition
139
+ def audio = Data.instance_method(:to_h).bind_call(self).fetch(:audio)
140
140
  sig { returns(T::Boolean) }
141
141
  def text? = false
142
142
  sig { returns(T::Boolean) }
@@ -198,10 +198,10 @@ module LiterLlm
198
198
 
199
199
  # OpenDAL scheme name (e.g. "s3", "redis", "fs", "gcs", "azblob").
200
200
  sig { returns(String) }
201
- def scheme = super # rubocop:disable Lint/UselessMethodDefinition
201
+ def scheme = Data.instance_method(:to_h).bind_call(self).fetch(:scheme)
202
202
  # Backend-specific configuration as key-value pairs passed to OpenDAL.
203
203
  sig { returns(T::Hash[String, String]) }
204
- def config = super # rubocop:disable Lint/UselessMethodDefinition
204
+ def config = Data.instance_method(:to_h).bind_call(self).fetch(:config)
205
205
  sig { returns(T::Boolean) }
206
206
  def memory? = false
207
207
  sig { returns(T::Boolean) }
@@ -245,7 +245,7 @@ module LiterLlm
245
245
 
246
246
  # @return [String]
247
247
  sig { returns(String) }
248
- def text = super # rubocop:disable Lint/UselessMethodDefinition
248
+ def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
249
249
  sig { returns(T::Boolean) }
250
250
  def text? = true
251
251
  sig { returns(T::Boolean) }
@@ -268,7 +268,7 @@ module LiterLlm
268
268
 
269
269
  # @return [ImageUrl]
270
270
  sig { returns(ImageUrl) }
271
- def image_url = super # rubocop:disable Lint/UselessMethodDefinition
271
+ def image_url = Data.instance_method(:to_h).bind_call(self).fetch(:image_url)
272
272
  sig { returns(T::Boolean) }
273
273
  def text? = false
274
274
  sig { returns(T::Boolean) }
@@ -291,7 +291,7 @@ module LiterLlm
291
291
 
292
292
  # @return [DocumentContent]
293
293
  sig { returns(DocumentContent) }
294
- def document = super # rubocop:disable Lint/UselessMethodDefinition
294
+ def document = Data.instance_method(:to_h).bind_call(self).fetch(:document)
295
295
  sig { returns(T::Boolean) }
296
296
  def text? = false
297
297
  sig { returns(T::Boolean) }
@@ -314,7 +314,7 @@ module LiterLlm
314
314
 
315
315
  # @return [AudioContent]
316
316
  sig { returns(AudioContent) }
317
- def input_audio = super # rubocop:disable Lint/UselessMethodDefinition
317
+ def input_audio = Data.instance_method(:to_h).bind_call(self).fetch(:input_audio)
318
318
  sig { returns(T::Boolean) }
319
319
  def text? = false
320
320
  sig { returns(T::Boolean) }
@@ -361,7 +361,7 @@ module LiterLlm
361
361
 
362
362
  # @return [String]
363
363
  sig { returns(String) }
364
- def text = super # rubocop:disable Lint/UselessMethodDefinition
364
+ def text = Data.instance_method(:to_h).bind_call(self).fetch(:text)
365
365
  sig { returns(T::Boolean) }
366
366
  def text? = true
367
367
  sig { returns(T::Boolean) }
@@ -382,7 +382,7 @@ module LiterLlm
382
382
 
383
383
  # @return [ImageUrl]
384
384
  sig { returns(ImageUrl) }
385
- def image_url = super # rubocop:disable Lint/UselessMethodDefinition
385
+ def image_url = Data.instance_method(:to_h).bind_call(self).fetch(:image_url)
386
386
  sig { returns(T::Boolean) }
387
387
  def text? = false
388
388
  sig { returns(T::Boolean) }
@@ -403,7 +403,7 @@ module LiterLlm
403
403
 
404
404
  # @return [String]
405
405
  sig { returns(String) }
406
- def image_base64 = super # rubocop:disable Lint/UselessMethodDefinition
406
+ def image_base64 = Data.instance_method(:to_h).bind_call(self).fetch(:image_base64)
407
407
  sig { returns(T::Boolean) }
408
408
  def text? = false
409
409
  sig { returns(T::Boolean) }
@@ -451,7 +451,7 @@ module LiterLlm
451
451
 
452
452
  # @return [SystemMessage]
453
453
  sig { returns(SystemMessage) }
454
- def value = super # rubocop:disable Lint/UselessMethodDefinition
454
+ def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
455
455
  sig { returns(T::Boolean) }
456
456
  def system? = true
457
457
  sig { returns(T::Boolean) }
@@ -468,7 +468,8 @@ module LiterLlm
468
468
  # @return [self]
469
469
  sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
470
470
  def self.from_hash(hash)
471
- new(value: hash[:_0] || hash["_0"])
471
+ payload = hash.reject { |key, _| key.to_s == "role" }.transform_keys(&:to_sym)
472
+ new(value: SystemMessage.new(payload))
472
473
  end
473
474
  end
474
475
  ## Variant MessageUser of the Message sum type.
@@ -478,7 +479,7 @@ module LiterLlm
478
479
 
479
480
  # @return [UserMessage]
480
481
  sig { returns(UserMessage) }
481
- def value = super # rubocop:disable Lint/UselessMethodDefinition
482
+ def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
482
483
  sig { returns(T::Boolean) }
483
484
  def system? = false
484
485
  sig { returns(T::Boolean) }
@@ -495,7 +496,8 @@ module LiterLlm
495
496
  # @return [self]
496
497
  sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
497
498
  def self.from_hash(hash)
498
- new(value: hash[:_0] || hash["_0"])
499
+ payload = hash.reject { |key, _| key.to_s == "role" }.transform_keys(&:to_sym)
500
+ new(value: UserMessage.new(payload))
499
501
  end
500
502
  end
501
503
  ## Variant MessageAssistant of the Message sum type.
@@ -505,7 +507,7 @@ module LiterLlm
505
507
 
506
508
  # @return [AssistantMessage]
507
509
  sig { returns(AssistantMessage) }
508
- def value = super # rubocop:disable Lint/UselessMethodDefinition
510
+ def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
509
511
  sig { returns(T::Boolean) }
510
512
  def system? = false
511
513
  sig { returns(T::Boolean) }
@@ -522,7 +524,8 @@ module LiterLlm
522
524
  # @return [self]
523
525
  sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
524
526
  def self.from_hash(hash)
525
- new(value: hash[:_0] || hash["_0"])
527
+ payload = hash.reject { |key, _| key.to_s == "role" }.transform_keys(&:to_sym)
528
+ new(value: AssistantMessage.new(payload))
526
529
  end
527
530
  end
528
531
  ## Variant MessageTool of the Message sum type.
@@ -532,7 +535,7 @@ module LiterLlm
532
535
 
533
536
  # @return [ToolMessage]
534
537
  sig { returns(ToolMessage) }
535
- def value = super # rubocop:disable Lint/UselessMethodDefinition
538
+ def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
536
539
  sig { returns(T::Boolean) }
537
540
  def system? = false
538
541
  sig { returns(T::Boolean) }
@@ -549,7 +552,8 @@ module LiterLlm
549
552
  # @return [self]
550
553
  sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
551
554
  def self.from_hash(hash)
552
- new(value: hash[:_0] || hash["_0"])
555
+ payload = hash.reject { |key, _| key.to_s == "role" }.transform_keys(&:to_sym)
556
+ new(value: ToolMessage.new(payload))
553
557
  end
554
558
  end
555
559
  ## Variant MessageDeveloper of the Message sum type.
@@ -559,7 +563,7 @@ module LiterLlm
559
563
 
560
564
  # @return [DeveloperMessage]
561
565
  sig { returns(DeveloperMessage) }
562
- def value = super # rubocop:disable Lint/UselessMethodDefinition
566
+ def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
563
567
  sig { returns(T::Boolean) }
564
568
  def system? = false
565
569
  sig { returns(T::Boolean) }
@@ -576,7 +580,8 @@ module LiterLlm
576
580
  # @return [self]
577
581
  sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
578
582
  def self.from_hash(hash)
579
- new(value: hash[:_0] || hash["_0"])
583
+ payload = hash.reject { |key, _| key.to_s == "role" }.transform_keys(&:to_sym)
584
+ new(value: DeveloperMessage.new(payload))
580
585
  end
581
586
  end
582
587
  ## Deprecated legacy function-role message; retained for API compatibility.
@@ -586,7 +591,7 @@ module LiterLlm
586
591
 
587
592
  # @return [FunctionMessage]
588
593
  sig { returns(FunctionMessage) }
589
- def value = super # rubocop:disable Lint/UselessMethodDefinition
594
+ def value = Data.instance_method(:to_h).bind_call(self).fetch(:value)
590
595
  sig { returns(T::Boolean) }
591
596
  def system? = false
592
597
  sig { returns(T::Boolean) }
@@ -603,7 +608,8 @@ module LiterLlm
603
608
  # @return [self]
604
609
  sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
605
610
  def self.from_hash(hash)
606
- new(value: hash[:_0] || hash["_0"])
611
+ payload = hash.reject { |key, _| key.to_s == "role" }.transform_keys(&:to_sym)
612
+ new(value: FunctionMessage.new(payload))
607
613
  end
608
614
  end
609
615
  end
@@ -636,7 +642,7 @@ module LiterLlm
636
642
 
637
643
  # The document URL (HTTP/HTTPS).
638
644
  sig { returns(String) }
639
- def url = super # rubocop:disable Lint/UselessMethodDefinition
645
+ def url = Data.instance_method(:to_h).bind_call(self).fetch(:url)
640
646
  sig { returns(T::Boolean) }
641
647
  def url? = true
642
648
  sig { returns(T::Boolean) }
@@ -655,10 +661,10 @@ module LiterLlm
655
661
 
656
662
  # Base64-encoded document content.
657
663
  sig { returns(String) }
658
- def data = super # rubocop:disable Lint/UselessMethodDefinition
664
+ def data = Data.instance_method(:to_h).bind_call(self).fetch(:data)
659
665
  # MIME type (e.g. `"application/pdf"`, `"image/png"`, `"image/jpeg"`).
660
666
  sig { returns(String) }
661
- def media_type = super # rubocop:disable Lint/UselessMethodDefinition
667
+ def media_type = Data.instance_method(:to_h).bind_call(self).fetch(:media_type)
662
668
  sig { returns(T::Boolean) }
663
669
  def url? = false
664
670
  sig { returns(T::Boolean) }
@@ -752,7 +758,7 @@ module LiterLlm
752
758
 
753
759
  # @return [JsonSchemaFormat]
754
760
  sig { returns(JsonSchemaFormat) }
755
- def json_schema = super # rubocop:disable Lint/UselessMethodDefinition
761
+ def json_schema = Data.instance_method(:to_h).bind_call(self).fetch(:json_schema)
756
762
  sig { returns(T::Boolean) }
757
763
  def text? = false
758
764
  sig { returns(T::Boolean) }
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:9e5d3282aa54b47497b8bb50966a0a4fb84dbcc26ed1efcdcc0aee60b4b5e50f
2
+ # alef:hash:255ad57888389e715408840023ca11140a5ae7727059c28a47c9d9f68b90bdf4
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.0.2"
9
+ VERSION = "2.1.0"
10
10
  end
data/lib/liter_llm_rb.so CHANGED
Binary file
data/sig/types.rbs CHANGED
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:2c4e23900a6d739df8c41fa82bcf1fb95bdc6ce16fd9870d19f1498c0a97f4ca
2
+ # alef:hash:7da61d9dc1d0d9879fe5db611ee4b5a2abf07cd3f806331e8137f8385bba9527
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
@@ -33,10 +33,10 @@ module LiterLlm
33
33
  end
34
34
 
35
35
  class AuthConfig
36
- attr_reader auth_type: AuthType
36
+ attr_reader auth_type: enum_AuthType
37
37
  attr_reader env_var: String?
38
38
 
39
- def initialize: (auth_type: AuthType, ?env_var: String) -> void
39
+ def initialize: (auth_type: enum_AuthType, ?env_var: String) -> void
40
40
  end
41
41
 
42
42
  class BatchListQuery
@@ -62,7 +62,7 @@ module LiterLlm
62
62
  attr_reader endpoint: String
63
63
  attr_reader input_file_id: String
64
64
  attr_reader completion_window: String
65
- attr_reader status: BatchStatus
65
+ attr_reader status: enum_BatchStatus
66
66
  attr_reader output_file_id: String?
67
67
  attr_reader error_file_id: String?
68
68
  attr_reader created_at: Integer
@@ -72,7 +72,7 @@ module LiterLlm
72
72
  attr_reader request_counts: BatchRequestCounts?
73
73
  attr_reader metadata: String?
74
74
 
75
- def initialize: (?id: String, ?object: String, ?endpoint: String, ?input_file_id: String, ?completion_window: String, ?status: BatchStatus, ?output_file_id: String, ?error_file_id: String, ?created_at: Integer, ?completed_at: Integer, ?failed_at: Integer, ?expired_at: Integer, ?request_counts: BatchRequestCounts, ?metadata: String) -> void
75
+ def initialize: (?id: String, ?object: String, ?endpoint: String, ?input_file_id: String, ?completion_window: String, ?status: enum_BatchStatus, ?output_file_id: String, ?error_file_id: String, ?created_at: Integer, ?completed_at: Integer, ?failed_at: Integer, ?expired_at: Integer, ?request_counts: BatchRequestCounts, ?metadata: String) -> void
76
76
  end
77
77
 
78
78
  class BatchRequestCounts
@@ -96,9 +96,9 @@ module LiterLlm
96
96
  class BudgetConfig
97
97
  attr_reader global_limit: Float?
98
98
  attr_reader model_limits: Hash[String, Float]
99
- attr_reader enforcement: Enforcement
99
+ attr_reader enforcement: enum_Enforcement
100
100
 
101
- def initialize: (?global_limit: Float, ?model_limits: Hash[String, Float], ?enforcement: Enforcement) -> void
101
+ def initialize: (?global_limit: Float, ?model_limits: Hash[String, Float], ?enforcement: enum_Enforcement) -> void
102
102
  end
103
103
 
104
104
  class CacheConfig
@@ -150,8 +150,8 @@ module LiterLlm
150
150
  attr_reader response_format: ResponseFormat?
151
151
  attr_reader stream_options: StreamOptions?
152
152
  attr_reader seed: Integer?
153
- attr_reader reasoning_effort: ReasoningEffort?
154
- attr_reader modalities: Array[Modality]?
153
+ attr_reader reasoning_effort: enum_ReasoningEffort?
154
+ attr_reader modalities: Array[enum_Modality]?
155
155
  attr_reader logprobs: bool?
156
156
  attr_reader top_logprobs: Integer?
157
157
  attr_reader max_completion_tokens: Integer?
@@ -163,7 +163,7 @@ module LiterLlm
163
163
  attr_reader web_search_options: String?
164
164
  attr_reader extra_body: String?
165
165
 
166
- def initialize: (?model: String, ?messages: Array[Message], ?temperature: Float, ?top_p: Float, ?n: Integer, ?stream: bool, ?stop: StopSequence, ?max_tokens: Integer, ?presence_penalty: Float, ?frequency_penalty: Float, ?logit_bias: Hash[String, Float], ?user: String, ?tools: Array[ChatCompletionTool], ?tool_choice: ToolChoice, ?parallel_tool_calls: bool, ?response_format: ResponseFormat, ?stream_options: StreamOptions, ?seed: Integer, ?reasoning_effort: ReasoningEffort, ?modalities: Array[Modality], ?logprobs: bool, ?top_logprobs: Integer, ?max_completion_tokens: Integer, ?service_tier: String, ?store: bool, ?metadata: Hash[String, String], ?prediction: String, ?audio: String, ?web_search_options: String, ?extra_body: String) -> void
166
+ def initialize: (?model: String, ?messages: Array[Message], ?temperature: Float, ?top_p: Float, ?n: Integer, ?stream: bool, ?stop: StopSequence, ?max_tokens: Integer, ?presence_penalty: Float, ?frequency_penalty: Float, ?logit_bias: Hash[String, Float], ?user: String, ?tools: Array[ChatCompletionTool], ?tool_choice: ToolChoice, ?parallel_tool_calls: bool, ?response_format: ResponseFormat, ?stream_options: StreamOptions, ?seed: Integer, ?reasoning_effort: enum_ReasoningEffort, ?modalities: Array[enum_Modality], ?logprobs: bool, ?top_logprobs: Integer, ?max_completion_tokens: Integer, ?service_tier: String, ?store: bool, ?metadata: Hash[String, String], ?prediction: String, ?audio: String, ?web_search_options: String, ?extra_body: String) -> void
167
167
  end
168
168
 
169
169
  class ChatCompletionResponse
@@ -180,19 +180,19 @@ module LiterLlm
180
180
  end
181
181
 
182
182
  class ChatCompletionTool
183
- attr_reader tool_type: ToolType
183
+ attr_reader tool_type: enum_ToolType
184
184
  attr_reader function: FunctionDefinition
185
185
 
186
- def initialize: (tool_type: ToolType, function: FunctionDefinition) -> void
186
+ def initialize: (tool_type: enum_ToolType, function: FunctionDefinition) -> void
187
187
  end
188
188
 
189
189
  class Choice
190
190
  attr_reader index: Integer
191
191
  attr_reader message: AssistantMessage
192
- attr_reader finish_reason: FinishReason?
192
+ attr_reader finish_reason: enum_FinishReason?
193
193
  attr_reader logprobs: String?
194
194
 
195
- def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: FinishReason, ?logprobs: String) -> void
195
+ def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: enum_FinishReason, ?logprobs: String) -> void
196
196
  end
197
197
 
198
198
  class CreateBatchRequest
@@ -206,10 +206,10 @@ module LiterLlm
206
206
 
207
207
  class CreateFileRequest
208
208
  attr_reader file: String
209
- attr_reader purpose: FilePurpose
209
+ attr_reader purpose: enum_FilePurpose
210
210
  attr_reader filename: String?
211
211
 
212
- def initialize: (?file: String, ?purpose: FilePurpose, ?filename: String) -> void
212
+ def initialize: (?file: String, ?purpose: enum_FilePurpose, ?filename: String) -> void
213
213
  end
214
214
 
215
215
  class CreateImageRequest
@@ -337,11 +337,11 @@ module LiterLlm
337
337
  class EmbeddingRequest
338
338
  attr_reader model: String
339
339
  attr_reader input: EmbeddingInput
340
- attr_reader encoding_format: EmbeddingFormat?
340
+ attr_reader encoding_format: enum_EmbeddingFormat?
341
341
  attr_reader dimensions: Integer?
342
342
  attr_reader user: String?
343
343
 
344
- def initialize: (?model: String, ?input: EmbeddingInput, ?encoding_format: EmbeddingFormat, ?dimensions: Integer, ?user: String) -> void
344
+ def initialize: (?model: String, ?input: EmbeddingInput, ?encoding_format: enum_EmbeddingFormat, ?dimensions: Integer, ?user: String) -> void
345
345
  end
346
346
 
347
347
  class EmbeddingResponse
@@ -414,9 +414,9 @@ module LiterLlm
414
414
 
415
415
  class ImageUrl
416
416
  attr_reader url: String
417
- attr_reader detail: ImageDetail?
417
+ attr_reader detail: enum_ImageDetail?
418
418
 
419
- def initialize: (?url: String, ?detail: ImageDetail) -> void
419
+ def initialize: (?url: String, ?detail: enum_ImageDetail) -> void
420
420
  end
421
421
 
422
422
  class ImagesResponse
@@ -803,18 +803,18 @@ module LiterLlm
803
803
  end
804
804
 
805
805
  class SpecificToolChoice
806
- attr_reader choice_type: ToolType
806
+ attr_reader choice_type: enum_ToolType
807
807
  attr_reader function: SpecificFunction
808
808
 
809
- def initialize: (?choice_type: ToolType, ?function: SpecificFunction) -> void
809
+ def initialize: (?choice_type: enum_ToolType, ?function: SpecificFunction) -> void
810
810
  end
811
811
 
812
812
  class StreamChoice
813
813
  attr_reader index: Integer
814
814
  attr_reader delta: StreamDelta
815
- attr_reader finish_reason: FinishReason?
815
+ attr_reader finish_reason: enum_FinishReason?
816
816
 
817
- def initialize: (?index: Integer, ?delta: StreamDelta, ?finish_reason: FinishReason) -> void
817
+ def initialize: (?index: Integer, ?delta: StreamDelta, ?finish_reason: enum_FinishReason) -> void
818
818
  end
819
819
 
820
820
  class StreamDelta
@@ -844,10 +844,10 @@ module LiterLlm
844
844
  class StreamToolCall
845
845
  attr_reader index: Integer
846
846
  attr_reader id: String?
847
- attr_reader call_type: ToolType?
847
+ attr_reader call_type: enum_ToolType?
848
848
  attr_reader function: StreamFunctionCall?
849
849
 
850
- def initialize: (?index: Integer, ?id: String, ?call_type: ToolType, ?function: StreamFunctionCall) -> void
850
+ def initialize: (?index: Integer, ?id: String, ?call_type: enum_ToolType, ?function: StreamFunctionCall) -> void
851
851
  end
852
852
 
853
853
  class SystemMessage
@@ -859,10 +859,10 @@ module LiterLlm
859
859
 
860
860
  class ToolCall
861
861
  attr_reader id: String
862
- attr_reader call_type: ToolType
862
+ attr_reader call_type: enum_ToolType
863
863
  attr_reader function: FunctionCall
864
864
 
865
- def initialize: (id: String, call_type: ToolType, function: FunctionCall) -> void
865
+ def initialize: (id: String, call_type: enum_ToolType, function: FunctionCall) -> void
866
866
  end
867
867
 
868
868
  class ToolMessage
@@ -925,20 +925,14 @@ module LiterLlm
925
925
  class AuthHeaderFormat
926
926
  end
927
927
 
928
- class AuthType
929
- type value = :bearer | :"api-key" | :none | :unknown
930
- end
928
+ type enum_AuthType = :bearer | :"api-key" | :none | :unknown
931
929
 
932
- class BatchStatus
933
- type value = :validating | :failed | :in_progress | :finalizing | :completed | :expired | :cancelling | :cancelled
934
- end
930
+ type enum_BatchStatus = :validating | :failed | :in_progress | :finalizing | :completed | :expired | :cancelling | :cancelled
935
931
 
936
932
  class CacheBackend
937
933
  end
938
934
 
939
- class CircuitState
940
- type value = :Closed | :Open | :HalfOpen
941
- end
935
+ type enum_CircuitState = :Closed | :Open | :HalfOpen
942
936
 
943
937
  class ContentPart
944
938
  end
@@ -946,39 +940,25 @@ module LiterLlm
946
940
  class EmbeddingContentPart
947
941
  end
948
942
 
949
- class EmbeddingFormat
950
- type value = :float | :base64
951
- end
943
+ type enum_EmbeddingFormat = :float | :base64
952
944
 
953
945
  class EmbeddingInput
954
946
  end
955
947
 
956
- class Enforcement
957
- type value = :Hard | :Soft
958
- end
948
+ type enum_Enforcement = :Hard | :Soft
959
949
 
960
- class FilePurpose
961
- type value = :assistants | :batch | :"fine-tune" | :vision
962
- end
950
+ type enum_FilePurpose = :assistants | :batch | :"fine-tune" | :vision
963
951
 
964
- class FinishReason
965
- type value = :stop | :length | :tool_calls | :content_filter | :function_call | :other
966
- end
952
+ type enum_FinishReason = :stop | :length | :tool_calls | :content_filter | :function_call | :other
967
953
 
968
- class HealthStatus
969
- type value = :Healthy | :Unhealthy
970
- end
954
+ type enum_HealthStatus = :Healthy | :Unhealthy
971
955
 
972
- class ImageDetail
973
- type value = :low | :high | :auto
974
- end
956
+ type enum_ImageDetail = :low | :high | :auto
975
957
 
976
958
  class Message
977
959
  end
978
960
 
979
- class Modality
980
- type value = :text | :audio | :image
981
- end
961
+ type enum_Modality = :text | :audio | :image
982
962
 
983
963
  class ModerationInput
984
964
  end
@@ -986,13 +966,9 @@ module LiterLlm
986
966
  class OcrDocument
987
967
  end
988
968
 
989
- class ReasoningEffort
990
- type value = :low | :medium | :high | :minimal | :max
991
- end
969
+ type enum_ReasoningEffort = :low | :medium | :high | :minimal | :max
992
970
 
993
- class RefreshOutcome
994
- type value = :Disabled | :FromCache | :Fetched
995
- end
971
+ type enum_RefreshOutcome = :Disabled | :FromCache | :Fetched
996
972
 
997
973
  class RerankDocument
998
974
  def self.object: (String text) -> RerankDocument
@@ -1005,20 +981,18 @@ module LiterLlm
1005
981
  class StopSequence
1006
982
  end
1007
983
 
1008
- class StreamFormat
1009
- type value = :sse | :aws_event_stream
1010
- end
984
+ type enum_StreamFormat = :sse | :aws_event_stream
1011
985
 
1012
986
  class ToolChoice
987
+ def self.from_mode: (enum_ToolChoiceMode value) -> ToolChoice
988
+ def mode: () -> enum_ToolChoiceMode?
989
+ def self.from_specific: (SpecificToolChoice value) -> ToolChoice
990
+ def specific: () -> SpecificToolChoice?
1013
991
  end
1014
992
 
1015
- class ToolChoiceMode
1016
- type value = :auto | :required | :none
1017
- end
993
+ type enum_ToolChoiceMode = :auto | :required | :none
1018
994
 
1019
- class ToolType
1020
- type value = :function
1021
- end
995
+ type enum_ToolType = :function
1022
996
 
1023
997
  class UserContent
1024
998
  end
@@ -1059,7 +1033,7 @@ module LiterLlm
1059
1033
 
1060
1034
  def self.record_cost_usd: (String system, String model, String operation, Float cost_usd) -> void
1061
1035
 
1062
- def self.refresh_catalog: (CatalogRefreshConfig config) -> RefreshOutcome
1036
+ def self.refresh_catalog: (CatalogRefreshConfig config) -> enum_RefreshOutcome
1063
1037
 
1064
1038
  def self.register_custom_provider: (CustomProviderConfig config) -> void
1065
1039
 
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: 2.0.2
4
+ version: 2.1.0
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-09-14 00:00:00.000000000 Z
11
+ date: 2026-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime