rice-node-sdk 1.0.4 → 1.0.6

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.
@@ -1,4 +1,5 @@
1
1
  import { execute } from "../tools/execute";
2
+ import { createStateTools } from "../tools/vercel";
2
3
  export declare const statetool: {
3
4
  google: ({
4
5
  name: string;
@@ -25,6 +26,9 @@ export declare const statetool: {
25
26
  actionDetails?: undefined;
26
27
  limit?: undefined;
27
28
  actionTypeFilter?: undefined;
29
+ schema?: undefined;
30
+ candidates?: undefined;
31
+ skillName?: undefined;
28
32
  };
29
33
  required: string[];
30
34
  };
@@ -53,6 +57,9 @@ export declare const statetool: {
53
57
  actionDetails?: undefined;
54
58
  limit?: undefined;
55
59
  actionTypeFilter?: undefined;
60
+ schema?: undefined;
61
+ candidates?: undefined;
62
+ skillName?: undefined;
56
63
  };
57
64
  required: string[];
58
65
  };
@@ -87,6 +94,9 @@ export declare const statetool: {
87
94
  actionDetails?: undefined;
88
95
  limit?: undefined;
89
96
  actionTypeFilter?: undefined;
97
+ schema?: undefined;
98
+ candidates?: undefined;
99
+ skillName?: undefined;
90
100
  };
91
101
  required: string[];
92
102
  };
@@ -115,6 +125,9 @@ export declare const statetool: {
115
125
  actionDetails?: undefined;
116
126
  limit?: undefined;
117
127
  actionTypeFilter?: undefined;
128
+ schema?: undefined;
129
+ candidates?: undefined;
130
+ skillName?: undefined;
118
131
  };
119
132
  required: string[];
120
133
  };
@@ -140,6 +153,9 @@ export declare const statetool: {
140
153
  actionDetails?: undefined;
141
154
  limit?: undefined;
142
155
  actionTypeFilter?: undefined;
156
+ schema?: undefined;
157
+ candidates?: undefined;
158
+ skillName?: undefined;
143
159
  };
144
160
  required?: undefined;
145
161
  };
@@ -174,6 +190,9 @@ export declare const statetool: {
174
190
  actionDetails?: undefined;
175
191
  limit?: undefined;
176
192
  actionTypeFilter?: undefined;
193
+ schema?: undefined;
194
+ candidates?: undefined;
195
+ skillName?: undefined;
177
196
  };
178
197
  required: string[];
179
198
  };
@@ -205,6 +224,9 @@ export declare const statetool: {
205
224
  actionDetails?: undefined;
206
225
  limit?: undefined;
207
226
  actionTypeFilter?: undefined;
227
+ schema?: undefined;
228
+ candidates?: undefined;
229
+ skillName?: undefined;
208
230
  };
209
231
  required: string[];
210
232
  };
@@ -233,6 +255,9 @@ export declare const statetool: {
233
255
  actionDetails?: undefined;
234
256
  limit?: undefined;
235
257
  actionTypeFilter?: undefined;
258
+ schema?: undefined;
259
+ candidates?: undefined;
260
+ skillName?: undefined;
236
261
  };
237
262
  required?: undefined;
238
263
  };
@@ -267,6 +292,9 @@ export declare const statetool: {
267
292
  statusFilter?: undefined;
268
293
  limit?: undefined;
269
294
  actionTypeFilter?: undefined;
295
+ schema?: undefined;
296
+ candidates?: undefined;
297
+ skillName?: undefined;
270
298
  };
271
299
  required: string[];
272
300
  };
@@ -298,9 +326,142 @@ export declare const statetool: {
298
326
  agentId?: undefined;
299
327
  actionType?: undefined;
300
328
  actionDetails?: undefined;
329
+ schema?: undefined;
330
+ candidates?: undefined;
331
+ skillName?: undefined;
301
332
  };
302
333
  required?: undefined;
303
334
  };
335
+ } | {
336
+ name: string;
337
+ description: string;
338
+ parameters: {
339
+ type: string;
340
+ properties: {
341
+ name: {
342
+ type: string;
343
+ description: string;
344
+ };
345
+ schema: {
346
+ type: string;
347
+ description: string;
348
+ };
349
+ content?: undefined;
350
+ query?: undefined;
351
+ value?: undefined;
352
+ source?: undefined;
353
+ description?: undefined;
354
+ priority?: undefined;
355
+ parentId?: undefined;
356
+ goalId?: undefined;
357
+ status?: undefined;
358
+ statusFilter?: undefined;
359
+ agentId?: undefined;
360
+ actionType?: undefined;
361
+ actionDetails?: undefined;
362
+ limit?: undefined;
363
+ actionTypeFilter?: undefined;
364
+ candidates?: undefined;
365
+ skillName?: undefined;
366
+ };
367
+ required: string[];
368
+ };
369
+ } | {
370
+ name: string;
371
+ description: string;
372
+ parameters: {
373
+ type: string;
374
+ properties: {
375
+ agentId: {
376
+ type: string;
377
+ description: string;
378
+ };
379
+ candidates: {
380
+ type: string;
381
+ description: string;
382
+ };
383
+ content?: undefined;
384
+ query?: undefined;
385
+ name?: undefined;
386
+ value?: undefined;
387
+ source?: undefined;
388
+ description?: undefined;
389
+ priority?: undefined;
390
+ parentId?: undefined;
391
+ goalId?: undefined;
392
+ status?: undefined;
393
+ statusFilter?: undefined;
394
+ actionType?: undefined;
395
+ actionDetails?: undefined;
396
+ limit?: undefined;
397
+ actionTypeFilter?: undefined;
398
+ schema?: undefined;
399
+ skillName?: undefined;
400
+ };
401
+ required: string[];
402
+ };
403
+ } | {
404
+ name: string;
405
+ description: string;
406
+ parameters: {
407
+ type: string;
408
+ properties: {
409
+ limit: {
410
+ type: string;
411
+ description: string;
412
+ };
413
+ content?: undefined;
414
+ query?: undefined;
415
+ name?: undefined;
416
+ value?: undefined;
417
+ source?: undefined;
418
+ description?: undefined;
419
+ priority?: undefined;
420
+ parentId?: undefined;
421
+ goalId?: undefined;
422
+ status?: undefined;
423
+ statusFilter?: undefined;
424
+ agentId?: undefined;
425
+ actionType?: undefined;
426
+ actionDetails?: undefined;
427
+ actionTypeFilter?: undefined;
428
+ schema?: undefined;
429
+ candidates?: undefined;
430
+ skillName?: undefined;
431
+ };
432
+ required?: undefined;
433
+ };
434
+ } | {
435
+ name: string;
436
+ description: string;
437
+ parameters: {
438
+ type: string;
439
+ properties: {
440
+ skillName: {
441
+ type: string;
442
+ description: string;
443
+ };
444
+ content?: undefined;
445
+ query?: undefined;
446
+ name?: undefined;
447
+ value?: undefined;
448
+ source?: undefined;
449
+ description?: undefined;
450
+ priority?: undefined;
451
+ parentId?: undefined;
452
+ goalId?: undefined;
453
+ status?: undefined;
454
+ statusFilter?: undefined;
455
+ agentId?: undefined;
456
+ actionType?: undefined;
457
+ actionDetails?: undefined;
458
+ limit?: undefined;
459
+ actionTypeFilter?: undefined;
460
+ schema?: undefined;
461
+ candidates?: undefined;
462
+ };
463
+ required: string[];
464
+ };
304
465
  })[];
305
466
  openai: ({
306
467
  type: string;
@@ -329,6 +490,9 @@ export declare const statetool: {
329
490
  actionDetails?: undefined;
330
491
  limit?: undefined;
331
492
  actionTypeFilter?: undefined;
493
+ schema?: undefined;
494
+ candidates?: undefined;
495
+ skillName?: undefined;
332
496
  };
333
497
  required: string[];
334
498
  };
@@ -360,6 +524,9 @@ export declare const statetool: {
360
524
  actionDetails?: undefined;
361
525
  limit?: undefined;
362
526
  actionTypeFilter?: undefined;
527
+ schema?: undefined;
528
+ candidates?: undefined;
529
+ skillName?: undefined;
363
530
  };
364
531
  required: string[];
365
532
  };
@@ -396,6 +563,9 @@ export declare const statetool: {
396
563
  actionDetails?: undefined;
397
564
  limit?: undefined;
398
565
  actionTypeFilter?: undefined;
566
+ schema?: undefined;
567
+ candidates?: undefined;
568
+ skillName?: undefined;
399
569
  };
400
570
  required: string[];
401
571
  };
@@ -427,6 +597,9 @@ export declare const statetool: {
427
597
  actionDetails?: undefined;
428
598
  limit?: undefined;
429
599
  actionTypeFilter?: undefined;
600
+ schema?: undefined;
601
+ candidates?: undefined;
602
+ skillName?: undefined;
430
603
  };
431
604
  required: string[];
432
605
  };
@@ -455,6 +628,9 @@ export declare const statetool: {
455
628
  actionDetails?: undefined;
456
629
  limit?: undefined;
457
630
  actionTypeFilter?: undefined;
631
+ schema?: undefined;
632
+ candidates?: undefined;
633
+ skillName?: undefined;
458
634
  };
459
635
  required?: undefined;
460
636
  };
@@ -492,6 +668,9 @@ export declare const statetool: {
492
668
  actionDetails?: undefined;
493
669
  limit?: undefined;
494
670
  actionTypeFilter?: undefined;
671
+ schema?: undefined;
672
+ candidates?: undefined;
673
+ skillName?: undefined;
495
674
  };
496
675
  required: string[];
497
676
  };
@@ -526,6 +705,9 @@ export declare const statetool: {
526
705
  actionDetails?: undefined;
527
706
  limit?: undefined;
528
707
  actionTypeFilter?: undefined;
708
+ schema?: undefined;
709
+ candidates?: undefined;
710
+ skillName?: undefined;
529
711
  };
530
712
  required: string[];
531
713
  };
@@ -557,6 +739,9 @@ export declare const statetool: {
557
739
  actionDetails?: undefined;
558
740
  limit?: undefined;
559
741
  actionTypeFilter?: undefined;
742
+ schema?: undefined;
743
+ candidates?: undefined;
744
+ skillName?: undefined;
560
745
  };
561
746
  required?: undefined;
562
747
  };
@@ -593,6 +778,9 @@ export declare const statetool: {
593
778
  statusFilter?: undefined;
594
779
  limit?: undefined;
595
780
  actionTypeFilter?: undefined;
781
+ schema?: undefined;
782
+ candidates?: undefined;
783
+ skillName?: undefined;
596
784
  };
597
785
  required: string[];
598
786
  };
@@ -627,10 +815,174 @@ export declare const statetool: {
627
815
  agentId?: undefined;
628
816
  actionType?: undefined;
629
817
  actionDetails?: undefined;
818
+ schema?: undefined;
819
+ candidates?: undefined;
820
+ skillName?: undefined;
821
+ };
822
+ required?: undefined;
823
+ };
824
+ };
825
+ } | {
826
+ type: string;
827
+ function: {
828
+ name: string;
829
+ description: string;
830
+ parameters: {
831
+ type: string;
832
+ properties: {
833
+ name: {
834
+ type: string;
835
+ description: string;
836
+ };
837
+ schema: {
838
+ description: string;
839
+ };
840
+ content?: undefined;
841
+ query?: undefined;
842
+ value?: undefined;
843
+ source?: undefined;
844
+ description?: undefined;
845
+ priority?: undefined;
846
+ parentId?: undefined;
847
+ goalId?: undefined;
848
+ status?: undefined;
849
+ statusFilter?: undefined;
850
+ agentId?: undefined;
851
+ actionType?: undefined;
852
+ actionDetails?: undefined;
853
+ limit?: undefined;
854
+ actionTypeFilter?: undefined;
855
+ candidates?: undefined;
856
+ skillName?: undefined;
857
+ };
858
+ required: string[];
859
+ };
860
+ };
861
+ } | {
862
+ type: string;
863
+ function: {
864
+ name: string;
865
+ description: string;
866
+ parameters: {
867
+ type: string;
868
+ properties: {
869
+ agentId: {
870
+ type: string;
871
+ description: string;
872
+ };
873
+ candidates: {
874
+ type: string;
875
+ description: string;
876
+ items: {
877
+ type: string;
878
+ properties: {
879
+ actionType: {
880
+ type: string;
881
+ description: string;
882
+ };
883
+ action: {
884
+ description: string;
885
+ };
886
+ score: {
887
+ type: string;
888
+ description: string;
889
+ };
890
+ rationale: {
891
+ type: string;
892
+ description: string;
893
+ };
894
+ };
895
+ };
896
+ };
897
+ content?: undefined;
898
+ query?: undefined;
899
+ name?: undefined;
900
+ value?: undefined;
901
+ source?: undefined;
902
+ description?: undefined;
903
+ priority?: undefined;
904
+ parentId?: undefined;
905
+ goalId?: undefined;
906
+ status?: undefined;
907
+ statusFilter?: undefined;
908
+ actionType?: undefined;
909
+ actionDetails?: undefined;
910
+ limit?: undefined;
911
+ actionTypeFilter?: undefined;
912
+ schema?: undefined;
913
+ skillName?: undefined;
914
+ };
915
+ required: string[];
916
+ };
917
+ };
918
+ } | {
919
+ type: string;
920
+ function: {
921
+ name: string;
922
+ description: string;
923
+ parameters: {
924
+ type: string;
925
+ properties: {
926
+ limit: {
927
+ type: string;
928
+ description: string;
929
+ };
930
+ content?: undefined;
931
+ query?: undefined;
932
+ name?: undefined;
933
+ value?: undefined;
934
+ source?: undefined;
935
+ description?: undefined;
936
+ priority?: undefined;
937
+ parentId?: undefined;
938
+ goalId?: undefined;
939
+ status?: undefined;
940
+ statusFilter?: undefined;
941
+ agentId?: undefined;
942
+ actionType?: undefined;
943
+ actionDetails?: undefined;
944
+ actionTypeFilter?: undefined;
945
+ schema?: undefined;
946
+ candidates?: undefined;
947
+ skillName?: undefined;
630
948
  };
631
949
  required?: undefined;
632
950
  };
633
951
  };
952
+ } | {
953
+ type: string;
954
+ function: {
955
+ name: string;
956
+ description: string;
957
+ parameters: {
958
+ type: string;
959
+ properties: {
960
+ skillName: {
961
+ type: string;
962
+ description: string;
963
+ };
964
+ content?: undefined;
965
+ query?: undefined;
966
+ name?: undefined;
967
+ value?: undefined;
968
+ source?: undefined;
969
+ description?: undefined;
970
+ priority?: undefined;
971
+ parentId?: undefined;
972
+ goalId?: undefined;
973
+ status?: undefined;
974
+ statusFilter?: undefined;
975
+ agentId?: undefined;
976
+ actionType?: undefined;
977
+ actionDetails?: undefined;
978
+ limit?: undefined;
979
+ actionTypeFilter?: undefined;
980
+ schema?: undefined;
981
+ candidates?: undefined;
982
+ };
983
+ required: string[];
984
+ };
985
+ };
634
986
  })[];
635
987
  anthropic: ({
636
988
  name: string;
@@ -657,6 +1009,9 @@ export declare const statetool: {
657
1009
  actionDetails?: undefined;
658
1010
  limit?: undefined;
659
1011
  actionTypeFilter?: undefined;
1012
+ schema?: undefined;
1013
+ candidates?: undefined;
1014
+ skillName?: undefined;
660
1015
  };
661
1016
  required: string[];
662
1017
  };
@@ -685,6 +1040,9 @@ export declare const statetool: {
685
1040
  actionDetails?: undefined;
686
1041
  limit?: undefined;
687
1042
  actionTypeFilter?: undefined;
1043
+ schema?: undefined;
1044
+ candidates?: undefined;
1045
+ skillName?: undefined;
688
1046
  };
689
1047
  required: string[];
690
1048
  };
@@ -718,6 +1076,9 @@ export declare const statetool: {
718
1076
  actionDetails?: undefined;
719
1077
  limit?: undefined;
720
1078
  actionTypeFilter?: undefined;
1079
+ schema?: undefined;
1080
+ candidates?: undefined;
1081
+ skillName?: undefined;
721
1082
  };
722
1083
  required: string[];
723
1084
  };
@@ -746,6 +1107,9 @@ export declare const statetool: {
746
1107
  actionDetails?: undefined;
747
1108
  limit?: undefined;
748
1109
  actionTypeFilter?: undefined;
1110
+ schema?: undefined;
1111
+ candidates?: undefined;
1112
+ skillName?: undefined;
749
1113
  };
750
1114
  required: string[];
751
1115
  };
@@ -771,6 +1135,9 @@ export declare const statetool: {
771
1135
  actionDetails?: undefined;
772
1136
  limit?: undefined;
773
1137
  actionTypeFilter?: undefined;
1138
+ schema?: undefined;
1139
+ candidates?: undefined;
1140
+ skillName?: undefined;
774
1141
  };
775
1142
  required?: undefined;
776
1143
  };
@@ -805,6 +1172,9 @@ export declare const statetool: {
805
1172
  actionDetails?: undefined;
806
1173
  limit?: undefined;
807
1174
  actionTypeFilter?: undefined;
1175
+ schema?: undefined;
1176
+ candidates?: undefined;
1177
+ skillName?: undefined;
808
1178
  };
809
1179
  required: string[];
810
1180
  };
@@ -836,6 +1206,9 @@ export declare const statetool: {
836
1206
  actionDetails?: undefined;
837
1207
  limit?: undefined;
838
1208
  actionTypeFilter?: undefined;
1209
+ schema?: undefined;
1210
+ candidates?: undefined;
1211
+ skillName?: undefined;
839
1212
  };
840
1213
  required: string[];
841
1214
  };
@@ -864,6 +1237,9 @@ export declare const statetool: {
864
1237
  actionDetails?: undefined;
865
1238
  limit?: undefined;
866
1239
  actionTypeFilter?: undefined;
1240
+ schema?: undefined;
1241
+ candidates?: undefined;
1242
+ skillName?: undefined;
867
1243
  };
868
1244
  required?: undefined;
869
1245
  };
@@ -897,6 +1273,9 @@ export declare const statetool: {
897
1273
  statusFilter?: undefined;
898
1274
  limit?: undefined;
899
1275
  actionTypeFilter?: undefined;
1276
+ schema?: undefined;
1277
+ candidates?: undefined;
1278
+ skillName?: undefined;
900
1279
  };
901
1280
  required: string[];
902
1281
  };
@@ -928,9 +1307,162 @@ export declare const statetool: {
928
1307
  agentId?: undefined;
929
1308
  actionType?: undefined;
930
1309
  actionDetails?: undefined;
1310
+ schema?: undefined;
1311
+ candidates?: undefined;
1312
+ skillName?: undefined;
931
1313
  };
932
1314
  required?: undefined;
933
1315
  };
1316
+ } | {
1317
+ name: string;
1318
+ description: string;
1319
+ input_schema: {
1320
+ type: string;
1321
+ properties: {
1322
+ name: {
1323
+ type: string;
1324
+ description: string;
1325
+ };
1326
+ schema: {
1327
+ description: string;
1328
+ };
1329
+ content?: undefined;
1330
+ query?: undefined;
1331
+ value?: undefined;
1332
+ source?: undefined;
1333
+ description?: undefined;
1334
+ priority?: undefined;
1335
+ parentId?: undefined;
1336
+ goalId?: undefined;
1337
+ status?: undefined;
1338
+ statusFilter?: undefined;
1339
+ agentId?: undefined;
1340
+ actionType?: undefined;
1341
+ actionDetails?: undefined;
1342
+ limit?: undefined;
1343
+ actionTypeFilter?: undefined;
1344
+ candidates?: undefined;
1345
+ skillName?: undefined;
1346
+ };
1347
+ required: string[];
1348
+ };
1349
+ } | {
1350
+ name: string;
1351
+ description: string;
1352
+ input_schema: {
1353
+ type: string;
1354
+ properties: {
1355
+ agentId: {
1356
+ type: string;
1357
+ description: string;
1358
+ };
1359
+ candidates: {
1360
+ type: string;
1361
+ description: string;
1362
+ items: {
1363
+ type: string;
1364
+ properties: {
1365
+ actionType: {
1366
+ type: string;
1367
+ description: string;
1368
+ };
1369
+ action: {
1370
+ description: string;
1371
+ };
1372
+ score: {
1373
+ type: string;
1374
+ description: string;
1375
+ };
1376
+ rationale: {
1377
+ type: string;
1378
+ description: string;
1379
+ };
1380
+ };
1381
+ };
1382
+ };
1383
+ content?: undefined;
1384
+ query?: undefined;
1385
+ name?: undefined;
1386
+ value?: undefined;
1387
+ source?: undefined;
1388
+ description?: undefined;
1389
+ priority?: undefined;
1390
+ parentId?: undefined;
1391
+ goalId?: undefined;
1392
+ status?: undefined;
1393
+ statusFilter?: undefined;
1394
+ actionType?: undefined;
1395
+ actionDetails?: undefined;
1396
+ limit?: undefined;
1397
+ actionTypeFilter?: undefined;
1398
+ schema?: undefined;
1399
+ skillName?: undefined;
1400
+ };
1401
+ required: string[];
1402
+ };
1403
+ } | {
1404
+ name: string;
1405
+ description: string;
1406
+ input_schema: {
1407
+ type: string;
1408
+ properties: {
1409
+ limit: {
1410
+ type: string;
1411
+ description: string;
1412
+ };
1413
+ content?: undefined;
1414
+ query?: undefined;
1415
+ name?: undefined;
1416
+ value?: undefined;
1417
+ source?: undefined;
1418
+ description?: undefined;
1419
+ priority?: undefined;
1420
+ parentId?: undefined;
1421
+ goalId?: undefined;
1422
+ status?: undefined;
1423
+ statusFilter?: undefined;
1424
+ agentId?: undefined;
1425
+ actionType?: undefined;
1426
+ actionDetails?: undefined;
1427
+ actionTypeFilter?: undefined;
1428
+ schema?: undefined;
1429
+ candidates?: undefined;
1430
+ skillName?: undefined;
1431
+ };
1432
+ required?: undefined;
1433
+ };
1434
+ } | {
1435
+ name: string;
1436
+ description: string;
1437
+ input_schema: {
1438
+ type: string;
1439
+ properties: {
1440
+ skillName: {
1441
+ type: string;
1442
+ description: string;
1443
+ };
1444
+ content?: undefined;
1445
+ query?: undefined;
1446
+ name?: undefined;
1447
+ value?: undefined;
1448
+ source?: undefined;
1449
+ description?: undefined;
1450
+ priority?: undefined;
1451
+ parentId?: undefined;
1452
+ goalId?: undefined;
1453
+ status?: undefined;
1454
+ statusFilter?: undefined;
1455
+ agentId?: undefined;
1456
+ actionType?: undefined;
1457
+ actionDetails?: undefined;
1458
+ limit?: undefined;
1459
+ actionTypeFilter?: undefined;
1460
+ schema?: undefined;
1461
+ candidates?: undefined;
1462
+ };
1463
+ required: string[];
1464
+ };
934
1465
  })[];
935
1466
  execute: typeof execute;
1467
+ createVercelTools: typeof createStateTools;
936
1468
  };