@xberg-io/liter-llm-wasm 2.1.0 → 2.1.2

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.
@@ -128,7 +128,15 @@ export class IntoUnderlyingSource {
128
128
  export class WasmAssistantMessage {
129
129
  free(): void;
130
130
  [Symbol.dispose](): void;
131
+ clearFunctionCall(): void;
131
132
  static default(): WasmAssistantMessage;
133
+ /**
134
+ * Takes ownership of `functionCall`.
135
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
136
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
137
+ * keep a handle you already hold, build with `default()` and assign the property instead:
138
+ * the generated setter borrows and leaves your handle alive.
139
+ */
132
140
  constructor(content?: string | null, name?: string | null, toolCalls?: WasmToolCall[] | null, refusal?: string | null, functionCall?: WasmFunctionCall | null, reasoningContent?: string | null);
133
141
  /**
134
142
  * Return all `AssistantPart.OutputAudio` parts in the response.
@@ -159,7 +167,7 @@ export class WasmAssistantMessage {
159
167
  get content(): string | undefined;
160
168
  set content(value: string | null | undefined);
161
169
  get functionCall(): WasmFunctionCall | undefined;
162
- set functionCall(value: WasmFunctionCall | null | undefined);
170
+ set functionCall(value: WasmFunctionCall);
163
171
  get name(): string | undefined;
164
172
  set name(value: string | null | undefined);
165
173
  get reasoningContent(): string | undefined;
@@ -179,12 +187,14 @@ export class WasmAssistantMessage {
179
187
  export class WasmAssistantPart {
180
188
  free(): void;
181
189
  [Symbol.dispose](): void;
190
+ clearAudio(): void;
191
+ clearImageUrl(): void;
182
192
  static default(): WasmAssistantPart;
183
193
  constructor();
184
194
  get audio(): WasmAudioContent | undefined;
185
- set audio(value: WasmAudioContent | null | undefined);
195
+ set audio(value: WasmAudioContent);
186
196
  get imageUrl(): WasmImageUrl | undefined;
187
- set imageUrl(value: WasmImageUrl | null | undefined);
197
+ set imageUrl(value: WasmImageUrl);
188
198
  get refusal(): string | undefined;
189
199
  set refusal(value: string | null | undefined);
190
200
  get text(): string | undefined;
@@ -282,7 +292,15 @@ export class WasmBatchListResponse {
282
292
  export class WasmBatchObject {
283
293
  free(): void;
284
294
  [Symbol.dispose](): void;
295
+ clearRequestCounts(): void;
285
296
  static default(): WasmBatchObject;
297
+ /**
298
+ * Takes ownership of `requestCounts`.
299
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
300
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
301
+ * keep a handle you already hold, build with `default()` and assign the property instead:
302
+ * the generated setter borrows and leaves your handle alive.
303
+ */
286
304
  constructor(id?: string | null, object?: string | null, endpoint?: string | null, inputFileId?: string | null, completionWindow?: string | null, status?: WasmBatchStatus | null, createdAt?: bigint | null, outputFileId?: string | null, errorFileId?: string | null, completedAt?: bigint | null, failedAt?: bigint | null, expiredAt?: bigint | null, requestCounts?: WasmBatchRequestCounts | null, metadata?: any | null);
287
305
  get completedAt(): bigint | undefined;
288
306
  set completedAt(value: bigint | null | undefined);
@@ -303,7 +321,7 @@ export class WasmBatchObject {
303
321
  get outputFileId(): string | undefined;
304
322
  set outputFileId(value: string | null | undefined);
305
323
  get requestCounts(): WasmBatchRequestCounts | undefined;
306
- set requestCounts(value: WasmBatchRequestCounts | null | undefined);
324
+ set requestCounts(value: WasmBatchRequestCounts);
307
325
  get status(): string;
308
326
  set status(value: WasmBatchStatus);
309
327
  }
@@ -392,7 +410,15 @@ export class WasmCatalogRefreshConfig {
392
410
  export class WasmChatCompletionChunk {
393
411
  free(): void;
394
412
  [Symbol.dispose](): void;
413
+ clearUsage(): void;
395
414
  static default(): WasmChatCompletionChunk;
415
+ /**
416
+ * Takes ownership of `usage`.
417
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
418
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
419
+ * keep a handle you already hold, build with `default()` and assign the property instead:
420
+ * the generated setter borrows and leaves your handle alive.
421
+ */
396
422
  constructor(id?: string | null, object?: string | null, created?: bigint | null, model?: string | null, choices?: WasmStreamChoice[] | null, usage?: WasmUsage | null, systemFingerprint?: string | null, serviceTier?: string | null);
397
423
  choices: WasmStreamChoice[];
398
424
  created: bigint;
@@ -404,7 +430,7 @@ export class WasmChatCompletionChunk {
404
430
  get systemFingerprint(): string | undefined;
405
431
  set systemFingerprint(value: string | null | undefined);
406
432
  get usage(): WasmUsage | undefined;
407
- set usage(value: WasmUsage | null | undefined);
433
+ set usage(value: WasmUsage);
408
434
  }
409
435
 
410
436
  /**
@@ -413,7 +439,15 @@ export class WasmChatCompletionChunk {
413
439
  export class WasmChatCompletionRequest {
414
440
  free(): void;
415
441
  [Symbol.dispose](): void;
442
+ clearStreamOptions(): void;
416
443
  static default(): WasmChatCompletionRequest;
444
+ /**
445
+ * Takes ownership of `streamOptions`.
446
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
447
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
448
+ * keep a handle you already hold, build with `default()` and assign the property instead:
449
+ * the generated setter borrows and leaves your handle alive.
450
+ */
417
451
  constructor(model?: string | null, messages?: any | null, temperature?: number | null, topP?: number | null, n?: number | null, stream?: boolean | null, stop?: any | null, maxTokens?: bigint | null, presencePenalty?: number | null, frequencyPenalty?: number | null, logitBias?: any | null, user?: string | null, tools?: WasmChatCompletionTool[] | null, toolChoice?: any | null, parallelToolCalls?: boolean | null, responseFormat?: any | null, streamOptions?: WasmStreamOptions | null, seed?: bigint | null, reasoningEffort?: WasmReasoningEffort | null, modalities?: WasmModality[] | null, logprobs?: boolean | null, topLogprobs?: number | null, maxCompletionTokens?: bigint | null, serviceTier?: string | null, store?: boolean | null, metadata?: any | null, prediction?: any | null, audio?: any | null, webSearchOptions?: any | null, extraBody?: any | null);
418
452
  get audio(): any | undefined;
419
453
  set audio(value: any | null | undefined);
@@ -456,7 +490,7 @@ export class WasmChatCompletionRequest {
456
490
  get store(): boolean | undefined;
457
491
  set store(value: boolean | null | undefined);
458
492
  get streamOptions(): WasmStreamOptions | undefined;
459
- set streamOptions(value: WasmStreamOptions | null | undefined);
493
+ set streamOptions(value: WasmStreamOptions);
460
494
  get stream(): boolean | undefined;
461
495
  set stream(value: boolean | null | undefined);
462
496
  get temperature(): number | undefined;
@@ -481,7 +515,15 @@ export class WasmChatCompletionRequest {
481
515
  export class WasmChatCompletionResponse {
482
516
  free(): void;
483
517
  [Symbol.dispose](): void;
518
+ clearUsage(): void;
484
519
  static default(): WasmChatCompletionResponse;
520
+ /**
521
+ * Takes ownership of `usage`.
522
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
523
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
524
+ * keep a handle you already hold, build with `default()` and assign the property instead:
525
+ * the generated setter borrows and leaves your handle alive.
526
+ */
485
527
  constructor(id?: string | null, object?: string | null, created?: bigint | null, model?: string | null, choices?: WasmChoice[] | null, usage?: WasmUsage | null, systemFingerprint?: string | null, serviceTier?: string | null);
486
528
  choices: WasmChoice[];
487
529
  created: bigint;
@@ -493,7 +535,7 @@ export class WasmChatCompletionResponse {
493
535
  get systemFingerprint(): string | undefined;
494
536
  set systemFingerprint(value: string | null | undefined);
495
537
  get usage(): WasmUsage | undefined;
496
- set usage(value: WasmUsage | null | undefined);
538
+ set usage(value: WasmUsage);
497
539
  }
498
540
 
499
541
  /**
@@ -516,6 +558,13 @@ export class WasmChoice {
516
558
  free(): void;
517
559
  [Symbol.dispose](): void;
518
560
  static default(): WasmChoice;
561
+ /**
562
+ * Takes ownership of `message`.
563
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
564
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
565
+ * keep a handle you already hold, build with `default()` and assign the property instead:
566
+ * the generated setter borrows and leaves your handle alive.
567
+ */
519
568
  constructor(index?: number | null, message?: WasmAssistantMessage | null, finishReason?: WasmFinishReason | null, logprobs?: any | null);
520
569
  get finishReason(): string | undefined;
521
570
  set finishReason(value: WasmFinishReason | null | undefined);
@@ -531,14 +580,17 @@ export class WasmChoice {
531
580
  export class WasmContentPart {
532
581
  free(): void;
533
582
  [Symbol.dispose](): void;
583
+ clearDocument(): void;
584
+ clearImageUrl(): void;
585
+ clearInputAudio(): void;
534
586
  static default(): WasmContentPart;
535
587
  constructor();
536
588
  get document(): WasmDocumentContent | undefined;
537
- set document(value: WasmDocumentContent | null | undefined);
589
+ set document(value: WasmDocumentContent);
538
590
  get imageUrl(): WasmImageUrl | undefined;
539
- set imageUrl(value: WasmImageUrl | null | undefined);
591
+ set imageUrl(value: WasmImageUrl);
540
592
  get inputAudio(): WasmAudioContent | undefined;
541
- set inputAudio(value: WasmAudioContent | null | undefined);
593
+ set inputAudio(value: WasmAudioContent);
542
594
  get text(): string | undefined;
543
595
  set text(value: string | null | undefined);
544
596
  type: string;
@@ -814,12 +866,13 @@ export class WasmDocumentContent {
814
866
  export class WasmEmbeddingContentPart {
815
867
  free(): void;
816
868
  [Symbol.dispose](): void;
869
+ clearImageUrl(): void;
817
870
  static default(): WasmEmbeddingContentPart;
818
871
  constructor();
819
872
  get imageBase64(): string | undefined;
820
873
  set imageBase64(value: string | null | undefined);
821
874
  get imageUrl(): WasmImageUrl | undefined;
822
- set imageUrl(value: WasmImageUrl | null | undefined);
875
+ set imageUrl(value: WasmImageUrl);
823
876
  get text(): string | undefined;
824
877
  set text(value: string | null | undefined);
825
878
  type: string;
@@ -870,13 +923,21 @@ export class WasmEmbeddingRequest {
870
923
  export class WasmEmbeddingResponse {
871
924
  free(): void;
872
925
  [Symbol.dispose](): void;
926
+ clearUsage(): void;
873
927
  static default(): WasmEmbeddingResponse;
928
+ /**
929
+ * Takes ownership of `usage`.
930
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
931
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
932
+ * keep a handle you already hold, build with `default()` and assign the property instead:
933
+ * the generated setter borrows and leaves your handle alive.
934
+ */
874
935
  constructor(object: string, data: WasmEmbeddingObject[], model: string, usage?: WasmUsage | null);
875
936
  data: WasmEmbeddingObject[];
876
937
  model: string;
877
938
  object: string;
878
939
  get usage(): WasmUsage | undefined;
879
- set usage(value: WasmUsage | null | undefined);
940
+ set usage(value: WasmUsage);
880
941
  }
881
942
 
882
943
  /**
@@ -1136,18 +1197,30 @@ export class WasmLlmCacheConfig {
1136
1197
  export class WasmLlmConfig {
1137
1198
  free(): void;
1138
1199
  [Symbol.dispose](): void;
1200
+ clearBedrock(): void;
1201
+ clearBudget(): void;
1202
+ clearCache(): void;
1203
+ clearInFlightLimit(): void;
1204
+ clearRateLimit(): void;
1139
1205
  static default(): WasmLlmConfig;
1206
+ /**
1207
+ * Takes ownership of `cache`, `budget`, `rateLimit`, `inFlightLimit`, `bedrock`.
1208
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1209
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1210
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1211
+ * the generated setter borrows and leaves your handle alive.
1212
+ */
1140
1213
  constructor(model?: string | null, apiKey?: string | null, baseUrl?: string | null, timeoutSecs?: bigint | null, maxRetries?: number | null, temperature?: number | null, maxTokens?: bigint | null, loadEnv?: boolean | null, headers?: any | null, providers?: WasmLlmProviderConfig[] | null, cache?: WasmLlmCacheConfig | null, budget?: WasmLlmBudgetConfig | null, rateLimit?: WasmLlmRateLimitConfig | null, inFlightLimit?: WasmLlmInFlightLimitConfig | null, costTracking?: boolean | null, tracing?: boolean | null, cooldownSecs?: bigint | null, healthCheckSecs?: bigint | null, bedrock?: WasmBedrockConfig | null);
1141
1214
  get apiKey(): string | undefined;
1142
1215
  set apiKey(value: string | null | undefined);
1143
1216
  get baseUrl(): string | undefined;
1144
1217
  set baseUrl(value: string | null | undefined);
1145
1218
  get bedrock(): WasmBedrockConfig | undefined;
1146
- set bedrock(value: WasmBedrockConfig | null | undefined);
1219
+ set bedrock(value: WasmBedrockConfig);
1147
1220
  get budget(): WasmLlmBudgetConfig | undefined;
1148
- set budget(value: WasmLlmBudgetConfig | null | undefined);
1221
+ set budget(value: WasmLlmBudgetConfig);
1149
1222
  get cache(): WasmLlmCacheConfig | undefined;
1150
- set cache(value: WasmLlmCacheConfig | null | undefined);
1223
+ set cache(value: WasmLlmCacheConfig);
1151
1224
  get cooldownSecs(): bigint | undefined;
1152
1225
  set cooldownSecs(value: bigint | null | undefined);
1153
1226
  get costTracking(): boolean | undefined;
@@ -1157,7 +1230,7 @@ export class WasmLlmConfig {
1157
1230
  get healthCheckSecs(): bigint | undefined;
1158
1231
  set healthCheckSecs(value: bigint | null | undefined);
1159
1232
  get inFlightLimit(): WasmLlmInFlightLimitConfig | undefined;
1160
- set inFlightLimit(value: WasmLlmInFlightLimitConfig | null | undefined);
1233
+ set inFlightLimit(value: WasmLlmInFlightLimitConfig);
1161
1234
  get loadEnv(): boolean | undefined;
1162
1235
  set loadEnv(value: boolean | null | undefined);
1163
1236
  get maxRetries(): number | undefined;
@@ -1168,7 +1241,7 @@ export class WasmLlmConfig {
1168
1241
  get providers(): Array<any> | undefined;
1169
1242
  set providers(value: WasmLlmProviderConfig[] | null | undefined);
1170
1243
  get rateLimit(): WasmLlmRateLimitConfig | undefined;
1171
- set rateLimit(value: WasmLlmRateLimitConfig | null | undefined);
1244
+ set rateLimit(value: WasmLlmRateLimitConfig);
1172
1245
  get temperature(): number | undefined;
1173
1246
  set temperature(value: number | null | undefined);
1174
1247
  get timeoutSecs(): bigint | undefined;
@@ -1451,10 +1524,18 @@ export class WasmOcrImage {
1451
1524
  export class WasmOcrPage {
1452
1525
  free(): void;
1453
1526
  [Symbol.dispose](): void;
1527
+ clearDimensions(): void;
1454
1528
  static default(): WasmOcrPage;
1529
+ /**
1530
+ * Takes ownership of `dimensions`.
1531
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1532
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1533
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1534
+ * the generated setter borrows and leaves your handle alive.
1535
+ */
1455
1536
  constructor(index: number, markdown: string, images?: WasmOcrImage[] | null, dimensions?: WasmPageDimensions | null);
1456
1537
  get dimensions(): WasmPageDimensions | undefined;
1457
- set dimensions(value: WasmPageDimensions | null | undefined);
1538
+ set dimensions(value: WasmPageDimensions);
1458
1539
  get images(): Array<any> | undefined;
1459
1540
  set images(value: WasmOcrImage[] | null | undefined);
1460
1541
  index: number;
@@ -1483,12 +1564,20 @@ export class WasmOcrRequest {
1483
1564
  export class WasmOcrResponse {
1484
1565
  free(): void;
1485
1566
  [Symbol.dispose](): void;
1567
+ clearUsage(): void;
1486
1568
  static default(): WasmOcrResponse;
1569
+ /**
1570
+ * Takes ownership of `usage`.
1571
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1572
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1573
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1574
+ * the generated setter borrows and leaves your handle alive.
1575
+ */
1487
1576
  constructor(pages: WasmOcrPage[], model: string, usage?: WasmUsage | null);
1488
1577
  model: string;
1489
1578
  pages: WasmOcrPage[];
1490
1579
  get usage(): WasmUsage | undefined;
1491
- set usage(value: WasmUsage | null | undefined);
1580
+ set usage(value: WasmUsage);
1492
1581
  }
1493
1582
 
1494
1583
  /**
@@ -1556,10 +1645,18 @@ export class WasmProviderCapabilities {
1556
1645
  export class WasmProviderConfig {
1557
1646
  free(): void;
1558
1647
  [Symbol.dispose](): void;
1648
+ clearAuth(): void;
1559
1649
  static default(): WasmProviderConfig;
1650
+ /**
1651
+ * Takes ownership of `auth`.
1652
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1653
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1654
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1655
+ * the generated setter borrows and leaves your handle alive.
1656
+ */
1560
1657
  constructor(name: string, displayName?: string | null, baseUrl?: string | null, auth?: WasmAuthConfig | null, endpoints?: string[] | null, modelPrefixes?: string[] | null, paramMappings?: any | null);
1561
1658
  get auth(): WasmAuthConfig | undefined;
1562
- set auth(value: WasmAuthConfig | null | undefined);
1659
+ set auth(value: WasmAuthConfig);
1563
1660
  get baseUrl(): string | undefined;
1564
1661
  set baseUrl(value: string | null | undefined);
1565
1662
  get displayName(): string | undefined;
@@ -1631,10 +1728,18 @@ export class WasmRerankResponse {
1631
1728
  export class WasmRerankResult {
1632
1729
  free(): void;
1633
1730
  [Symbol.dispose](): void;
1731
+ clearDocument(): void;
1634
1732
  static default(): WasmRerankResult;
1733
+ /**
1734
+ * Takes ownership of `document`.
1735
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1736
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1737
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1738
+ * the generated setter borrows and leaves your handle alive.
1739
+ */
1635
1740
  constructor(index: number, relevanceScore: number, document?: WasmRerankResultDocument | null);
1636
1741
  get document(): WasmRerankResultDocument | undefined;
1637
- set document(value: WasmRerankResultDocument | null | undefined);
1742
+ set document(value: WasmRerankResultDocument);
1638
1743
  index: number;
1639
1744
  relevanceScore: number;
1640
1745
  }
@@ -1673,10 +1778,11 @@ export class WasmRerankResultDocument {
1673
1778
  export class WasmResponseFormat {
1674
1779
  free(): void;
1675
1780
  [Symbol.dispose](): void;
1781
+ clearJsonSchema(): void;
1676
1782
  static default(): WasmResponseFormat;
1677
1783
  constructor();
1678
1784
  get jsonSchema(): WasmJsonSchemaFormat | undefined;
1679
- set jsonSchema(value: WasmJsonSchemaFormat | null | undefined);
1785
+ set jsonSchema(value: WasmJsonSchemaFormat);
1680
1786
  type: string;
1681
1787
  }
1682
1788
 
@@ -1686,7 +1792,15 @@ export class WasmResponseFormat {
1686
1792
  export class WasmResponseObject {
1687
1793
  free(): void;
1688
1794
  [Symbol.dispose](): void;
1795
+ clearUsage(): void;
1689
1796
  static default(): WasmResponseObject;
1797
+ /**
1798
+ * Takes ownership of `usage`.
1799
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1800
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1801
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1802
+ * the generated setter borrows and leaves your handle alive.
1803
+ */
1690
1804
  constructor(id?: string | null, object?: string | null, createdAt?: bigint | null, model?: string | null, status?: string | null, output?: WasmResponseOutputItem[] | null, usage?: WasmResponseUsage | null, error?: any | null);
1691
1805
  createdAt: bigint;
1692
1806
  get error(): any | undefined;
@@ -1697,7 +1811,7 @@ export class WasmResponseObject {
1697
1811
  output: WasmResponseOutputItem[];
1698
1812
  status: string;
1699
1813
  get usage(): WasmResponseUsage | undefined;
1700
- set usage(value: WasmResponseUsage | null | undefined);
1814
+ set usage(value: WasmResponseUsage);
1701
1815
  }
1702
1816
 
1703
1817
  /**
@@ -1800,6 +1914,13 @@ export class WasmSpecificToolChoice {
1800
1914
  free(): void;
1801
1915
  [Symbol.dispose](): void;
1802
1916
  static default(): WasmSpecificToolChoice;
1917
+ /**
1918
+ * Takes ownership of `function`.
1919
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1920
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1921
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1922
+ * the generated setter borrows and leaves your handle alive.
1923
+ */
1803
1924
  constructor(choiceType?: WasmToolType | null, _function?: WasmSpecificFunction | null);
1804
1925
  get choiceType(): string;
1805
1926
  set choiceType(value: WasmToolType);
@@ -1813,6 +1934,13 @@ export class WasmStreamChoice {
1813
1934
  free(): void;
1814
1935
  [Symbol.dispose](): void;
1815
1936
  static default(): WasmStreamChoice;
1937
+ /**
1938
+ * Takes ownership of `delta`.
1939
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1940
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1941
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1942
+ * the generated setter borrows and leaves your handle alive.
1943
+ */
1816
1944
  constructor(index?: number | null, delta?: WasmStreamDelta | null, finishReason?: WasmFinishReason | null);
1817
1945
  delta: WasmStreamDelta;
1818
1946
  get finishReason(): string | undefined;
@@ -1826,12 +1954,20 @@ export class WasmStreamChoice {
1826
1954
  export class WasmStreamDelta {
1827
1955
  free(): void;
1828
1956
  [Symbol.dispose](): void;
1957
+ clearFunctionCall(): void;
1829
1958
  static default(): WasmStreamDelta;
1959
+ /**
1960
+ * Takes ownership of `functionCall`.
1961
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1962
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1963
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1964
+ * the generated setter borrows and leaves your handle alive.
1965
+ */
1830
1966
  constructor(role?: string | null, content?: string | null, toolCalls?: WasmStreamToolCall[] | null, functionCall?: WasmStreamFunctionCall | null, refusal?: string | null, reasoningContent?: string | null);
1831
1967
  get content(): string | undefined;
1832
1968
  set content(value: string | null | undefined);
1833
1969
  get functionCall(): WasmStreamFunctionCall | undefined;
1834
- set functionCall(value: WasmStreamFunctionCall | null | undefined);
1970
+ set functionCall(value: WasmStreamFunctionCall);
1835
1971
  get reasoningContent(): string | undefined;
1836
1972
  set reasoningContent(value: string | null | undefined);
1837
1973
  get refusal(): string | undefined;
@@ -1887,12 +2023,20 @@ export class WasmStreamOptions {
1887
2023
  export class WasmStreamToolCall {
1888
2024
  free(): void;
1889
2025
  [Symbol.dispose](): void;
2026
+ clearFunction(): void;
1890
2027
  static default(): WasmStreamToolCall;
2028
+ /**
2029
+ * Takes ownership of `function`.
2030
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2031
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2032
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2033
+ * the generated setter borrows and leaves your handle alive.
2034
+ */
1891
2035
  constructor(index?: number | null, id?: string | null, callType?: WasmToolType | null, _function?: WasmStreamFunctionCall | null);
1892
2036
  get callType(): string | undefined;
1893
2037
  set callType(value: WasmToolType | null | undefined);
1894
2038
  get function(): WasmStreamFunctionCall | undefined;
1895
- set function(value: WasmStreamFunctionCall | null | undefined);
2039
+ set function(value: WasmStreamFunctionCall);
1896
2040
  get id(): string | undefined;
1897
2041
  set id(value: string | null | undefined);
1898
2042
  index: number;
@@ -1996,11 +2140,19 @@ export class WasmTranscriptionSegment {
1996
2140
  export class WasmUsage {
1997
2141
  free(): void;
1998
2142
  [Symbol.dispose](): void;
2143
+ clearPromptTokensDetails(): void;
1999
2144
  static default(): WasmUsage;
2145
+ /**
2146
+ * Takes ownership of `promptTokensDetails`.
2147
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2148
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2149
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2150
+ * the generated setter borrows and leaves your handle alive.
2151
+ */
2000
2152
  constructor(promptTokens?: bigint | null, completionTokens?: bigint | null, totalTokens?: bigint | null, promptTokensDetails?: WasmPromptTokensDetails | null);
2001
2153
  completionTokens: bigint;
2002
2154
  get promptTokensDetails(): WasmPromptTokensDetails | undefined;
2003
- set promptTokensDetails(value: WasmPromptTokensDetails | null | undefined);
2155
+ set promptTokensDetails(value: WasmPromptTokensDetails);
2004
2156
  promptTokens: bigint;
2005
2157
  totalTokens: bigint;
2006
2158
  }
@@ -2397,6 +2549,7 @@ export interface InitOutput {
2397
2549
  readonly refreshCatalog: (a: number) => any;
2398
2550
  readonly registerCustomProvider: (a: number) => [number, number];
2399
2551
  readonly unregisterCustomProvider: (a: number, b: number) => [number, number, number];
2552
+ readonly wasmassistantmessage_clearFunctionCall: (a: number) => void;
2400
2553
  readonly wasmassistantmessage_content: (a: number) => [number, number];
2401
2554
  readonly wasmassistantmessage_default: () => number;
2402
2555
  readonly wasmassistantmessage_functionCall: (a: number) => number;
@@ -2417,6 +2570,8 @@ export interface InitOutput {
2417
2570
  readonly wasmassistantmessage_text: (a: number) => [number, number];
2418
2571
  readonly wasmassistantmessage_toolCalls: (a: number) => any;
2419
2572
  readonly wasmassistantpart_audio: (a: number) => number;
2573
+ readonly wasmassistantpart_clearAudio: (a: number) => void;
2574
+ readonly wasmassistantpart_clearImageUrl: (a: number) => void;
2420
2575
  readonly wasmassistantpart_default: () => number;
2421
2576
  readonly wasmassistantpart_imageUrl: (a: number) => number;
2422
2577
  readonly wasmassistantpart_new: () => number;
@@ -2464,6 +2619,7 @@ export interface InitOutput {
2464
2619
  readonly wasmbatchlistresponse_set_hasMore: (a: number, b: number) => void;
2465
2620
  readonly wasmbatchlistresponse_set_lastId: (a: number, b: number, c: number) => void;
2466
2621
  readonly wasmbatchlistresponse_set_object: (a: number, b: number, c: number) => void;
2622
+ readonly wasmbatchobject_clearRequestCounts: (a: number) => void;
2467
2623
  readonly wasmbatchobject_completedAt: (a: number) => [number, bigint];
2468
2624
  readonly wasmbatchobject_completionWindow: (a: number) => [number, number];
2469
2625
  readonly wasmbatchobject_createdAt: (a: number) => bigint;
@@ -2525,6 +2681,7 @@ export interface InitOutput {
2525
2681
  readonly wasmcatalogrefreshconfig_sourceUrl: (a: number) => [number, number];
2526
2682
  readonly wasmcatalogrefreshconfig_ttlSeconds: (a: number) => bigint;
2527
2683
  readonly wasmchatcompletionchunk_choices: (a: number) => [number, number];
2684
+ readonly wasmchatcompletionchunk_clearUsage: (a: number) => void;
2528
2685
  readonly wasmchatcompletionchunk_created: (a: number) => bigint;
2529
2686
  readonly wasmchatcompletionchunk_default: () => number;
2530
2687
  readonly wasmchatcompletionchunk_id: (a: number) => [number, number];
@@ -2543,6 +2700,7 @@ export interface InitOutput {
2543
2700
  readonly wasmchatcompletionchunk_systemFingerprint: (a: number) => [number, number];
2544
2701
  readonly wasmchatcompletionchunk_usage: (a: number) => number;
2545
2702
  readonly wasmchatcompletionrequest_audio: (a: number) => any;
2703
+ readonly wasmchatcompletionrequest_clearStreamOptions: (a: number) => void;
2546
2704
  readonly wasmchatcompletionrequest_default: () => number;
2547
2705
  readonly wasmchatcompletionrequest_extraBody: (a: number) => any;
2548
2706
  readonly wasmchatcompletionrequest_frequencyPenalty: (a: number) => [number, number];
@@ -2605,6 +2763,7 @@ export interface InitOutput {
2605
2763
  readonly wasmchatcompletionrequest_user: (a: number) => [number, number];
2606
2764
  readonly wasmchatcompletionrequest_webSearchOptions: (a: number) => any;
2607
2765
  readonly wasmchatcompletionresponse_choices: (a: number) => [number, number];
2766
+ readonly wasmchatcompletionresponse_clearUsage: (a: number) => void;
2608
2767
  readonly wasmchatcompletionresponse_created: (a: number) => bigint;
2609
2768
  readonly wasmchatcompletionresponse_default: () => number;
2610
2769
  readonly wasmchatcompletionresponse_id: (a: number) => [number, number];
@@ -2638,6 +2797,9 @@ export interface InitOutput {
2638
2797
  readonly wasmchoice_set_index: (a: number, b: number) => void;
2639
2798
  readonly wasmchoice_set_logprobs: (a: number, b: number) => void;
2640
2799
  readonly wasmchoice_set_message: (a: number, b: number) => void;
2800
+ readonly wasmcontentpart_clearDocument: (a: number) => void;
2801
+ readonly wasmcontentpart_clearImageUrl: (a: number) => void;
2802
+ readonly wasmcontentpart_clearInputAudio: (a: number) => void;
2641
2803
  readonly wasmcontentpart_default: () => number;
2642
2804
  readonly wasmcontentpart_document: (a: number) => number;
2643
2805
  readonly wasmcontentpart_imageUrl: (a: number) => number;
@@ -2793,6 +2955,7 @@ export interface InitOutput {
2793
2955
  readonly wasmdocumentcontent_new: (a: number, b: number, c: number, d: number) => number;
2794
2956
  readonly wasmdocumentcontent_set_data: (a: number, b: number, c: number) => void;
2795
2957
  readonly wasmdocumentcontent_set_mediaType: (a: number, b: number, c: number) => void;
2958
+ readonly wasmembeddingcontentpart_clearImageUrl: (a: number) => void;
2796
2959
  readonly wasmembeddingcontentpart_default: () => number;
2797
2960
  readonly wasmembeddingcontentpart_imageBase64: (a: number) => [number, number];
2798
2961
  readonly wasmembeddingcontentpart_imageUrl: (a: number) => number;
@@ -2823,6 +2986,7 @@ export interface InitOutput {
2823
2986
  readonly wasmembeddingrequest_set_model: (a: number, b: number, c: number) => void;
2824
2987
  readonly wasmembeddingrequest_set_user: (a: number, b: number, c: number) => void;
2825
2988
  readonly wasmembeddingrequest_user: (a: number) => [number, number];
2989
+ readonly wasmembeddingresponse_clearUsage: (a: number) => void;
2826
2990
  readonly wasmembeddingresponse_data: (a: number) => [number, number];
2827
2991
  readonly wasmembeddingresponse_default: () => number;
2828
2992
  readonly wasmembeddingresponse_model: (a: number) => [number, number];
@@ -2943,6 +3107,11 @@ export interface InitOutput {
2943
3107
  readonly wasmllmconfig_bedrock: (a: number) => number;
2944
3108
  readonly wasmllmconfig_budget: (a: number) => number;
2945
3109
  readonly wasmllmconfig_cache: (a: number) => number;
3110
+ readonly wasmllmconfig_clearBedrock: (a: number) => void;
3111
+ readonly wasmllmconfig_clearBudget: (a: number) => void;
3112
+ readonly wasmllmconfig_clearCache: (a: number) => void;
3113
+ readonly wasmllmconfig_clearInFlightLimit: (a: number) => void;
3114
+ readonly wasmllmconfig_clearRateLimit: (a: number) => void;
2946
3115
  readonly wasmllmconfig_cooldownSecs: (a: number) => [number, bigint];
2947
3116
  readonly wasmllmconfig_costTracking: (a: number) => number;
2948
3117
  readonly wasmllmconfig_default: () => number;
@@ -3160,6 +3329,7 @@ export interface InitOutput {
3160
3329
  readonly wasmocrimage_new: (a: number, b: number, c: number, d: number) => number;
3161
3330
  readonly wasmocrimage_set_id: (a: number, b: number, c: number) => void;
3162
3331
  readonly wasmocrimage_set_imageBase64: (a: number, b: number, c: number) => void;
3332
+ readonly wasmocrpage_clearDimensions: (a: number) => void;
3163
3333
  readonly wasmocrpage_default: () => number;
3164
3334
  readonly wasmocrpage_dimensions: (a: number) => number;
3165
3335
  readonly wasmocrpage_images: (a: number) => any;
@@ -3180,6 +3350,7 @@ export interface InitOutput {
3180
3350
  readonly wasmocrrequest_set_includeImageBase64: (a: number, b: number) => void;
3181
3351
  readonly wasmocrrequest_set_model: (a: number, b: number, c: number) => void;
3182
3352
  readonly wasmocrrequest_set_pages: (a: number, b: number, c: number) => void;
3353
+ readonly wasmocrresponse_clearUsage: (a: number) => void;
3183
3354
  readonly wasmocrresponse_default: () => number;
3184
3355
  readonly wasmocrresponse_model: (a: number) => [number, number];
3185
3356
  readonly wasmocrresponse_new: (a: number, b: number, c: number, d: number, e: number) => number;
@@ -3218,6 +3389,7 @@ export interface InitOutput {
3218
3389
  readonly wasmprovidercapabilities_vision: (a: number) => number;
3219
3390
  readonly wasmproviderconfig_auth: (a: number) => number;
3220
3391
  readonly wasmproviderconfig_baseUrl: (a: number) => [number, number];
3392
+ readonly wasmproviderconfig_clearAuth: (a: number) => void;
3221
3393
  readonly wasmproviderconfig_default: () => number;
3222
3394
  readonly wasmproviderconfig_displayName: (a: number) => [number, number];
3223
3395
  readonly wasmproviderconfig_endpoints: (a: number) => [number, number];
@@ -3252,6 +3424,7 @@ export interface InitOutput {
3252
3424
  readonly wasmrerankresponse_set_id: (a: number, b: number, c: number) => void;
3253
3425
  readonly wasmrerankresponse_set_meta: (a: number, b: number) => void;
3254
3426
  readonly wasmrerankresponse_set_results: (a: number, b: number, c: number) => void;
3427
+ readonly wasmrerankresult_clearDocument: (a: number) => void;
3255
3428
  readonly wasmrerankresult_default: () => number;
3256
3429
  readonly wasmrerankresult_document: (a: number) => number;
3257
3430
  readonly wasmrerankresult_index: (a: number) => number;
@@ -3264,12 +3437,14 @@ export interface InitOutput {
3264
3437
  readonly wasmrerankresultdocument_new: (a: number, b: number) => number;
3265
3438
  readonly wasmrerankresultdocument_set_text: (a: number, b: number, c: number) => void;
3266
3439
  readonly wasmrerankresultdocument_text: (a: number) => [number, number];
3440
+ readonly wasmresponseformat_clearJsonSchema: (a: number) => void;
3267
3441
  readonly wasmresponseformat_default: () => number;
3268
3442
  readonly wasmresponseformat_jsonSchema: (a: number) => number;
3269
3443
  readonly wasmresponseformat_new: () => number;
3270
3444
  readonly wasmresponseformat_set_jsonSchema: (a: number, b: number) => void;
3271
3445
  readonly wasmresponseformat_set_type: (a: number, b: number, c: number) => void;
3272
3446
  readonly wasmresponseformat_type: (a: number) => [number, number];
3447
+ readonly wasmresponseobject_clearUsage: (a: number) => void;
3273
3448
  readonly wasmresponseobject_createdAt: (a: number) => bigint;
3274
3449
  readonly wasmresponseobject_default: () => number;
3275
3450
  readonly wasmresponseobject_error: (a: number) => any;
@@ -3354,6 +3529,7 @@ export interface InitOutput {
3354
3529
  readonly wasmstreamchoice_set_delta: (a: number, b: number) => void;
3355
3530
  readonly wasmstreamchoice_set_finishReason: (a: number, b: number) => void;
3356
3531
  readonly wasmstreamchoice_set_index: (a: number, b: number) => void;
3532
+ readonly wasmstreamdelta_clearFunctionCall: (a: number) => void;
3357
3533
  readonly wasmstreamdelta_content: (a: number) => [number, number];
3358
3534
  readonly wasmstreamdelta_default: () => number;
3359
3535
  readonly wasmstreamdelta_functionCall: (a: number) => number;
@@ -3379,6 +3555,7 @@ export interface InitOutput {
3379
3555
  readonly wasmstreamoptions_new: (a: number) => number;
3380
3556
  readonly wasmstreamoptions_set_includeUsage: (a: number, b: number) => void;
3381
3557
  readonly wasmstreamtoolcall_callType: (a: number) => [number, number];
3558
+ readonly wasmstreamtoolcall_clearFunction: (a: number) => void;
3382
3559
  readonly wasmstreamtoolcall_default: () => number;
3383
3560
  readonly wasmstreamtoolcall_function: (a: number) => number;
3384
3561
  readonly wasmstreamtoolcall_id: (a: number) => [number, number];
@@ -3430,6 +3607,7 @@ export interface InitOutput {
3430
3607
  readonly wasmtranscriptionsegment_set_text: (a: number, b: number, c: number) => void;
3431
3608
  readonly wasmtranscriptionsegment_start: (a: number) => number;
3432
3609
  readonly wasmtranscriptionsegment_text: (a: number) => [number, number];
3610
+ readonly wasmusage_clearPromptTokensDetails: (a: number) => void;
3433
3611
  readonly wasmusage_completionTokens: (a: number) => bigint;
3434
3612
  readonly wasmusage_default: () => number;
3435
3613
  readonly wasmusage_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number) => number;
@@ -3456,11 +3634,11 @@ export interface InitOutput {
3456
3634
  readonly wasmwaitforbatchconfig_set_maxIntervalSecs: (a: number, b: number) => void;
3457
3635
  readonly wasmwaitforbatchconfig_set_timeoutSecs: (a: number, b: number, c: number) => void;
3458
3636
  readonly wasmwaitforbatchconfig_timeoutSecs: (a: number) => [number, number];
3459
- readonly wasm_bindgen__convert__closures_____invoke__h02a7923578afc9b7: (a: number, b: number, c: any) => [number, number];
3460
- readonly wasm_bindgen__convert__closures_____invoke__h587dbcc500240430: (a: number, b: number, c: any, d: any) => void;
3461
- readonly wasm_bindgen__convert__closures_____invoke__hdbfd17fbffcf2c62: (a: number, b: number, c: any) => void;
3462
- readonly wasm_bindgen__convert__closures_____invoke__h2b32076d58b95548: (a: number, b: number) => void;
3463
- readonly wasm_bindgen__convert__closures_____invoke__h53a93f9ee7253a16: (a: number, b: number) => void;
3637
+ readonly wasm_bindgen__convert__closures_____invoke__h14136a31f7a759a2: (a: number, b: number, c: any, d: any) => void;
3638
+ readonly wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b: (a: number, b: number, c: any) => [number, number];
3639
+ readonly wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0: (a: number, b: number, c: any) => void;
3640
+ readonly wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8: (a: number, b: number) => void;
3641
+ readonly wasm_bindgen__convert__closures_____invoke__hacdd4ed9b378e86e: (a: number, b: number) => void;
3464
3642
  readonly __wbindgen_malloc: (a: number, b: number) => number;
3465
3643
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
3466
3644
  readonly __wbindgen_exn_store: (a: number) => void;