react-native-nobodywho 0.2.1 → 0.3.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/android/CMakeLists.txt +4 -2
- package/android/build.gradle +22 -17
- package/android/src/main/java/com/nobodywho/NobodywhoModule.kt +1 -0
- package/generated/cpp/nobodywho.cpp +453 -447
- package/generated/cpp/nobodywho.hpp +50 -49
- package/generated/ts/nobodywho-ffi.ts +19 -19
- package/generated/ts/nobodywho.ts +496 -496
- package/package.json +6 -1
- package/src/cross_encoder.ts +1 -1
- package/src/encoder.ts +1 -1
- package/src/model.ts +3 -3
- package/src/tool.ts +31 -1
|
@@ -103,31 +103,6 @@ typedef struct UniffiVTableCallbackInterfaceRustToolCallback {
|
|
|
103
103
|
UniffiCallbackInterfaceClone uniffi_clone;
|
|
104
104
|
UniffiCallbackInterfaceRustToolCallbackMethod0 call;
|
|
105
105
|
} UniffiVTableCallbackInterfaceRustToolCallback;
|
|
106
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_crossencoder(
|
|
107
|
-
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
108
|
-
void uniffi_nobodywho_uniffi_fn_free_crossencoder(
|
|
109
|
-
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
110
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_constructor_crossencoder_new(
|
|
111
|
-
/*handle*/ uint64_t model, RustBuffer context_size,
|
|
112
|
-
RustCallStatus *uniffi_out_err);
|
|
113
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_crossencoder_rank(
|
|
114
|
-
/*handle*/ uint64_t ptr, RustBuffer query, RustBuffer documents);
|
|
115
|
-
/*handle*/ uint64_t
|
|
116
|
-
uniffi_nobodywho_uniffi_fn_method_crossencoder_rank_and_sort_json(
|
|
117
|
-
/*handle*/ uint64_t ptr, RustBuffer query, RustBuffer documents);
|
|
118
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_encoder(
|
|
119
|
-
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
120
|
-
void uniffi_nobodywho_uniffi_fn_free_encoder(
|
|
121
|
-
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
122
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_constructor_encoder_new(
|
|
123
|
-
/*handle*/ uint64_t model, RustBuffer context_size,
|
|
124
|
-
RustCallStatus *uniffi_out_err);
|
|
125
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_encoder_encode(
|
|
126
|
-
/*handle*/ uint64_t ptr, RustBuffer text);
|
|
127
|
-
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_model(
|
|
128
|
-
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
129
|
-
void uniffi_nobodywho_uniffi_fn_free_model(
|
|
130
|
-
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
131
106
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_rustchat(
|
|
132
107
|
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
133
108
|
void uniffi_nobodywho_uniffi_fn_free_rustchat(
|
|
@@ -172,6 +147,31 @@ uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(
|
|
|
172
147
|
/*handle*/ uint64_t ptr, RustBuffer tools);
|
|
173
148
|
void uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(
|
|
174
149
|
/*handle*/ uint64_t ptr, RustCallStatus *uniffi_out_err);
|
|
150
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
|
|
151
|
+
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
152
|
+
void uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(
|
|
153
|
+
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
154
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(
|
|
155
|
+
/*handle*/ uint64_t model, RustBuffer context_size,
|
|
156
|
+
RustCallStatus *uniffi_out_err);
|
|
157
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank(
|
|
158
|
+
/*handle*/ uint64_t ptr, RustBuffer query, RustBuffer documents);
|
|
159
|
+
/*handle*/ uint64_t
|
|
160
|
+
uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(
|
|
161
|
+
/*handle*/ uint64_t ptr, RustBuffer query, RustBuffer documents);
|
|
162
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_rustencoder(
|
|
163
|
+
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
164
|
+
void uniffi_nobodywho_uniffi_fn_free_rustencoder(
|
|
165
|
+
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
166
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(
|
|
167
|
+
/*handle*/ uint64_t model, RustBuffer context_size,
|
|
168
|
+
RustCallStatus *uniffi_out_err);
|
|
169
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
|
|
170
|
+
/*handle*/ uint64_t ptr, RustBuffer text);
|
|
171
|
+
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_rustmodel(
|
|
172
|
+
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
173
|
+
void uniffi_nobodywho_uniffi_fn_free_rustmodel(
|
|
174
|
+
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
175
175
|
/*handle*/ uint64_t uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
|
|
176
176
|
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
177
177
|
void uniffi_nobodywho_uniffi_fn_free_rusttokenstream(
|
|
@@ -395,10 +395,6 @@ uint16_t uniffi_nobodywho_uniffi_checksum_func_sampler_preset_json();
|
|
|
395
395
|
uint16_t uniffi_nobodywho_uniffi_checksum_func_sampler_preset_temperature();
|
|
396
396
|
uint16_t uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_k();
|
|
397
397
|
uint16_t uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p();
|
|
398
|
-
uint16_t uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank();
|
|
399
|
-
uint16_t
|
|
400
|
-
uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank_and_sort_json();
|
|
401
|
-
uint16_t uniffi_nobodywho_uniffi_checksum_method_encoder_encode();
|
|
402
398
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_ask();
|
|
403
399
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt();
|
|
404
400
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history();
|
|
@@ -416,6 +412,10 @@ uint16_t
|
|
|
416
412
|
uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable();
|
|
417
413
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_set_tools();
|
|
418
414
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation();
|
|
415
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank();
|
|
416
|
+
uint16_t
|
|
417
|
+
uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json();
|
|
418
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode();
|
|
419
419
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed();
|
|
420
420
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token();
|
|
421
421
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json();
|
|
@@ -433,9 +433,9 @@ uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p();
|
|
|
433
433
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_typical_p();
|
|
434
434
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_xtc();
|
|
435
435
|
uint16_t uniffi_nobodywho_uniffi_checksum_method_samplerconfig_to_json();
|
|
436
|
-
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_crossencoder_new();
|
|
437
|
-
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_encoder_new();
|
|
438
436
|
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new();
|
|
437
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new();
|
|
438
|
+
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new();
|
|
439
439
|
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new();
|
|
440
440
|
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new();
|
|
441
441
|
uint16_t uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json();
|
|
@@ -2170,131 +2170,6 @@ NativeNobodywho::NativeNobodywho(
|
|
|
2170
2170
|
return this->cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
|
|
2171
2171
|
rt, thisVal, args, count);
|
|
2172
2172
|
});
|
|
2173
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_crossencoder"] =
|
|
2174
|
-
jsi::Function::createFromHostFunction(
|
|
2175
|
-
rt,
|
|
2176
|
-
jsi::PropNameID::forAscii(
|
|
2177
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_clone_crossencoder"),
|
|
2178
|
-
1,
|
|
2179
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2180
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2181
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_clone_crossencoder(
|
|
2182
|
-
rt, thisVal, args, count);
|
|
2183
|
-
});
|
|
2184
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_free_crossencoder"] =
|
|
2185
|
-
jsi::Function::createFromHostFunction(
|
|
2186
|
-
rt,
|
|
2187
|
-
jsi::PropNameID::forAscii(
|
|
2188
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_free_crossencoder"),
|
|
2189
|
-
1,
|
|
2190
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2191
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2192
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_free_crossencoder(
|
|
2193
|
-
rt, thisVal, args, count);
|
|
2194
|
-
});
|
|
2195
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_constructor_crossencoder_new"] =
|
|
2196
|
-
jsi::Function::createFromHostFunction(
|
|
2197
|
-
rt,
|
|
2198
|
-
jsi::PropNameID::forAscii(
|
|
2199
|
-
rt,
|
|
2200
|
-
"ubrn_uniffi_nobodywho_uniffi_fn_constructor_crossencoder_new"),
|
|
2201
|
-
2,
|
|
2202
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2203
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2204
|
-
return this
|
|
2205
|
-
->cpp_uniffi_nobodywho_uniffi_fn_constructor_crossencoder_new(
|
|
2206
|
-
rt, thisVal, args, count);
|
|
2207
|
-
});
|
|
2208
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank"] =
|
|
2209
|
-
jsi::Function::createFromHostFunction(
|
|
2210
|
-
rt,
|
|
2211
|
-
jsi::PropNameID::forAscii(
|
|
2212
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank"),
|
|
2213
|
-
3,
|
|
2214
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2215
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2216
|
-
return this
|
|
2217
|
-
->cpp_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank(
|
|
2218
|
-
rt, thisVal, args, count);
|
|
2219
|
-
});
|
|
2220
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank_and_sort_"
|
|
2221
|
-
"json"] = jsi::Function::createFromHostFunction(
|
|
2222
|
-
rt,
|
|
2223
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_"
|
|
2224
|
-
"crossencoder_rank_and_sort_json"),
|
|
2225
|
-
3,
|
|
2226
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2227
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2228
|
-
return this
|
|
2229
|
-
->cpp_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank_and_sort_json(
|
|
2230
|
-
rt, thisVal, args, count);
|
|
2231
|
-
});
|
|
2232
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_encoder"] =
|
|
2233
|
-
jsi::Function::createFromHostFunction(
|
|
2234
|
-
rt,
|
|
2235
|
-
jsi::PropNameID::forAscii(
|
|
2236
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_clone_encoder"),
|
|
2237
|
-
1,
|
|
2238
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2239
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2240
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_clone_encoder(
|
|
2241
|
-
rt, thisVal, args, count);
|
|
2242
|
-
});
|
|
2243
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_free_encoder"] =
|
|
2244
|
-
jsi::Function::createFromHostFunction(
|
|
2245
|
-
rt,
|
|
2246
|
-
jsi::PropNameID::forAscii(
|
|
2247
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_free_encoder"),
|
|
2248
|
-
1,
|
|
2249
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2250
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2251
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_free_encoder(
|
|
2252
|
-
rt, thisVal, args, count);
|
|
2253
|
-
});
|
|
2254
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_constructor_encoder_new"] =
|
|
2255
|
-
jsi::Function::createFromHostFunction(
|
|
2256
|
-
rt,
|
|
2257
|
-
jsi::PropNameID::forAscii(
|
|
2258
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_constructor_encoder_new"),
|
|
2259
|
-
2,
|
|
2260
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2261
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2262
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_constructor_encoder_new(
|
|
2263
|
-
rt, thisVal, args, count);
|
|
2264
|
-
});
|
|
2265
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_method_encoder_encode"] =
|
|
2266
|
-
jsi::Function::createFromHostFunction(
|
|
2267
|
-
rt,
|
|
2268
|
-
jsi::PropNameID::forAscii(
|
|
2269
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_encoder_encode"),
|
|
2270
|
-
2,
|
|
2271
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2272
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2273
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_method_encoder_encode(
|
|
2274
|
-
rt, thisVal, args, count);
|
|
2275
|
-
});
|
|
2276
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_model"] =
|
|
2277
|
-
jsi::Function::createFromHostFunction(
|
|
2278
|
-
rt,
|
|
2279
|
-
jsi::PropNameID::forAscii(
|
|
2280
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_clone_model"),
|
|
2281
|
-
1,
|
|
2282
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2283
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2284
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_clone_model(
|
|
2285
|
-
rt, thisVal, args, count);
|
|
2286
|
-
});
|
|
2287
|
-
props["ubrn_uniffi_nobodywho_uniffi_fn_free_model"] =
|
|
2288
|
-
jsi::Function::createFromHostFunction(
|
|
2289
|
-
rt,
|
|
2290
|
-
jsi::PropNameID::forAscii(
|
|
2291
|
-
rt, "ubrn_uniffi_nobodywho_uniffi_fn_free_model"),
|
|
2292
|
-
1,
|
|
2293
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2294
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2295
|
-
return this->cpp_uniffi_nobodywho_uniffi_fn_free_model(rt, thisVal,
|
|
2296
|
-
args, count);
|
|
2297
|
-
});
|
|
2298
2173
|
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_rustchat"] =
|
|
2299
2174
|
jsi::Function::createFromHostFunction(
|
|
2300
2175
|
rt,
|
|
@@ -2498,6 +2373,134 @@ NativeNobodywho::NativeNobodywho(
|
|
|
2498
2373
|
->cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(
|
|
2499
2374
|
rt, thisVal, args, count);
|
|
2500
2375
|
});
|
|
2376
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder"] =
|
|
2377
|
+
jsi::Function::createFromHostFunction(
|
|
2378
|
+
rt,
|
|
2379
|
+
jsi::PropNameID::forAscii(
|
|
2380
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder"),
|
|
2381
|
+
1,
|
|
2382
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2383
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2384
|
+
return this->cpp_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
|
|
2385
|
+
rt, thisVal, args, count);
|
|
2386
|
+
});
|
|
2387
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder"] =
|
|
2388
|
+
jsi::Function::createFromHostFunction(
|
|
2389
|
+
rt,
|
|
2390
|
+
jsi::PropNameID::forAscii(
|
|
2391
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder"),
|
|
2392
|
+
1,
|
|
2393
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2394
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2395
|
+
return this->cpp_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(
|
|
2396
|
+
rt, thisVal, args, count);
|
|
2397
|
+
});
|
|
2398
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new"] =
|
|
2399
|
+
jsi::Function::createFromHostFunction(
|
|
2400
|
+
rt,
|
|
2401
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_fn_"
|
|
2402
|
+
"constructor_rustcrossencoder_new"),
|
|
2403
|
+
2,
|
|
2404
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2405
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2406
|
+
return this
|
|
2407
|
+
->cpp_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(
|
|
2408
|
+
rt, thisVal, args, count);
|
|
2409
|
+
});
|
|
2410
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank"] =
|
|
2411
|
+
jsi::Function::createFromHostFunction(
|
|
2412
|
+
rt,
|
|
2413
|
+
jsi::PropNameID::forAscii(
|
|
2414
|
+
rt,
|
|
2415
|
+
"ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank"),
|
|
2416
|
+
3,
|
|
2417
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2418
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2419
|
+
return this
|
|
2420
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank(
|
|
2421
|
+
rt, thisVal, args, count);
|
|
2422
|
+
});
|
|
2423
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_"
|
|
2424
|
+
"json"] = jsi::Function::createFromHostFunction(
|
|
2425
|
+
rt,
|
|
2426
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_"
|
|
2427
|
+
"rustcrossencoder_rank_and_sort_json"),
|
|
2428
|
+
3,
|
|
2429
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2430
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2431
|
+
return this
|
|
2432
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(
|
|
2433
|
+
rt, thisVal, args, count);
|
|
2434
|
+
});
|
|
2435
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_rustencoder"] =
|
|
2436
|
+
jsi::Function::createFromHostFunction(
|
|
2437
|
+
rt,
|
|
2438
|
+
jsi::PropNameID::forAscii(
|
|
2439
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_clone_rustencoder"),
|
|
2440
|
+
1,
|
|
2441
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2442
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2443
|
+
return this->cpp_uniffi_nobodywho_uniffi_fn_clone_rustencoder(
|
|
2444
|
+
rt, thisVal, args, count);
|
|
2445
|
+
});
|
|
2446
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_free_rustencoder"] =
|
|
2447
|
+
jsi::Function::createFromHostFunction(
|
|
2448
|
+
rt,
|
|
2449
|
+
jsi::PropNameID::forAscii(
|
|
2450
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_free_rustencoder"),
|
|
2451
|
+
1,
|
|
2452
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2453
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2454
|
+
return this->cpp_uniffi_nobodywho_uniffi_fn_free_rustencoder(
|
|
2455
|
+
rt, thisVal, args, count);
|
|
2456
|
+
});
|
|
2457
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new"] =
|
|
2458
|
+
jsi::Function::createFromHostFunction(
|
|
2459
|
+
rt,
|
|
2460
|
+
jsi::PropNameID::forAscii(
|
|
2461
|
+
rt,
|
|
2462
|
+
"ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new"),
|
|
2463
|
+
2,
|
|
2464
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2465
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2466
|
+
return this
|
|
2467
|
+
->cpp_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(
|
|
2468
|
+
rt, thisVal, args, count);
|
|
2469
|
+
});
|
|
2470
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode"] =
|
|
2471
|
+
jsi::Function::createFromHostFunction(
|
|
2472
|
+
rt,
|
|
2473
|
+
jsi::PropNameID::forAscii(
|
|
2474
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode"),
|
|
2475
|
+
2,
|
|
2476
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2477
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2478
|
+
return this
|
|
2479
|
+
->cpp_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
|
|
2480
|
+
rt, thisVal, args, count);
|
|
2481
|
+
});
|
|
2482
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel"] =
|
|
2483
|
+
jsi::Function::createFromHostFunction(
|
|
2484
|
+
rt,
|
|
2485
|
+
jsi::PropNameID::forAscii(
|
|
2486
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel"),
|
|
2487
|
+
1,
|
|
2488
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2489
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2490
|
+
return this->cpp_uniffi_nobodywho_uniffi_fn_clone_rustmodel(
|
|
2491
|
+
rt, thisVal, args, count);
|
|
2492
|
+
});
|
|
2493
|
+
props["ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel"] =
|
|
2494
|
+
jsi::Function::createFromHostFunction(
|
|
2495
|
+
rt,
|
|
2496
|
+
jsi::PropNameID::forAscii(
|
|
2497
|
+
rt, "ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel"),
|
|
2498
|
+
1,
|
|
2499
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2500
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2501
|
+
return this->cpp_uniffi_nobodywho_uniffi_fn_free_rustmodel(
|
|
2502
|
+
rt, thisVal, args, count);
|
|
2503
|
+
});
|
|
2501
2504
|
props["ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream"] =
|
|
2502
2505
|
jsi::Function::createFromHostFunction(
|
|
2503
2506
|
rt,
|
|
@@ -3616,44 +3619,6 @@ NativeNobodywho::NativeNobodywho(
|
|
|
3616
3619
|
->cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(
|
|
3617
3620
|
rt, thisVal, args, count);
|
|
3618
3621
|
});
|
|
3619
|
-
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank"] =
|
|
3620
|
-
jsi::Function::createFromHostFunction(
|
|
3621
|
-
rt,
|
|
3622
|
-
jsi::PropNameID::forAscii(
|
|
3623
|
-
rt,
|
|
3624
|
-
"ubrn_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank"),
|
|
3625
|
-
0,
|
|
3626
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3627
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3628
|
-
return this
|
|
3629
|
-
->cpp_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank(
|
|
3630
|
-
rt, thisVal, args, count);
|
|
3631
|
-
});
|
|
3632
|
-
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank_and_"
|
|
3633
|
-
"sort_json"] = jsi::Function::createFromHostFunction(
|
|
3634
|
-
rt,
|
|
3635
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
3636
|
-
"method_crossencoder_rank_and_sort_json"),
|
|
3637
|
-
0,
|
|
3638
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3639
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3640
|
-
return this
|
|
3641
|
-
->cpp_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank_and_sort_json(
|
|
3642
|
-
rt, thisVal, args, count);
|
|
3643
|
-
});
|
|
3644
|
-
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_encoder_encode"] =
|
|
3645
|
-
jsi::Function::createFromHostFunction(
|
|
3646
|
-
rt,
|
|
3647
|
-
jsi::PropNameID::forAscii(
|
|
3648
|
-
rt,
|
|
3649
|
-
"ubrn_uniffi_nobodywho_uniffi_checksum_method_encoder_encode"),
|
|
3650
|
-
0,
|
|
3651
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3652
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3653
|
-
return this
|
|
3654
|
-
->cpp_uniffi_nobodywho_uniffi_checksum_method_encoder_encode(
|
|
3655
|
-
rt, thisVal, args, count);
|
|
3656
|
-
});
|
|
3657
3622
|
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask"] =
|
|
3658
3623
|
jsi::Function::createFromHostFunction(
|
|
3659
3624
|
rt,
|
|
@@ -3822,10 +3787,47 @@ NativeNobodywho::NativeNobodywho(
|
|
|
3822
3787
|
->cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(
|
|
3823
3788
|
rt, thisVal, args, count);
|
|
3824
3789
|
});
|
|
3825
|
-
props["
|
|
3826
|
-
|
|
3790
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank"] =
|
|
3791
|
+
jsi::Function::createFromHostFunction(
|
|
3792
|
+
rt,
|
|
3793
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
3794
|
+
"method_rustcrossencoder_rank"),
|
|
3795
|
+
0,
|
|
3796
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3797
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3798
|
+
return this
|
|
3799
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(
|
|
3800
|
+
rt, thisVal, args, count);
|
|
3801
|
+
});
|
|
3802
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_"
|
|
3803
|
+
"and_sort_json"] = jsi::Function::createFromHostFunction(
|
|
3827
3804
|
rt,
|
|
3828
|
-
jsi::PropNameID::forAscii(rt,
|
|
3805
|
+
jsi::PropNameID::forAscii(rt,
|
|
3806
|
+
"ubrn_uniffi_nobodywho_uniffi_checksum_method_"
|
|
3807
|
+
"rustcrossencoder_rank_and_sort_json"),
|
|
3808
|
+
0,
|
|
3809
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3810
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3811
|
+
return this
|
|
3812
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(
|
|
3813
|
+
rt, thisVal, args, count);
|
|
3814
|
+
});
|
|
3815
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode"] =
|
|
3816
|
+
jsi::Function::createFromHostFunction(
|
|
3817
|
+
rt,
|
|
3818
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
3819
|
+
"method_rustencoder_encode"),
|
|
3820
|
+
0,
|
|
3821
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
3822
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
3823
|
+
return this
|
|
3824
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
3825
|
+
rt, thisVal, args, count);
|
|
3826
|
+
});
|
|
3827
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_"
|
|
3828
|
+
"completed"] = jsi::Function::createFromHostFunction(
|
|
3829
|
+
rt,
|
|
3830
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
3829
3831
|
"method_rusttokenstream_completed"),
|
|
3830
3832
|
0,
|
|
3831
3833
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
@@ -4026,42 +4028,41 @@ NativeNobodywho::NativeNobodywho(
|
|
|
4026
4028
|
->cpp_uniffi_nobodywho_uniffi_checksum_method_samplerconfig_to_json(
|
|
4027
4029
|
rt, thisVal, args, count);
|
|
4028
4030
|
});
|
|
4029
|
-
props["
|
|
4030
|
-
jsi::Function::createFromHostFunction(
|
|
4031
|
-
rt,
|
|
4032
|
-
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
4033
|
-
"constructor_crossencoder_new"),
|
|
4034
|
-
0,
|
|
4035
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4036
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4037
|
-
return this
|
|
4038
|
-
->cpp_uniffi_nobodywho_uniffi_checksum_constructor_crossencoder_new(
|
|
4039
|
-
rt, thisVal, args, count);
|
|
4040
|
-
});
|
|
4041
|
-
props["ubrn_uniffi_nobodywho_uniffi_checksum_constructor_encoder_new"] =
|
|
4031
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new"] =
|
|
4042
4032
|
jsi::Function::createFromHostFunction(
|
|
4043
4033
|
rt,
|
|
4044
4034
|
jsi::PropNameID::forAscii(
|
|
4045
4035
|
rt,
|
|
4046
|
-
"
|
|
4036
|
+
"ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new"),
|
|
4047
4037
|
0,
|
|
4048
4038
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4049
4039
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4050
4040
|
return this
|
|
4051
|
-
->
|
|
4041
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(
|
|
4052
4042
|
rt, thisVal, args, count);
|
|
4053
4043
|
});
|
|
4054
|
-
props["
|
|
4044
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_"
|
|
4045
|
+
"new"] = jsi::Function::createFromHostFunction(
|
|
4046
|
+
rt,
|
|
4047
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
4048
|
+
"constructor_rustcrossencoder_new"),
|
|
4049
|
+
0,
|
|
4050
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4051
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4052
|
+
return this
|
|
4053
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(
|
|
4054
|
+
rt, thisVal, args, count);
|
|
4055
|
+
});
|
|
4056
|
+
props["ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new"] =
|
|
4055
4057
|
jsi::Function::createFromHostFunction(
|
|
4056
4058
|
rt,
|
|
4057
|
-
jsi::PropNameID::forAscii(
|
|
4058
|
-
|
|
4059
|
-
"ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new"),
|
|
4059
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_nobodywho_uniffi_checksum_"
|
|
4060
|
+
"constructor_rustencoder_new"),
|
|
4060
4061
|
0,
|
|
4061
4062
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4062
4063
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4063
4064
|
return this
|
|
4064
|
-
->
|
|
4065
|
+
->cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
4065
4066
|
rt, thisVal, args, count);
|
|
4066
4067
|
});
|
|
4067
4068
|
props["ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new"] =
|
|
@@ -4124,52 +4125,54 @@ NativeNobodywho::NativeNobodywho(
|
|
|
4124
4125
|
return this->cpp_ffi_nobodywho_uniffi_uniffi_contract_version(
|
|
4125
4126
|
rt, thisVal, args, count);
|
|
4126
4127
|
});
|
|
4127
|
-
props["
|
|
4128
|
+
props["ubrn_uniffi_internal_fn_method_rustchat_ffi__bless_pointer"] =
|
|
4128
4129
|
jsi::Function::createFromHostFunction(
|
|
4129
4130
|
rt,
|
|
4130
4131
|
jsi::PropNameID::forAscii(
|
|
4131
|
-
rt,
|
|
4132
|
-
"ubrn_uniffi_internal_fn_method_crossencoder_ffi__bless_pointer"),
|
|
4132
|
+
rt, "ubrn_uniffi_internal_fn_method_rustchat_ffi__bless_pointer"),
|
|
4133
4133
|
1,
|
|
4134
4134
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4135
4135
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4136
4136
|
return this
|
|
4137
|
-
->
|
|
4137
|
+
->cpp_uniffi_internal_fn_method_rustchat_ffi__bless_pointer(
|
|
4138
4138
|
rt, thisVal, args, count);
|
|
4139
4139
|
});
|
|
4140
|
-
props["
|
|
4140
|
+
props["ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer"] =
|
|
4141
4141
|
jsi::Function::createFromHostFunction(
|
|
4142
4142
|
rt,
|
|
4143
|
-
jsi::PropNameID::forAscii(
|
|
4144
|
-
|
|
4143
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_internal_fn_method_"
|
|
4144
|
+
"rustcrossencoder_ffi__bless_pointer"),
|
|
4145
4145
|
1,
|
|
4146
4146
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4147
4147
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4148
4148
|
return this
|
|
4149
|
-
->
|
|
4149
|
+
->cpp_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(
|
|
4150
4150
|
rt, thisVal, args, count);
|
|
4151
4151
|
});
|
|
4152
|
-
props["
|
|
4152
|
+
props["ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer"] =
|
|
4153
4153
|
jsi::Function::createFromHostFunction(
|
|
4154
4154
|
rt,
|
|
4155
4155
|
jsi::PropNameID::forAscii(
|
|
4156
|
-
rt,
|
|
4156
|
+
rt,
|
|
4157
|
+
"ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer"),
|
|
4157
4158
|
1,
|
|
4158
4159
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4159
4160
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4160
|
-
return this
|
|
4161
|
-
|
|
4161
|
+
return this
|
|
4162
|
+
->cpp_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(
|
|
4163
|
+
rt, thisVal, args, count);
|
|
4162
4164
|
});
|
|
4163
|
-
props["
|
|
4165
|
+
props["ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer"] =
|
|
4164
4166
|
jsi::Function::createFromHostFunction(
|
|
4165
4167
|
rt,
|
|
4166
4168
|
jsi::PropNameID::forAscii(
|
|
4167
|
-
rt,
|
|
4169
|
+
rt,
|
|
4170
|
+
"ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer"),
|
|
4168
4171
|
1,
|
|
4169
4172
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
4170
4173
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
4171
4174
|
return this
|
|
4172
|
-
->
|
|
4175
|
+
->cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
4173
4176
|
rt, thisVal, args, count);
|
|
4174
4177
|
});
|
|
4175
4178
|
props["ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer"] =
|
|
@@ -4293,29 +4296,29 @@ NativeNobodywho::cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(
|
|
|
4293
4296
|
return uniffi_jsi::Bridging<std::string>::arraybuffer_to_string(rt, args[0]);
|
|
4294
4297
|
}
|
|
4295
4298
|
jsi::Value
|
|
4296
|
-
NativeNobodywho::
|
|
4299
|
+
NativeNobodywho::cpp_uniffi_internal_fn_method_rustchat_ffi__bless_pointer(
|
|
4297
4300
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4298
4301
|
size_t count) {
|
|
4299
4302
|
auto pointer =
|
|
4300
4303
|
uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
4301
4304
|
auto static destructor = [](uint64_t p) {
|
|
4302
4305
|
RustCallStatus status = {0};
|
|
4303
|
-
|
|
4306
|
+
uniffi_nobodywho_uniffi_fn_free_rustchat(p, &status);
|
|
4304
4307
|
};
|
|
4305
4308
|
auto ptrObj =
|
|
4306
4309
|
std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
4307
4310
|
auto obj = jsi::Object::createFromHostObject(rt, ptrObj);
|
|
4308
4311
|
return jsi::Value(rt, obj);
|
|
4309
4312
|
}
|
|
4310
|
-
jsi::Value
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4313
|
+
jsi::Value NativeNobodywho::
|
|
4314
|
+
cpp_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(
|
|
4315
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4316
|
+
size_t count) {
|
|
4314
4317
|
auto pointer =
|
|
4315
4318
|
uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
4316
4319
|
auto static destructor = [](uint64_t p) {
|
|
4317
4320
|
RustCallStatus status = {0};
|
|
4318
|
-
|
|
4321
|
+
uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(p, &status);
|
|
4319
4322
|
};
|
|
4320
4323
|
auto ptrObj =
|
|
4321
4324
|
std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
@@ -4323,14 +4326,14 @@ NativeNobodywho::cpp_uniffi_internal_fn_method_encoder_ffi__bless_pointer(
|
|
|
4323
4326
|
return jsi::Value(rt, obj);
|
|
4324
4327
|
}
|
|
4325
4328
|
jsi::Value
|
|
4326
|
-
NativeNobodywho::
|
|
4329
|
+
NativeNobodywho::cpp_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(
|
|
4327
4330
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4328
4331
|
size_t count) {
|
|
4329
4332
|
auto pointer =
|
|
4330
4333
|
uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
4331
4334
|
auto static destructor = [](uint64_t p) {
|
|
4332
4335
|
RustCallStatus status = {0};
|
|
4333
|
-
|
|
4336
|
+
uniffi_nobodywho_uniffi_fn_free_rustencoder(p, &status);
|
|
4334
4337
|
};
|
|
4335
4338
|
auto ptrObj =
|
|
4336
4339
|
std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
@@ -4338,14 +4341,14 @@ NativeNobodywho::cpp_uniffi_internal_fn_method_model_ffi__bless_pointer(
|
|
|
4338
4341
|
return jsi::Value(rt, obj);
|
|
4339
4342
|
}
|
|
4340
4343
|
jsi::Value
|
|
4341
|
-
NativeNobodywho::
|
|
4344
|
+
NativeNobodywho::cpp_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
|
|
4342
4345
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4343
4346
|
size_t count) {
|
|
4344
4347
|
auto pointer =
|
|
4345
4348
|
uniffi_jsi::Bridging<uint64_t>::fromJs(rt, callInvoker, args[0]);
|
|
4346
4349
|
auto static destructor = [](uint64_t p) {
|
|
4347
4350
|
RustCallStatus status = {0};
|
|
4348
|
-
|
|
4351
|
+
uniffi_nobodywho_uniffi_fn_free_rustmodel(p, &status);
|
|
4349
4352
|
};
|
|
4350
4353
|
auto ptrObj =
|
|
4351
4354
|
std::make_shared<uniffi_jsi::DestructibleObject>(pointer, destructor);
|
|
@@ -4414,170 +4417,6 @@ NativeNobodywho::cpp_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(
|
|
|
4414
4417
|
}
|
|
4415
4418
|
|
|
4416
4419
|
// Methods calling directly into the uniffi generated C API of the Rust crate.
|
|
4417
|
-
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_crossencoder(
|
|
4418
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4419
|
-
size_t count) {
|
|
4420
|
-
RustCallStatus status =
|
|
4421
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4422
|
-
auto value = uniffi_nobodywho_uniffi_fn_clone_crossencoder(
|
|
4423
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4424
|
-
args[0]),
|
|
4425
|
-
&status);
|
|
4426
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4427
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4428
|
-
|
|
4429
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4430
|
-
value);
|
|
4431
|
-
}
|
|
4432
|
-
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_free_crossencoder(
|
|
4433
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4434
|
-
size_t count) {
|
|
4435
|
-
RustCallStatus status =
|
|
4436
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4437
|
-
uniffi_nobodywho_uniffi_fn_free_crossencoder(
|
|
4438
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4439
|
-
args[0]),
|
|
4440
|
-
&status);
|
|
4441
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4442
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4443
|
-
|
|
4444
|
-
return jsi::Value::undefined();
|
|
4445
|
-
}
|
|
4446
|
-
jsi::Value
|
|
4447
|
-
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_constructor_crossencoder_new(
|
|
4448
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4449
|
-
size_t count) {
|
|
4450
|
-
RustCallStatus status =
|
|
4451
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4452
|
-
auto value = uniffi_nobodywho_uniffi_fn_constructor_crossencoder_new(
|
|
4453
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4454
|
-
args[0]),
|
|
4455
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
4456
|
-
&status);
|
|
4457
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4458
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4459
|
-
|
|
4460
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4461
|
-
value);
|
|
4462
|
-
}
|
|
4463
|
-
jsi::Value
|
|
4464
|
-
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank(
|
|
4465
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4466
|
-
size_t count) {
|
|
4467
|
-
auto value = uniffi_nobodywho_uniffi_fn_method_crossencoder_rank(
|
|
4468
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4469
|
-
args[0]),
|
|
4470
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
4471
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4472
|
-
args[2]));
|
|
4473
|
-
|
|
4474
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4475
|
-
value);
|
|
4476
|
-
}
|
|
4477
|
-
jsi::Value NativeNobodywho::
|
|
4478
|
-
cpp_uniffi_nobodywho_uniffi_fn_method_crossencoder_rank_and_sort_json(
|
|
4479
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4480
|
-
size_t count) {
|
|
4481
|
-
auto value =
|
|
4482
|
-
uniffi_nobodywho_uniffi_fn_method_crossencoder_rank_and_sort_json(
|
|
4483
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4484
|
-
args[0]),
|
|
4485
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4486
|
-
args[1]),
|
|
4487
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4488
|
-
args[2]));
|
|
4489
|
-
|
|
4490
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4491
|
-
value);
|
|
4492
|
-
}
|
|
4493
|
-
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_encoder(
|
|
4494
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4495
|
-
size_t count) {
|
|
4496
|
-
RustCallStatus status =
|
|
4497
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4498
|
-
auto value = uniffi_nobodywho_uniffi_fn_clone_encoder(
|
|
4499
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4500
|
-
args[0]),
|
|
4501
|
-
&status);
|
|
4502
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4503
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4504
|
-
|
|
4505
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4506
|
-
value);
|
|
4507
|
-
}
|
|
4508
|
-
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_free_encoder(
|
|
4509
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4510
|
-
size_t count) {
|
|
4511
|
-
RustCallStatus status =
|
|
4512
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4513
|
-
uniffi_nobodywho_uniffi_fn_free_encoder(
|
|
4514
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4515
|
-
args[0]),
|
|
4516
|
-
&status);
|
|
4517
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4518
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4519
|
-
|
|
4520
|
-
return jsi::Value::undefined();
|
|
4521
|
-
}
|
|
4522
|
-
jsi::Value
|
|
4523
|
-
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_constructor_encoder_new(
|
|
4524
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4525
|
-
size_t count) {
|
|
4526
|
-
RustCallStatus status =
|
|
4527
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4528
|
-
auto value = uniffi_nobodywho_uniffi_fn_constructor_encoder_new(
|
|
4529
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4530
|
-
args[0]),
|
|
4531
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
4532
|
-
&status);
|
|
4533
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4534
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4535
|
-
|
|
4536
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4537
|
-
value);
|
|
4538
|
-
}
|
|
4539
|
-
jsi::Value
|
|
4540
|
-
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_encoder_encode(
|
|
4541
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4542
|
-
size_t count) {
|
|
4543
|
-
auto value = uniffi_nobodywho_uniffi_fn_method_encoder_encode(
|
|
4544
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4545
|
-
args[0]),
|
|
4546
|
-
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4547
|
-
args[1]));
|
|
4548
|
-
|
|
4549
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4550
|
-
value);
|
|
4551
|
-
}
|
|
4552
|
-
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_model(
|
|
4553
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4554
|
-
size_t count) {
|
|
4555
|
-
RustCallStatus status =
|
|
4556
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4557
|
-
auto value = uniffi_nobodywho_uniffi_fn_clone_model(
|
|
4558
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4559
|
-
args[0]),
|
|
4560
|
-
&status);
|
|
4561
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4562
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4563
|
-
|
|
4564
|
-
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4565
|
-
value);
|
|
4566
|
-
}
|
|
4567
|
-
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_free_model(
|
|
4568
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4569
|
-
size_t count) {
|
|
4570
|
-
RustCallStatus status =
|
|
4571
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4572
|
-
uniffi_nobodywho_uniffi_fn_free_model(
|
|
4573
|
-
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4574
|
-
args[0]),
|
|
4575
|
-
&status);
|
|
4576
|
-
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4577
|
-
rt, callInvoker, status, args[count - 1]);
|
|
4578
|
-
|
|
4579
|
-
return jsi::Value::undefined();
|
|
4580
|
-
}
|
|
4581
4420
|
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_rustchat(
|
|
4582
4421
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4583
4422
|
size_t count) {
|
|
@@ -4813,6 +4652,172 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(
|
|
|
4813
4652
|
return jsi::Value::undefined();
|
|
4814
4653
|
}
|
|
4815
4654
|
jsi::Value
|
|
4655
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
|
|
4656
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4657
|
+
size_t count) {
|
|
4658
|
+
RustCallStatus status =
|
|
4659
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4660
|
+
auto value = uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
|
|
4661
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4662
|
+
args[0]),
|
|
4663
|
+
&status);
|
|
4664
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4665
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4666
|
+
|
|
4667
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4668
|
+
value);
|
|
4669
|
+
}
|
|
4670
|
+
jsi::Value
|
|
4671
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(
|
|
4672
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4673
|
+
size_t count) {
|
|
4674
|
+
RustCallStatus status =
|
|
4675
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4676
|
+
uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(
|
|
4677
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4678
|
+
args[0]),
|
|
4679
|
+
&status);
|
|
4680
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4681
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4682
|
+
|
|
4683
|
+
return jsi::Value::undefined();
|
|
4684
|
+
}
|
|
4685
|
+
jsi::Value NativeNobodywho::
|
|
4686
|
+
cpp_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(
|
|
4687
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4688
|
+
size_t count) {
|
|
4689
|
+
RustCallStatus status =
|
|
4690
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4691
|
+
auto value = uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(
|
|
4692
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4693
|
+
args[0]),
|
|
4694
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
4695
|
+
&status);
|
|
4696
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4697
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4698
|
+
|
|
4699
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4700
|
+
value);
|
|
4701
|
+
}
|
|
4702
|
+
jsi::Value
|
|
4703
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank(
|
|
4704
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4705
|
+
size_t count) {
|
|
4706
|
+
auto value = uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank(
|
|
4707
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4708
|
+
args[0]),
|
|
4709
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
4710
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4711
|
+
args[2]));
|
|
4712
|
+
|
|
4713
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4714
|
+
value);
|
|
4715
|
+
}
|
|
4716
|
+
jsi::Value NativeNobodywho::
|
|
4717
|
+
cpp_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(
|
|
4718
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4719
|
+
size_t count) {
|
|
4720
|
+
auto value =
|
|
4721
|
+
uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(
|
|
4722
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4723
|
+
args[0]),
|
|
4724
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4725
|
+
args[1]),
|
|
4726
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4727
|
+
args[2]));
|
|
4728
|
+
|
|
4729
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4730
|
+
value);
|
|
4731
|
+
}
|
|
4732
|
+
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_rustencoder(
|
|
4733
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4734
|
+
size_t count) {
|
|
4735
|
+
RustCallStatus status =
|
|
4736
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4737
|
+
auto value = uniffi_nobodywho_uniffi_fn_clone_rustencoder(
|
|
4738
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4739
|
+
args[0]),
|
|
4740
|
+
&status);
|
|
4741
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4742
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4743
|
+
|
|
4744
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4745
|
+
value);
|
|
4746
|
+
}
|
|
4747
|
+
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_free_rustencoder(
|
|
4748
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4749
|
+
size_t count) {
|
|
4750
|
+
RustCallStatus status =
|
|
4751
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4752
|
+
uniffi_nobodywho_uniffi_fn_free_rustencoder(
|
|
4753
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4754
|
+
args[0]),
|
|
4755
|
+
&status);
|
|
4756
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4757
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4758
|
+
|
|
4759
|
+
return jsi::Value::undefined();
|
|
4760
|
+
}
|
|
4761
|
+
jsi::Value
|
|
4762
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(
|
|
4763
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4764
|
+
size_t count) {
|
|
4765
|
+
RustCallStatus status =
|
|
4766
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4767
|
+
auto value = uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(
|
|
4768
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4769
|
+
args[0]),
|
|
4770
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker, args[1]),
|
|
4771
|
+
&status);
|
|
4772
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4773
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4774
|
+
|
|
4775
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4776
|
+
value);
|
|
4777
|
+
}
|
|
4778
|
+
jsi::Value
|
|
4779
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
|
|
4780
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4781
|
+
size_t count) {
|
|
4782
|
+
auto value = uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
|
|
4783
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4784
|
+
args[0]),
|
|
4785
|
+
uniffi::nobodywho::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
4786
|
+
args[1]));
|
|
4787
|
+
|
|
4788
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4789
|
+
value);
|
|
4790
|
+
}
|
|
4791
|
+
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_rustmodel(
|
|
4792
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4793
|
+
size_t count) {
|
|
4794
|
+
RustCallStatus status =
|
|
4795
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4796
|
+
auto value = uniffi_nobodywho_uniffi_fn_clone_rustmodel(
|
|
4797
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4798
|
+
args[0]),
|
|
4799
|
+
&status);
|
|
4800
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4801
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4802
|
+
|
|
4803
|
+
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
4804
|
+
value);
|
|
4805
|
+
}
|
|
4806
|
+
jsi::Value NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_free_rustmodel(
|
|
4807
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4808
|
+
size_t count) {
|
|
4809
|
+
RustCallStatus status =
|
|
4810
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::rustSuccess(rt);
|
|
4811
|
+
uniffi_nobodywho_uniffi_fn_free_rustmodel(
|
|
4812
|
+
uniffi_jsi::Bridging</*handle*/ uint64_t>::fromJs(rt, callInvoker,
|
|
4813
|
+
args[0]),
|
|
4814
|
+
&status);
|
|
4815
|
+
uniffi::nobodywho::Bridging<RustCallStatus>::copyIntoJs(
|
|
4816
|
+
rt, callInvoker, status, args[count - 1]);
|
|
4817
|
+
|
|
4818
|
+
return jsi::Value::undefined();
|
|
4819
|
+
}
|
|
4820
|
+
jsi::Value
|
|
4816
4821
|
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
|
|
4817
4822
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
4818
4823
|
size_t count) {
|
|
@@ -6035,31 +6040,6 @@ NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(
|
|
|
6035
6040
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6036
6041
|
}
|
|
6037
6042
|
jsi::Value
|
|
6038
|
-
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank(
|
|
6039
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6040
|
-
size_t count) {
|
|
6041
|
-
auto value = uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank();
|
|
6042
|
-
|
|
6043
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6044
|
-
}
|
|
6045
|
-
jsi::Value NativeNobodywho::
|
|
6046
|
-
cpp_uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank_and_sort_json(
|
|
6047
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6048
|
-
size_t count) {
|
|
6049
|
-
auto value =
|
|
6050
|
-
uniffi_nobodywho_uniffi_checksum_method_crossencoder_rank_and_sort_json();
|
|
6051
|
-
|
|
6052
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6053
|
-
}
|
|
6054
|
-
jsi::Value
|
|
6055
|
-
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_method_encoder_encode(
|
|
6056
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6057
|
-
size_t count) {
|
|
6058
|
-
auto value = uniffi_nobodywho_uniffi_checksum_method_encoder_encode();
|
|
6059
|
-
|
|
6060
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6061
|
-
}
|
|
6062
|
-
jsi::Value
|
|
6063
6043
|
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(
|
|
6064
6044
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6065
6045
|
size_t count) {
|
|
@@ -6181,6 +6161,31 @@ jsi::Value NativeNobodywho::
|
|
|
6181
6161
|
|
|
6182
6162
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6183
6163
|
}
|
|
6164
|
+
jsi::Value NativeNobodywho::
|
|
6165
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(
|
|
6166
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6167
|
+
size_t count) {
|
|
6168
|
+
auto value = uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank();
|
|
6169
|
+
|
|
6170
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6171
|
+
}
|
|
6172
|
+
jsi::Value NativeNobodywho::
|
|
6173
|
+
cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(
|
|
6174
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6175
|
+
size_t count) {
|
|
6176
|
+
auto value =
|
|
6177
|
+
uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json();
|
|
6178
|
+
|
|
6179
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6180
|
+
}
|
|
6181
|
+
jsi::Value
|
|
6182
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
6183
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6184
|
+
size_t count) {
|
|
6185
|
+
auto value = uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode();
|
|
6186
|
+
|
|
6187
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6188
|
+
}
|
|
6184
6189
|
jsi::Value NativeNobodywho::
|
|
6185
6190
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(
|
|
6186
6191
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
@@ -6325,27 +6330,28 @@ jsi::Value NativeNobodywho::
|
|
|
6325
6330
|
|
|
6326
6331
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6327
6332
|
}
|
|
6328
|
-
jsi::Value NativeNobodywho::
|
|
6329
|
-
cpp_uniffi_nobodywho_uniffi_checksum_constructor_crossencoder_new(
|
|
6330
|
-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6331
|
-
size_t count) {
|
|
6332
|
-
auto value = uniffi_nobodywho_uniffi_checksum_constructor_crossencoder_new();
|
|
6333
|
-
|
|
6334
|
-
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6335
|
-
}
|
|
6336
6333
|
jsi::Value
|
|
6337
|
-
NativeNobodywho::
|
|
6334
|
+
NativeNobodywho::cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(
|
|
6338
6335
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6339
6336
|
size_t count) {
|
|
6340
|
-
auto value =
|
|
6337
|
+
auto value = uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new();
|
|
6341
6338
|
|
|
6342
6339
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6343
6340
|
}
|
|
6344
|
-
jsi::Value
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
auto value =
|
|
6341
|
+
jsi::Value NativeNobodywho::
|
|
6342
|
+
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(
|
|
6343
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6344
|
+
size_t count) {
|
|
6345
|
+
auto value =
|
|
6346
|
+
uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new();
|
|
6347
|
+
|
|
6348
|
+
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6349
|
+
}
|
|
6350
|
+
jsi::Value NativeNobodywho::
|
|
6351
|
+
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
6352
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
6353
|
+
size_t count) {
|
|
6354
|
+
auto value = uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new();
|
|
6349
6355
|
|
|
6350
6356
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
6351
6357
|
}
|