@decocms/bindings 0.2.4-beta.2 → 0.2.4-beta.4

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.
Files changed (92) hide show
  1. package/README.md +5 -5
  2. package/dist/core/binder.d.ts +3 -0
  3. package/dist/core/binder.js +81 -0
  4. package/dist/core/binder.js.map +1 -0
  5. package/dist/{client.js → core/client/http-client-transport.js} +9 -9
  6. package/dist/core/client/http-client-transport.js.map +1 -0
  7. package/dist/core/client/index.d.ts +3 -0
  8. package/dist/core/client/index.js +5 -0
  9. package/dist/core/client/index.js.map +1 -0
  10. package/dist/core/client/mcp-client.d.ts +233 -0
  11. package/dist/core/client/mcp-client.js +99 -0
  12. package/dist/core/client/mcp-client.js.map +1 -0
  13. package/dist/core/client/mcp.d.ts +3 -0
  14. package/dist/core/client/mcp.js +29 -0
  15. package/dist/core/client/mcp.js.map +1 -0
  16. package/dist/core/client/proxy.d.ts +10 -0
  17. package/dist/core/client/proxy.js +104 -0
  18. package/dist/core/client/proxy.js.map +1 -0
  19. package/dist/core/connection.js +1 -0
  20. package/dist/core/connection.js.map +1 -0
  21. package/dist/core/subset.d.ts +17 -0
  22. package/dist/core/subset.js +321 -0
  23. package/dist/core/subset.js.map +1 -0
  24. package/dist/index-D0aUdNls.d.ts +153 -0
  25. package/dist/index.d.ts +3 -94
  26. package/dist/index.js +5 -340
  27. package/dist/index.js.map +1 -1
  28. package/dist/{node/agents.d.ts → well-known/agent.d.ts} +14 -14
  29. package/dist/well-known/agent.js +27 -0
  30. package/dist/well-known/agent.js.map +1 -0
  31. package/dist/{node → well-known}/collections.d.ts +1 -1
  32. package/dist/{collections.js → well-known/collections.js} +24 -13
  33. package/dist/well-known/collections.js.map +1 -0
  34. package/dist/{node → well-known}/language-model.d.ts +90 -94
  35. package/dist/{node → well-known}/language-model.js +27 -21
  36. package/dist/well-known/language-model.js.map +1 -0
  37. package/package.json +18 -38
  38. package/dist/browser/agents.js +0 -29
  39. package/dist/browser/agents.js.map +0 -1
  40. package/dist/browser/chunk-6QEXJ7XW.js +0 -48564
  41. package/dist/browser/chunk-6QEXJ7XW.js.map +0 -1
  42. package/dist/browser/chunk-WKNVAFKE.js +0 -2176
  43. package/dist/browser/chunk-WKNVAFKE.js.map +0 -1
  44. package/dist/browser/chunk-XWLBKKHZ.js +0 -127
  45. package/dist/browser/chunk-XWLBKKHZ.js.map +0 -1
  46. package/dist/browser/chunk-ZX4ZDU2T.js +0 -58
  47. package/dist/browser/chunk-ZX4ZDU2T.js.map +0 -1
  48. package/dist/browser/client.js +0 -9
  49. package/dist/browser/client.js.map +0 -1
  50. package/dist/browser/collections.js +0 -4
  51. package/dist/browser/collections.js.map +0 -1
  52. package/dist/browser/connection.js +0 -8
  53. package/dist/browser/connection.js.map +0 -1
  54. package/dist/browser/index.js +0 -10
  55. package/dist/browser/index.js.map +0 -1
  56. package/dist/browser/language-model.js +0 -205
  57. package/dist/browser/language-model.js.map +0 -1
  58. package/dist/client.js.map +0 -1
  59. package/dist/collections.d.ts +0 -537
  60. package/dist/collections.js.map +0 -1
  61. package/dist/connection.js +0 -3
  62. package/dist/connection.js.map +0 -1
  63. package/dist/language-model.d.ts +0 -3228
  64. package/dist/language-model.js +0 -628
  65. package/dist/language-model.js.map +0 -1
  66. package/dist/models.d.ts +0 -2071
  67. package/dist/models.js +0 -111
  68. package/dist/models.js.map +0 -1
  69. package/dist/node/agents.js +0 -27
  70. package/dist/node/agents.js.map +0 -1
  71. package/dist/node/chunk-BLCFITZG.js +0 -56
  72. package/dist/node/chunk-BLCFITZG.js.map +0 -1
  73. package/dist/node/chunk-QMQMPK7Q.js +0 -50
  74. package/dist/node/chunk-QMQMPK7Q.js.map +0 -1
  75. package/dist/node/chunk-QP7AQCEP.js +0 -23478
  76. package/dist/node/chunk-QP7AQCEP.js.map +0 -1
  77. package/dist/node/chunk-T2DG7334.js +0 -125
  78. package/dist/node/chunk-T2DG7334.js.map +0 -1
  79. package/dist/node/client.d.ts +0 -12
  80. package/dist/node/client.js +0 -7
  81. package/dist/node/client.js.map +0 -1
  82. package/dist/node/collections.js +0 -4
  83. package/dist/node/collections.js.map +0 -1
  84. package/dist/node/connection.d.ts +0 -30
  85. package/dist/node/connection.js +0 -6
  86. package/dist/node/connection.js.map +0 -1
  87. package/dist/node/index.d.ts +0 -94
  88. package/dist/node/index.js +0 -8
  89. package/dist/node/index.js.map +0 -1
  90. package/dist/node/language-model.js.map +0 -1
  91. /package/dist/{client.d.ts → core/client/http-client-transport.d.ts} +0 -0
  92. /package/dist/{connection.d.ts → core/connection.d.ts} +0 -0
@@ -1,11 +1,7 @@
1
- import { ToolBinder, ToolWithSchemas } from './index.js';
2
- import { MCPConnection } from './connection.js';
1
+ import { M as MCPClientFetchStub, T as ToolWithSchemas } from '../index-D0aUdNls.js';
2
+ import { MCPConnection } from '../core/connection.js';
3
3
  import { CollectionListInputSchema, CollectionGetInputSchema, CollectionDeleteInputSchema } from './collections.js';
4
- import { z } from 'zod';
5
-
6
- type MCPClientFetchStub<TDefinition extends readonly ToolBinder[]> = {
7
- [K in TDefinition[number] as K["name"]]: K["streamable"] extends true ? K extends ToolBinder<string, infer TInput, any, true> ? (params: TInput, init?: RequestInit) => Promise<Response> : never : K extends ToolBinder<string, infer TInput, infer TReturn, any> ? (params: TInput, init?: RequestInit) => Promise<Awaited<TReturn>> : never;
8
- };
4
+ import { z } from 'zod/v3';
9
5
 
10
6
  /**
11
7
  * Language Model Call Options Schema
@@ -34,13 +30,13 @@ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
34
30
  description: z.ZodOptional<z.ZodString>;
35
31
  }, "strip", z.ZodTypeAny, {
36
32
  type: "json";
37
- name?: string | undefined;
38
33
  description?: string | undefined;
34
+ name?: string | undefined;
39
35
  schema?: any;
40
36
  }, {
41
37
  type: "json";
42
- name?: string | undefined;
43
38
  description?: string | undefined;
39
+ name?: string | undefined;
44
40
  schema?: any;
45
41
  }>]>>;
46
42
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -65,8 +61,8 @@ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
65
61
  type: "text";
66
62
  } | {
67
63
  type: "json";
68
- name?: string | undefined;
69
64
  description?: string | undefined;
65
+ name?: string | undefined;
70
66
  schema?: any;
71
67
  } | undefined;
72
68
  toolChoice?: any;
@@ -89,8 +85,8 @@ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
89
85
  type: "text";
90
86
  } | {
91
87
  type: "json";
92
- name?: string | undefined;
93
88
  description?: string | undefined;
89
+ name?: string | undefined;
94
90
  schema?: any;
95
91
  } | undefined;
96
92
  toolChoice?: any;
@@ -278,8 +274,8 @@ declare const ModelSchema: z.ZodObject<{
278
274
  }>>;
279
275
  provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "x-ai", "deepseek", "openai-compatible", "openrouter"]>>;
280
276
  }, "strip", z.ZodTypeAny, {
281
- capabilities: string[];
282
277
  description: string | null;
278
+ capabilities: string[];
283
279
  modelId: string;
284
280
  logo: string | null;
285
281
  limits: {
@@ -292,8 +288,8 @@ declare const ModelSchema: z.ZodObject<{
292
288
  } | null;
293
289
  provider: "openai" | "anthropic" | "google" | "x-ai" | "deepseek" | "openai-compatible" | "openrouter" | null;
294
290
  }, {
295
- capabilities: string[];
296
291
  description: string | null;
292
+ capabilities: string[];
297
293
  modelId: string;
298
294
  logo: string | null;
299
295
  limits: {
@@ -331,13 +327,13 @@ declare const LanguageModelInputSchema: z.ZodObject<{
331
327
  description: z.ZodOptional<z.ZodString>;
332
328
  }, "strip", z.ZodTypeAny, {
333
329
  type: "json";
334
- name?: string | undefined;
335
330
  description?: string | undefined;
331
+ name?: string | undefined;
336
332
  schema?: any;
337
333
  }, {
338
334
  type: "json";
339
- name?: string | undefined;
340
335
  description?: string | undefined;
336
+ name?: string | undefined;
341
337
  schema?: any;
342
338
  }>]>>;
343
339
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -362,8 +358,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
362
358
  type: "text";
363
359
  } | {
364
360
  type: "json";
365
- name?: string | undefined;
366
361
  description?: string | undefined;
362
+ name?: string | undefined;
367
363
  schema?: any;
368
364
  } | undefined;
369
365
  toolChoice?: any;
@@ -386,8 +382,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
386
382
  type: "text";
387
383
  } | {
388
384
  type: "json";
389
- name?: string | undefined;
390
385
  description?: string | undefined;
386
+ name?: string | undefined;
391
387
  schema?: any;
392
388
  } | undefined;
393
389
  toolChoice?: any;
@@ -413,8 +409,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
413
409
  type: "text";
414
410
  } | {
415
411
  type: "json";
416
- name?: string | undefined;
417
412
  description?: string | undefined;
413
+ name?: string | undefined;
418
414
  schema?: any;
419
415
  } | undefined;
420
416
  toolChoice?: any;
@@ -440,8 +436,8 @@ declare const LanguageModelInputSchema: z.ZodObject<{
440
436
  type: "text";
441
437
  } | {
442
438
  type: "json";
443
- name?: string | undefined;
444
439
  description?: string | undefined;
440
+ name?: string | undefined;
445
441
  schema?: any;
446
442
  } | undefined;
447
443
  toolChoice?: any;
@@ -492,8 +488,8 @@ declare const ModelCollectionEntitySchema: z.ZodObject<{
492
488
  title: string;
493
489
  created_at: string;
494
490
  updated_at: string;
495
- capabilities: string[];
496
491
  description: string | null;
492
+ capabilities: string[];
497
493
  logo: string | null;
498
494
  limits: {
499
495
  maxOutputTokens: number;
@@ -511,8 +507,8 @@ declare const ModelCollectionEntitySchema: z.ZodObject<{
511
507
  title: string;
512
508
  created_at: string;
513
509
  updated_at: string;
514
- capabilities: string[];
515
510
  description: string | null;
511
+ capabilities: string[];
516
512
  logo: string | null;
517
513
  limits: {
518
514
  maxOutputTokens: number;
@@ -580,8 +576,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
580
576
  title: string;
581
577
  created_at: string;
582
578
  updated_at: string;
583
- capabilities: string[];
584
579
  description: string | null;
580
+ capabilities: string[];
585
581
  logo: string | null;
586
582
  limits: {
587
583
  maxOutputTokens: number;
@@ -599,8 +595,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
599
595
  title: string;
600
596
  created_at: string;
601
597
  updated_at: string;
602
- capabilities: string[];
603
598
  description: string | null;
599
+ capabilities: string[];
604
600
  logo: string | null;
605
601
  limits: {
606
602
  maxOutputTokens: number;
@@ -622,8 +618,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
622
618
  title: string;
623
619
  created_at: string;
624
620
  updated_at: string;
625
- capabilities: string[];
626
621
  description: string | null;
622
+ capabilities: string[];
627
623
  logo: string | null;
628
624
  limits: {
629
625
  maxOutputTokens: number;
@@ -645,8 +641,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
645
641
  title: string;
646
642
  created_at: string;
647
643
  updated_at: string;
648
- capabilities: string[];
649
644
  description: string | null;
645
+ capabilities: string[];
650
646
  logo: string | null;
651
647
  limits: {
652
648
  maxOutputTokens: number;
@@ -704,8 +700,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
704
700
  title: string;
705
701
  created_at: string;
706
702
  updated_at: string;
707
- capabilities: string[];
708
703
  description: string | null;
704
+ capabilities: string[];
709
705
  logo: string | null;
710
706
  limits: {
711
707
  maxOutputTokens: number;
@@ -723,8 +719,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
723
719
  title: string;
724
720
  created_at: string;
725
721
  updated_at: string;
726
- capabilities: string[];
727
722
  description: string | null;
723
+ capabilities: string[];
728
724
  logo: string | null;
729
725
  limits: {
730
726
  maxOutputTokens: number;
@@ -744,8 +740,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
744
740
  title: string;
745
741
  created_at: string;
746
742
  updated_at: string;
747
- capabilities: string[];
748
743
  description: string | null;
744
+ capabilities: string[];
749
745
  logo: string | null;
750
746
  limits: {
751
747
  maxOutputTokens: number;
@@ -765,8 +761,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
765
761
  title: string;
766
762
  created_at: string;
767
763
  updated_at: string;
768
- capabilities: string[];
769
764
  description: string | null;
765
+ capabilities: string[];
770
766
  logo: string | null;
771
767
  limits: {
772
768
  maxOutputTokens: number;
@@ -821,8 +817,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
821
817
  title: string;
822
818
  created_at: string;
823
819
  updated_at: string;
824
- capabilities: string[];
825
820
  description: string | null;
821
+ capabilities: string[];
826
822
  logo: string | null;
827
823
  limits: {
828
824
  maxOutputTokens: number;
@@ -840,8 +836,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
840
836
  title: string;
841
837
  created_at: string;
842
838
  updated_at: string;
843
- capabilities: string[];
844
839
  description: string | null;
840
+ capabilities: string[];
845
841
  logo: string | null;
846
842
  limits: {
847
843
  maxOutputTokens: number;
@@ -861,8 +857,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
861
857
  title: string;
862
858
  created_at: string;
863
859
  updated_at: string;
864
- capabilities: string[];
865
860
  description: string | null;
861
+ capabilities: string[];
866
862
  logo: string | null;
867
863
  limits: {
868
864
  maxOutputTokens: number;
@@ -882,8 +878,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
882
878
  title: string;
883
879
  created_at: string;
884
880
  updated_at: string;
885
- capabilities: string[];
886
881
  description: string | null;
882
+ capabilities: string[];
887
883
  logo: string | null;
888
884
  limits: {
889
885
  maxOutputTokens: number;
@@ -936,8 +932,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
936
932
  title: string;
937
933
  created_at: string;
938
934
  updated_at: string;
939
- capabilities: string[];
940
935
  description: string | null;
936
+ capabilities: string[];
941
937
  logo: string | null;
942
938
  limits: {
943
939
  maxOutputTokens: number;
@@ -955,8 +951,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
955
951
  title: string;
956
952
  created_at: string;
957
953
  updated_at: string;
958
- capabilities: string[];
959
954
  description: string | null;
955
+ capabilities: string[];
960
956
  logo: string | null;
961
957
  limits: {
962
958
  maxOutputTokens: number;
@@ -976,8 +972,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
976
972
  title: string;
977
973
  created_at: string;
978
974
  updated_at: string;
979
- capabilities: string[];
980
975
  description: string | null;
976
+ capabilities: string[];
981
977
  logo: string | null;
982
978
  limits: {
983
979
  maxOutputTokens: number;
@@ -997,8 +993,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
997
993
  title: string;
998
994
  created_at: string;
999
995
  updated_at: string;
1000
- capabilities: string[];
1001
996
  description: string | null;
997
+ capabilities: string[];
1002
998
  logo: string | null;
1003
999
  limits: {
1004
1000
  maxOutputTokens: number;
@@ -1074,8 +1070,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1074
1070
  title: string;
1075
1071
  created_at: string;
1076
1072
  updated_at: string;
1077
- capabilities: string[];
1078
1073
  description: string | null;
1074
+ capabilities: string[];
1079
1075
  logo: string | null;
1080
1076
  limits: {
1081
1077
  maxOutputTokens: number;
@@ -1093,8 +1089,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1093
1089
  title: string;
1094
1090
  created_at: string;
1095
1091
  updated_at: string;
1096
- capabilities: string[];
1097
1092
  description: string | null;
1093
+ capabilities: string[];
1098
1094
  logo: string | null;
1099
1095
  limits: {
1100
1096
  maxOutputTokens: number;
@@ -1114,8 +1110,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1114
1110
  title: string;
1115
1111
  created_at: string;
1116
1112
  updated_at: string;
1117
- capabilities: string[];
1118
1113
  description: string | null;
1114
+ capabilities: string[];
1119
1115
  logo: string | null;
1120
1116
  limits: {
1121
1117
  maxOutputTokens: number;
@@ -1135,8 +1131,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1135
1131
  title: string;
1136
1132
  created_at: string;
1137
1133
  updated_at: string;
1138
- capabilities: string[];
1139
1134
  description: string | null;
1135
+ capabilities: string[];
1140
1136
  logo: string | null;
1141
1137
  limits: {
1142
1138
  maxOutputTokens: number;
@@ -1193,8 +1189,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1193
1189
  title: string;
1194
1190
  created_at: string;
1195
1191
  updated_at: string;
1196
- capabilities: string[];
1197
1192
  description: string | null;
1193
+ capabilities: string[];
1198
1194
  logo: string | null;
1199
1195
  limits: {
1200
1196
  maxOutputTokens: number;
@@ -1212,8 +1208,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1212
1208
  title: string;
1213
1209
  created_at: string;
1214
1210
  updated_at: string;
1215
- capabilities: string[];
1216
1211
  description: string | null;
1212
+ capabilities: string[];
1217
1213
  logo: string | null;
1218
1214
  limits: {
1219
1215
  maxOutputTokens: number;
@@ -1233,8 +1229,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1233
1229
  title: string;
1234
1230
  created_at: string;
1235
1231
  updated_at: string;
1236
- capabilities: string[];
1237
1232
  description: string | null;
1233
+ capabilities: string[];
1238
1234
  logo: string | null;
1239
1235
  limits: {
1240
1236
  maxOutputTokens: number;
@@ -1254,8 +1250,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1254
1250
  title: string;
1255
1251
  created_at: string;
1256
1252
  updated_at: string;
1257
- capabilities: string[];
1258
1253
  description: string | null;
1254
+ capabilities: string[];
1259
1255
  logo: string | null;
1260
1256
  limits: {
1261
1257
  maxOutputTokens: number;
@@ -1315,13 +1311,13 @@ declare const LANGUAGE_MODEL_BINDING: ({
1315
1311
  description: z.ZodOptional<z.ZodString>;
1316
1312
  }, "strip", z.ZodTypeAny, {
1317
1313
  type: "json";
1318
- name?: string | undefined;
1319
1314
  description?: string | undefined;
1315
+ name?: string | undefined;
1320
1316
  schema?: any;
1321
1317
  }, {
1322
1318
  type: "json";
1323
- name?: string | undefined;
1324
1319
  description?: string | undefined;
1320
+ name?: string | undefined;
1325
1321
  schema?: any;
1326
1322
  }>]>>;
1327
1323
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -1346,8 +1342,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1346
1342
  type: "text";
1347
1343
  } | {
1348
1344
  type: "json";
1349
- name?: string | undefined;
1350
1345
  description?: string | undefined;
1346
+ name?: string | undefined;
1351
1347
  schema?: any;
1352
1348
  } | undefined;
1353
1349
  toolChoice?: any;
@@ -1370,8 +1366,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1370
1366
  type: "text";
1371
1367
  } | {
1372
1368
  type: "json";
1373
- name?: string | undefined;
1374
1369
  description?: string | undefined;
1370
+ name?: string | undefined;
1375
1371
  schema?: any;
1376
1372
  } | undefined;
1377
1373
  toolChoice?: any;
@@ -1397,8 +1393,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1397
1393
  type: "text";
1398
1394
  } | {
1399
1395
  type: "json";
1400
- name?: string | undefined;
1401
1396
  description?: string | undefined;
1397
+ name?: string | undefined;
1402
1398
  schema?: any;
1403
1399
  } | undefined;
1404
1400
  toolChoice?: any;
@@ -1424,8 +1420,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1424
1420
  type: "text";
1425
1421
  } | {
1426
1422
  type: "json";
1427
- name?: string | undefined;
1428
1423
  description?: string | undefined;
1424
+ name?: string | undefined;
1429
1425
  schema?: any;
1430
1426
  } | undefined;
1431
1427
  toolChoice?: any;
@@ -1463,13 +1459,13 @@ declare const LANGUAGE_MODEL_BINDING: ({
1463
1459
  description: z.ZodOptional<z.ZodString>;
1464
1460
  }, "strip", z.ZodTypeAny, {
1465
1461
  type: "json";
1466
- name?: string | undefined;
1467
1462
  description?: string | undefined;
1463
+ name?: string | undefined;
1468
1464
  schema?: any;
1469
1465
  }, {
1470
1466
  type: "json";
1471
- name?: string | undefined;
1472
1467
  description?: string | undefined;
1468
+ name?: string | undefined;
1473
1469
  schema?: any;
1474
1470
  }>]>>;
1475
1471
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -1494,8 +1490,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1494
1490
  type: "text";
1495
1491
  } | {
1496
1492
  type: "json";
1497
- name?: string | undefined;
1498
1493
  description?: string | undefined;
1494
+ name?: string | undefined;
1499
1495
  schema?: any;
1500
1496
  } | undefined;
1501
1497
  toolChoice?: any;
@@ -1518,8 +1514,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1518
1514
  type: "text";
1519
1515
  } | {
1520
1516
  type: "json";
1521
- name?: string | undefined;
1522
1517
  description?: string | undefined;
1518
+ name?: string | undefined;
1523
1519
  schema?: any;
1524
1520
  } | undefined;
1525
1521
  toolChoice?: any;
@@ -1545,8 +1541,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1545
1541
  type: "text";
1546
1542
  } | {
1547
1543
  type: "json";
1548
- name?: string | undefined;
1549
1544
  description?: string | undefined;
1545
+ name?: string | undefined;
1550
1546
  schema?: any;
1551
1547
  } | undefined;
1552
1548
  toolChoice?: any;
@@ -1572,8 +1568,8 @@ declare const LANGUAGE_MODEL_BINDING: ({
1572
1568
  type: "text";
1573
1569
  } | {
1574
1570
  type: "json";
1575
- name?: string | undefined;
1576
1571
  description?: string | undefined;
1572
+ name?: string | undefined;
1577
1573
  schema?: any;
1578
1574
  } | undefined;
1579
1575
  toolChoice?: any;
@@ -1728,8 +1724,8 @@ declare const LanguageModelBinding: {
1728
1724
  title: string;
1729
1725
  created_at: string;
1730
1726
  updated_at: string;
1731
- capabilities: string[];
1732
1727
  description: string | null;
1728
+ capabilities: string[];
1733
1729
  logo: string | null;
1734
1730
  limits: {
1735
1731
  maxOutputTokens: number;
@@ -1747,8 +1743,8 @@ declare const LanguageModelBinding: {
1747
1743
  title: string;
1748
1744
  created_at: string;
1749
1745
  updated_at: string;
1750
- capabilities: string[];
1751
1746
  description: string | null;
1747
+ capabilities: string[];
1752
1748
  logo: string | null;
1753
1749
  limits: {
1754
1750
  maxOutputTokens: number;
@@ -1770,8 +1766,8 @@ declare const LanguageModelBinding: {
1770
1766
  title: string;
1771
1767
  created_at: string;
1772
1768
  updated_at: string;
1773
- capabilities: string[];
1774
1769
  description: string | null;
1770
+ capabilities: string[];
1775
1771
  logo: string | null;
1776
1772
  limits: {
1777
1773
  maxOutputTokens: number;
@@ -1793,8 +1789,8 @@ declare const LanguageModelBinding: {
1793
1789
  title: string;
1794
1790
  created_at: string;
1795
1791
  updated_at: string;
1796
- capabilities: string[];
1797
1792
  description: string | null;
1793
+ capabilities: string[];
1798
1794
  logo: string | null;
1799
1795
  limits: {
1800
1796
  maxOutputTokens: number;
@@ -1852,8 +1848,8 @@ declare const LanguageModelBinding: {
1852
1848
  title: string;
1853
1849
  created_at: string;
1854
1850
  updated_at: string;
1855
- capabilities: string[];
1856
1851
  description: string | null;
1852
+ capabilities: string[];
1857
1853
  logo: string | null;
1858
1854
  limits: {
1859
1855
  maxOutputTokens: number;
@@ -1871,8 +1867,8 @@ declare const LanguageModelBinding: {
1871
1867
  title: string;
1872
1868
  created_at: string;
1873
1869
  updated_at: string;
1874
- capabilities: string[];
1875
1870
  description: string | null;
1871
+ capabilities: string[];
1876
1872
  logo: string | null;
1877
1873
  limits: {
1878
1874
  maxOutputTokens: number;
@@ -1892,8 +1888,8 @@ declare const LanguageModelBinding: {
1892
1888
  title: string;
1893
1889
  created_at: string;
1894
1890
  updated_at: string;
1895
- capabilities: string[];
1896
1891
  description: string | null;
1892
+ capabilities: string[];
1897
1893
  logo: string | null;
1898
1894
  limits: {
1899
1895
  maxOutputTokens: number;
@@ -1913,8 +1909,8 @@ declare const LanguageModelBinding: {
1913
1909
  title: string;
1914
1910
  created_at: string;
1915
1911
  updated_at: string;
1916
- capabilities: string[];
1917
1912
  description: string | null;
1913
+ capabilities: string[];
1918
1914
  logo: string | null;
1919
1915
  limits: {
1920
1916
  maxOutputTokens: number;
@@ -1969,8 +1965,8 @@ declare const LanguageModelBinding: {
1969
1965
  title: string;
1970
1966
  created_at: string;
1971
1967
  updated_at: string;
1972
- capabilities: string[];
1973
1968
  description: string | null;
1969
+ capabilities: string[];
1974
1970
  logo: string | null;
1975
1971
  limits: {
1976
1972
  maxOutputTokens: number;
@@ -1988,8 +1984,8 @@ declare const LanguageModelBinding: {
1988
1984
  title: string;
1989
1985
  created_at: string;
1990
1986
  updated_at: string;
1991
- capabilities: string[];
1992
1987
  description: string | null;
1988
+ capabilities: string[];
1993
1989
  logo: string | null;
1994
1990
  limits: {
1995
1991
  maxOutputTokens: number;
@@ -2009,8 +2005,8 @@ declare const LanguageModelBinding: {
2009
2005
  title: string;
2010
2006
  created_at: string;
2011
2007
  updated_at: string;
2012
- capabilities: string[];
2013
2008
  description: string | null;
2009
+ capabilities: string[];
2014
2010
  logo: string | null;
2015
2011
  limits: {
2016
2012
  maxOutputTokens: number;
@@ -2030,8 +2026,8 @@ declare const LanguageModelBinding: {
2030
2026
  title: string;
2031
2027
  created_at: string;
2032
2028
  updated_at: string;
2033
- capabilities: string[];
2034
2029
  description: string | null;
2030
+ capabilities: string[];
2035
2031
  logo: string | null;
2036
2032
  limits: {
2037
2033
  maxOutputTokens: number;
@@ -2084,8 +2080,8 @@ declare const LanguageModelBinding: {
2084
2080
  title: string;
2085
2081
  created_at: string;
2086
2082
  updated_at: string;
2087
- capabilities: string[];
2088
2083
  description: string | null;
2084
+ capabilities: string[];
2089
2085
  logo: string | null;
2090
2086
  limits: {
2091
2087
  maxOutputTokens: number;
@@ -2103,8 +2099,8 @@ declare const LanguageModelBinding: {
2103
2099
  title: string;
2104
2100
  created_at: string;
2105
2101
  updated_at: string;
2106
- capabilities: string[];
2107
2102
  description: string | null;
2103
+ capabilities: string[];
2108
2104
  logo: string | null;
2109
2105
  limits: {
2110
2106
  maxOutputTokens: number;
@@ -2124,8 +2120,8 @@ declare const LanguageModelBinding: {
2124
2120
  title: string;
2125
2121
  created_at: string;
2126
2122
  updated_at: string;
2127
- capabilities: string[];
2128
2123
  description: string | null;
2124
+ capabilities: string[];
2129
2125
  logo: string | null;
2130
2126
  limits: {
2131
2127
  maxOutputTokens: number;
@@ -2145,8 +2141,8 @@ declare const LanguageModelBinding: {
2145
2141
  title: string;
2146
2142
  created_at: string;
2147
2143
  updated_at: string;
2148
- capabilities: string[];
2149
2144
  description: string | null;
2145
+ capabilities: string[];
2150
2146
  logo: string | null;
2151
2147
  limits: {
2152
2148
  maxOutputTokens: number;
@@ -2222,8 +2218,8 @@ declare const LanguageModelBinding: {
2222
2218
  title: string;
2223
2219
  created_at: string;
2224
2220
  updated_at: string;
2225
- capabilities: string[];
2226
2221
  description: string | null;
2222
+ capabilities: string[];
2227
2223
  logo: string | null;
2228
2224
  limits: {
2229
2225
  maxOutputTokens: number;
@@ -2241,8 +2237,8 @@ declare const LanguageModelBinding: {
2241
2237
  title: string;
2242
2238
  created_at: string;
2243
2239
  updated_at: string;
2244
- capabilities: string[];
2245
2240
  description: string | null;
2241
+ capabilities: string[];
2246
2242
  logo: string | null;
2247
2243
  limits: {
2248
2244
  maxOutputTokens: number;
@@ -2262,8 +2258,8 @@ declare const LanguageModelBinding: {
2262
2258
  title: string;
2263
2259
  created_at: string;
2264
2260
  updated_at: string;
2265
- capabilities: string[];
2266
2261
  description: string | null;
2262
+ capabilities: string[];
2267
2263
  logo: string | null;
2268
2264
  limits: {
2269
2265
  maxOutputTokens: number;
@@ -2283,8 +2279,8 @@ declare const LanguageModelBinding: {
2283
2279
  title: string;
2284
2280
  created_at: string;
2285
2281
  updated_at: string;
2286
- capabilities: string[];
2287
2282
  description: string | null;
2283
+ capabilities: string[];
2288
2284
  logo: string | null;
2289
2285
  limits: {
2290
2286
  maxOutputTokens: number;
@@ -2341,8 +2337,8 @@ declare const LanguageModelBinding: {
2341
2337
  title: string;
2342
2338
  created_at: string;
2343
2339
  updated_at: string;
2344
- capabilities: string[];
2345
2340
  description: string | null;
2341
+ capabilities: string[];
2346
2342
  logo: string | null;
2347
2343
  limits: {
2348
2344
  maxOutputTokens: number;
@@ -2360,8 +2356,8 @@ declare const LanguageModelBinding: {
2360
2356
  title: string;
2361
2357
  created_at: string;
2362
2358
  updated_at: string;
2363
- capabilities: string[];
2364
2359
  description: string | null;
2360
+ capabilities: string[];
2365
2361
  logo: string | null;
2366
2362
  limits: {
2367
2363
  maxOutputTokens: number;
@@ -2381,8 +2377,8 @@ declare const LanguageModelBinding: {
2381
2377
  title: string;
2382
2378
  created_at: string;
2383
2379
  updated_at: string;
2384
- capabilities: string[];
2385
2380
  description: string | null;
2381
+ capabilities: string[];
2386
2382
  logo: string | null;
2387
2383
  limits: {
2388
2384
  maxOutputTokens: number;
@@ -2402,8 +2398,8 @@ declare const LanguageModelBinding: {
2402
2398
  title: string;
2403
2399
  created_at: string;
2404
2400
  updated_at: string;
2405
- capabilities: string[];
2406
2401
  description: string | null;
2402
+ capabilities: string[];
2407
2403
  logo: string | null;
2408
2404
  limits: {
2409
2405
  maxOutputTokens: number;
@@ -2463,13 +2459,13 @@ declare const LanguageModelBinding: {
2463
2459
  description: z.ZodOptional<z.ZodString>;
2464
2460
  }, "strip", z.ZodTypeAny, {
2465
2461
  type: "json";
2466
- name?: string | undefined;
2467
2462
  description?: string | undefined;
2463
+ name?: string | undefined;
2468
2464
  schema?: any;
2469
2465
  }, {
2470
2466
  type: "json";
2471
- name?: string | undefined;
2472
2467
  description?: string | undefined;
2468
+ name?: string | undefined;
2473
2469
  schema?: any;
2474
2470
  }>]>>;
2475
2471
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -2494,8 +2490,8 @@ declare const LanguageModelBinding: {
2494
2490
  type: "text";
2495
2491
  } | {
2496
2492
  type: "json";
2497
- name?: string | undefined;
2498
2493
  description?: string | undefined;
2494
+ name?: string | undefined;
2499
2495
  schema?: any;
2500
2496
  } | undefined;
2501
2497
  toolChoice?: any;
@@ -2518,8 +2514,8 @@ declare const LanguageModelBinding: {
2518
2514
  type: "text";
2519
2515
  } | {
2520
2516
  type: "json";
2521
- name?: string | undefined;
2522
2517
  description?: string | undefined;
2518
+ name?: string | undefined;
2523
2519
  schema?: any;
2524
2520
  } | undefined;
2525
2521
  toolChoice?: any;
@@ -2545,8 +2541,8 @@ declare const LanguageModelBinding: {
2545
2541
  type: "text";
2546
2542
  } | {
2547
2543
  type: "json";
2548
- name?: string | undefined;
2549
2544
  description?: string | undefined;
2545
+ name?: string | undefined;
2550
2546
  schema?: any;
2551
2547
  } | undefined;
2552
2548
  toolChoice?: any;
@@ -2572,8 +2568,8 @@ declare const LanguageModelBinding: {
2572
2568
  type: "text";
2573
2569
  } | {
2574
2570
  type: "json";
2575
- name?: string | undefined;
2576
2571
  description?: string | undefined;
2572
+ name?: string | undefined;
2577
2573
  schema?: any;
2578
2574
  } | undefined;
2579
2575
  toolChoice?: any;
@@ -2611,13 +2607,13 @@ declare const LanguageModelBinding: {
2611
2607
  description: z.ZodOptional<z.ZodString>;
2612
2608
  }, "strip", z.ZodTypeAny, {
2613
2609
  type: "json";
2614
- name?: string | undefined;
2615
2610
  description?: string | undefined;
2611
+ name?: string | undefined;
2616
2612
  schema?: any;
2617
2613
  }, {
2618
2614
  type: "json";
2619
- name?: string | undefined;
2620
2615
  description?: string | undefined;
2616
+ name?: string | undefined;
2621
2617
  schema?: any;
2622
2618
  }>]>>;
2623
2619
  tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
@@ -2642,8 +2638,8 @@ declare const LanguageModelBinding: {
2642
2638
  type: "text";
2643
2639
  } | {
2644
2640
  type: "json";
2645
- name?: string | undefined;
2646
2641
  description?: string | undefined;
2642
+ name?: string | undefined;
2647
2643
  schema?: any;
2648
2644
  } | undefined;
2649
2645
  toolChoice?: any;
@@ -2666,8 +2662,8 @@ declare const LanguageModelBinding: {
2666
2662
  type: "text";
2667
2663
  } | {
2668
2664
  type: "json";
2669
- name?: string | undefined;
2670
2665
  description?: string | undefined;
2666
+ name?: string | undefined;
2671
2667
  schema?: any;
2672
2668
  } | undefined;
2673
2669
  toolChoice?: any;
@@ -2693,8 +2689,8 @@ declare const LanguageModelBinding: {
2693
2689
  type: "text";
2694
2690
  } | {
2695
2691
  type: "json";
2696
- name?: string | undefined;
2697
2692
  description?: string | undefined;
2693
+ name?: string | undefined;
2698
2694
  schema?: any;
2699
2695
  } | undefined;
2700
2696
  toolChoice?: any;
@@ -2720,8 +2716,8 @@ declare const LanguageModelBinding: {
2720
2716
  type: "text";
2721
2717
  } | {
2722
2718
  type: "json";
2723
- name?: string | undefined;
2724
2719
  description?: string | undefined;
2720
+ name?: string | undefined;
2725
2721
  schema?: any;
2726
2722
  } | undefined;
2727
2723
  toolChoice?: any;
@@ -2834,7 +2830,7 @@ declare const LanguageModelBinding: {
2834
2830
  }>;
2835
2831
  streamable?: undefined;
2836
2832
  })[]>;
2837
- isImplementedBy: (tools: ToolWithSchemas[]) => Promise<boolean>;
2833
+ isImplementedBy: (tools: ToolWithSchemas[]) => boolean;
2838
2834
  };
2839
2835
 
2840
2836
  export { LANGUAGE_MODEL_BINDING, LanguageModelBinding, LanguageModelCallOptionsSchema, LanguageModelGenerateOutputSchema, LanguageModelInputSchema, LanguageModelMetadataSchema, LanguageModelStreamOutputSchema, ModelCollectionEntitySchema, ModelSchema };