liter_llm 1.9.0 → 1.9.3

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.
data/sig/types.rbs CHANGED
@@ -1,681 +1,681 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:8c6394307ee786542760e258bcc70a27da623ca905384e09eb87f8ddb8d7e534
2
+ # alef:hash:b34f5dac0a6af082b71cab3b75e126050fd38402a73d6d3ff06130b6fe7d8875
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
 
6
6
  module LiterLlm
7
7
 
8
- VERSION: String
8
+ VERSION: String
9
9
 
10
- type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
10
+ type json_value = Hash[String, untyped] | Array[untyped] | String | Integer | Float | bool | nil
11
11
 
12
- class SystemMessage
13
- attr_accessor content: UserContent?
14
- attr_accessor name: String?
12
+ class SystemMessage
13
+ attr_accessor content: UserContent?
14
+ attr_accessor name: String?
15
15
 
16
16
  def initialize: (?content: UserContent, ?name: String) -> void
17
- end
17
+ end
18
18
 
19
- class UserMessage
20
- attr_accessor content: UserContent?
21
- attr_accessor name: String?
19
+ class UserMessage
20
+ attr_accessor content: UserContent?
21
+ attr_accessor name: String?
22
22
 
23
23
  def initialize: (?content: UserContent, ?name: String) -> void
24
- end
24
+ end
25
25
 
26
- class ImageUrl
27
- attr_accessor url: String?
28
- attr_accessor detail: ImageDetail?
26
+ class ImageUrl
27
+ attr_accessor url: String?
28
+ attr_accessor detail: ImageDetail?
29
29
 
30
30
  def initialize: (?url: String, ?detail: ImageDetail) -> void
31
- end
31
+ end
32
32
 
33
- class DocumentContent
34
- attr_accessor data: String?
35
- attr_accessor media_type: String?
33
+ class DocumentContent
34
+ attr_accessor data: String?
35
+ attr_accessor media_type: String?
36
36
 
37
37
  def initialize: (?data: String, ?media_type: String) -> void
38
- end
38
+ end
39
39
 
40
- class AudioContent
41
- attr_accessor data: String?
42
- attr_accessor format: String?
40
+ class AudioContent
41
+ attr_accessor data: String?
42
+ attr_accessor format: String?
43
43
 
44
44
  def initialize: (?data: String, ?format: String) -> void
45
- end
45
+ end
46
46
 
47
- class AssistantMessage
48
- attr_accessor content: AssistantContent?
49
- attr_accessor name: String?
47
+ class AssistantMessage
48
+ attr_accessor content: AssistantContent?
49
+ attr_accessor name: String?
50
50
  attr_accessor tool_calls: Array[ToolCall]?
51
- attr_accessor refusal: String?
52
- attr_accessor function_call: FunctionCall?
51
+ attr_accessor refusal: String?
52
+ attr_accessor function_call: FunctionCall?
53
53
 
54
- def initialize: (?content: AssistantContent, ?name: String, ?tool_calls: Array[ToolCall], ?refusal: String, ?function_call: FunctionCall) -> void
54
+ def initialize: (?content: AssistantContent, ?name: String, ?tool_calls: Array[ToolCall], ?refusal: String, ?function_call: FunctionCall) -> void
55
55
  def text: () -> String?
56
56
  def refusal_text: () -> String?
57
- def output_images: () -> Array[ImageUrl]
58
- def output_audio: () -> Array[AudioContent]
59
- end
57
+ def output_images: () -> Array[ImageUrl]
58
+ def output_audio: () -> Array[AudioContent]
59
+ end
60
60
 
61
- class ToolMessage
62
- attr_accessor content: String?
63
- attr_accessor tool_call_id: String?
64
- attr_accessor name: String?
61
+ class ToolMessage
62
+ attr_accessor content: String?
63
+ attr_accessor tool_call_id: String?
64
+ attr_accessor name: String?
65
65
 
66
66
  def initialize: (?content: String, ?tool_call_id: String, ?name: String) -> void
67
- end
67
+ end
68
68
 
69
- class DeveloperMessage
70
- attr_accessor content: String?
71
- attr_accessor name: String?
69
+ class DeveloperMessage
70
+ attr_accessor content: String?
71
+ attr_accessor name: String?
72
72
 
73
73
  def initialize: (?content: String, ?name: String) -> void
74
- end
74
+ end
75
75
 
76
- class FunctionMessage
77
- attr_accessor content: String?
78
- attr_accessor name: String?
76
+ class FunctionMessage
77
+ attr_accessor content: String?
78
+ attr_accessor name: String?
79
79
 
80
80
  def initialize: (?content: String, ?name: String) -> void
81
- end
81
+ end
82
82
 
83
- class ChatCompletionTool
84
- attr_reader tool_type: ToolType
85
- attr_reader function: FunctionDefinition
83
+ class ChatCompletionTool
84
+ attr_reader tool_type: ToolType
85
+ attr_reader function: FunctionDefinition
86
86
 
87
87
  def initialize: (tool_type: ToolType, function: FunctionDefinition) -> void
88
- end
88
+ end
89
89
 
90
- class FunctionDefinition
91
- attr_reader name: String
92
- attr_reader description: String
93
- attr_reader parameters: json_value
94
- attr_reader strict: bool
90
+ class FunctionDefinition
91
+ attr_reader name: String
92
+ attr_reader description: String
93
+ attr_reader parameters: json_value
94
+ attr_reader strict: bool
95
95
 
96
96
  def initialize: (name: String, ?description: String, ?parameters: json_value, ?strict: bool) -> void
97
- end
97
+ end
98
98
 
99
- class ToolCall
100
- attr_reader id: String
101
- attr_reader call_type: ToolType
102
- attr_reader function: FunctionCall
99
+ class ToolCall
100
+ attr_reader id: String
101
+ attr_reader call_type: ToolType
102
+ attr_reader function: FunctionCall
103
103
 
104
104
  def initialize: (id: String, call_type: ToolType, function: FunctionCall) -> void
105
- end
105
+ end
106
106
 
107
- class FunctionCall
108
- attr_reader name: String
109
- attr_reader arguments: String
107
+ class FunctionCall
108
+ attr_reader name: String
109
+ attr_reader arguments: String
110
110
 
111
111
  def initialize: (name: String, arguments: String) -> void
112
- end
112
+ end
113
113
 
114
- class SpecificToolChoice
115
- attr_accessor choice_type: ToolType?
116
- attr_accessor function: SpecificFunction?
114
+ class SpecificToolChoice
115
+ attr_accessor choice_type: ToolType?
116
+ attr_accessor function: SpecificFunction?
117
117
 
118
118
  def initialize: (?choice_type: ToolType, ?function: SpecificFunction) -> void
119
- end
119
+ end
120
120
 
121
- class SpecificFunction
122
- attr_accessor name: String?
121
+ class SpecificFunction
122
+ attr_accessor name: String?
123
123
 
124
124
  def initialize: (?name: String) -> void
125
- end
125
+ end
126
126
 
127
- class JsonSchemaFormat
128
- attr_accessor name: String?
129
- attr_accessor description: String?
130
- attr_accessor schema: json_value?
131
- attr_accessor strict: bool?
127
+ class JsonSchemaFormat
128
+ attr_accessor name: String?
129
+ attr_accessor description: String?
130
+ attr_accessor schema: json_value?
131
+ attr_accessor strict: bool?
132
132
 
133
133
  def initialize: (?name: String, ?description: String, ?schema: json_value, ?strict: bool) -> void
134
- end
134
+ end
135
135
 
136
- class Usage
137
- attr_accessor prompt_tokens: Integer?
138
- attr_accessor completion_tokens: Integer?
139
- attr_accessor total_tokens: Integer?
140
- attr_accessor prompt_tokens_details: PromptTokensDetails?
136
+ class Usage
137
+ attr_accessor prompt_tokens: Integer?
138
+ attr_accessor completion_tokens: Integer?
139
+ attr_accessor total_tokens: Integer?
140
+ attr_accessor prompt_tokens_details: PromptTokensDetails?
141
141
 
142
142
  def initialize: (?prompt_tokens: Integer, ?completion_tokens: Integer, ?total_tokens: Integer, ?prompt_tokens_details: PromptTokensDetails) -> void
143
- end
143
+ end
144
144
 
145
- class PromptTokensDetails
146
- attr_accessor cached_tokens: Integer?
147
- attr_accessor audio_tokens: Integer?
145
+ class PromptTokensDetails
146
+ attr_accessor cached_tokens: Integer?
147
+ attr_accessor audio_tokens: Integer?
148
148
 
149
149
  def initialize: (?cached_tokens: Integer, ?audio_tokens: Integer) -> void
150
- end
150
+ end
151
151
 
152
- class ChatCompletionRequest
153
- attr_accessor model: String?
152
+ class ChatCompletionRequest
153
+ attr_accessor model: String?
154
154
  attr_accessor messages: Array[Message]?
155
- attr_accessor temperature: Float?
156
- attr_accessor top_p: Float?
157
- attr_accessor n: Integer?
158
- attr_accessor stream: bool?
159
- attr_accessor stop: StopSequence?
160
- attr_accessor max_tokens: Integer?
161
- attr_accessor presence_penalty: Float?
162
- attr_accessor frequency_penalty: Float?
155
+ attr_accessor temperature: Float?
156
+ attr_accessor top_p: Float?
157
+ attr_accessor n: Integer?
158
+ attr_accessor stream: bool?
159
+ attr_accessor stop: StopSequence?
160
+ attr_accessor max_tokens: Integer?
161
+ attr_accessor presence_penalty: Float?
162
+ attr_accessor frequency_penalty: Float?
163
163
  attr_accessor logit_bias: Hash[String, Float]?
164
- attr_accessor user: String?
164
+ attr_accessor user: String?
165
165
  attr_accessor tools: Array[ChatCompletionTool]?
166
- attr_accessor tool_choice: ToolChoice?
167
- attr_accessor parallel_tool_calls: bool?
168
- attr_accessor response_format: ResponseFormat?
169
- attr_accessor stream_options: StreamOptions?
170
- attr_accessor seed: Integer?
171
- attr_accessor reasoning_effort: ReasoningEffort?
166
+ attr_accessor tool_choice: ToolChoice?
167
+ attr_accessor parallel_tool_calls: bool?
168
+ attr_accessor response_format: ResponseFormat?
169
+ attr_accessor stream_options: StreamOptions?
170
+ attr_accessor seed: Integer?
171
+ attr_accessor reasoning_effort: ReasoningEffort?
172
172
  attr_accessor modalities: Array[Modality]?
173
- attr_accessor extra_body: json_value?
173
+ attr_accessor extra_body: json_value?
174
174
 
175
- 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], ?extra_body: json_value) -> void
176
- end
175
+ 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], ?extra_body: json_value) -> void
176
+ end
177
177
 
178
- class StreamOptions
179
- attr_accessor include_usage: bool?
178
+ class StreamOptions
179
+ attr_accessor include_usage: bool?
180
180
 
181
181
  def initialize: (?include_usage: bool) -> void
182
- end
182
+ end
183
183
 
184
- class ChatCompletionResponse
185
- attr_accessor id: String?
186
- attr_accessor object: String?
187
- attr_accessor created: Integer?
188
- attr_accessor model: String?
184
+ class ChatCompletionResponse
185
+ attr_accessor id: String?
186
+ attr_accessor object: String?
187
+ attr_accessor created: Integer?
188
+ attr_accessor model: String?
189
189
  attr_accessor choices: Array[Choice]?
190
- attr_accessor usage: Usage?
191
- attr_accessor system_fingerprint: String?
192
- attr_accessor service_tier: String?
190
+ attr_accessor usage: Usage?
191
+ attr_accessor system_fingerprint: String?
192
+ attr_accessor service_tier: String?
193
193
 
194
- def initialize: (?id: String, ?object: String, ?created: Integer, ?model: String, ?choices: Array[Choice], ?usage: Usage, ?system_fingerprint: String, ?service_tier: String) -> void
195
- end
194
+ def initialize: (?id: String, ?object: String, ?created: Integer, ?model: String, ?choices: Array[Choice], ?usage: Usage, ?system_fingerprint: String, ?service_tier: String) -> void
195
+ end
196
196
 
197
- class Choice
198
- attr_accessor index: Integer?
199
- attr_accessor message: AssistantMessage?
200
- attr_accessor finish_reason: FinishReason?
197
+ class Choice
198
+ attr_accessor index: Integer?
199
+ attr_accessor message: AssistantMessage?
200
+ attr_accessor finish_reason: FinishReason?
201
201
 
202
202
  def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: FinishReason) -> void
203
- end
203
+ end
204
204
 
205
- class ChatCompletionChunk
206
- attr_accessor id: String?
207
- attr_accessor object: String?
208
- attr_accessor created: Integer?
209
- attr_accessor model: String?
205
+ class ChatCompletionChunk
206
+ attr_accessor id: String?
207
+ attr_accessor object: String?
208
+ attr_accessor created: Integer?
209
+ attr_accessor model: String?
210
210
  attr_accessor choices: Array[StreamChoice]?
211
- attr_accessor usage: Usage?
212
- attr_accessor system_fingerprint: String?
213
- attr_accessor service_tier: String?
211
+ attr_accessor usage: Usage?
212
+ attr_accessor system_fingerprint: String?
213
+ attr_accessor service_tier: String?
214
214
 
215
- def initialize: (?id: String, ?object: String, ?created: Integer, ?model: String, ?choices: Array[StreamChoice], ?usage: Usage, ?system_fingerprint: String, ?service_tier: String) -> void
216
- end
215
+ def initialize: (?id: String, ?object: String, ?created: Integer, ?model: String, ?choices: Array[StreamChoice], ?usage: Usage, ?system_fingerprint: String, ?service_tier: String) -> void
216
+ end
217
217
 
218
- class StreamChoice
219
- attr_accessor index: Integer?
220
- attr_accessor delta: StreamDelta?
221
- attr_accessor finish_reason: FinishReason?
218
+ class StreamChoice
219
+ attr_accessor index: Integer?
220
+ attr_accessor delta: StreamDelta?
221
+ attr_accessor finish_reason: FinishReason?
222
222
 
223
223
  def initialize: (?index: Integer, ?delta: StreamDelta, ?finish_reason: FinishReason) -> void
224
- end
224
+ end
225
225
 
226
- class StreamDelta
227
- attr_accessor role: String?
228
- attr_accessor content: String?
226
+ class StreamDelta
227
+ attr_accessor role: String?
228
+ attr_accessor content: String?
229
229
  attr_accessor tool_calls: Array[StreamToolCall]?
230
- attr_accessor function_call: StreamFunctionCall?
231
- attr_accessor refusal: String?
230
+ attr_accessor function_call: StreamFunctionCall?
231
+ attr_accessor refusal: String?
232
232
 
233
- def initialize: (?role: String, ?content: String, ?tool_calls: Array[StreamToolCall], ?function_call: StreamFunctionCall, ?refusal: String) -> void
234
- end
233
+ def initialize: (?role: String, ?content: String, ?tool_calls: Array[StreamToolCall], ?function_call: StreamFunctionCall, ?refusal: String) -> void
234
+ end
235
235
 
236
- class StreamToolCall
237
- attr_accessor index: Integer?
238
- attr_accessor id: String?
239
- attr_accessor call_type: ToolType?
240
- attr_accessor function: StreamFunctionCall?
236
+ class StreamToolCall
237
+ attr_accessor index: Integer?
238
+ attr_accessor id: String?
239
+ attr_accessor call_type: ToolType?
240
+ attr_accessor function: StreamFunctionCall?
241
241
 
242
242
  def initialize: (?index: Integer, ?id: String, ?call_type: ToolType, ?function: StreamFunctionCall) -> void
243
- end
243
+ end
244
244
 
245
- class StreamFunctionCall
246
- attr_accessor name: String?
247
- attr_accessor arguments: String?
245
+ class StreamFunctionCall
246
+ attr_accessor name: String?
247
+ attr_accessor arguments: String?
248
248
 
249
249
  def initialize: (?name: String, ?arguments: String) -> void
250
- end
250
+ end
251
251
 
252
- class EmbeddingRequest
253
- attr_accessor model: String?
254
- attr_accessor input: EmbeddingInput?
255
- attr_accessor encoding_format: EmbeddingFormat?
256
- attr_accessor dimensions: Integer?
257
- attr_accessor user: String?
252
+ class EmbeddingRequest
253
+ attr_accessor model: String?
254
+ attr_accessor input: EmbeddingInput?
255
+ attr_accessor encoding_format: EmbeddingFormat?
256
+ attr_accessor dimensions: Integer?
257
+ attr_accessor user: String?
258
258
 
259
259
  def initialize: (?model: String, ?input: EmbeddingInput, ?encoding_format: EmbeddingFormat, ?dimensions: Integer, ?user: String) -> void
260
- end
260
+ end
261
261
 
262
- class EmbeddingResponse
263
- attr_reader object: String
262
+ class EmbeddingResponse
263
+ attr_reader object: String
264
264
  attr_reader data: Array[EmbeddingObject]
265
- attr_reader model: String
266
- attr_reader usage: Usage
265
+ attr_reader model: String
266
+ attr_reader usage: Usage
267
267
 
268
- def initialize: (object: String, data: Array[EmbeddingObject], model: String, ?usage: Usage) -> void
269
- end
268
+ def initialize: (object: String, data: Array[EmbeddingObject], model: String, ?usage: Usage) -> void
269
+ end
270
270
 
271
- class EmbeddingObject
272
- attr_reader object: String
271
+ class EmbeddingObject
272
+ attr_reader object: String
273
273
  attr_reader embedding: Array[Float]
274
- attr_reader index: Integer
274
+ attr_reader index: Integer
275
275
 
276
- def initialize: (object: String, embedding: Array[Float], index: Integer) -> void
277
- end
276
+ def initialize: (object: String, embedding: Array[Float], index: Integer) -> void
277
+ end
278
278
 
279
- class CreateImageRequest
280
- attr_accessor prompt: String?
281
- attr_accessor model: String?
282
- attr_accessor n: Integer?
283
- attr_accessor size: String?
284
- attr_accessor quality: String?
285
- attr_accessor style: String?
286
- attr_accessor response_format: String?
287
- attr_accessor user: String?
279
+ class CreateImageRequest
280
+ attr_accessor prompt: String?
281
+ attr_accessor model: String?
282
+ attr_accessor n: Integer?
283
+ attr_accessor size: String?
284
+ attr_accessor quality: String?
285
+ attr_accessor style: String?
286
+ attr_accessor response_format: String?
287
+ attr_accessor user: String?
288
288
 
289
289
  def initialize: (?prompt: String, ?model: String, ?n: Integer, ?size: String, ?quality: String, ?style: String, ?response_format: String, ?user: String) -> void
290
- end
290
+ end
291
291
 
292
- class ImagesResponse
293
- attr_accessor created: Integer?
292
+ class ImagesResponse
293
+ attr_accessor created: Integer?
294
294
  attr_accessor data: Array[Image]?
295
295
 
296
- def initialize: (?created: Integer, ?data: Array[Image]) -> void
297
- end
296
+ def initialize: (?created: Integer, ?data: Array[Image]) -> void
297
+ end
298
298
 
299
- class Image
300
- attr_accessor url: String?
301
- attr_accessor b64_json: String?
302
- attr_accessor revised_prompt: String?
299
+ class Image
300
+ attr_accessor url: String?
301
+ attr_accessor b64_json: String?
302
+ attr_accessor revised_prompt: String?
303
303
 
304
304
  def initialize: (?url: String, ?b64_json: String, ?revised_prompt: String) -> void
305
- end
305
+ end
306
306
 
307
- class DecodedDataUrl
308
- attr_accessor mime: String?
309
- attr_accessor data: String?
307
+ class DecodedDataUrl
308
+ attr_accessor mime: String?
309
+ attr_accessor data: String?
310
310
 
311
311
  def initialize: (?mime: String, ?data: String) -> void
312
- end
312
+ end
313
313
 
314
- class CreateSpeechRequest
315
- attr_accessor model: String?
316
- attr_accessor input: String?
317
- attr_accessor voice: String?
318
- attr_accessor response_format: String?
319
- attr_accessor speed: Float?
314
+ class CreateSpeechRequest
315
+ attr_accessor model: String?
316
+ attr_accessor input: String?
317
+ attr_accessor voice: String?
318
+ attr_accessor response_format: String?
319
+ attr_accessor speed: Float?
320
320
 
321
321
  def initialize: (?model: String, ?input: String, ?voice: String, ?response_format: String, ?speed: Float) -> void
322
- end
322
+ end
323
323
 
324
- class CreateTranscriptionRequest
325
- attr_accessor model: String?
326
- attr_accessor file: String?
327
- attr_accessor language: String?
328
- attr_accessor prompt: String?
329
- attr_accessor response_format: String?
330
- attr_accessor temperature: Float?
324
+ class CreateTranscriptionRequest
325
+ attr_accessor model: String?
326
+ attr_accessor file: String?
327
+ attr_accessor language: String?
328
+ attr_accessor prompt: String?
329
+ attr_accessor response_format: String?
330
+ attr_accessor temperature: Float?
331
331
 
332
332
  def initialize: (?model: String, ?file: String, ?language: String, ?prompt: String, ?response_format: String, ?temperature: Float) -> void
333
- end
333
+ end
334
334
 
335
- class TranscriptionResponse
336
- attr_accessor text: String?
337
- attr_accessor language: String?
338
- attr_accessor duration: Float?
335
+ class TranscriptionResponse
336
+ attr_accessor text: String?
337
+ attr_accessor language: String?
338
+ attr_accessor duration: Float?
339
339
  attr_accessor segments: Array[TranscriptionSegment]?
340
340
 
341
- def initialize: (?text: String, ?language: String, ?duration: Float, ?segments: Array[TranscriptionSegment]) -> void
342
- end
341
+ def initialize: (?text: String, ?language: String, ?duration: Float, ?segments: Array[TranscriptionSegment]) -> void
342
+ end
343
343
 
344
- class TranscriptionSegment
345
- attr_accessor id: Integer?
346
- attr_accessor start: Float?
347
- attr_accessor end: Float?
348
- attr_accessor text: String?
344
+ class TranscriptionSegment
345
+ attr_accessor id: Integer?
346
+ attr_accessor start: Float?
347
+ attr_accessor end: Float?
348
+ attr_accessor text: String?
349
349
 
350
350
  def initialize: (?id: Integer, ?start: Float, ?end: Float, ?text: String) -> void
351
- end
351
+ end
352
352
 
353
- class ModerationRequest
354
- attr_accessor input: ModerationInput?
355
- attr_accessor model: String?
353
+ class ModerationRequest
354
+ attr_accessor input: ModerationInput?
355
+ attr_accessor model: String?
356
356
 
357
357
  def initialize: (?input: ModerationInput, ?model: String) -> void
358
- end
358
+ end
359
359
 
360
- class ModerationResponse
361
- attr_reader id: String
362
- attr_reader model: String
360
+ class ModerationResponse
361
+ attr_reader id: String
362
+ attr_reader model: String
363
363
  attr_reader results: Array[ModerationResult]
364
364
 
365
- def initialize: (id: String, model: String, results: Array[ModerationResult]) -> void
366
- end
365
+ def initialize: (id: String, model: String, results: Array[ModerationResult]) -> void
366
+ end
367
367
 
368
- class ModerationResult
369
- attr_reader flagged: bool
370
- attr_reader categories: ModerationCategories
371
- attr_reader category_scores: ModerationCategoryScores
368
+ class ModerationResult
369
+ attr_reader flagged: bool
370
+ attr_reader categories: ModerationCategories
371
+ attr_reader category_scores: ModerationCategoryScores
372
372
 
373
373
  def initialize: (flagged: bool, categories: ModerationCategories, category_scores: ModerationCategoryScores) -> void
374
- end
375
-
376
- class ModerationCategories
377
- attr_accessor sexual: bool?
378
- attr_accessor hate: bool?
379
- attr_accessor harassment: bool?
380
- attr_accessor self_harm: bool?
381
- attr_accessor sexual_minors: bool?
382
- attr_accessor hate_threatening: bool?
383
- attr_accessor violence_graphic: bool?
384
- attr_accessor self_harm_intent: bool?
385
- attr_accessor self_harm_instructions: bool?
386
- attr_accessor harassment_threatening: bool?
387
- attr_accessor violence: bool?
374
+ end
375
+
376
+ class ModerationCategories
377
+ attr_accessor sexual: bool?
378
+ attr_accessor hate: bool?
379
+ attr_accessor harassment: bool?
380
+ attr_accessor self_harm: bool?
381
+ attr_accessor sexual_minors: bool?
382
+ attr_accessor hate_threatening: bool?
383
+ attr_accessor violence_graphic: bool?
384
+ attr_accessor self_harm_intent: bool?
385
+ attr_accessor self_harm_instructions: bool?
386
+ attr_accessor harassment_threatening: bool?
387
+ attr_accessor violence: bool?
388
388
 
389
389
  def initialize: (?sexual: bool, ?hate: bool, ?harassment: bool, ?self_harm: bool, ?sexual_minors: bool, ?hate_threatening: bool, ?violence_graphic: bool, ?self_harm_intent: bool, ?self_harm_instructions: bool, ?harassment_threatening: bool, ?violence: bool) -> void
390
- end
391
-
392
- class ModerationCategoryScores
393
- attr_accessor sexual: Float?
394
- attr_accessor hate: Float?
395
- attr_accessor harassment: Float?
396
- attr_accessor self_harm: Float?
397
- attr_accessor sexual_minors: Float?
398
- attr_accessor hate_threatening: Float?
399
- attr_accessor violence_graphic: Float?
400
- attr_accessor self_harm_intent: Float?
401
- attr_accessor self_harm_instructions: Float?
402
- attr_accessor harassment_threatening: Float?
403
- attr_accessor violence: Float?
390
+ end
391
+
392
+ class ModerationCategoryScores
393
+ attr_accessor sexual: Float?
394
+ attr_accessor hate: Float?
395
+ attr_accessor harassment: Float?
396
+ attr_accessor self_harm: Float?
397
+ attr_accessor sexual_minors: Float?
398
+ attr_accessor hate_threatening: Float?
399
+ attr_accessor violence_graphic: Float?
400
+ attr_accessor self_harm_intent: Float?
401
+ attr_accessor self_harm_instructions: Float?
402
+ attr_accessor harassment_threatening: Float?
403
+ attr_accessor violence: Float?
404
404
 
405
405
  def initialize: (?sexual: Float, ?hate: Float, ?harassment: Float, ?self_harm: Float, ?sexual_minors: Float, ?hate_threatening: Float, ?violence_graphic: Float, ?self_harm_intent: Float, ?self_harm_instructions: Float, ?harassment_threatening: Float, ?violence: Float) -> void
406
- end
406
+ end
407
407
 
408
- class RerankRequest
409
- attr_accessor model: String?
410
- attr_accessor query: String?
408
+ class RerankRequest
409
+ attr_accessor model: String?
410
+ attr_accessor query: String?
411
411
  attr_accessor documents: Array[RerankDocument]?
412
- attr_accessor top_n: Integer?
413
- attr_accessor return_documents: bool?
412
+ attr_accessor top_n: Integer?
413
+ attr_accessor return_documents: bool?
414
414
 
415
- def initialize: (?model: String, ?query: String, ?documents: Array[RerankDocument], ?top_n: Integer, ?return_documents: bool) -> void
416
- end
415
+ def initialize: (?model: String, ?query: String, ?documents: Array[RerankDocument], ?top_n: Integer, ?return_documents: bool) -> void
416
+ end
417
417
 
418
- class RerankResponse
419
- attr_reader id: String
418
+ class RerankResponse
419
+ attr_reader id: String
420
420
  attr_reader results: Array[RerankResult]
421
- attr_reader meta: json_value
421
+ attr_reader meta: json_value
422
422
 
423
- def initialize: (?id: String, results: Array[RerankResult], ?meta: json_value) -> void
424
- end
423
+ def initialize: (?id: String, results: Array[RerankResult], ?meta: json_value) -> void
424
+ end
425
425
 
426
- class RerankResult
427
- attr_reader index: Integer
428
- attr_reader relevance_score: Float
429
- attr_reader document: RerankResultDocument
426
+ class RerankResult
427
+ attr_reader index: Integer
428
+ attr_reader relevance_score: Float
429
+ attr_reader document: RerankResultDocument
430
430
 
431
431
  def initialize: (index: Integer, relevance_score: Float, ?document: RerankResultDocument) -> void
432
- end
432
+ end
433
433
 
434
- class RerankResultDocument
435
- attr_reader text: String
434
+ class RerankResultDocument
435
+ attr_reader text: String
436
436
 
437
437
  def initialize: (text: String) -> void
438
- end
438
+ end
439
439
 
440
- class SearchRequest
441
- attr_accessor model: String?
442
- attr_accessor query: String?
443
- attr_accessor max_results: Integer?
440
+ class SearchRequest
441
+ attr_accessor model: String?
442
+ attr_accessor query: String?
443
+ attr_accessor max_results: Integer?
444
444
  attr_accessor search_domain_filter: Array[String]?
445
- attr_accessor country: String?
445
+ attr_accessor country: String?
446
446
 
447
- def initialize: (?model: String, ?query: String, ?max_results: Integer, ?search_domain_filter: Array[String], ?country: String) -> void
448
- end
447
+ def initialize: (?model: String, ?query: String, ?max_results: Integer, ?search_domain_filter: Array[String], ?country: String) -> void
448
+ end
449
449
 
450
- class SearchResponse
450
+ class SearchResponse
451
451
  attr_reader results: Array[SearchResult]
452
- attr_reader model: String
452
+ attr_reader model: String
453
453
 
454
- def initialize: (results: Array[SearchResult], model: String) -> void
455
- end
454
+ def initialize: (results: Array[SearchResult], model: String) -> void
455
+ end
456
456
 
457
- class SearchResult
458
- attr_reader title: String
459
- attr_reader url: String
460
- attr_reader snippet: String
461
- attr_reader date: String
457
+ class SearchResult
458
+ attr_reader title: String
459
+ attr_reader url: String
460
+ attr_reader snippet: String
461
+ attr_reader date: String
462
462
 
463
463
  def initialize: (title: String, url: String, snippet: String, ?date: String) -> void
464
- end
464
+ end
465
465
 
466
- class OcrRequest
467
- attr_accessor model: String?
468
- attr_accessor document: OcrDocument?
466
+ class OcrRequest
467
+ attr_accessor model: String?
468
+ attr_accessor document: OcrDocument?
469
469
  attr_accessor pages: Array[Integer]?
470
- attr_accessor include_image_base64: bool?
470
+ attr_accessor include_image_base64: bool?
471
471
 
472
- def initialize: (?model: String, ?document: OcrDocument, ?pages: Array[Integer], ?include_image_base64: bool) -> void
473
- end
472
+ def initialize: (?model: String, ?document: OcrDocument, ?pages: Array[Integer], ?include_image_base64: bool) -> void
473
+ end
474
474
 
475
- class OcrResponse
475
+ class OcrResponse
476
476
  attr_reader pages: Array[OcrPage]
477
- attr_reader model: String
478
- attr_reader usage: Usage
477
+ attr_reader model: String
478
+ attr_reader usage: Usage
479
479
 
480
- def initialize: (pages: Array[OcrPage], model: String, ?usage: Usage) -> void
481
- end
480
+ def initialize: (pages: Array[OcrPage], model: String, ?usage: Usage) -> void
481
+ end
482
482
 
483
- class OcrPage
484
- attr_reader index: Integer
485
- attr_reader markdown: String
483
+ class OcrPage
484
+ attr_reader index: Integer
485
+ attr_reader markdown: String
486
486
  attr_reader images: Array[OcrImage]
487
- attr_reader dimensions: PageDimensions
487
+ attr_reader dimensions: PageDimensions
488
488
 
489
- def initialize: (index: Integer, markdown: String, ?images: Array[OcrImage], ?dimensions: PageDimensions) -> void
490
- end
489
+ def initialize: (index: Integer, markdown: String, ?images: Array[OcrImage], ?dimensions: PageDimensions) -> void
490
+ end
491
491
 
492
- class OcrImage
493
- attr_reader id: String
494
- attr_reader image_base64: String
492
+ class OcrImage
493
+ attr_reader id: String
494
+ attr_reader image_base64: String
495
495
 
496
496
  def initialize: (id: String, ?image_base64: String) -> void
497
- end
497
+ end
498
498
 
499
- class PageDimensions
500
- attr_reader width: Integer
501
- attr_reader height: Integer
499
+ class PageDimensions
500
+ attr_reader width: Integer
501
+ attr_reader height: Integer
502
502
 
503
503
  def initialize: (width: Integer, height: Integer) -> void
504
- end
504
+ end
505
505
 
506
- class ModelsListResponse
507
- attr_accessor object: String?
506
+ class ModelsListResponse
507
+ attr_accessor object: String?
508
508
  attr_accessor data: Array[ModelObject]?
509
509
 
510
- def initialize: (?object: String, ?data: Array[ModelObject]) -> void
511
- end
510
+ def initialize: (?object: String, ?data: Array[ModelObject]) -> void
511
+ end
512
512
 
513
- class ModelObject
514
- attr_accessor id: String?
515
- attr_accessor object: String?
516
- attr_accessor created: Integer?
517
- attr_accessor owned_by: String?
513
+ class ModelObject
514
+ attr_accessor id: String?
515
+ attr_accessor object: String?
516
+ attr_accessor created: Integer?
517
+ attr_accessor owned_by: String?
518
518
 
519
519
  def initialize: (?id: String, ?object: String, ?created: Integer, ?owned_by: String) -> void
520
- end
520
+ end
521
521
 
522
- class CreateFileRequest
523
- attr_accessor file: String?
524
- attr_accessor purpose: FilePurpose?
525
- attr_accessor filename: String?
522
+ class CreateFileRequest
523
+ attr_accessor file: String?
524
+ attr_accessor purpose: FilePurpose?
525
+ attr_accessor filename: String?
526
526
 
527
527
  def initialize: (?file: String, ?purpose: FilePurpose, ?filename: String) -> void
528
- end
528
+ end
529
529
 
530
- class FileObject
531
- attr_accessor id: String?
532
- attr_accessor object: String?
533
- attr_accessor bytes: Integer?
534
- attr_accessor created_at: Integer?
535
- attr_accessor filename: String?
536
- attr_accessor purpose: String?
537
- attr_accessor status: String?
530
+ class FileObject
531
+ attr_accessor id: String?
532
+ attr_accessor object: String?
533
+ attr_accessor bytes: Integer?
534
+ attr_accessor created_at: Integer?
535
+ attr_accessor filename: String?
536
+ attr_accessor purpose: String?
537
+ attr_accessor status: String?
538
538
 
539
539
  def initialize: (?id: String, ?object: String, ?bytes: Integer, ?created_at: Integer, ?filename: String, ?purpose: String, ?status: String) -> void
540
- end
540
+ end
541
541
 
542
- class FileListResponse
543
- attr_accessor object: String?
542
+ class FileListResponse
543
+ attr_accessor object: String?
544
544
  attr_accessor data: Array[FileObject]?
545
- attr_accessor has_more: bool?
545
+ attr_accessor has_more: bool?
546
546
 
547
- def initialize: (?object: String, ?data: Array[FileObject], ?has_more: bool) -> void
548
- end
547
+ def initialize: (?object: String, ?data: Array[FileObject], ?has_more: bool) -> void
548
+ end
549
549
 
550
- class FileListQuery
551
- attr_accessor purpose: String?
552
- attr_accessor limit: Integer?
553
- attr_accessor after: String?
550
+ class FileListQuery
551
+ attr_accessor purpose: String?
552
+ attr_accessor limit: Integer?
553
+ attr_accessor after: String?
554
554
 
555
555
  def initialize: (?purpose: String, ?limit: Integer, ?after: String) -> void
556
- end
556
+ end
557
557
 
558
- class DeleteResponse
559
- attr_accessor id: String?
560
- attr_accessor object: String?
561
- attr_accessor deleted: bool?
558
+ class DeleteResponse
559
+ attr_accessor id: String?
560
+ attr_accessor object: String?
561
+ attr_accessor deleted: bool?
562
562
 
563
563
  def initialize: (?id: String, ?object: String, ?deleted: bool) -> void
564
- end
564
+ end
565
565
 
566
- class CreateBatchRequest
567
- attr_accessor input_file_id: String?
568
- attr_accessor endpoint: String?
569
- attr_accessor completion_window: String?
570
- attr_accessor metadata: json_value?
566
+ class CreateBatchRequest
567
+ attr_accessor input_file_id: String?
568
+ attr_accessor endpoint: String?
569
+ attr_accessor completion_window: String?
570
+ attr_accessor metadata: json_value?
571
571
 
572
572
  def initialize: (?input_file_id: String, ?endpoint: String, ?completion_window: String, ?metadata: json_value) -> void
573
- end
574
-
575
- class BatchObject
576
- attr_accessor id: String?
577
- attr_accessor object: String?
578
- attr_accessor endpoint: String?
579
- attr_accessor input_file_id: String?
580
- attr_accessor completion_window: String?
581
- attr_accessor status: BatchStatus?
582
- attr_accessor output_file_id: String?
583
- attr_accessor error_file_id: String?
584
- attr_accessor created_at: Integer?
585
- attr_accessor completed_at: Integer?
586
- attr_accessor failed_at: Integer?
587
- attr_accessor expired_at: Integer?
588
- attr_accessor request_counts: BatchRequestCounts?
589
- attr_accessor metadata: json_value?
573
+ end
574
+
575
+ class BatchObject
576
+ attr_accessor id: String?
577
+ attr_accessor object: String?
578
+ attr_accessor endpoint: String?
579
+ attr_accessor input_file_id: String?
580
+ attr_accessor completion_window: String?
581
+ attr_accessor status: BatchStatus?
582
+ attr_accessor output_file_id: String?
583
+ attr_accessor error_file_id: String?
584
+ attr_accessor created_at: Integer?
585
+ attr_accessor completed_at: Integer?
586
+ attr_accessor failed_at: Integer?
587
+ attr_accessor expired_at: Integer?
588
+ attr_accessor request_counts: BatchRequestCounts?
589
+ attr_accessor metadata: json_value?
590
590
 
591
591
  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: json_value) -> void
592
- end
592
+ end
593
593
 
594
- class BatchRequestCounts
595
- attr_accessor total: Integer?
596
- attr_accessor completed: Integer?
597
- attr_accessor failed: Integer?
594
+ class BatchRequestCounts
595
+ attr_accessor total: Integer?
596
+ attr_accessor completed: Integer?
597
+ attr_accessor failed: Integer?
598
598
 
599
599
  def initialize: (?total: Integer, ?completed: Integer, ?failed: Integer) -> void
600
- end
600
+ end
601
601
 
602
- class BatchListResponse
603
- attr_accessor object: String?
602
+ class BatchListResponse
603
+ attr_accessor object: String?
604
604
  attr_accessor data: Array[BatchObject]?
605
- attr_accessor has_more: bool?
606
- attr_accessor first_id: String?
607
- attr_accessor last_id: String?
605
+ attr_accessor has_more: bool?
606
+ attr_accessor first_id: String?
607
+ attr_accessor last_id: String?
608
608
 
609
- def initialize: (?object: String, ?data: Array[BatchObject], ?has_more: bool, ?first_id: String, ?last_id: String) -> void
610
- end
609
+ def initialize: (?object: String, ?data: Array[BatchObject], ?has_more: bool, ?first_id: String, ?last_id: String) -> void
610
+ end
611
611
 
612
- class BatchListQuery
613
- attr_accessor limit: Integer?
614
- attr_accessor after: String?
612
+ class BatchListQuery
613
+ attr_accessor limit: Integer?
614
+ attr_accessor after: String?
615
615
 
616
616
  def initialize: (?limit: Integer, ?after: String) -> void
617
- end
617
+ end
618
618
 
619
- class CreateResponseRequest
620
- attr_accessor model: String?
621
- attr_accessor input: json_value?
622
- attr_accessor instructions: String?
619
+ class CreateResponseRequest
620
+ attr_accessor model: String?
621
+ attr_accessor input: json_value?
622
+ attr_accessor instructions: String?
623
623
  attr_accessor tools: Array[ResponseTool]?
624
- attr_accessor temperature: Float?
625
- attr_accessor max_output_tokens: Integer?
626
- attr_accessor metadata: json_value?
624
+ attr_accessor temperature: Float?
625
+ attr_accessor max_output_tokens: Integer?
626
+ attr_accessor metadata: json_value?
627
627
 
628
- def initialize: (?model: String, ?input: json_value, ?instructions: String, ?tools: Array[ResponseTool], ?temperature: Float, ?max_output_tokens: Integer, ?metadata: json_value) -> void
629
- end
628
+ def initialize: (?model: String, ?input: json_value, ?instructions: String, ?tools: Array[ResponseTool], ?temperature: Float, ?max_output_tokens: Integer, ?metadata: json_value) -> void
629
+ end
630
630
 
631
- class ResponseTool
632
- attr_accessor tool_type: String?
633
- attr_accessor config: json_value?
631
+ class ResponseTool
632
+ attr_accessor tool_type: String?
633
+ attr_accessor config: json_value?
634
634
 
635
635
  def initialize: (?tool_type: String, ?config: json_value) -> void
636
- end
637
-
638
- class ResponseObject
639
- attr_accessor id: String?
640
- attr_accessor object: String?
641
- attr_accessor created_at: Integer?
642
- attr_accessor model: String?
643
- attr_accessor status: String?
636
+ end
637
+
638
+ class ResponseObject
639
+ attr_accessor id: String?
640
+ attr_accessor object: String?
641
+ attr_accessor created_at: Integer?
642
+ attr_accessor model: String?
643
+ attr_accessor status: String?
644
644
  attr_accessor output: Array[ResponseOutputItem]?
645
- attr_accessor usage: ResponseUsage?
646
- attr_accessor error: json_value?
645
+ attr_accessor usage: ResponseUsage?
646
+ attr_accessor error: json_value?
647
647
 
648
- def initialize: (?id: String, ?object: String, ?created_at: Integer, ?model: String, ?status: String, ?output: Array[ResponseOutputItem], ?usage: ResponseUsage, ?error: json_value) -> void
649
- end
648
+ def initialize: (?id: String, ?object: String, ?created_at: Integer, ?model: String, ?status: String, ?output: Array[ResponseOutputItem], ?usage: ResponseUsage, ?error: json_value) -> void
649
+ end
650
650
 
651
- class ResponseOutputItem
652
- attr_accessor item_type: String?
653
- attr_accessor content: json_value?
651
+ class ResponseOutputItem
652
+ attr_accessor item_type: String?
653
+ attr_accessor content: json_value?
654
654
 
655
655
  def initialize: (?item_type: String, ?content: json_value) -> void
656
- end
656
+ end
657
657
 
658
- class ResponseUsage
659
- attr_accessor input_tokens: Integer?
660
- attr_accessor output_tokens: Integer?
661
- attr_accessor total_tokens: Integer?
658
+ class ResponseUsage
659
+ attr_accessor input_tokens: Integer?
660
+ attr_accessor output_tokens: Integer?
661
+ attr_accessor total_tokens: Integer?
662
662
 
663
663
  def initialize: (?input_tokens: Integer, ?output_tokens: Integer, ?total_tokens: Integer) -> void
664
- end
664
+ end
665
665
 
666
- class WaitForBatchConfig
667
- attr_accessor initial_interval_secs: Float?
668
- attr_accessor max_interval_secs: Float?
669
- attr_accessor backoff_multiplier: Float?
670
- attr_accessor timeout_secs: Float?
666
+ class WaitForBatchConfig
667
+ attr_accessor initial_interval_secs: Float?
668
+ attr_accessor max_interval_secs: Float?
669
+ attr_accessor backoff_multiplier: Float?
670
+ attr_accessor timeout_secs: Float?
671
671
 
672
672
  def initialize: (?initial_interval_secs: Float, ?max_interval_secs: Float, ?backoff_multiplier: Float, ?timeout_secs: Float) -> void
673
673
  def self.default: () -> WaitForBatchConfig
674
- end
674
+ end
675
675
 
676
- class DefaultClient
676
+ class DefaultClient
677
677
  def chat: (ChatCompletionRequest req) -> ChatCompletionResponse
678
- def chat_stream: (ChatCompletionRequest req) -> Enumerator[ChatStreamIterator]
678
+ def chat_stream: (ChatCompletionRequest req) -> Enumerator[ChatStreamIterator]
679
679
  def embed: (EmbeddingRequest req) -> EmbeddingResponse
680
680
  def list_models: () -> ModelsListResponse
681
681
  def image_generate: (CreateImageRequest req) -> ImagesResponse
@@ -699,222 +699,222 @@ module LiterLlm
699
699
  def create_response: (CreateResponseRequest req) -> ResponseObject
700
700
  def retrieve_response: (String response_id) -> ResponseObject
701
701
  def cancel_response: (String response_id) -> ResponseObject
702
- end
702
+ end
703
703
 
704
- class CustomProviderConfig
705
- attr_reader name: String
706
- attr_reader base_url: String
707
- attr_reader auth_header: AuthHeaderFormat
704
+ class CustomProviderConfig
705
+ attr_reader name: String
706
+ attr_reader base_url: String
707
+ attr_reader auth_header: AuthHeaderFormat
708
708
  attr_reader model_prefixes: Array[String]
709
709
 
710
- def initialize: (name: String, base_url: String, auth_header: AuthHeaderFormat, model_prefixes: Array[String]) -> void
711
- end
710
+ def initialize: (name: String, base_url: String, auth_header: AuthHeaderFormat, model_prefixes: Array[String]) -> void
711
+ end
712
712
 
713
- class ProviderCapabilities
714
- attr_accessor vision: bool?
715
- attr_accessor reasoning: bool?
716
- attr_accessor structured_output: bool?
717
- attr_accessor function_calling: bool?
718
- attr_accessor audio_in: bool?
719
- attr_accessor audio_out: bool?
720
- attr_accessor video_in: bool?
713
+ class ProviderCapabilities
714
+ attr_accessor vision: bool?
715
+ attr_accessor reasoning: bool?
716
+ attr_accessor structured_output: bool?
717
+ attr_accessor function_calling: bool?
718
+ attr_accessor audio_in: bool?
719
+ attr_accessor audio_out: bool?
720
+ attr_accessor video_in: bool?
721
721
 
722
722
  def initialize: (?vision: bool, ?reasoning: bool, ?structured_output: bool, ?function_calling: bool, ?audio_in: bool, ?audio_out: bool, ?video_in: bool) -> void
723
- end
723
+ end
724
724
 
725
- class ProviderConfig
726
- attr_reader name: String
727
- attr_reader display_name: String
728
- attr_reader base_url: String
729
- attr_reader auth: AuthConfig
725
+ class ProviderConfig
726
+ attr_reader name: String
727
+ attr_reader display_name: String
728
+ attr_reader base_url: String
729
+ attr_reader auth: AuthConfig
730
730
  attr_reader endpoints: Array[String]
731
731
  attr_reader model_prefixes: Array[String]
732
732
  attr_reader param_mappings: Hash[String, String]
733
733
 
734
- def initialize: (name: String, ?display_name: String, ?base_url: String, ?auth: AuthConfig, ?endpoints: Array[String], ?model_prefixes: Array[String], ?param_mappings: Hash[String, String]) -> void
735
- end
734
+ def initialize: (name: String, ?display_name: String, ?base_url: String, ?auth: AuthConfig, ?endpoints: Array[String], ?model_prefixes: Array[String], ?param_mappings: Hash[String, String]) -> void
735
+ end
736
736
 
737
- class AuthConfig
738
- attr_reader auth_type: AuthType
739
- attr_reader env_var: String
737
+ class AuthConfig
738
+ attr_reader auth_type: AuthType
739
+ attr_reader env_var: String
740
740
 
741
741
  def initialize: (auth_type: AuthType, ?env_var: String) -> void
742
- end
742
+ end
743
743
 
744
- class BudgetConfig
745
- attr_accessor global_limit: Float?
744
+ class BudgetConfig
745
+ attr_accessor global_limit: Float?
746
746
  attr_accessor model_limits: Hash[String, Float]?
747
- attr_accessor enforcement: Enforcement?
747
+ attr_accessor enforcement: Enforcement?
748
748
 
749
- def initialize: (?global_limit: Float, ?model_limits: Hash[String, Float], ?enforcement: Enforcement) -> void
749
+ def initialize: (?global_limit: Float, ?model_limits: Hash[String, Float], ?enforcement: Enforcement) -> void
750
750
  def self.default: () -> BudgetConfig
751
- end
751
+ end
752
752
 
753
- class CacheConfig
754
- attr_accessor max_entries: Integer?
755
- attr_accessor ttl: Integer?
756
- attr_accessor backend: CacheBackend?
753
+ class CacheConfig
754
+ attr_accessor max_entries: Integer?
755
+ attr_accessor ttl: Integer?
756
+ attr_accessor backend: CacheBackend?
757
757
 
758
758
  def initialize: (?max_entries: Integer, ?ttl: Integer, ?backend: CacheBackend) -> void
759
759
  def self.default: () -> CacheConfig
760
- end
760
+ end
761
761
 
762
- class SingleflightResult
763
- end
762
+ class SingleflightResult
763
+ end
764
764
 
765
- class RateLimitConfig
766
- attr_accessor rpm: Integer?
767
- attr_accessor tpm: Integer?
768
- attr_accessor window: Integer?
765
+ class RateLimitConfig
766
+ attr_accessor rpm: Integer?
767
+ attr_accessor tpm: Integer?
768
+ attr_accessor window: Integer?
769
769
 
770
770
  def initialize: (?rpm: Integer, ?tpm: Integer, ?window: Integer) -> void
771
771
  def self.default: () -> RateLimitConfig
772
- end
772
+ end
773
773
 
774
- class IntentPrototype
775
- attr_reader name: String
774
+ class IntentPrototype
775
+ attr_reader name: String
776
776
  attr_reader embedding: Array[Float]
777
- attr_reader model: String
777
+ attr_reader model: String
778
778
 
779
- def initialize: (name: String, embedding: Array[Float], model: String) -> void
780
- end
779
+ def initialize: (name: String, embedding: Array[Float], model: String) -> void
780
+ end
781
781
 
782
- class Message
783
- end
782
+ class Message
783
+ end
784
784
 
785
- class UserContent
786
- end
785
+ class UserContent
786
+ end
787
787
 
788
- class ContentPart
789
- end
788
+ class ContentPart
789
+ end
790
790
 
791
- class ImageDetail
792
- type value = :low | :high | :auto
793
- end
791
+ class ImageDetail
792
+ type value = :low | :high | :auto
793
+ end
794
794
 
795
- class AssistantContent
796
- end
795
+ class AssistantContent
796
+ end
797
797
 
798
- class AssistantPart
799
- end
798
+ class AssistantPart
799
+ end
800
800
 
801
- class ToolType
802
- type value = :function
803
- end
801
+ class ToolType
802
+ type value = :function
803
+ end
804
804
 
805
- class ToolChoice
806
- end
805
+ class ToolChoice
806
+ end
807
807
 
808
- class ToolChoiceMode
809
- type value = :auto | :required | :none
810
- end
808
+ class ToolChoiceMode
809
+ type value = :auto | :required | :none
810
+ end
811
811
 
812
- class ResponseFormat
813
- end
812
+ class ResponseFormat
813
+ end
814
814
 
815
- class StopSequence
816
- end
815
+ class StopSequence
816
+ end
817
817
 
818
- class Modality
819
- type value = :text | :audio | :image
820
- end
818
+ class Modality
819
+ type value = :text | :audio | :image
820
+ end
821
821
 
822
- class FinishReason
823
- type value = :stop | :length | :tool_calls | :content_filter | :function_call | :other
824
- end
822
+ class FinishReason
823
+ type value = :stop | :length | :tool_calls | :content_filter | :function_call | :other
824
+ end
825
825
 
826
- class ReasoningEffort
827
- type value = :low | :medium | :high
828
- end
826
+ class ReasoningEffort
827
+ type value = :low | :medium | :high
828
+ end
829
829
 
830
- class EmbeddingFormat
831
- type value = :float | :base64
832
- end
830
+ class EmbeddingFormat
831
+ type value = :float | :base64
832
+ end
833
833
 
834
- class EmbeddingInput
835
- end
834
+ class EmbeddingInput
835
+ end
836
836
 
837
- class ModerationInput
838
- end
837
+ class ModerationInput
838
+ end
839
839
 
840
- class RerankDocument
840
+ class RerankDocument
841
841
  def self.object: (String text) -> RerankDocument
842
842
 
843
- end
843
+ end
844
844
 
845
- class OcrDocument
846
- end
845
+ class OcrDocument
846
+ end
847
847
 
848
- class FilePurpose
849
- type value = :assistants | :batch | :fine_tune | :vision
850
- end
848
+ class FilePurpose
849
+ type value = :assistants | :batch | :fine_tune | :vision
850
+ end
851
851
 
852
- class BatchStatus
853
- type value = :validating | :failed | :in_progress | :finalizing | :completed | :expired | :cancelling | :cancelled
854
- end
852
+ class BatchStatus
853
+ type value = :validating | :failed | :in_progress | :finalizing | :completed | :expired | :cancelling | :cancelled
854
+ end
855
855
 
856
- class AuthHeaderFormat
857
- end
856
+ class AuthHeaderFormat
857
+ end
858
858
 
859
- class StreamFormat
860
- type value = :sse | :aws_event_stream
861
- end
859
+ class StreamFormat
860
+ type value = :sse | :aws_event_stream
861
+ end
862
862
 
863
- class AuthType
864
- type value = :bearer | :api_key | :none | :unknown
865
- end
863
+ class AuthType
864
+ type value = :bearer | :api_key | :none | :unknown
865
+ end
866
866
 
867
- class Enforcement
868
- type value = :hard | :soft
869
- end
867
+ class Enforcement
868
+ type value = :hard | :soft
869
+ end
870
870
 
871
- class CacheBackend
872
- end
871
+ class CacheBackend
872
+ end
873
873
 
874
- class CircuitState
875
- type value = :closed | :open | :half_open
876
- end
874
+ class CircuitState
875
+ type value = :closed | :open | :half_open
876
+ end
877
877
 
878
- class HealthStatus
879
- type value = :healthy | :unhealthy
880
- end
878
+ class HealthStatus
879
+ type value = :healthy | :unhealthy
880
+ end
881
881
 
882
- def self.create_client: (String api_key, ?String base_url, ?Integer timeout_secs, ?Integer max_retries, ?String model_hint) -> DefaultClient
882
+ def self.create_client: (String api_key, ?String base_url, ?Integer timeout_secs, ?Integer max_retries, ?String model_hint) -> DefaultClient
883
883
 
884
- def self.create_client_from_json: (String json) -> DefaultClient
884
+ def self.create_client_from_json: (String json) -> DefaultClient
885
885
 
886
- def self.encode_data_url: (String bytes, ?String mime) -> String
886
+ def self.encode_data_url: (String bytes, ?String mime) -> String
887
887
 
888
- def self.decode_data_url: (String url) -> DecodedDataUrl?
888
+ def self.decode_data_url: (String url) -> DecodedDataUrl?
889
889
 
890
- def self.register_custom_provider: (CustomProviderConfig config) -> void
890
+ def self.register_custom_provider: (CustomProviderConfig config) -> void
891
891
 
892
- def self.unregister_custom_provider: (String name) -> bool
892
+ def self.unregister_custom_provider: (String name) -> bool
893
893
 
894
- def self.capabilities: (String provider_name) -> ProviderCapabilities
894
+ def self.capabilities: (String provider_name) -> ProviderCapabilities
895
895
 
896
- def self.all_providers: () -> Array[ProviderConfig]
896
+ def self.all_providers: () -> Array[ProviderConfig]
897
897
 
898
- def self.complex_provider_names: () -> Array[String]
898
+ def self.complex_provider_names: () -> Array[String]
899
899
 
900
- def self.completion_cost: (String model, Integer prompt_tokens, Integer completion_tokens) -> Float?
900
+ def self.completion_cost: (String model, Integer prompt_tokens, Integer completion_tokens) -> Float?
901
901
 
902
- def self.completion_cost_with_cache: (String model, Integer prompt_tokens, Integer cached_tokens, Integer completion_tokens) -> Float?
902
+ def self.completion_cost_with_cache: (String model, Integer prompt_tokens, Integer cached_tokens, Integer completion_tokens) -> Float?
903
903
 
904
- def self.clear: () -> void
904
+ def self.clear: () -> void
905
905
 
906
- def self.count_tokens: (String model, String text) -> Integer
906
+ def self.count_tokens: (String model, String text) -> Integer
907
907
 
908
- def self.count_request_tokens: (String model, ChatCompletionRequest req) -> Integer
908
+ def self.count_request_tokens: (String model, ChatCompletionRequest req) -> Integer
909
909
 
910
- def self.check_bound: (String context, Integer current_len, Integer incoming, Integer limit) -> void
910
+ def self.check_bound: (String context, Integer current_len, Integer incoming, Integer limit) -> void
911
911
 
912
- def self.ensure_crypto_provider: () -> void
912
+ def self.ensure_crypto_provider: () -> void
913
913
 
914
- class LiterLlmErrorInfo
914
+ class LiterLlmErrorInfo
915
915
  def status_code: () -> Integer
916
916
  def transient?: () -> bool
917
917
  def error_type: () -> String
918
- end
918
+ end
919
919
 
920
920
  end