react-native-nobodywho 2.2.0 → 2.4.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.
- package/generated/cpp/nobodywho.cpp +1093 -28
- package/generated/cpp/nobodywho.hpp +131 -0
- package/generated/ts/nobodywho-ffi.ts +41 -0
- package/generated/ts/nobodywho.ts +935 -22
- package/package.json +1 -1
- package/src/chat.ts +19 -1
- package/src/message.ts +1 -1
- package/src/model.ts +8 -0
- package/src/prompt.ts +15 -1
- package/src/stt.ts +69 -0
- package/src/tts.ts +78 -0
- package/src/wrapper.ts +58 -4
|
@@ -40,6 +40,10 @@ protected:
|
|
|
40
40
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(
|
|
41
41
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
42
42
|
size_t count);
|
|
43
|
+
jsi::Value
|
|
44
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(
|
|
45
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
46
|
+
size_t count);
|
|
43
47
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
|
|
44
48
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
45
49
|
size_t count);
|
|
@@ -50,6 +54,9 @@ protected:
|
|
|
50
54
|
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(
|
|
51
55
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
52
56
|
size_t count);
|
|
57
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(
|
|
58
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
59
|
+
size_t count);
|
|
53
60
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(
|
|
54
61
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
55
62
|
size_t count);
|
|
@@ -82,6 +89,13 @@ protected:
|
|
|
82
89
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(
|
|
83
90
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
84
91
|
size_t count);
|
|
92
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize(
|
|
93
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
94
|
+
size_t count);
|
|
95
|
+
jsi::Value
|
|
96
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize_with_prompt(
|
|
97
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
98
|
+
size_t count);
|
|
85
99
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
|
|
86
100
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
87
101
|
size_t count);
|
|
@@ -116,6 +130,36 @@ protected:
|
|
|
116
130
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustmodel(
|
|
117
131
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
118
132
|
size_t count);
|
|
133
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
|
|
134
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
135
|
+
size_t count);
|
|
136
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_ruststt(
|
|
137
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
138
|
+
size_t count);
|
|
139
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_ruststt(
|
|
140
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
141
|
+
size_t count);
|
|
142
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_ruststt_new(
|
|
143
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
144
|
+
size_t count);
|
|
145
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_file(
|
|
146
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
147
|
+
size_t count);
|
|
148
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_pcm(
|
|
149
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
150
|
+
size_t count);
|
|
151
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_ruststtstream(
|
|
152
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
153
|
+
size_t count);
|
|
154
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_ruststtstream(
|
|
155
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
156
|
+
size_t count);
|
|
157
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststtstream_completed(
|
|
158
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
159
|
+
size_t count);
|
|
160
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_ruststtstream_next_token(
|
|
161
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
162
|
+
size_t count);
|
|
119
163
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
|
|
120
164
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
121
165
|
size_t count);
|
|
@@ -150,6 +194,21 @@ protected:
|
|
|
150
194
|
cpp_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(
|
|
151
195
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
152
196
|
size_t count);
|
|
197
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rusttts(
|
|
198
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
199
|
+
size_t count);
|
|
200
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rusttts(
|
|
201
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
202
|
+
size_t count);
|
|
203
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_rusttts_new(
|
|
204
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
205
|
+
size_t count);
|
|
206
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize(
|
|
207
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
208
|
+
size_t count);
|
|
209
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize_async(
|
|
210
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
211
|
+
size_t count);
|
|
153
212
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(
|
|
154
213
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
155
214
|
size_t count);
|
|
@@ -183,6 +242,9 @@ protected:
|
|
|
183
242
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_penalties(
|
|
184
243
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
185
244
|
size_t count);
|
|
245
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_seed(
|
|
246
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
247
|
+
size_t count);
|
|
186
248
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(
|
|
187
249
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
188
250
|
size_t count);
|
|
@@ -224,9 +286,15 @@ protected:
|
|
|
224
286
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_download_model(
|
|
225
287
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
226
288
|
size_t count);
|
|
289
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_get_cached_models(
|
|
290
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
291
|
+
size_t count);
|
|
227
292
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_model(
|
|
228
293
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
229
294
|
size_t count);
|
|
295
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_tts(
|
|
296
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
297
|
+
size_t count);
|
|
230
298
|
jsi::Value
|
|
231
299
|
cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(
|
|
232
300
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -413,9 +481,15 @@ protected:
|
|
|
413
481
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_download_model(
|
|
414
482
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
415
483
|
size_t count);
|
|
484
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(
|
|
485
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
486
|
+
size_t count);
|
|
416
487
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_model(
|
|
417
488
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
418
489
|
size_t count);
|
|
490
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_tts(
|
|
491
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
492
|
+
size_t count);
|
|
419
493
|
jsi::Value
|
|
420
494
|
cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(
|
|
421
495
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -457,6 +531,10 @@ protected:
|
|
|
457
531
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
458
532
|
size_t count);
|
|
459
533
|
jsi::Value
|
|
534
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(
|
|
535
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
536
|
+
size_t count);
|
|
537
|
+
jsi::Value
|
|
460
538
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(
|
|
461
539
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
462
540
|
size_t count);
|
|
@@ -468,6 +546,9 @@ protected:
|
|
|
468
546
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(
|
|
469
547
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
470
548
|
size_t count);
|
|
549
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(
|
|
550
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
551
|
+
size_t count);
|
|
471
552
|
jsi::Value
|
|
472
553
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(
|
|
473
554
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -505,6 +586,13 @@ protected:
|
|
|
505
586
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(
|
|
506
587
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
507
588
|
size_t count);
|
|
589
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize(
|
|
590
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
591
|
+
size_t count);
|
|
592
|
+
jsi::Value
|
|
593
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize_with_prompt(
|
|
594
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
595
|
+
size_t count);
|
|
508
596
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(
|
|
509
597
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
510
598
|
size_t count);
|
|
@@ -515,6 +603,24 @@ protected:
|
|
|
515
603
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
516
604
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
517
605
|
size_t count);
|
|
606
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(
|
|
607
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
608
|
+
size_t count);
|
|
609
|
+
jsi::Value
|
|
610
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_file(
|
|
611
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
612
|
+
size_t count);
|
|
613
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_pcm(
|
|
614
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
615
|
+
size_t count);
|
|
616
|
+
jsi::Value
|
|
617
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_completed(
|
|
618
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
619
|
+
size_t count);
|
|
620
|
+
jsi::Value
|
|
621
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_next_token(
|
|
622
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
623
|
+
size_t count);
|
|
518
624
|
jsi::Value
|
|
519
625
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(
|
|
520
626
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -535,6 +641,13 @@ protected:
|
|
|
535
641
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(
|
|
536
642
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
537
643
|
size_t count);
|
|
644
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize(
|
|
645
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
646
|
+
size_t count);
|
|
647
|
+
jsi::Value
|
|
648
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize_async(
|
|
649
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
650
|
+
size_t count);
|
|
538
651
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
|
|
539
652
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
540
653
|
size_t count);
|
|
@@ -562,6 +675,9 @@ protected:
|
|
|
562
675
|
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_penalties(
|
|
563
676
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
564
677
|
size_t count);
|
|
678
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed(
|
|
679
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
680
|
+
size_t count);
|
|
565
681
|
jsi::Value
|
|
566
682
|
cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature(
|
|
567
683
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -592,6 +708,9 @@ protected:
|
|
|
592
708
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
593
709
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
594
710
|
size_t count);
|
|
711
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_ruststt_new(
|
|
712
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
713
|
+
size_t count);
|
|
595
714
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(
|
|
596
715
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
597
716
|
size_t count);
|
|
@@ -599,6 +718,9 @@ protected:
|
|
|
599
718
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(
|
|
600
719
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
601
720
|
size_t count);
|
|
721
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttts_new(
|
|
722
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
723
|
+
size_t count);
|
|
602
724
|
jsi::Value
|
|
603
725
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(
|
|
604
726
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -629,12 +751,21 @@ protected:
|
|
|
629
751
|
jsi::Value cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
630
752
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
631
753
|
size_t count);
|
|
754
|
+
jsi::Value cpp_uniffi_internal_fn_method_ruststt_ffi__bless_pointer(
|
|
755
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
756
|
+
size_t count);
|
|
757
|
+
jsi::Value cpp_uniffi_internal_fn_method_ruststtstream_ffi__bless_pointer(
|
|
758
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
759
|
+
size_t count);
|
|
632
760
|
jsi::Value cpp_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(
|
|
633
761
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
634
762
|
size_t count);
|
|
635
763
|
jsi::Value cpp_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(
|
|
636
764
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
637
765
|
size_t count);
|
|
766
|
+
jsi::Value cpp_uniffi_internal_fn_method_rusttts_ffi__bless_pointer(
|
|
767
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
768
|
+
size_t count);
|
|
638
769
|
jsi::Value cpp_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(
|
|
639
770
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
640
771
|
size_t count);
|
|
@@ -22,9 +22,11 @@ interface NativeModuleInterface {
|
|
|
22
22
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
23
23
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: 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
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(ptr: bigint, json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
25
26
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(ptr: bigint, parts: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
26
27
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(ptr: bigint): bigint;
|
|
27
28
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(ptr: bigint): bigint;
|
|
29
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(ptr: bigint): bigint;
|
|
28
30
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(ptr: bigint): bigint;
|
|
29
31
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(ptr: bigint): bigint;
|
|
30
32
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(ptr: bigint, systemPrompt: Uint8Array, tools: Uint8Array): bigint;
|
|
@@ -35,6 +37,8 @@ interface NativeModuleInterface {
|
|
|
35
37
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(ptr: bigint, name: Uint8Array, value: number): bigint;
|
|
36
38
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_tools(ptr: bigint, tools: Uint8Array): bigint;
|
|
37
39
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
40
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize(ptr: bigint, message: Uint8Array): bigint;
|
|
41
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize_with_prompt(ptr: bigint, parts: Uint8Array): bigint;
|
|
38
42
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
39
43
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
40
44
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(model: bigint, contextSize: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -46,6 +50,16 @@ interface NativeModuleInterface {
|
|
|
46
50
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(ptr: bigint, text: Uint8Array): bigint;
|
|
47
51
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
48
52
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
53
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
54
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_ruststt(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
55
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_ruststt(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
56
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_ruststt_new(source: Uint8Array, language: Uint8Array, quantization: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
57
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_file(ptr: bigint, path: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
58
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststt_transcribe_pcm(ptr: bigint, samples: Uint8Array, sampleRate: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
59
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_ruststtstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
60
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_ruststtstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
61
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststtstream_completed(ptr: bigint): bigint;
|
|
62
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_ruststtstream_next_token(ptr: bigint): bigint;
|
|
49
63
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
50
64
|
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
51
65
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_completed(ptr: bigint): bigint;
|
|
@@ -57,6 +71,11 @@ interface NativeModuleInterface {
|
|
|
57
71
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_get_schema_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
58
72
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_next_pending_call(ptr: bigint): bigint;
|
|
59
73
|
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(ptr: bigint, callId: Uint8Array, result: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
74
|
+
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttts(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
75
|
+
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttts(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
76
|
+
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttts_new(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, device: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
77
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize(ptr: bigint, text: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
78
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttts_synthesize_async(ptr: bigint, text: Uint8Array): bigint;
|
|
60
79
|
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
61
80
|
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
62
81
|
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -68,6 +87,7 @@ interface NativeModuleInterface {
|
|
|
68
87
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v1(ptr: bigint, tau: number, eta: number, m: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
69
88
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v2(ptr: bigint, tau: number, eta: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
70
89
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_penalties(ptr: bigint, penaltyLastN: number, penaltyRepeat: number, penaltyFreq: number, penaltyPresent: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
90
|
+
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_seed(ptr: bigint, seed: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
71
91
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(ptr: bigint, temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
72
92
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(ptr: bigint, topK: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
73
93
|
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(ptr: bigint, topP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -81,7 +101,9 @@ interface NativeModuleInterface {
|
|
|
81
101
|
ubrn_uniffi_nobodywho_uniffi_fn_init_callback_vtable_rusttoolcallback(vtable: UniffiVTableCallbackInterfaceRustToolCallback): void;
|
|
82
102
|
ubrn_uniffi_nobodywho_uniffi_fn_func_cosine_similarity(a: Uint8Array, b: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;
|
|
83
103
|
ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(modelPath: Uint8Array, headers: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
104
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
84
105
|
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
106
|
+
ubrn_uniffi_nobodywho_uniffi_fn_func_load_tts(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, device: Uint8Array): bigint;
|
|
85
107
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
86
108
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
87
109
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -143,7 +165,9 @@ interface NativeModuleInterface {
|
|
|
143
165
|
ubrn_ffi_nobodywho_uniffi_rust_future_complete_void(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
144
166
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_cosine_similarity(): number;
|
|
145
167
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
|
|
168
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
|
|
146
169
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
|
|
170
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_tts(): number;
|
|
147
171
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
|
|
148
172
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
|
|
149
173
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
@@ -156,9 +180,11 @@ interface NativeModuleInterface {
|
|
|
156
180
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_k(): number;
|
|
157
181
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(): number;
|
|
158
182
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
|
|
183
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
|
|
159
184
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
|
|
160
185
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
|
|
161
186
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
|
|
187
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
162
188
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(): number;
|
|
163
189
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(): number;
|
|
164
190
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
|
|
@@ -169,14 +195,23 @@ interface NativeModuleInterface {
|
|
|
169
195
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
|
|
170
196
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_tools(): number;
|
|
171
197
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(): number;
|
|
198
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize(): number;
|
|
199
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize_with_prompt(): number;
|
|
172
200
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
|
|
173
201
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
|
|
174
202
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
|
|
203
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
|
|
204
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_file(): number;
|
|
205
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststt_transcribe_pcm(): number;
|
|
206
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_completed(): number;
|
|
207
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_ruststtstream_next_token(): number;
|
|
175
208
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
|
|
176
209
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
|
|
177
210
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
|
|
178
211
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
|
|
179
212
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(): number;
|
|
213
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize(): number;
|
|
214
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttts_synthesize_async(): number;
|
|
180
215
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
181
216
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
182
217
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
|
|
@@ -185,6 +220,7 @@ interface NativeModuleInterface {
|
|
|
185
220
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1(): number;
|
|
186
221
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v2(): number;
|
|
187
222
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_penalties(): number;
|
|
223
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed(): number;
|
|
188
224
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature(): number;
|
|
189
225
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(): number;
|
|
190
226
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(): number;
|
|
@@ -194,8 +230,10 @@ interface NativeModuleInterface {
|
|
|
194
230
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
|
|
195
231
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
|
|
196
232
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
|
|
233
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_ruststt_new(): number;
|
|
197
234
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
|
|
198
235
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
|
|
236
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttts_new(): number;
|
|
199
237
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
|
|
200
238
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
|
|
201
239
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdownloadprogresscallback_on_download_progress(): number;
|
|
@@ -205,8 +243,11 @@ interface NativeModuleInterface {
|
|
|
205
243
|
ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
206
244
|
ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
207
245
|
ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
246
|
+
ubrn_uniffi_internal_fn_method_ruststt_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
247
|
+
ubrn_uniffi_internal_fn_method_ruststtstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
208
248
|
ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
209
249
|
ubrn_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
250
|
+
ubrn_uniffi_internal_fn_method_rusttts_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
210
251
|
ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
211
252
|
ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
212
253
|
}
|