react-native-nobodywho 2.3.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 +979 -13
- package/generated/cpp/nobodywho.hpp +119 -0
- package/generated/ts/nobodywho-ffi.ts +37 -0
- package/generated/ts/nobodywho.ts +860 -53
- 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 +25 -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);
|
|
@@ -233,6 +292,9 @@ protected:
|
|
|
233
292
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_func_load_model(
|
|
234
293
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
235
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);
|
|
236
298
|
jsi::Value
|
|
237
299
|
cpp_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(
|
|
238
300
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -425,6 +487,9 @@ protected:
|
|
|
425
487
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_func_load_model(
|
|
426
488
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
427
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);
|
|
428
493
|
jsi::Value
|
|
429
494
|
cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(
|
|
430
495
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -466,6 +531,10 @@ protected:
|
|
|
466
531
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
467
532
|
size_t count);
|
|
468
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
|
|
469
538
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(
|
|
470
539
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
471
540
|
size_t count);
|
|
@@ -477,6 +546,9 @@ protected:
|
|
|
477
546
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(
|
|
478
547
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
479
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);
|
|
480
552
|
jsi::Value
|
|
481
553
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(
|
|
482
554
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -514,6 +586,13 @@ protected:
|
|
|
514
586
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(
|
|
515
587
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
516
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);
|
|
517
596
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(
|
|
518
597
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
519
598
|
size_t count);
|
|
@@ -524,6 +603,24 @@ protected:
|
|
|
524
603
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
525
604
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
526
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);
|
|
527
624
|
jsi::Value
|
|
528
625
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(
|
|
529
626
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -544,6 +641,13 @@ protected:
|
|
|
544
641
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(
|
|
545
642
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
546
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);
|
|
547
651
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(
|
|
548
652
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
549
653
|
size_t count);
|
|
@@ -604,6 +708,9 @@ protected:
|
|
|
604
708
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
605
709
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
606
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);
|
|
607
714
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(
|
|
608
715
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
609
716
|
size_t count);
|
|
@@ -611,6 +718,9 @@ protected:
|
|
|
611
718
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(
|
|
612
719
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
613
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);
|
|
614
724
|
jsi::Value
|
|
615
725
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(
|
|
616
726
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -641,12 +751,21 @@ protected:
|
|
|
641
751
|
jsi::Value cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
642
752
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
643
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);
|
|
644
760
|
jsi::Value cpp_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(
|
|
645
761
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
646
762
|
size_t count);
|
|
647
763
|
jsi::Value cpp_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(
|
|
648
764
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
649
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);
|
|
650
769
|
jsi::Value cpp_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(
|
|
651
770
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
652
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;
|
|
@@ -84,6 +103,7 @@ interface NativeModuleInterface {
|
|
|
84
103
|
ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(modelPath: Uint8Array, headers: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
85
104
|
ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
86
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;
|
|
87
107
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
88
108
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
89
109
|
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
@@ -147,6 +167,7 @@ interface NativeModuleInterface {
|
|
|
147
167
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
|
|
148
168
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
|
|
149
169
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
|
|
170
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_tts(): number;
|
|
150
171
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
|
|
151
172
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
|
|
152
173
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
@@ -159,9 +180,11 @@ interface NativeModuleInterface {
|
|
|
159
180
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_k(): number;
|
|
160
181
|
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(): number;
|
|
161
182
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
|
|
183
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
|
|
162
184
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
|
|
163
185
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
|
|
164
186
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
|
|
187
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
165
188
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(): number;
|
|
166
189
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(): number;
|
|
167
190
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
|
|
@@ -172,14 +195,23 @@ interface NativeModuleInterface {
|
|
|
172
195
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
|
|
173
196
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_tools(): number;
|
|
174
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;
|
|
175
200
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
|
|
176
201
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
|
|
177
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;
|
|
178
208
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
|
|
179
209
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
|
|
180
210
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
|
|
181
211
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
|
|
182
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;
|
|
183
215
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
184
216
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
185
217
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_grammar(): number;
|
|
@@ -198,8 +230,10 @@ interface NativeModuleInterface {
|
|
|
198
230
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
|
|
199
231
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
|
|
200
232
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
|
|
233
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_ruststt_new(): number;
|
|
201
234
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
|
|
202
235
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
|
|
236
|
+
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttts_new(): number;
|
|
203
237
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
|
|
204
238
|
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
|
|
205
239
|
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdownloadprogresscallback_on_download_progress(): number;
|
|
@@ -209,8 +243,11 @@ interface NativeModuleInterface {
|
|
|
209
243
|
ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
210
244
|
ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
211
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;
|
|
212
248
|
ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
213
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;
|
|
214
251
|
ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
215
252
|
ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
216
253
|
}
|