react-native-nobodywho 4.0.0 → 5.0.0

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.
@@ -79,6 +79,9 @@ protected:
79
79
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(
80
80
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
81
81
  size_t count);
82
+ jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_set_context_shift(
83
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
84
+ size_t count);
82
85
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_set_sampler_config(
83
86
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
84
87
  size_t count);
@@ -142,6 +145,9 @@ protected:
142
145
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
143
146
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
144
147
  size_t count);
148
+ jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_source(
149
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
150
+ size_t count);
145
151
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(
146
152
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
147
153
  size_t count);
@@ -254,6 +260,18 @@ protected:
254
260
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(
255
261
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
256
262
  size_t count);
263
+ jsi::Value
264
+ cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_grammar(
265
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
266
+ size_t count);
267
+ jsi::Value
268
+ cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_json_schema(
269
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
270
+ size_t count);
271
+ jsi::Value
272
+ cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_regex(
273
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
274
+ size_t count);
257
275
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(
258
276
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
259
277
  size_t count);
@@ -264,10 +282,10 @@ protected:
264
282
  cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
265
283
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
266
284
  size_t count);
267
- jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar(
285
+ jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
268
286
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
269
287
  size_t count);
270
- jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
288
+ jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_json(
271
289
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
272
290
  size_t count);
273
291
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
@@ -365,9 +383,6 @@ protected:
365
383
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_dry(
366
384
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
367
385
  size_t count);
368
- jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_grammar(
369
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
370
- size_t count);
371
386
  jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_greedy(
372
387
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
373
388
  size_t count);
@@ -567,9 +582,6 @@ protected:
567
582
  jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_dry(
568
583
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
569
584
  size_t count);
570
- jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_grammar(
571
- jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
572
- size_t count);
573
585
  jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_greedy(
574
586
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
575
587
  size_t count);
@@ -634,6 +646,10 @@ protected:
634
646
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
635
647
  size_t count);
636
648
  jsi::Value
649
+ cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_context_shift(
650
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
651
+ size_t count);
652
+ jsi::Value
637
653
  cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_sampler_config(
638
654
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
639
655
  size_t count);
@@ -676,6 +692,9 @@ protected:
676
692
  jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(
677
693
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
678
694
  size_t count);
695
+ jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_source(
696
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
697
+ size_t count);
679
698
  jsi::Value
680
699
  cpp_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(
681
700
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
@@ -732,6 +751,18 @@ protected:
732
751
  cpp_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(
733
752
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
734
753
  size_t count);
754
+ jsi::Value
755
+ cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_grammar(
756
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
757
+ size_t count);
758
+ jsi::Value
759
+ cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_json_schema(
760
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
761
+ size_t count);
762
+ jsi::Value
763
+ cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_regex(
764
+ jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
765
+ size_t count);
735
766
  jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
736
767
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
737
768
  size_t count);
@@ -742,10 +773,10 @@ protected:
742
773
  cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(
743
774
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
744
775
  size_t count);
745
- jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(
776
+ jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(
746
777
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
747
778
  size_t count);
748
- jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(
779
+ jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_json(
749
780
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
750
781
  size_t count);
751
782
  jsi::Value
@@ -20,7 +20,7 @@ interface NativeModuleInterface {
20
20
  ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus): string;
21
21
  ubrn_uniffi_nobodywho_uniffi_fn_clone_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
22
22
  ubrn_uniffi_nobodywho_uniffi_fn_free_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
23
- ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, mtp: Uint8Array, threadCount: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
23
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, mtp: Uint8Array, threadCount: Uint8Array, contextShift: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
24
24
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(ptr: bigint, message: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
25
25
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(ptr: bigint, json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
26
26
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(ptr: bigint, parts: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -34,6 +34,7 @@ interface NativeModuleInterface {
34
34
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(ptr: bigint, systemPrompt: Uint8Array, tools: Uint8Array): bigint;
35
35
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_history(ptr: bigint): bigint;
36
36
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(ptr: bigint, messages: Uint8Array): bigint;
37
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_context_shift(ptr: bigint, options: Uint8Array): bigint;
37
38
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_sampler_config(ptr: bigint, sampler: bigint): bigint;
38
39
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_system_prompt(ptr: bigint, systemPrompt: Uint8Array): bigint;
39
40
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(ptr: bigint, name: Uint8Array, value: number): bigint;
@@ -54,6 +55,7 @@ interface NativeModuleInterface {
54
55
  ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
55
56
  ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
56
57
  ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
58
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_source(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
57
59
  ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
58
60
  ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
59
61
  ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustspeechtotext_new(source: Uint8Array, language: Uint8Array, quantization: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -88,11 +90,14 @@ interface NativeModuleInterface {
88
90
  ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
89
91
  ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
90
92
  ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
93
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_grammar(ptr: bigint, grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
94
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_json_schema(ptr: bigint, schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
95
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_regex(ptr: bigint, pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
91
96
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
92
97
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(ptr: bigint, multiplier: number, base: number, allowedLength: number, penaltyLastN: number, seqBreakers: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
93
98
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(ptr: bigint, temperature: number, delta: number, exponent: number, uniffi_out_err: UniffiRustCallStatus): bigint;
94
- ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_grammar(ptr: bigint, grammar: Uint8Array, triggerOn: Uint8Array, root: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
95
99
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
100
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
96
101
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(ptr: bigint, biases: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
97
102
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(ptr: bigint, minP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
98
103
  ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v1(ptr: bigint, tau: number, eta: number, m: number, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -123,7 +128,6 @@ interface NativeModuleInterface {
123
128
  ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
124
129
  ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_default(uniffi_out_err: UniffiRustCallStatus): bigint;
125
130
  ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_dry(uniffi_out_err: UniffiRustCallStatus): bigint;
126
- ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
127
131
  ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_greedy(uniffi_out_err: UniffiRustCallStatus): bigint;
128
132
  ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_json(uniffi_out_err: UniffiRustCallStatus): bigint;
129
133
  ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_temperature(temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
@@ -189,7 +193,6 @@ interface NativeModuleInterface {
189
193
  ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
190
194
  ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_default(): number;
191
195
  ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_dry(): number;
192
- ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_grammar(): number;
193
196
  ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_greedy(): number;
194
197
  ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_json(): number;
195
198
  ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_temperature(): number;
@@ -208,6 +211,7 @@ interface NativeModuleInterface {
208
211
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
209
212
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_history(): number;
210
213
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_chat_history(): number;
214
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_context_shift(): number;
211
215
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_sampler_config(): number;
212
216
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_system_prompt(): number;
213
217
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
@@ -220,6 +224,7 @@ interface NativeModuleInterface {
220
224
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
221
225
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(): number;
222
226
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
227
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_source(): number;
223
228
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(): number;
224
229
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_pcm(): number;
225
230
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_completed(): number;
@@ -234,11 +239,14 @@ interface NativeModuleInterface {
234
239
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_finish(): number;
235
240
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_push(): number;
236
241
  ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(): number;
242
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_grammar(): number;
243
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_json_schema(): number;
244
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_regex(): number;
237
245
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
238
246
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
239
247
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(): number;
240
- ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
241
248
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(): number;
249
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_json(): number;
242
250
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(): number;
243
251
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(): number;
244
252
  ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1(): number;