@decocms/bindings 0.2.1 → 0.2.2

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 (51) hide show
  1. package/dist/browser/agents.js +29 -0
  2. package/dist/browser/agents.js.map +1 -0
  3. package/dist/browser/chunk-6QEXJ7XW.js +48564 -0
  4. package/dist/browser/chunk-6QEXJ7XW.js.map +1 -0
  5. package/dist/browser/chunk-WKNVAFKE.js +2176 -0
  6. package/dist/browser/chunk-WKNVAFKE.js.map +1 -0
  7. package/dist/browser/chunk-XWLBKKHZ.js +127 -0
  8. package/dist/browser/chunk-XWLBKKHZ.js.map +1 -0
  9. package/dist/browser/chunk-ZX4ZDU2T.js +58 -0
  10. package/dist/browser/chunk-ZX4ZDU2T.js.map +1 -0
  11. package/dist/browser/client.js +9 -0
  12. package/dist/browser/client.js.map +1 -0
  13. package/dist/browser/collections.js +4 -0
  14. package/dist/browser/collections.js.map +1 -0
  15. package/dist/browser/connection.js +8 -0
  16. package/dist/browser/connection.js.map +1 -0
  17. package/dist/browser/index.js +10 -0
  18. package/dist/browser/index.js.map +1 -0
  19. package/dist/browser/language-model.js +205 -0
  20. package/dist/browser/language-model.js.map +1 -0
  21. package/dist/node/agents.d.ts +903 -0
  22. package/dist/node/agents.js +27 -0
  23. package/dist/node/agents.js.map +1 -0
  24. package/dist/node/chunk-BLCFITZG.js +56 -0
  25. package/dist/node/chunk-BLCFITZG.js.map +1 -0
  26. package/dist/node/chunk-QMQMPK7Q.js +50 -0
  27. package/dist/node/chunk-QMQMPK7Q.js.map +1 -0
  28. package/dist/node/chunk-QP7AQCEP.js +23478 -0
  29. package/dist/node/chunk-QP7AQCEP.js.map +1 -0
  30. package/dist/node/chunk-T2DG7334.js +125 -0
  31. package/dist/node/chunk-T2DG7334.js.map +1 -0
  32. package/dist/node/client.d.ts +12 -0
  33. package/dist/node/client.js +7 -0
  34. package/dist/node/client.js.map +1 -0
  35. package/dist/node/collections.d.ts +537 -0
  36. package/dist/node/collections.js +4 -0
  37. package/dist/node/collections.js.map +1 -0
  38. package/dist/node/connection.d.ts +30 -0
  39. package/dist/node/connection.js +6 -0
  40. package/dist/node/connection.js.map +1 -0
  41. package/dist/node/index.d.ts +94 -0
  42. package/dist/node/index.js +8 -0
  43. package/dist/node/index.js.map +1 -0
  44. package/dist/node/language-model.d.ts +2840 -0
  45. package/dist/node/language-model.js +203 -0
  46. package/dist/node/language-model.js.map +1 -0
  47. package/package.json +45 -16
  48. package/src/core/binder.ts +0 -226
  49. package/src/index.ts +0 -15
  50. package/src/well-known/collections.ts +0 -363
  51. package/src/well-known/models.ts +0 -87
@@ -0,0 +1,2840 @@
1
+ import { ToolBinder, ToolWithSchemas } from './index.js';
2
+ import { MCPConnection } from './connection.js';
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
+ };
9
+
10
+ /**
11
+ * Language Model Call Options Schema
12
+ * Based on LanguageModelV2CallOptions from @ai-sdk/provider
13
+ */
14
+ declare const LanguageModelCallOptionsSchema: z.ZodObject<{
15
+ prompt: z.ZodAny;
16
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
17
+ temperature: z.ZodOptional<z.ZodNumber>;
18
+ topP: z.ZodOptional<z.ZodNumber>;
19
+ topK: z.ZodOptional<z.ZodNumber>;
20
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
21
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
22
+ seed: z.ZodOptional<z.ZodNumber>;
23
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ responseFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
25
+ type: z.ZodLiteral<"text">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: "text";
28
+ }, {
29
+ type: "text";
30
+ }>, z.ZodObject<{
31
+ type: z.ZodLiteral<"json">;
32
+ schema: z.ZodOptional<z.ZodAny>;
33
+ name: z.ZodOptional<z.ZodString>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "json";
37
+ description?: string | undefined;
38
+ name?: string | undefined;
39
+ schema?: any;
40
+ }, {
41
+ type: "json";
42
+ description?: string | undefined;
43
+ name?: string | undefined;
44
+ schema?: any;
45
+ }>]>>;
46
+ tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
47
+ toolChoice: z.ZodOptional<z.ZodAny>;
48
+ includeRawChunks: z.ZodOptional<z.ZodBoolean>;
49
+ abortSignal: z.ZodOptional<z.ZodAny>;
50
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>>;
51
+ providerOptions: z.ZodOptional<z.ZodAny>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ tools?: any[] | undefined;
54
+ headers?: Record<string, string | undefined> | undefined;
55
+ prompt?: any;
56
+ maxOutputTokens?: number | undefined;
57
+ temperature?: number | undefined;
58
+ topP?: number | undefined;
59
+ topK?: number | undefined;
60
+ presencePenalty?: number | undefined;
61
+ frequencyPenalty?: number | undefined;
62
+ seed?: number | undefined;
63
+ stopSequences?: string[] | undefined;
64
+ responseFormat?: {
65
+ type: "text";
66
+ } | {
67
+ type: "json";
68
+ description?: string | undefined;
69
+ name?: string | undefined;
70
+ schema?: any;
71
+ } | undefined;
72
+ toolChoice?: any;
73
+ includeRawChunks?: boolean | undefined;
74
+ abortSignal?: any;
75
+ providerOptions?: any;
76
+ }, {
77
+ tools?: any[] | undefined;
78
+ headers?: Record<string, string | undefined> | undefined;
79
+ prompt?: any;
80
+ maxOutputTokens?: number | undefined;
81
+ temperature?: number | undefined;
82
+ topP?: number | undefined;
83
+ topK?: number | undefined;
84
+ presencePenalty?: number | undefined;
85
+ frequencyPenalty?: number | undefined;
86
+ seed?: number | undefined;
87
+ stopSequences?: string[] | undefined;
88
+ responseFormat?: {
89
+ type: "text";
90
+ } | {
91
+ type: "json";
92
+ description?: string | undefined;
93
+ name?: string | undefined;
94
+ schema?: any;
95
+ } | undefined;
96
+ toolChoice?: any;
97
+ includeRawChunks?: boolean | undefined;
98
+ abortSignal?: any;
99
+ providerOptions?: any;
100
+ }>;
101
+ /**
102
+ * Language Model Generate Output Schema
103
+ * Based on the return type of LanguageModelV2.doGenerate from @ai-sdk/provider
104
+ */
105
+ declare const LanguageModelGenerateOutputSchema: z.ZodObject<{
106
+ content: z.ZodArray<z.ZodAny, "many">;
107
+ finishReason: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
108
+ usage: z.ZodEffects<z.ZodObject<{
109
+ inputTokens: z.ZodOptional<z.ZodNumber>;
110
+ outputTokens: z.ZodOptional<z.ZodNumber>;
111
+ totalTokens: z.ZodOptional<z.ZodNumber>;
112
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
113
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
114
+ inputTokens: z.ZodOptional<z.ZodNumber>;
115
+ outputTokens: z.ZodOptional<z.ZodNumber>;
116
+ totalTokens: z.ZodOptional<z.ZodNumber>;
117
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
118
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
119
+ inputTokens: z.ZodOptional<z.ZodNumber>;
120
+ outputTokens: z.ZodOptional<z.ZodNumber>;
121
+ totalTokens: z.ZodOptional<z.ZodNumber>;
122
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
123
+ }, z.ZodTypeAny, "passthrough">>, {
124
+ inputTokens: number | undefined;
125
+ outputTokens: number | undefined;
126
+ totalTokens: number | undefined;
127
+ reasoningTokens: number | undefined;
128
+ }, z.objectInputType<{
129
+ inputTokens: z.ZodOptional<z.ZodNumber>;
130
+ outputTokens: z.ZodOptional<z.ZodNumber>;
131
+ totalTokens: z.ZodOptional<z.ZodNumber>;
132
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
133
+ }, z.ZodTypeAny, "passthrough">>;
134
+ providerMetadata: z.ZodOptional<z.ZodAny>;
135
+ request: z.ZodOptional<z.ZodObject<{
136
+ body: z.ZodOptional<z.ZodAny>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ body?: any;
139
+ }, {
140
+ body?: any;
141
+ }>>;
142
+ response: z.ZodOptional<z.ZodObject<{
143
+ id: z.ZodOptional<z.ZodString>;
144
+ timestamp: z.ZodOptional<z.ZodDate>;
145
+ modelId: z.ZodOptional<z.ZodString>;
146
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
147
+ body: z.ZodOptional<z.ZodAny>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ id?: string | undefined;
150
+ headers?: Record<string, string> | undefined;
151
+ body?: any;
152
+ timestamp?: Date | undefined;
153
+ modelId?: string | undefined;
154
+ }, {
155
+ id?: string | undefined;
156
+ headers?: Record<string, string> | undefined;
157
+ body?: any;
158
+ timestamp?: Date | undefined;
159
+ modelId?: string | undefined;
160
+ }>>;
161
+ warnings: z.ZodArray<z.ZodAny, "many">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ content: any[];
164
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
165
+ usage: {
166
+ inputTokens: number | undefined;
167
+ outputTokens: number | undefined;
168
+ totalTokens: number | undefined;
169
+ reasoningTokens: number | undefined;
170
+ };
171
+ warnings: any[];
172
+ providerMetadata?: any;
173
+ request?: {
174
+ body?: any;
175
+ } | undefined;
176
+ response?: {
177
+ id?: string | undefined;
178
+ headers?: Record<string, string> | undefined;
179
+ body?: any;
180
+ timestamp?: Date | undefined;
181
+ modelId?: string | undefined;
182
+ } | undefined;
183
+ }, {
184
+ content: any[];
185
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
186
+ usage: {
187
+ inputTokens?: number | undefined;
188
+ outputTokens?: number | undefined;
189
+ totalTokens?: number | undefined;
190
+ reasoningTokens?: number | undefined;
191
+ } & {
192
+ [k: string]: unknown;
193
+ };
194
+ warnings: any[];
195
+ providerMetadata?: any;
196
+ request?: {
197
+ body?: any;
198
+ } | undefined;
199
+ response?: {
200
+ id?: string | undefined;
201
+ headers?: Record<string, string> | undefined;
202
+ body?: any;
203
+ timestamp?: Date | undefined;
204
+ modelId?: string | undefined;
205
+ } | undefined;
206
+ }>;
207
+ /**
208
+ * Language Model Stream Output Schema
209
+ * Based on the return type of LanguageModelV2.doStream from @ai-sdk/provider
210
+ */
211
+ declare const LanguageModelStreamOutputSchema: z.ZodObject<{
212
+ stream: z.ZodAny;
213
+ request: z.ZodOptional<z.ZodObject<{
214
+ body: z.ZodOptional<z.ZodAny>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ body?: any;
217
+ }, {
218
+ body?: any;
219
+ }>>;
220
+ response: z.ZodOptional<z.ZodObject<{
221
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ headers?: Record<string, string> | undefined;
224
+ }, {
225
+ headers?: Record<string, string> | undefined;
226
+ }>>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ request?: {
229
+ body?: any;
230
+ } | undefined;
231
+ response?: {
232
+ headers?: Record<string, string> | undefined;
233
+ } | undefined;
234
+ stream?: any;
235
+ }, {
236
+ request?: {
237
+ body?: any;
238
+ } | undefined;
239
+ response?: {
240
+ headers?: Record<string, string> | undefined;
241
+ } | undefined;
242
+ stream?: any;
243
+ }>;
244
+ declare const LanguageModelMetadataSchema: z.ZodObject<{
245
+ supportedUrls: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ supportedUrls: Record<string, string[]>;
248
+ }, {
249
+ supportedUrls: Record<string, string[]>;
250
+ }>;
251
+ /**
252
+ * Simple Model schema for LLM operations
253
+ */
254
+ declare const ModelSchema: z.ZodObject<{
255
+ modelId: z.ZodString;
256
+ logo: z.ZodNullable<z.ZodString>;
257
+ description: z.ZodNullable<z.ZodString>;
258
+ capabilities: z.ZodArray<z.ZodString, "many">;
259
+ limits: z.ZodNullable<z.ZodObject<{
260
+ contextWindow: z.ZodNumber;
261
+ maxOutputTokens: z.ZodNumber;
262
+ }, "strip", z.ZodTypeAny, {
263
+ maxOutputTokens: number;
264
+ contextWindow: number;
265
+ }, {
266
+ maxOutputTokens: number;
267
+ contextWindow: number;
268
+ }>>;
269
+ costs: z.ZodNullable<z.ZodObject<{
270
+ input: z.ZodNumber;
271
+ output: z.ZodNumber;
272
+ }, "strip", z.ZodTypeAny, {
273
+ input: number;
274
+ output: number;
275
+ }, {
276
+ input: number;
277
+ output: number;
278
+ }>>;
279
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ description: string | null;
282
+ capabilities: string[];
283
+ modelId: string;
284
+ logo: string | null;
285
+ limits: {
286
+ maxOutputTokens: number;
287
+ contextWindow: number;
288
+ } | null;
289
+ costs: {
290
+ input: number;
291
+ output: number;
292
+ } | null;
293
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
294
+ }, {
295
+ description: string | null;
296
+ capabilities: string[];
297
+ modelId: string;
298
+ logo: string | null;
299
+ limits: {
300
+ maxOutputTokens: number;
301
+ contextWindow: number;
302
+ } | null;
303
+ costs: {
304
+ input: number;
305
+ output: number;
306
+ } | null;
307
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
308
+ }>;
309
+ declare const LanguageModelInputSchema: z.ZodObject<{
310
+ modelId: z.ZodString;
311
+ callOptions: z.ZodObject<{
312
+ prompt: z.ZodAny;
313
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
314
+ temperature: z.ZodOptional<z.ZodNumber>;
315
+ topP: z.ZodOptional<z.ZodNumber>;
316
+ topK: z.ZodOptional<z.ZodNumber>;
317
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
318
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
319
+ seed: z.ZodOptional<z.ZodNumber>;
320
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
+ responseFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
322
+ type: z.ZodLiteral<"text">;
323
+ }, "strip", z.ZodTypeAny, {
324
+ type: "text";
325
+ }, {
326
+ type: "text";
327
+ }>, z.ZodObject<{
328
+ type: z.ZodLiteral<"json">;
329
+ schema: z.ZodOptional<z.ZodAny>;
330
+ name: z.ZodOptional<z.ZodString>;
331
+ description: z.ZodOptional<z.ZodString>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ type: "json";
334
+ description?: string | undefined;
335
+ name?: string | undefined;
336
+ schema?: any;
337
+ }, {
338
+ type: "json";
339
+ description?: string | undefined;
340
+ name?: string | undefined;
341
+ schema?: any;
342
+ }>]>>;
343
+ tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
344
+ toolChoice: z.ZodOptional<z.ZodAny>;
345
+ includeRawChunks: z.ZodOptional<z.ZodBoolean>;
346
+ abortSignal: z.ZodOptional<z.ZodAny>;
347
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>>;
348
+ providerOptions: z.ZodOptional<z.ZodAny>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ tools?: any[] | undefined;
351
+ headers?: Record<string, string | undefined> | undefined;
352
+ prompt?: any;
353
+ maxOutputTokens?: number | undefined;
354
+ temperature?: number | undefined;
355
+ topP?: number | undefined;
356
+ topK?: number | undefined;
357
+ presencePenalty?: number | undefined;
358
+ frequencyPenalty?: number | undefined;
359
+ seed?: number | undefined;
360
+ stopSequences?: string[] | undefined;
361
+ responseFormat?: {
362
+ type: "text";
363
+ } | {
364
+ type: "json";
365
+ description?: string | undefined;
366
+ name?: string | undefined;
367
+ schema?: any;
368
+ } | undefined;
369
+ toolChoice?: any;
370
+ includeRawChunks?: boolean | undefined;
371
+ abortSignal?: any;
372
+ providerOptions?: any;
373
+ }, {
374
+ tools?: any[] | undefined;
375
+ headers?: Record<string, string | undefined> | undefined;
376
+ prompt?: any;
377
+ maxOutputTokens?: number | undefined;
378
+ temperature?: number | undefined;
379
+ topP?: number | undefined;
380
+ topK?: number | undefined;
381
+ presencePenalty?: number | undefined;
382
+ frequencyPenalty?: number | undefined;
383
+ seed?: number | undefined;
384
+ stopSequences?: string[] | undefined;
385
+ responseFormat?: {
386
+ type: "text";
387
+ } | {
388
+ type: "json";
389
+ description?: string | undefined;
390
+ name?: string | undefined;
391
+ schema?: any;
392
+ } | undefined;
393
+ toolChoice?: any;
394
+ includeRawChunks?: boolean | undefined;
395
+ abortSignal?: any;
396
+ providerOptions?: any;
397
+ }>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ modelId: string;
400
+ callOptions: {
401
+ tools?: any[] | undefined;
402
+ headers?: Record<string, string | undefined> | undefined;
403
+ prompt?: any;
404
+ maxOutputTokens?: number | undefined;
405
+ temperature?: number | undefined;
406
+ topP?: number | undefined;
407
+ topK?: number | undefined;
408
+ presencePenalty?: number | undefined;
409
+ frequencyPenalty?: number | undefined;
410
+ seed?: number | undefined;
411
+ stopSequences?: string[] | undefined;
412
+ responseFormat?: {
413
+ type: "text";
414
+ } | {
415
+ type: "json";
416
+ description?: string | undefined;
417
+ name?: string | undefined;
418
+ schema?: any;
419
+ } | undefined;
420
+ toolChoice?: any;
421
+ includeRawChunks?: boolean | undefined;
422
+ abortSignal?: any;
423
+ providerOptions?: any;
424
+ };
425
+ }, {
426
+ modelId: string;
427
+ callOptions: {
428
+ tools?: any[] | undefined;
429
+ headers?: Record<string, string | undefined> | undefined;
430
+ prompt?: any;
431
+ maxOutputTokens?: number | undefined;
432
+ temperature?: number | undefined;
433
+ topP?: number | undefined;
434
+ topK?: number | undefined;
435
+ presencePenalty?: number | undefined;
436
+ frequencyPenalty?: number | undefined;
437
+ seed?: number | undefined;
438
+ stopSequences?: string[] | undefined;
439
+ responseFormat?: {
440
+ type: "text";
441
+ } | {
442
+ type: "json";
443
+ description?: string | undefined;
444
+ name?: string | undefined;
445
+ schema?: any;
446
+ } | undefined;
447
+ toolChoice?: any;
448
+ includeRawChunks?: boolean | undefined;
449
+ abortSignal?: any;
450
+ providerOptions?: any;
451
+ };
452
+ }>;
453
+ /**
454
+ * Model entity schema for AI models (Collection Entity)
455
+ * Extends BaseCollectionEntitySchema with model-specific fields
456
+ * Base schema already includes: id, title, created_at, updated_at, created_by, updated_by
457
+ */
458
+ declare const ModelCollectionEntitySchema: z.ZodObject<{
459
+ id: z.ZodString;
460
+ title: z.ZodString;
461
+ created_at: z.ZodString;
462
+ updated_at: z.ZodString;
463
+ created_by: z.ZodOptional<z.ZodString>;
464
+ updated_by: z.ZodOptional<z.ZodString>;
465
+ } & {
466
+ logo: z.ZodNullable<z.ZodString>;
467
+ description: z.ZodNullable<z.ZodString>;
468
+ capabilities: z.ZodArray<z.ZodString, "many">;
469
+ limits: z.ZodNullable<z.ZodObject<{
470
+ contextWindow: z.ZodNumber;
471
+ maxOutputTokens: z.ZodNumber;
472
+ }, "strip", z.ZodTypeAny, {
473
+ maxOutputTokens: number;
474
+ contextWindow: number;
475
+ }, {
476
+ maxOutputTokens: number;
477
+ contextWindow: number;
478
+ }>>;
479
+ costs: z.ZodNullable<z.ZodObject<{
480
+ input: z.ZodNumber;
481
+ output: z.ZodNumber;
482
+ }, "strip", z.ZodTypeAny, {
483
+ input: number;
484
+ output: number;
485
+ }, {
486
+ input: number;
487
+ output: number;
488
+ }>>;
489
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ id: string;
492
+ title: string;
493
+ created_at: string;
494
+ updated_at: string;
495
+ description: string | null;
496
+ capabilities: string[];
497
+ logo: string | null;
498
+ limits: {
499
+ maxOutputTokens: number;
500
+ contextWindow: number;
501
+ } | null;
502
+ costs: {
503
+ input: number;
504
+ output: number;
505
+ } | null;
506
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
507
+ created_by?: string | undefined;
508
+ updated_by?: string | undefined;
509
+ }, {
510
+ id: string;
511
+ title: string;
512
+ created_at: string;
513
+ updated_at: string;
514
+ description: string | null;
515
+ capabilities: string[];
516
+ logo: string | null;
517
+ limits: {
518
+ maxOutputTokens: number;
519
+ contextWindow: number;
520
+ } | null;
521
+ costs: {
522
+ input: number;
523
+ output: number;
524
+ } | null;
525
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
526
+ created_by?: string | undefined;
527
+ updated_by?: string | undefined;
528
+ }>;
529
+ /**
530
+ * Language Model Binding
531
+ *
532
+ * Defines the interface for AI model providers.
533
+ * Any MCP that implements this binding can provide AI models.
534
+ *
535
+ * Required tools:
536
+ * - LLM_METADATA: Get metadata for a specific model
537
+ * - LLM_DO_STREAM: Stream a language model response
538
+ * - LLM_DO_GENERATE: Generate a language model response
539
+ * - COLLECTION_LLM_LIST: List available AI models with their capabilities
540
+ * - COLLECTION_LLM_GET: Get a single model by ID
541
+ */
542
+ declare const LANGUAGE_MODEL_BINDING: ({
543
+ name: "COLLECTION_LLM_LIST";
544
+ inputSchema: typeof CollectionListInputSchema;
545
+ outputSchema: z.ZodObject<{
546
+ items: z.ZodArray<z.ZodObject<{
547
+ id: z.ZodString;
548
+ title: z.ZodString;
549
+ created_at: z.ZodString;
550
+ updated_at: z.ZodString;
551
+ created_by: z.ZodOptional<z.ZodString>;
552
+ updated_by: z.ZodOptional<z.ZodString>;
553
+ } & {
554
+ logo: z.ZodNullable<z.ZodString>;
555
+ description: z.ZodNullable<z.ZodString>;
556
+ capabilities: z.ZodArray<z.ZodString, "many">;
557
+ limits: z.ZodNullable<z.ZodObject<{
558
+ contextWindow: z.ZodNumber;
559
+ maxOutputTokens: z.ZodNumber;
560
+ }, "strip", z.ZodTypeAny, {
561
+ maxOutputTokens: number;
562
+ contextWindow: number;
563
+ }, {
564
+ maxOutputTokens: number;
565
+ contextWindow: number;
566
+ }>>;
567
+ costs: z.ZodNullable<z.ZodObject<{
568
+ input: z.ZodNumber;
569
+ output: z.ZodNumber;
570
+ }, "strip", z.ZodTypeAny, {
571
+ input: number;
572
+ output: number;
573
+ }, {
574
+ input: number;
575
+ output: number;
576
+ }>>;
577
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ id: string;
580
+ title: string;
581
+ created_at: string;
582
+ updated_at: string;
583
+ description: string | null;
584
+ capabilities: string[];
585
+ logo: string | null;
586
+ limits: {
587
+ maxOutputTokens: number;
588
+ contextWindow: number;
589
+ } | null;
590
+ costs: {
591
+ input: number;
592
+ output: number;
593
+ } | null;
594
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
595
+ created_by?: string | undefined;
596
+ updated_by?: string | undefined;
597
+ }, {
598
+ id: string;
599
+ title: string;
600
+ created_at: string;
601
+ updated_at: string;
602
+ description: string | null;
603
+ capabilities: string[];
604
+ logo: string | null;
605
+ limits: {
606
+ maxOutputTokens: number;
607
+ contextWindow: number;
608
+ } | null;
609
+ costs: {
610
+ input: number;
611
+ output: number;
612
+ } | null;
613
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
614
+ created_by?: string | undefined;
615
+ updated_by?: string | undefined;
616
+ }>, "many">;
617
+ totalCount: z.ZodOptional<z.ZodNumber>;
618
+ hasMore: z.ZodOptional<z.ZodBoolean>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ items: {
621
+ id: string;
622
+ title: string;
623
+ created_at: string;
624
+ updated_at: string;
625
+ description: string | null;
626
+ capabilities: string[];
627
+ logo: string | null;
628
+ limits: {
629
+ maxOutputTokens: number;
630
+ contextWindow: number;
631
+ } | null;
632
+ costs: {
633
+ input: number;
634
+ output: number;
635
+ } | null;
636
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
637
+ created_by?: string | undefined;
638
+ updated_by?: string | undefined;
639
+ }[];
640
+ totalCount?: number | undefined;
641
+ hasMore?: boolean | undefined;
642
+ }, {
643
+ items: {
644
+ id: string;
645
+ title: string;
646
+ created_at: string;
647
+ updated_at: string;
648
+ description: string | null;
649
+ capabilities: string[];
650
+ logo: string | null;
651
+ limits: {
652
+ maxOutputTokens: number;
653
+ contextWindow: number;
654
+ } | null;
655
+ costs: {
656
+ input: number;
657
+ output: number;
658
+ } | null;
659
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
660
+ created_by?: string | undefined;
661
+ updated_by?: string | undefined;
662
+ }[];
663
+ totalCount?: number | undefined;
664
+ hasMore?: boolean | undefined;
665
+ }>;
666
+ } | {
667
+ name: "COLLECTION_LLM_GET";
668
+ inputSchema: typeof CollectionGetInputSchema;
669
+ outputSchema: z.ZodObject<{
670
+ item: z.ZodNullable<z.ZodObject<{
671
+ id: z.ZodString;
672
+ title: z.ZodString;
673
+ created_at: z.ZodString;
674
+ updated_at: z.ZodString;
675
+ created_by: z.ZodOptional<z.ZodString>;
676
+ updated_by: z.ZodOptional<z.ZodString>;
677
+ } & {
678
+ logo: z.ZodNullable<z.ZodString>;
679
+ description: z.ZodNullable<z.ZodString>;
680
+ capabilities: z.ZodArray<z.ZodString, "many">;
681
+ limits: z.ZodNullable<z.ZodObject<{
682
+ contextWindow: z.ZodNumber;
683
+ maxOutputTokens: z.ZodNumber;
684
+ }, "strip", z.ZodTypeAny, {
685
+ maxOutputTokens: number;
686
+ contextWindow: number;
687
+ }, {
688
+ maxOutputTokens: number;
689
+ contextWindow: number;
690
+ }>>;
691
+ costs: z.ZodNullable<z.ZodObject<{
692
+ input: z.ZodNumber;
693
+ output: z.ZodNumber;
694
+ }, "strip", z.ZodTypeAny, {
695
+ input: number;
696
+ output: number;
697
+ }, {
698
+ input: number;
699
+ output: number;
700
+ }>>;
701
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ id: string;
704
+ title: string;
705
+ created_at: string;
706
+ updated_at: string;
707
+ description: string | null;
708
+ capabilities: string[];
709
+ logo: string | null;
710
+ limits: {
711
+ maxOutputTokens: number;
712
+ contextWindow: number;
713
+ } | null;
714
+ costs: {
715
+ input: number;
716
+ output: number;
717
+ } | null;
718
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
719
+ created_by?: string | undefined;
720
+ updated_by?: string | undefined;
721
+ }, {
722
+ id: string;
723
+ title: string;
724
+ created_at: string;
725
+ updated_at: string;
726
+ description: string | null;
727
+ capabilities: string[];
728
+ logo: string | null;
729
+ limits: {
730
+ maxOutputTokens: number;
731
+ contextWindow: number;
732
+ } | null;
733
+ costs: {
734
+ input: number;
735
+ output: number;
736
+ } | null;
737
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
738
+ created_by?: string | undefined;
739
+ updated_by?: string | undefined;
740
+ }>>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ item: {
743
+ id: string;
744
+ title: string;
745
+ created_at: string;
746
+ updated_at: string;
747
+ description: string | null;
748
+ capabilities: string[];
749
+ logo: string | null;
750
+ limits: {
751
+ maxOutputTokens: number;
752
+ contextWindow: number;
753
+ } | null;
754
+ costs: {
755
+ input: number;
756
+ output: number;
757
+ } | null;
758
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
759
+ created_by?: string | undefined;
760
+ updated_by?: string | undefined;
761
+ } | null;
762
+ }, {
763
+ item: {
764
+ id: string;
765
+ title: string;
766
+ created_at: string;
767
+ updated_at: string;
768
+ description: string | null;
769
+ capabilities: string[];
770
+ logo: string | null;
771
+ limits: {
772
+ maxOutputTokens: number;
773
+ contextWindow: number;
774
+ } | null;
775
+ costs: {
776
+ input: number;
777
+ output: number;
778
+ } | null;
779
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
780
+ created_by?: string | undefined;
781
+ updated_by?: string | undefined;
782
+ } | null;
783
+ }>;
784
+ } | {
785
+ name: "COLLECTION_LLM_CREATE";
786
+ inputSchema: z.ZodObject<{
787
+ data: z.ZodObject<{
788
+ id: z.ZodString;
789
+ title: z.ZodString;
790
+ created_at: z.ZodString;
791
+ updated_at: z.ZodString;
792
+ created_by: z.ZodOptional<z.ZodString>;
793
+ updated_by: z.ZodOptional<z.ZodString>;
794
+ } & {
795
+ logo: z.ZodNullable<z.ZodString>;
796
+ description: z.ZodNullable<z.ZodString>;
797
+ capabilities: z.ZodArray<z.ZodString, "many">;
798
+ limits: z.ZodNullable<z.ZodObject<{
799
+ contextWindow: z.ZodNumber;
800
+ maxOutputTokens: z.ZodNumber;
801
+ }, "strip", z.ZodTypeAny, {
802
+ maxOutputTokens: number;
803
+ contextWindow: number;
804
+ }, {
805
+ maxOutputTokens: number;
806
+ contextWindow: number;
807
+ }>>;
808
+ costs: z.ZodNullable<z.ZodObject<{
809
+ input: z.ZodNumber;
810
+ output: z.ZodNumber;
811
+ }, "strip", z.ZodTypeAny, {
812
+ input: number;
813
+ output: number;
814
+ }, {
815
+ input: number;
816
+ output: number;
817
+ }>>;
818
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ id: string;
821
+ title: string;
822
+ created_at: string;
823
+ updated_at: string;
824
+ description: string | null;
825
+ capabilities: string[];
826
+ logo: string | null;
827
+ limits: {
828
+ maxOutputTokens: number;
829
+ contextWindow: number;
830
+ } | null;
831
+ costs: {
832
+ input: number;
833
+ output: number;
834
+ } | null;
835
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
836
+ created_by?: string | undefined;
837
+ updated_by?: string | undefined;
838
+ }, {
839
+ id: string;
840
+ title: string;
841
+ created_at: string;
842
+ updated_at: string;
843
+ description: string | null;
844
+ capabilities: string[];
845
+ logo: string | null;
846
+ limits: {
847
+ maxOutputTokens: number;
848
+ contextWindow: number;
849
+ } | null;
850
+ costs: {
851
+ input: number;
852
+ output: number;
853
+ } | null;
854
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
855
+ created_by?: string | undefined;
856
+ updated_by?: string | undefined;
857
+ }>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ data: {
860
+ id: string;
861
+ title: string;
862
+ created_at: string;
863
+ updated_at: string;
864
+ description: string | null;
865
+ capabilities: string[];
866
+ logo: string | null;
867
+ limits: {
868
+ maxOutputTokens: number;
869
+ contextWindow: number;
870
+ } | null;
871
+ costs: {
872
+ input: number;
873
+ output: number;
874
+ } | null;
875
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
876
+ created_by?: string | undefined;
877
+ updated_by?: string | undefined;
878
+ };
879
+ }, {
880
+ data: {
881
+ id: string;
882
+ title: string;
883
+ created_at: string;
884
+ updated_at: string;
885
+ description: string | null;
886
+ capabilities: string[];
887
+ logo: string | null;
888
+ limits: {
889
+ maxOutputTokens: number;
890
+ contextWindow: number;
891
+ } | null;
892
+ costs: {
893
+ input: number;
894
+ output: number;
895
+ } | null;
896
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
897
+ created_by?: string | undefined;
898
+ updated_by?: string | undefined;
899
+ };
900
+ }>;
901
+ outputSchema: z.ZodObject<{
902
+ item: z.ZodObject<{
903
+ id: z.ZodString;
904
+ title: z.ZodString;
905
+ created_at: z.ZodString;
906
+ updated_at: z.ZodString;
907
+ created_by: z.ZodOptional<z.ZodString>;
908
+ updated_by: z.ZodOptional<z.ZodString>;
909
+ } & {
910
+ logo: z.ZodNullable<z.ZodString>;
911
+ description: z.ZodNullable<z.ZodString>;
912
+ capabilities: z.ZodArray<z.ZodString, "many">;
913
+ limits: z.ZodNullable<z.ZodObject<{
914
+ contextWindow: z.ZodNumber;
915
+ maxOutputTokens: z.ZodNumber;
916
+ }, "strip", z.ZodTypeAny, {
917
+ maxOutputTokens: number;
918
+ contextWindow: number;
919
+ }, {
920
+ maxOutputTokens: number;
921
+ contextWindow: number;
922
+ }>>;
923
+ costs: z.ZodNullable<z.ZodObject<{
924
+ input: z.ZodNumber;
925
+ output: z.ZodNumber;
926
+ }, "strip", z.ZodTypeAny, {
927
+ input: number;
928
+ output: number;
929
+ }, {
930
+ input: number;
931
+ output: number;
932
+ }>>;
933
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
934
+ }, "strip", z.ZodTypeAny, {
935
+ id: string;
936
+ title: string;
937
+ created_at: string;
938
+ updated_at: string;
939
+ description: string | null;
940
+ capabilities: string[];
941
+ logo: string | null;
942
+ limits: {
943
+ maxOutputTokens: number;
944
+ contextWindow: number;
945
+ } | null;
946
+ costs: {
947
+ input: number;
948
+ output: number;
949
+ } | null;
950
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
951
+ created_by?: string | undefined;
952
+ updated_by?: string | undefined;
953
+ }, {
954
+ id: string;
955
+ title: string;
956
+ created_at: string;
957
+ updated_at: string;
958
+ description: string | null;
959
+ capabilities: string[];
960
+ logo: string | null;
961
+ limits: {
962
+ maxOutputTokens: number;
963
+ contextWindow: number;
964
+ } | null;
965
+ costs: {
966
+ input: number;
967
+ output: number;
968
+ } | null;
969
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
970
+ created_by?: string | undefined;
971
+ updated_by?: string | undefined;
972
+ }>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ item: {
975
+ id: string;
976
+ title: string;
977
+ created_at: string;
978
+ updated_at: string;
979
+ description: string | null;
980
+ capabilities: string[];
981
+ logo: string | null;
982
+ limits: {
983
+ maxOutputTokens: number;
984
+ contextWindow: number;
985
+ } | null;
986
+ costs: {
987
+ input: number;
988
+ output: number;
989
+ } | null;
990
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
991
+ created_by?: string | undefined;
992
+ updated_by?: string | undefined;
993
+ };
994
+ }, {
995
+ item: {
996
+ id: string;
997
+ title: string;
998
+ created_at: string;
999
+ updated_at: string;
1000
+ description: string | null;
1001
+ capabilities: string[];
1002
+ logo: string | null;
1003
+ limits: {
1004
+ maxOutputTokens: number;
1005
+ contextWindow: number;
1006
+ } | null;
1007
+ costs: {
1008
+ input: number;
1009
+ output: number;
1010
+ } | null;
1011
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1012
+ created_by?: string | undefined;
1013
+ updated_by?: string | undefined;
1014
+ };
1015
+ }>;
1016
+ opt: true;
1017
+ } | {
1018
+ name: "COLLECTION_LLM_UPDATE";
1019
+ inputSchema: z.ZodObject<{
1020
+ id: z.ZodString;
1021
+ data: z.ZodObject<{
1022
+ [x: string]: z.ZodOptional<any>;
1023
+ }, any, any, {
1024
+ [x: string]: any;
1025
+ }, {
1026
+ [x: string]: any;
1027
+ }>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ id: string;
1030
+ data: {
1031
+ [x: string]: any;
1032
+ };
1033
+ }, {
1034
+ id: string;
1035
+ data: {
1036
+ [x: string]: any;
1037
+ };
1038
+ }>;
1039
+ outputSchema: z.ZodObject<{
1040
+ item: z.ZodObject<{
1041
+ id: z.ZodString;
1042
+ title: z.ZodString;
1043
+ created_at: z.ZodString;
1044
+ updated_at: z.ZodString;
1045
+ created_by: z.ZodOptional<z.ZodString>;
1046
+ updated_by: z.ZodOptional<z.ZodString>;
1047
+ } & {
1048
+ logo: z.ZodNullable<z.ZodString>;
1049
+ description: z.ZodNullable<z.ZodString>;
1050
+ capabilities: z.ZodArray<z.ZodString, "many">;
1051
+ limits: z.ZodNullable<z.ZodObject<{
1052
+ contextWindow: z.ZodNumber;
1053
+ maxOutputTokens: z.ZodNumber;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ maxOutputTokens: number;
1056
+ contextWindow: number;
1057
+ }, {
1058
+ maxOutputTokens: number;
1059
+ contextWindow: number;
1060
+ }>>;
1061
+ costs: z.ZodNullable<z.ZodObject<{
1062
+ input: z.ZodNumber;
1063
+ output: z.ZodNumber;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ input: number;
1066
+ output: number;
1067
+ }, {
1068
+ input: number;
1069
+ output: number;
1070
+ }>>;
1071
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ id: string;
1074
+ title: string;
1075
+ created_at: string;
1076
+ updated_at: string;
1077
+ description: string | null;
1078
+ capabilities: string[];
1079
+ logo: string | null;
1080
+ limits: {
1081
+ maxOutputTokens: number;
1082
+ contextWindow: number;
1083
+ } | null;
1084
+ costs: {
1085
+ input: number;
1086
+ output: number;
1087
+ } | null;
1088
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1089
+ created_by?: string | undefined;
1090
+ updated_by?: string | undefined;
1091
+ }, {
1092
+ id: string;
1093
+ title: string;
1094
+ created_at: string;
1095
+ updated_at: string;
1096
+ description: string | null;
1097
+ capabilities: string[];
1098
+ logo: string | null;
1099
+ limits: {
1100
+ maxOutputTokens: number;
1101
+ contextWindow: number;
1102
+ } | null;
1103
+ costs: {
1104
+ input: number;
1105
+ output: number;
1106
+ } | null;
1107
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1108
+ created_by?: string | undefined;
1109
+ updated_by?: string | undefined;
1110
+ }>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ item: {
1113
+ id: string;
1114
+ title: string;
1115
+ created_at: string;
1116
+ updated_at: string;
1117
+ description: string | null;
1118
+ capabilities: string[];
1119
+ logo: string | null;
1120
+ limits: {
1121
+ maxOutputTokens: number;
1122
+ contextWindow: number;
1123
+ } | null;
1124
+ costs: {
1125
+ input: number;
1126
+ output: number;
1127
+ } | null;
1128
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1129
+ created_by?: string | undefined;
1130
+ updated_by?: string | undefined;
1131
+ };
1132
+ }, {
1133
+ item: {
1134
+ id: string;
1135
+ title: string;
1136
+ created_at: string;
1137
+ updated_at: string;
1138
+ description: string | null;
1139
+ capabilities: string[];
1140
+ logo: string | null;
1141
+ limits: {
1142
+ maxOutputTokens: number;
1143
+ contextWindow: number;
1144
+ } | null;
1145
+ costs: {
1146
+ input: number;
1147
+ output: number;
1148
+ } | null;
1149
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1150
+ created_by?: string | undefined;
1151
+ updated_by?: string | undefined;
1152
+ };
1153
+ }>;
1154
+ opt: true;
1155
+ } | {
1156
+ name: "COLLECTION_LLM_DELETE";
1157
+ inputSchema: typeof CollectionDeleteInputSchema;
1158
+ outputSchema: z.ZodObject<{
1159
+ item: z.ZodObject<{
1160
+ id: z.ZodString;
1161
+ title: z.ZodString;
1162
+ created_at: z.ZodString;
1163
+ updated_at: z.ZodString;
1164
+ created_by: z.ZodOptional<z.ZodString>;
1165
+ updated_by: z.ZodOptional<z.ZodString>;
1166
+ } & {
1167
+ logo: z.ZodNullable<z.ZodString>;
1168
+ description: z.ZodNullable<z.ZodString>;
1169
+ capabilities: z.ZodArray<z.ZodString, "many">;
1170
+ limits: z.ZodNullable<z.ZodObject<{
1171
+ contextWindow: z.ZodNumber;
1172
+ maxOutputTokens: z.ZodNumber;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ maxOutputTokens: number;
1175
+ contextWindow: number;
1176
+ }, {
1177
+ maxOutputTokens: number;
1178
+ contextWindow: number;
1179
+ }>>;
1180
+ costs: z.ZodNullable<z.ZodObject<{
1181
+ input: z.ZodNumber;
1182
+ output: z.ZodNumber;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ input: number;
1185
+ output: number;
1186
+ }, {
1187
+ input: number;
1188
+ output: number;
1189
+ }>>;
1190
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ id: string;
1193
+ title: string;
1194
+ created_at: string;
1195
+ updated_at: string;
1196
+ description: string | null;
1197
+ capabilities: string[];
1198
+ logo: string | null;
1199
+ limits: {
1200
+ maxOutputTokens: number;
1201
+ contextWindow: number;
1202
+ } | null;
1203
+ costs: {
1204
+ input: number;
1205
+ output: number;
1206
+ } | null;
1207
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1208
+ created_by?: string | undefined;
1209
+ updated_by?: string | undefined;
1210
+ }, {
1211
+ id: string;
1212
+ title: string;
1213
+ created_at: string;
1214
+ updated_at: string;
1215
+ description: string | null;
1216
+ capabilities: string[];
1217
+ logo: string | null;
1218
+ limits: {
1219
+ maxOutputTokens: number;
1220
+ contextWindow: number;
1221
+ } | null;
1222
+ costs: {
1223
+ input: number;
1224
+ output: number;
1225
+ } | null;
1226
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1227
+ created_by?: string | undefined;
1228
+ updated_by?: string | undefined;
1229
+ }>;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ item: {
1232
+ id: string;
1233
+ title: string;
1234
+ created_at: string;
1235
+ updated_at: string;
1236
+ description: string | null;
1237
+ capabilities: string[];
1238
+ logo: string | null;
1239
+ limits: {
1240
+ maxOutputTokens: number;
1241
+ contextWindow: number;
1242
+ } | null;
1243
+ costs: {
1244
+ input: number;
1245
+ output: number;
1246
+ } | null;
1247
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1248
+ created_by?: string | undefined;
1249
+ updated_by?: string | undefined;
1250
+ };
1251
+ }, {
1252
+ item: {
1253
+ id: string;
1254
+ title: string;
1255
+ created_at: string;
1256
+ updated_at: string;
1257
+ description: string | null;
1258
+ capabilities: string[];
1259
+ logo: string | null;
1260
+ limits: {
1261
+ maxOutputTokens: number;
1262
+ contextWindow: number;
1263
+ } | null;
1264
+ costs: {
1265
+ input: number;
1266
+ output: number;
1267
+ } | null;
1268
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1269
+ created_by?: string | undefined;
1270
+ updated_by?: string | undefined;
1271
+ };
1272
+ }>;
1273
+ opt: true;
1274
+ } | {
1275
+ name: "LLM_METADATA";
1276
+ inputSchema: z.ZodObject<{
1277
+ modelId: z.ZodString;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ modelId: string;
1280
+ }, {
1281
+ modelId: string;
1282
+ }>;
1283
+ outputSchema: z.ZodObject<{
1284
+ supportedUrls: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ supportedUrls: Record<string, string[]>;
1287
+ }, {
1288
+ supportedUrls: Record<string, string[]>;
1289
+ }>;
1290
+ streamable?: undefined;
1291
+ } | {
1292
+ name: "LLM_DO_STREAM";
1293
+ inputSchema: z.ZodObject<{
1294
+ modelId: z.ZodString;
1295
+ callOptions: z.ZodObject<{
1296
+ prompt: z.ZodAny;
1297
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1298
+ temperature: z.ZodOptional<z.ZodNumber>;
1299
+ topP: z.ZodOptional<z.ZodNumber>;
1300
+ topK: z.ZodOptional<z.ZodNumber>;
1301
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
1302
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
1303
+ seed: z.ZodOptional<z.ZodNumber>;
1304
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1305
+ responseFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1306
+ type: z.ZodLiteral<"text">;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ type: "text";
1309
+ }, {
1310
+ type: "text";
1311
+ }>, z.ZodObject<{
1312
+ type: z.ZodLiteral<"json">;
1313
+ schema: z.ZodOptional<z.ZodAny>;
1314
+ name: z.ZodOptional<z.ZodString>;
1315
+ description: z.ZodOptional<z.ZodString>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type: "json";
1318
+ description?: string | undefined;
1319
+ name?: string | undefined;
1320
+ schema?: any;
1321
+ }, {
1322
+ type: "json";
1323
+ description?: string | undefined;
1324
+ name?: string | undefined;
1325
+ schema?: any;
1326
+ }>]>>;
1327
+ tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1328
+ toolChoice: z.ZodOptional<z.ZodAny>;
1329
+ includeRawChunks: z.ZodOptional<z.ZodBoolean>;
1330
+ abortSignal: z.ZodOptional<z.ZodAny>;
1331
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>>;
1332
+ providerOptions: z.ZodOptional<z.ZodAny>;
1333
+ }, "strip", z.ZodTypeAny, {
1334
+ tools?: any[] | undefined;
1335
+ headers?: Record<string, string | undefined> | undefined;
1336
+ prompt?: any;
1337
+ maxOutputTokens?: number | undefined;
1338
+ temperature?: number | undefined;
1339
+ topP?: number | undefined;
1340
+ topK?: number | undefined;
1341
+ presencePenalty?: number | undefined;
1342
+ frequencyPenalty?: number | undefined;
1343
+ seed?: number | undefined;
1344
+ stopSequences?: string[] | undefined;
1345
+ responseFormat?: {
1346
+ type: "text";
1347
+ } | {
1348
+ type: "json";
1349
+ description?: string | undefined;
1350
+ name?: string | undefined;
1351
+ schema?: any;
1352
+ } | undefined;
1353
+ toolChoice?: any;
1354
+ includeRawChunks?: boolean | undefined;
1355
+ abortSignal?: any;
1356
+ providerOptions?: any;
1357
+ }, {
1358
+ tools?: any[] | undefined;
1359
+ headers?: Record<string, string | undefined> | undefined;
1360
+ prompt?: any;
1361
+ maxOutputTokens?: number | undefined;
1362
+ temperature?: number | undefined;
1363
+ topP?: number | undefined;
1364
+ topK?: number | undefined;
1365
+ presencePenalty?: number | undefined;
1366
+ frequencyPenalty?: number | undefined;
1367
+ seed?: number | undefined;
1368
+ stopSequences?: string[] | undefined;
1369
+ responseFormat?: {
1370
+ type: "text";
1371
+ } | {
1372
+ type: "json";
1373
+ description?: string | undefined;
1374
+ name?: string | undefined;
1375
+ schema?: any;
1376
+ } | undefined;
1377
+ toolChoice?: any;
1378
+ includeRawChunks?: boolean | undefined;
1379
+ abortSignal?: any;
1380
+ providerOptions?: any;
1381
+ }>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ modelId: string;
1384
+ callOptions: {
1385
+ tools?: any[] | undefined;
1386
+ headers?: Record<string, string | undefined> | undefined;
1387
+ prompt?: any;
1388
+ maxOutputTokens?: number | undefined;
1389
+ temperature?: number | undefined;
1390
+ topP?: number | undefined;
1391
+ topK?: number | undefined;
1392
+ presencePenalty?: number | undefined;
1393
+ frequencyPenalty?: number | undefined;
1394
+ seed?: number | undefined;
1395
+ stopSequences?: string[] | undefined;
1396
+ responseFormat?: {
1397
+ type: "text";
1398
+ } | {
1399
+ type: "json";
1400
+ description?: string | undefined;
1401
+ name?: string | undefined;
1402
+ schema?: any;
1403
+ } | undefined;
1404
+ toolChoice?: any;
1405
+ includeRawChunks?: boolean | undefined;
1406
+ abortSignal?: any;
1407
+ providerOptions?: any;
1408
+ };
1409
+ }, {
1410
+ modelId: string;
1411
+ callOptions: {
1412
+ tools?: any[] | undefined;
1413
+ headers?: Record<string, string | undefined> | undefined;
1414
+ prompt?: any;
1415
+ maxOutputTokens?: number | undefined;
1416
+ temperature?: number | undefined;
1417
+ topP?: number | undefined;
1418
+ topK?: number | undefined;
1419
+ presencePenalty?: number | undefined;
1420
+ frequencyPenalty?: number | undefined;
1421
+ seed?: number | undefined;
1422
+ stopSequences?: string[] | undefined;
1423
+ responseFormat?: {
1424
+ type: "text";
1425
+ } | {
1426
+ type: "json";
1427
+ description?: string | undefined;
1428
+ name?: string | undefined;
1429
+ schema?: any;
1430
+ } | undefined;
1431
+ toolChoice?: any;
1432
+ includeRawChunks?: boolean | undefined;
1433
+ abortSignal?: any;
1434
+ providerOptions?: any;
1435
+ };
1436
+ }>;
1437
+ streamable: true;
1438
+ outputSchema?: undefined;
1439
+ } | {
1440
+ name: "LLM_DO_GENERATE";
1441
+ inputSchema: z.ZodObject<{
1442
+ modelId: z.ZodString;
1443
+ callOptions: z.ZodObject<{
1444
+ prompt: z.ZodAny;
1445
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1446
+ temperature: z.ZodOptional<z.ZodNumber>;
1447
+ topP: z.ZodOptional<z.ZodNumber>;
1448
+ topK: z.ZodOptional<z.ZodNumber>;
1449
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
1450
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
1451
+ seed: z.ZodOptional<z.ZodNumber>;
1452
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1453
+ responseFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1454
+ type: z.ZodLiteral<"text">;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ type: "text";
1457
+ }, {
1458
+ type: "text";
1459
+ }>, z.ZodObject<{
1460
+ type: z.ZodLiteral<"json">;
1461
+ schema: z.ZodOptional<z.ZodAny>;
1462
+ name: z.ZodOptional<z.ZodString>;
1463
+ description: z.ZodOptional<z.ZodString>;
1464
+ }, "strip", z.ZodTypeAny, {
1465
+ type: "json";
1466
+ description?: string | undefined;
1467
+ name?: string | undefined;
1468
+ schema?: any;
1469
+ }, {
1470
+ type: "json";
1471
+ description?: string | undefined;
1472
+ name?: string | undefined;
1473
+ schema?: any;
1474
+ }>]>>;
1475
+ tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1476
+ toolChoice: z.ZodOptional<z.ZodAny>;
1477
+ includeRawChunks: z.ZodOptional<z.ZodBoolean>;
1478
+ abortSignal: z.ZodOptional<z.ZodAny>;
1479
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>>;
1480
+ providerOptions: z.ZodOptional<z.ZodAny>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ tools?: any[] | undefined;
1483
+ headers?: Record<string, string | undefined> | undefined;
1484
+ prompt?: any;
1485
+ maxOutputTokens?: number | undefined;
1486
+ temperature?: number | undefined;
1487
+ topP?: number | undefined;
1488
+ topK?: number | undefined;
1489
+ presencePenalty?: number | undefined;
1490
+ frequencyPenalty?: number | undefined;
1491
+ seed?: number | undefined;
1492
+ stopSequences?: string[] | undefined;
1493
+ responseFormat?: {
1494
+ type: "text";
1495
+ } | {
1496
+ type: "json";
1497
+ description?: string | undefined;
1498
+ name?: string | undefined;
1499
+ schema?: any;
1500
+ } | undefined;
1501
+ toolChoice?: any;
1502
+ includeRawChunks?: boolean | undefined;
1503
+ abortSignal?: any;
1504
+ providerOptions?: any;
1505
+ }, {
1506
+ tools?: any[] | undefined;
1507
+ headers?: Record<string, string | undefined> | undefined;
1508
+ prompt?: any;
1509
+ maxOutputTokens?: number | undefined;
1510
+ temperature?: number | undefined;
1511
+ topP?: number | undefined;
1512
+ topK?: number | undefined;
1513
+ presencePenalty?: number | undefined;
1514
+ frequencyPenalty?: number | undefined;
1515
+ seed?: number | undefined;
1516
+ stopSequences?: string[] | undefined;
1517
+ responseFormat?: {
1518
+ type: "text";
1519
+ } | {
1520
+ type: "json";
1521
+ description?: string | undefined;
1522
+ name?: string | undefined;
1523
+ schema?: any;
1524
+ } | undefined;
1525
+ toolChoice?: any;
1526
+ includeRawChunks?: boolean | undefined;
1527
+ abortSignal?: any;
1528
+ providerOptions?: any;
1529
+ }>;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ modelId: string;
1532
+ callOptions: {
1533
+ tools?: any[] | undefined;
1534
+ headers?: Record<string, string | undefined> | undefined;
1535
+ prompt?: any;
1536
+ maxOutputTokens?: number | undefined;
1537
+ temperature?: number | undefined;
1538
+ topP?: number | undefined;
1539
+ topK?: number | undefined;
1540
+ presencePenalty?: number | undefined;
1541
+ frequencyPenalty?: number | undefined;
1542
+ seed?: number | undefined;
1543
+ stopSequences?: string[] | undefined;
1544
+ responseFormat?: {
1545
+ type: "text";
1546
+ } | {
1547
+ type: "json";
1548
+ description?: string | undefined;
1549
+ name?: string | undefined;
1550
+ schema?: any;
1551
+ } | undefined;
1552
+ toolChoice?: any;
1553
+ includeRawChunks?: boolean | undefined;
1554
+ abortSignal?: any;
1555
+ providerOptions?: any;
1556
+ };
1557
+ }, {
1558
+ modelId: string;
1559
+ callOptions: {
1560
+ tools?: any[] | undefined;
1561
+ headers?: Record<string, string | undefined> | undefined;
1562
+ prompt?: any;
1563
+ maxOutputTokens?: number | undefined;
1564
+ temperature?: number | undefined;
1565
+ topP?: number | undefined;
1566
+ topK?: number | undefined;
1567
+ presencePenalty?: number | undefined;
1568
+ frequencyPenalty?: number | undefined;
1569
+ seed?: number | undefined;
1570
+ stopSequences?: string[] | undefined;
1571
+ responseFormat?: {
1572
+ type: "text";
1573
+ } | {
1574
+ type: "json";
1575
+ description?: string | undefined;
1576
+ name?: string | undefined;
1577
+ schema?: any;
1578
+ } | undefined;
1579
+ toolChoice?: any;
1580
+ includeRawChunks?: boolean | undefined;
1581
+ abortSignal?: any;
1582
+ providerOptions?: any;
1583
+ };
1584
+ }>;
1585
+ outputSchema: z.ZodObject<{
1586
+ content: z.ZodArray<z.ZodAny, "many">;
1587
+ finishReason: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
1588
+ usage: z.ZodEffects<z.ZodObject<{
1589
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1590
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1591
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1592
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1593
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1594
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1595
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1596
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1597
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1598
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1599
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1600
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1601
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1602
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1603
+ }, z.ZodTypeAny, "passthrough">>, {
1604
+ inputTokens: number | undefined;
1605
+ outputTokens: number | undefined;
1606
+ totalTokens: number | undefined;
1607
+ reasoningTokens: number | undefined;
1608
+ }, z.objectInputType<{
1609
+ inputTokens: z.ZodOptional<z.ZodNumber>;
1610
+ outputTokens: z.ZodOptional<z.ZodNumber>;
1611
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1612
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
1613
+ }, z.ZodTypeAny, "passthrough">>;
1614
+ providerMetadata: z.ZodOptional<z.ZodAny>;
1615
+ request: z.ZodOptional<z.ZodObject<{
1616
+ body: z.ZodOptional<z.ZodAny>;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ body?: any;
1619
+ }, {
1620
+ body?: any;
1621
+ }>>;
1622
+ response: z.ZodOptional<z.ZodObject<{
1623
+ id: z.ZodOptional<z.ZodString>;
1624
+ timestamp: z.ZodOptional<z.ZodDate>;
1625
+ modelId: z.ZodOptional<z.ZodString>;
1626
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1627
+ body: z.ZodOptional<z.ZodAny>;
1628
+ }, "strip", z.ZodTypeAny, {
1629
+ id?: string | undefined;
1630
+ headers?: Record<string, string> | undefined;
1631
+ body?: any;
1632
+ timestamp?: Date | undefined;
1633
+ modelId?: string | undefined;
1634
+ }, {
1635
+ id?: string | undefined;
1636
+ headers?: Record<string, string> | undefined;
1637
+ body?: any;
1638
+ timestamp?: Date | undefined;
1639
+ modelId?: string | undefined;
1640
+ }>>;
1641
+ warnings: z.ZodArray<z.ZodAny, "many">;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ content: any[];
1644
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
1645
+ usage: {
1646
+ inputTokens: number | undefined;
1647
+ outputTokens: number | undefined;
1648
+ totalTokens: number | undefined;
1649
+ reasoningTokens: number | undefined;
1650
+ };
1651
+ warnings: any[];
1652
+ providerMetadata?: any;
1653
+ request?: {
1654
+ body?: any;
1655
+ } | undefined;
1656
+ response?: {
1657
+ id?: string | undefined;
1658
+ headers?: Record<string, string> | undefined;
1659
+ body?: any;
1660
+ timestamp?: Date | undefined;
1661
+ modelId?: string | undefined;
1662
+ } | undefined;
1663
+ }, {
1664
+ content: any[];
1665
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
1666
+ usage: {
1667
+ inputTokens?: number | undefined;
1668
+ outputTokens?: number | undefined;
1669
+ totalTokens?: number | undefined;
1670
+ reasoningTokens?: number | undefined;
1671
+ } & {
1672
+ [k: string]: unknown;
1673
+ };
1674
+ warnings: any[];
1675
+ providerMetadata?: any;
1676
+ request?: {
1677
+ body?: any;
1678
+ } | undefined;
1679
+ response?: {
1680
+ id?: string | undefined;
1681
+ headers?: Record<string, string> | undefined;
1682
+ body?: any;
1683
+ timestamp?: Date | undefined;
1684
+ modelId?: string | undefined;
1685
+ } | undefined;
1686
+ }>;
1687
+ streamable?: undefined;
1688
+ })[];
1689
+ declare const LanguageModelBinding: {
1690
+ forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<({
1691
+ name: "COLLECTION_LLM_LIST";
1692
+ inputSchema: typeof CollectionListInputSchema;
1693
+ outputSchema: z.ZodObject<{
1694
+ items: z.ZodArray<z.ZodObject<{
1695
+ id: z.ZodString;
1696
+ title: z.ZodString;
1697
+ created_at: z.ZodString;
1698
+ updated_at: z.ZodString;
1699
+ created_by: z.ZodOptional<z.ZodString>;
1700
+ updated_by: z.ZodOptional<z.ZodString>;
1701
+ } & {
1702
+ logo: z.ZodNullable<z.ZodString>;
1703
+ description: z.ZodNullable<z.ZodString>;
1704
+ capabilities: z.ZodArray<z.ZodString, "many">;
1705
+ limits: z.ZodNullable<z.ZodObject<{
1706
+ contextWindow: z.ZodNumber;
1707
+ maxOutputTokens: z.ZodNumber;
1708
+ }, "strip", z.ZodTypeAny, {
1709
+ maxOutputTokens: number;
1710
+ contextWindow: number;
1711
+ }, {
1712
+ maxOutputTokens: number;
1713
+ contextWindow: number;
1714
+ }>>;
1715
+ costs: z.ZodNullable<z.ZodObject<{
1716
+ input: z.ZodNumber;
1717
+ output: z.ZodNumber;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ input: number;
1720
+ output: number;
1721
+ }, {
1722
+ input: number;
1723
+ output: number;
1724
+ }>>;
1725
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ id: string;
1728
+ title: string;
1729
+ created_at: string;
1730
+ updated_at: string;
1731
+ description: string | null;
1732
+ capabilities: string[];
1733
+ logo: string | null;
1734
+ limits: {
1735
+ maxOutputTokens: number;
1736
+ contextWindow: number;
1737
+ } | null;
1738
+ costs: {
1739
+ input: number;
1740
+ output: number;
1741
+ } | null;
1742
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1743
+ created_by?: string | undefined;
1744
+ updated_by?: string | undefined;
1745
+ }, {
1746
+ id: string;
1747
+ title: string;
1748
+ created_at: string;
1749
+ updated_at: string;
1750
+ description: string | null;
1751
+ capabilities: string[];
1752
+ logo: string | null;
1753
+ limits: {
1754
+ maxOutputTokens: number;
1755
+ contextWindow: number;
1756
+ } | null;
1757
+ costs: {
1758
+ input: number;
1759
+ output: number;
1760
+ } | null;
1761
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1762
+ created_by?: string | undefined;
1763
+ updated_by?: string | undefined;
1764
+ }>, "many">;
1765
+ totalCount: z.ZodOptional<z.ZodNumber>;
1766
+ hasMore: z.ZodOptional<z.ZodBoolean>;
1767
+ }, "strip", z.ZodTypeAny, {
1768
+ items: {
1769
+ id: string;
1770
+ title: string;
1771
+ created_at: string;
1772
+ updated_at: string;
1773
+ description: string | null;
1774
+ capabilities: string[];
1775
+ logo: string | null;
1776
+ limits: {
1777
+ maxOutputTokens: number;
1778
+ contextWindow: number;
1779
+ } | null;
1780
+ costs: {
1781
+ input: number;
1782
+ output: number;
1783
+ } | null;
1784
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1785
+ created_by?: string | undefined;
1786
+ updated_by?: string | undefined;
1787
+ }[];
1788
+ totalCount?: number | undefined;
1789
+ hasMore?: boolean | undefined;
1790
+ }, {
1791
+ items: {
1792
+ id: string;
1793
+ title: string;
1794
+ created_at: string;
1795
+ updated_at: string;
1796
+ description: string | null;
1797
+ capabilities: string[];
1798
+ logo: string | null;
1799
+ limits: {
1800
+ maxOutputTokens: number;
1801
+ contextWindow: number;
1802
+ } | null;
1803
+ costs: {
1804
+ input: number;
1805
+ output: number;
1806
+ } | null;
1807
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1808
+ created_by?: string | undefined;
1809
+ updated_by?: string | undefined;
1810
+ }[];
1811
+ totalCount?: number | undefined;
1812
+ hasMore?: boolean | undefined;
1813
+ }>;
1814
+ } | {
1815
+ name: "COLLECTION_LLM_GET";
1816
+ inputSchema: typeof CollectionGetInputSchema;
1817
+ outputSchema: z.ZodObject<{
1818
+ item: z.ZodNullable<z.ZodObject<{
1819
+ id: z.ZodString;
1820
+ title: z.ZodString;
1821
+ created_at: z.ZodString;
1822
+ updated_at: z.ZodString;
1823
+ created_by: z.ZodOptional<z.ZodString>;
1824
+ updated_by: z.ZodOptional<z.ZodString>;
1825
+ } & {
1826
+ logo: z.ZodNullable<z.ZodString>;
1827
+ description: z.ZodNullable<z.ZodString>;
1828
+ capabilities: z.ZodArray<z.ZodString, "many">;
1829
+ limits: z.ZodNullable<z.ZodObject<{
1830
+ contextWindow: z.ZodNumber;
1831
+ maxOutputTokens: z.ZodNumber;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ maxOutputTokens: number;
1834
+ contextWindow: number;
1835
+ }, {
1836
+ maxOutputTokens: number;
1837
+ contextWindow: number;
1838
+ }>>;
1839
+ costs: z.ZodNullable<z.ZodObject<{
1840
+ input: z.ZodNumber;
1841
+ output: z.ZodNumber;
1842
+ }, "strip", z.ZodTypeAny, {
1843
+ input: number;
1844
+ output: number;
1845
+ }, {
1846
+ input: number;
1847
+ output: number;
1848
+ }>>;
1849
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1850
+ }, "strip", z.ZodTypeAny, {
1851
+ id: string;
1852
+ title: string;
1853
+ created_at: string;
1854
+ updated_at: string;
1855
+ description: string | null;
1856
+ capabilities: string[];
1857
+ logo: string | null;
1858
+ limits: {
1859
+ maxOutputTokens: number;
1860
+ contextWindow: number;
1861
+ } | null;
1862
+ costs: {
1863
+ input: number;
1864
+ output: number;
1865
+ } | null;
1866
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1867
+ created_by?: string | undefined;
1868
+ updated_by?: string | undefined;
1869
+ }, {
1870
+ id: string;
1871
+ title: string;
1872
+ created_at: string;
1873
+ updated_at: string;
1874
+ description: string | null;
1875
+ capabilities: string[];
1876
+ logo: string | null;
1877
+ limits: {
1878
+ maxOutputTokens: number;
1879
+ contextWindow: number;
1880
+ } | null;
1881
+ costs: {
1882
+ input: number;
1883
+ output: number;
1884
+ } | null;
1885
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1886
+ created_by?: string | undefined;
1887
+ updated_by?: string | undefined;
1888
+ }>>;
1889
+ }, "strip", z.ZodTypeAny, {
1890
+ item: {
1891
+ id: string;
1892
+ title: string;
1893
+ created_at: string;
1894
+ updated_at: string;
1895
+ description: string | null;
1896
+ capabilities: string[];
1897
+ logo: string | null;
1898
+ limits: {
1899
+ maxOutputTokens: number;
1900
+ contextWindow: number;
1901
+ } | null;
1902
+ costs: {
1903
+ input: number;
1904
+ output: number;
1905
+ } | null;
1906
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1907
+ created_by?: string | undefined;
1908
+ updated_by?: string | undefined;
1909
+ } | null;
1910
+ }, {
1911
+ item: {
1912
+ id: string;
1913
+ title: string;
1914
+ created_at: string;
1915
+ updated_at: string;
1916
+ description: string | null;
1917
+ capabilities: string[];
1918
+ logo: string | null;
1919
+ limits: {
1920
+ maxOutputTokens: number;
1921
+ contextWindow: number;
1922
+ } | null;
1923
+ costs: {
1924
+ input: number;
1925
+ output: number;
1926
+ } | null;
1927
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1928
+ created_by?: string | undefined;
1929
+ updated_by?: string | undefined;
1930
+ } | null;
1931
+ }>;
1932
+ } | {
1933
+ name: "COLLECTION_LLM_CREATE";
1934
+ inputSchema: z.ZodObject<{
1935
+ data: z.ZodObject<{
1936
+ id: z.ZodString;
1937
+ title: z.ZodString;
1938
+ created_at: z.ZodString;
1939
+ updated_at: z.ZodString;
1940
+ created_by: z.ZodOptional<z.ZodString>;
1941
+ updated_by: z.ZodOptional<z.ZodString>;
1942
+ } & {
1943
+ logo: z.ZodNullable<z.ZodString>;
1944
+ description: z.ZodNullable<z.ZodString>;
1945
+ capabilities: z.ZodArray<z.ZodString, "many">;
1946
+ limits: z.ZodNullable<z.ZodObject<{
1947
+ contextWindow: z.ZodNumber;
1948
+ maxOutputTokens: z.ZodNumber;
1949
+ }, "strip", z.ZodTypeAny, {
1950
+ maxOutputTokens: number;
1951
+ contextWindow: number;
1952
+ }, {
1953
+ maxOutputTokens: number;
1954
+ contextWindow: number;
1955
+ }>>;
1956
+ costs: z.ZodNullable<z.ZodObject<{
1957
+ input: z.ZodNumber;
1958
+ output: z.ZodNumber;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ input: number;
1961
+ output: number;
1962
+ }, {
1963
+ input: number;
1964
+ output: number;
1965
+ }>>;
1966
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ id: string;
1969
+ title: string;
1970
+ created_at: string;
1971
+ updated_at: string;
1972
+ description: string | null;
1973
+ capabilities: string[];
1974
+ logo: string | null;
1975
+ limits: {
1976
+ maxOutputTokens: number;
1977
+ contextWindow: number;
1978
+ } | null;
1979
+ costs: {
1980
+ input: number;
1981
+ output: number;
1982
+ } | null;
1983
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1984
+ created_by?: string | undefined;
1985
+ updated_by?: string | undefined;
1986
+ }, {
1987
+ id: string;
1988
+ title: string;
1989
+ created_at: string;
1990
+ updated_at: string;
1991
+ description: string | null;
1992
+ capabilities: string[];
1993
+ logo: string | null;
1994
+ limits: {
1995
+ maxOutputTokens: number;
1996
+ contextWindow: number;
1997
+ } | null;
1998
+ costs: {
1999
+ input: number;
2000
+ output: number;
2001
+ } | null;
2002
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2003
+ created_by?: string | undefined;
2004
+ updated_by?: string | undefined;
2005
+ }>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ data: {
2008
+ id: string;
2009
+ title: string;
2010
+ created_at: string;
2011
+ updated_at: string;
2012
+ description: string | null;
2013
+ capabilities: string[];
2014
+ logo: string | null;
2015
+ limits: {
2016
+ maxOutputTokens: number;
2017
+ contextWindow: number;
2018
+ } | null;
2019
+ costs: {
2020
+ input: number;
2021
+ output: number;
2022
+ } | null;
2023
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2024
+ created_by?: string | undefined;
2025
+ updated_by?: string | undefined;
2026
+ };
2027
+ }, {
2028
+ data: {
2029
+ id: string;
2030
+ title: string;
2031
+ created_at: string;
2032
+ updated_at: string;
2033
+ description: string | null;
2034
+ capabilities: string[];
2035
+ logo: string | null;
2036
+ limits: {
2037
+ maxOutputTokens: number;
2038
+ contextWindow: number;
2039
+ } | null;
2040
+ costs: {
2041
+ input: number;
2042
+ output: number;
2043
+ } | null;
2044
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2045
+ created_by?: string | undefined;
2046
+ updated_by?: string | undefined;
2047
+ };
2048
+ }>;
2049
+ outputSchema: z.ZodObject<{
2050
+ item: z.ZodObject<{
2051
+ id: z.ZodString;
2052
+ title: z.ZodString;
2053
+ created_at: z.ZodString;
2054
+ updated_at: z.ZodString;
2055
+ created_by: z.ZodOptional<z.ZodString>;
2056
+ updated_by: z.ZodOptional<z.ZodString>;
2057
+ } & {
2058
+ logo: z.ZodNullable<z.ZodString>;
2059
+ description: z.ZodNullable<z.ZodString>;
2060
+ capabilities: z.ZodArray<z.ZodString, "many">;
2061
+ limits: z.ZodNullable<z.ZodObject<{
2062
+ contextWindow: z.ZodNumber;
2063
+ maxOutputTokens: z.ZodNumber;
2064
+ }, "strip", z.ZodTypeAny, {
2065
+ maxOutputTokens: number;
2066
+ contextWindow: number;
2067
+ }, {
2068
+ maxOutputTokens: number;
2069
+ contextWindow: number;
2070
+ }>>;
2071
+ costs: z.ZodNullable<z.ZodObject<{
2072
+ input: z.ZodNumber;
2073
+ output: z.ZodNumber;
2074
+ }, "strip", z.ZodTypeAny, {
2075
+ input: number;
2076
+ output: number;
2077
+ }, {
2078
+ input: number;
2079
+ output: number;
2080
+ }>>;
2081
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ id: string;
2084
+ title: string;
2085
+ created_at: string;
2086
+ updated_at: string;
2087
+ description: string | null;
2088
+ capabilities: string[];
2089
+ logo: string | null;
2090
+ limits: {
2091
+ maxOutputTokens: number;
2092
+ contextWindow: number;
2093
+ } | null;
2094
+ costs: {
2095
+ input: number;
2096
+ output: number;
2097
+ } | null;
2098
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2099
+ created_by?: string | undefined;
2100
+ updated_by?: string | undefined;
2101
+ }, {
2102
+ id: string;
2103
+ title: string;
2104
+ created_at: string;
2105
+ updated_at: string;
2106
+ description: string | null;
2107
+ capabilities: string[];
2108
+ logo: string | null;
2109
+ limits: {
2110
+ maxOutputTokens: number;
2111
+ contextWindow: number;
2112
+ } | null;
2113
+ costs: {
2114
+ input: number;
2115
+ output: number;
2116
+ } | null;
2117
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2118
+ created_by?: string | undefined;
2119
+ updated_by?: string | undefined;
2120
+ }>;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ item: {
2123
+ id: string;
2124
+ title: string;
2125
+ created_at: string;
2126
+ updated_at: string;
2127
+ description: string | null;
2128
+ capabilities: string[];
2129
+ logo: string | null;
2130
+ limits: {
2131
+ maxOutputTokens: number;
2132
+ contextWindow: number;
2133
+ } | null;
2134
+ costs: {
2135
+ input: number;
2136
+ output: number;
2137
+ } | null;
2138
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2139
+ created_by?: string | undefined;
2140
+ updated_by?: string | undefined;
2141
+ };
2142
+ }, {
2143
+ item: {
2144
+ id: string;
2145
+ title: string;
2146
+ created_at: string;
2147
+ updated_at: string;
2148
+ description: string | null;
2149
+ capabilities: string[];
2150
+ logo: string | null;
2151
+ limits: {
2152
+ maxOutputTokens: number;
2153
+ contextWindow: number;
2154
+ } | null;
2155
+ costs: {
2156
+ input: number;
2157
+ output: number;
2158
+ } | null;
2159
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2160
+ created_by?: string | undefined;
2161
+ updated_by?: string | undefined;
2162
+ };
2163
+ }>;
2164
+ opt: true;
2165
+ } | {
2166
+ name: "COLLECTION_LLM_UPDATE";
2167
+ inputSchema: z.ZodObject<{
2168
+ id: z.ZodString;
2169
+ data: z.ZodObject<{
2170
+ [x: string]: z.ZodOptional<any>;
2171
+ }, any, any, {
2172
+ [x: string]: any;
2173
+ }, {
2174
+ [x: string]: any;
2175
+ }>;
2176
+ }, "strip", z.ZodTypeAny, {
2177
+ id: string;
2178
+ data: {
2179
+ [x: string]: any;
2180
+ };
2181
+ }, {
2182
+ id: string;
2183
+ data: {
2184
+ [x: string]: any;
2185
+ };
2186
+ }>;
2187
+ outputSchema: z.ZodObject<{
2188
+ item: z.ZodObject<{
2189
+ id: z.ZodString;
2190
+ title: z.ZodString;
2191
+ created_at: z.ZodString;
2192
+ updated_at: z.ZodString;
2193
+ created_by: z.ZodOptional<z.ZodString>;
2194
+ updated_by: z.ZodOptional<z.ZodString>;
2195
+ } & {
2196
+ logo: z.ZodNullable<z.ZodString>;
2197
+ description: z.ZodNullable<z.ZodString>;
2198
+ capabilities: z.ZodArray<z.ZodString, "many">;
2199
+ limits: z.ZodNullable<z.ZodObject<{
2200
+ contextWindow: z.ZodNumber;
2201
+ maxOutputTokens: z.ZodNumber;
2202
+ }, "strip", z.ZodTypeAny, {
2203
+ maxOutputTokens: number;
2204
+ contextWindow: number;
2205
+ }, {
2206
+ maxOutputTokens: number;
2207
+ contextWindow: number;
2208
+ }>>;
2209
+ costs: z.ZodNullable<z.ZodObject<{
2210
+ input: z.ZodNumber;
2211
+ output: z.ZodNumber;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ input: number;
2214
+ output: number;
2215
+ }, {
2216
+ input: number;
2217
+ output: number;
2218
+ }>>;
2219
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
2220
+ }, "strip", z.ZodTypeAny, {
2221
+ id: string;
2222
+ title: string;
2223
+ created_at: string;
2224
+ updated_at: string;
2225
+ description: string | null;
2226
+ capabilities: string[];
2227
+ logo: string | null;
2228
+ limits: {
2229
+ maxOutputTokens: number;
2230
+ contextWindow: number;
2231
+ } | null;
2232
+ costs: {
2233
+ input: number;
2234
+ output: number;
2235
+ } | null;
2236
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2237
+ created_by?: string | undefined;
2238
+ updated_by?: string | undefined;
2239
+ }, {
2240
+ id: string;
2241
+ title: string;
2242
+ created_at: string;
2243
+ updated_at: string;
2244
+ description: string | null;
2245
+ capabilities: string[];
2246
+ logo: string | null;
2247
+ limits: {
2248
+ maxOutputTokens: number;
2249
+ contextWindow: number;
2250
+ } | null;
2251
+ costs: {
2252
+ input: number;
2253
+ output: number;
2254
+ } | null;
2255
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2256
+ created_by?: string | undefined;
2257
+ updated_by?: string | undefined;
2258
+ }>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ item: {
2261
+ id: string;
2262
+ title: string;
2263
+ created_at: string;
2264
+ updated_at: string;
2265
+ description: string | null;
2266
+ capabilities: string[];
2267
+ logo: string | null;
2268
+ limits: {
2269
+ maxOutputTokens: number;
2270
+ contextWindow: number;
2271
+ } | null;
2272
+ costs: {
2273
+ input: number;
2274
+ output: number;
2275
+ } | null;
2276
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2277
+ created_by?: string | undefined;
2278
+ updated_by?: string | undefined;
2279
+ };
2280
+ }, {
2281
+ item: {
2282
+ id: string;
2283
+ title: string;
2284
+ created_at: string;
2285
+ updated_at: string;
2286
+ description: string | null;
2287
+ capabilities: string[];
2288
+ logo: string | null;
2289
+ limits: {
2290
+ maxOutputTokens: number;
2291
+ contextWindow: number;
2292
+ } | null;
2293
+ costs: {
2294
+ input: number;
2295
+ output: number;
2296
+ } | null;
2297
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2298
+ created_by?: string | undefined;
2299
+ updated_by?: string | undefined;
2300
+ };
2301
+ }>;
2302
+ opt: true;
2303
+ } | {
2304
+ name: "COLLECTION_LLM_DELETE";
2305
+ inputSchema: typeof CollectionDeleteInputSchema;
2306
+ outputSchema: z.ZodObject<{
2307
+ item: z.ZodObject<{
2308
+ id: z.ZodString;
2309
+ title: z.ZodString;
2310
+ created_at: z.ZodString;
2311
+ updated_at: z.ZodString;
2312
+ created_by: z.ZodOptional<z.ZodString>;
2313
+ updated_by: z.ZodOptional<z.ZodString>;
2314
+ } & {
2315
+ logo: z.ZodNullable<z.ZodString>;
2316
+ description: z.ZodNullable<z.ZodString>;
2317
+ capabilities: z.ZodArray<z.ZodString, "many">;
2318
+ limits: z.ZodNullable<z.ZodObject<{
2319
+ contextWindow: z.ZodNumber;
2320
+ maxOutputTokens: z.ZodNumber;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ maxOutputTokens: number;
2323
+ contextWindow: number;
2324
+ }, {
2325
+ maxOutputTokens: number;
2326
+ contextWindow: number;
2327
+ }>>;
2328
+ costs: z.ZodNullable<z.ZodObject<{
2329
+ input: z.ZodNumber;
2330
+ output: z.ZodNumber;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ input: number;
2333
+ output: number;
2334
+ }, {
2335
+ input: number;
2336
+ output: number;
2337
+ }>>;
2338
+ provider: z.ZodNullable<z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ id: string;
2341
+ title: string;
2342
+ created_at: string;
2343
+ updated_at: string;
2344
+ description: string | null;
2345
+ capabilities: string[];
2346
+ logo: string | null;
2347
+ limits: {
2348
+ maxOutputTokens: number;
2349
+ contextWindow: number;
2350
+ } | null;
2351
+ costs: {
2352
+ input: number;
2353
+ output: number;
2354
+ } | null;
2355
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2356
+ created_by?: string | undefined;
2357
+ updated_by?: string | undefined;
2358
+ }, {
2359
+ id: string;
2360
+ title: string;
2361
+ created_at: string;
2362
+ updated_at: string;
2363
+ description: string | null;
2364
+ capabilities: string[];
2365
+ logo: string | null;
2366
+ limits: {
2367
+ maxOutputTokens: number;
2368
+ contextWindow: number;
2369
+ } | null;
2370
+ costs: {
2371
+ input: number;
2372
+ output: number;
2373
+ } | null;
2374
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2375
+ created_by?: string | undefined;
2376
+ updated_by?: string | undefined;
2377
+ }>;
2378
+ }, "strip", z.ZodTypeAny, {
2379
+ item: {
2380
+ id: string;
2381
+ title: string;
2382
+ created_at: string;
2383
+ updated_at: string;
2384
+ description: string | null;
2385
+ capabilities: string[];
2386
+ logo: string | null;
2387
+ limits: {
2388
+ maxOutputTokens: number;
2389
+ contextWindow: number;
2390
+ } | null;
2391
+ costs: {
2392
+ input: number;
2393
+ output: number;
2394
+ } | null;
2395
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2396
+ created_by?: string | undefined;
2397
+ updated_by?: string | undefined;
2398
+ };
2399
+ }, {
2400
+ item: {
2401
+ id: string;
2402
+ title: string;
2403
+ created_at: string;
2404
+ updated_at: string;
2405
+ description: string | null;
2406
+ capabilities: string[];
2407
+ logo: string | null;
2408
+ limits: {
2409
+ maxOutputTokens: number;
2410
+ contextWindow: number;
2411
+ } | null;
2412
+ costs: {
2413
+ input: number;
2414
+ output: number;
2415
+ } | null;
2416
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
2417
+ created_by?: string | undefined;
2418
+ updated_by?: string | undefined;
2419
+ };
2420
+ }>;
2421
+ opt: true;
2422
+ } | {
2423
+ name: "LLM_METADATA";
2424
+ inputSchema: z.ZodObject<{
2425
+ modelId: z.ZodString;
2426
+ }, "strip", z.ZodTypeAny, {
2427
+ modelId: string;
2428
+ }, {
2429
+ modelId: string;
2430
+ }>;
2431
+ outputSchema: z.ZodObject<{
2432
+ supportedUrls: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
2433
+ }, "strip", z.ZodTypeAny, {
2434
+ supportedUrls: Record<string, string[]>;
2435
+ }, {
2436
+ supportedUrls: Record<string, string[]>;
2437
+ }>;
2438
+ streamable?: undefined;
2439
+ } | {
2440
+ name: "LLM_DO_STREAM";
2441
+ inputSchema: z.ZodObject<{
2442
+ modelId: z.ZodString;
2443
+ callOptions: z.ZodObject<{
2444
+ prompt: z.ZodAny;
2445
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2446
+ temperature: z.ZodOptional<z.ZodNumber>;
2447
+ topP: z.ZodOptional<z.ZodNumber>;
2448
+ topK: z.ZodOptional<z.ZodNumber>;
2449
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
2450
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
2451
+ seed: z.ZodOptional<z.ZodNumber>;
2452
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2453
+ responseFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2454
+ type: z.ZodLiteral<"text">;
2455
+ }, "strip", z.ZodTypeAny, {
2456
+ type: "text";
2457
+ }, {
2458
+ type: "text";
2459
+ }>, z.ZodObject<{
2460
+ type: z.ZodLiteral<"json">;
2461
+ schema: z.ZodOptional<z.ZodAny>;
2462
+ name: z.ZodOptional<z.ZodString>;
2463
+ description: z.ZodOptional<z.ZodString>;
2464
+ }, "strip", z.ZodTypeAny, {
2465
+ type: "json";
2466
+ description?: string | undefined;
2467
+ name?: string | undefined;
2468
+ schema?: any;
2469
+ }, {
2470
+ type: "json";
2471
+ description?: string | undefined;
2472
+ name?: string | undefined;
2473
+ schema?: any;
2474
+ }>]>>;
2475
+ tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2476
+ toolChoice: z.ZodOptional<z.ZodAny>;
2477
+ includeRawChunks: z.ZodOptional<z.ZodBoolean>;
2478
+ abortSignal: z.ZodOptional<z.ZodAny>;
2479
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>>;
2480
+ providerOptions: z.ZodOptional<z.ZodAny>;
2481
+ }, "strip", z.ZodTypeAny, {
2482
+ tools?: any[] | undefined;
2483
+ headers?: Record<string, string | undefined> | undefined;
2484
+ prompt?: any;
2485
+ maxOutputTokens?: number | undefined;
2486
+ temperature?: number | undefined;
2487
+ topP?: number | undefined;
2488
+ topK?: number | undefined;
2489
+ presencePenalty?: number | undefined;
2490
+ frequencyPenalty?: number | undefined;
2491
+ seed?: number | undefined;
2492
+ stopSequences?: string[] | undefined;
2493
+ responseFormat?: {
2494
+ type: "text";
2495
+ } | {
2496
+ type: "json";
2497
+ description?: string | undefined;
2498
+ name?: string | undefined;
2499
+ schema?: any;
2500
+ } | undefined;
2501
+ toolChoice?: any;
2502
+ includeRawChunks?: boolean | undefined;
2503
+ abortSignal?: any;
2504
+ providerOptions?: any;
2505
+ }, {
2506
+ tools?: any[] | undefined;
2507
+ headers?: Record<string, string | undefined> | undefined;
2508
+ prompt?: any;
2509
+ maxOutputTokens?: number | undefined;
2510
+ temperature?: number | undefined;
2511
+ topP?: number | undefined;
2512
+ topK?: number | undefined;
2513
+ presencePenalty?: number | undefined;
2514
+ frequencyPenalty?: number | undefined;
2515
+ seed?: number | undefined;
2516
+ stopSequences?: string[] | undefined;
2517
+ responseFormat?: {
2518
+ type: "text";
2519
+ } | {
2520
+ type: "json";
2521
+ description?: string | undefined;
2522
+ name?: string | undefined;
2523
+ schema?: any;
2524
+ } | undefined;
2525
+ toolChoice?: any;
2526
+ includeRawChunks?: boolean | undefined;
2527
+ abortSignal?: any;
2528
+ providerOptions?: any;
2529
+ }>;
2530
+ }, "strip", z.ZodTypeAny, {
2531
+ modelId: string;
2532
+ callOptions: {
2533
+ tools?: any[] | undefined;
2534
+ headers?: Record<string, string | undefined> | undefined;
2535
+ prompt?: any;
2536
+ maxOutputTokens?: number | undefined;
2537
+ temperature?: number | undefined;
2538
+ topP?: number | undefined;
2539
+ topK?: number | undefined;
2540
+ presencePenalty?: number | undefined;
2541
+ frequencyPenalty?: number | undefined;
2542
+ seed?: number | undefined;
2543
+ stopSequences?: string[] | undefined;
2544
+ responseFormat?: {
2545
+ type: "text";
2546
+ } | {
2547
+ type: "json";
2548
+ description?: string | undefined;
2549
+ name?: string | undefined;
2550
+ schema?: any;
2551
+ } | undefined;
2552
+ toolChoice?: any;
2553
+ includeRawChunks?: boolean | undefined;
2554
+ abortSignal?: any;
2555
+ providerOptions?: any;
2556
+ };
2557
+ }, {
2558
+ modelId: string;
2559
+ callOptions: {
2560
+ tools?: any[] | undefined;
2561
+ headers?: Record<string, string | undefined> | undefined;
2562
+ prompt?: any;
2563
+ maxOutputTokens?: number | undefined;
2564
+ temperature?: number | undefined;
2565
+ topP?: number | undefined;
2566
+ topK?: number | undefined;
2567
+ presencePenalty?: number | undefined;
2568
+ frequencyPenalty?: number | undefined;
2569
+ seed?: number | undefined;
2570
+ stopSequences?: string[] | undefined;
2571
+ responseFormat?: {
2572
+ type: "text";
2573
+ } | {
2574
+ type: "json";
2575
+ description?: string | undefined;
2576
+ name?: string | undefined;
2577
+ schema?: any;
2578
+ } | undefined;
2579
+ toolChoice?: any;
2580
+ includeRawChunks?: boolean | undefined;
2581
+ abortSignal?: any;
2582
+ providerOptions?: any;
2583
+ };
2584
+ }>;
2585
+ streamable: true;
2586
+ outputSchema?: undefined;
2587
+ } | {
2588
+ name: "LLM_DO_GENERATE";
2589
+ inputSchema: z.ZodObject<{
2590
+ modelId: z.ZodString;
2591
+ callOptions: z.ZodObject<{
2592
+ prompt: z.ZodAny;
2593
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2594
+ temperature: z.ZodOptional<z.ZodNumber>;
2595
+ topP: z.ZodOptional<z.ZodNumber>;
2596
+ topK: z.ZodOptional<z.ZodNumber>;
2597
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
2598
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
2599
+ seed: z.ZodOptional<z.ZodNumber>;
2600
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2601
+ responseFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2602
+ type: z.ZodLiteral<"text">;
2603
+ }, "strip", z.ZodTypeAny, {
2604
+ type: "text";
2605
+ }, {
2606
+ type: "text";
2607
+ }>, z.ZodObject<{
2608
+ type: z.ZodLiteral<"json">;
2609
+ schema: z.ZodOptional<z.ZodAny>;
2610
+ name: z.ZodOptional<z.ZodString>;
2611
+ description: z.ZodOptional<z.ZodString>;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ type: "json";
2614
+ description?: string | undefined;
2615
+ name?: string | undefined;
2616
+ schema?: any;
2617
+ }, {
2618
+ type: "json";
2619
+ description?: string | undefined;
2620
+ name?: string | undefined;
2621
+ schema?: any;
2622
+ }>]>>;
2623
+ tools: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2624
+ toolChoice: z.ZodOptional<z.ZodAny>;
2625
+ includeRawChunks: z.ZodOptional<z.ZodBoolean>;
2626
+ abortSignal: z.ZodOptional<z.ZodAny>;
2627
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>>;
2628
+ providerOptions: z.ZodOptional<z.ZodAny>;
2629
+ }, "strip", z.ZodTypeAny, {
2630
+ tools?: any[] | undefined;
2631
+ headers?: Record<string, string | undefined> | undefined;
2632
+ prompt?: any;
2633
+ maxOutputTokens?: number | undefined;
2634
+ temperature?: number | undefined;
2635
+ topP?: number | undefined;
2636
+ topK?: number | undefined;
2637
+ presencePenalty?: number | undefined;
2638
+ frequencyPenalty?: number | undefined;
2639
+ seed?: number | undefined;
2640
+ stopSequences?: string[] | undefined;
2641
+ responseFormat?: {
2642
+ type: "text";
2643
+ } | {
2644
+ type: "json";
2645
+ description?: string | undefined;
2646
+ name?: string | undefined;
2647
+ schema?: any;
2648
+ } | undefined;
2649
+ toolChoice?: any;
2650
+ includeRawChunks?: boolean | undefined;
2651
+ abortSignal?: any;
2652
+ providerOptions?: any;
2653
+ }, {
2654
+ tools?: any[] | undefined;
2655
+ headers?: Record<string, string | undefined> | undefined;
2656
+ prompt?: any;
2657
+ maxOutputTokens?: number | undefined;
2658
+ temperature?: number | undefined;
2659
+ topP?: number | undefined;
2660
+ topK?: number | undefined;
2661
+ presencePenalty?: number | undefined;
2662
+ frequencyPenalty?: number | undefined;
2663
+ seed?: number | undefined;
2664
+ stopSequences?: string[] | undefined;
2665
+ responseFormat?: {
2666
+ type: "text";
2667
+ } | {
2668
+ type: "json";
2669
+ description?: string | undefined;
2670
+ name?: string | undefined;
2671
+ schema?: any;
2672
+ } | undefined;
2673
+ toolChoice?: any;
2674
+ includeRawChunks?: boolean | undefined;
2675
+ abortSignal?: any;
2676
+ providerOptions?: any;
2677
+ }>;
2678
+ }, "strip", z.ZodTypeAny, {
2679
+ modelId: string;
2680
+ callOptions: {
2681
+ tools?: any[] | undefined;
2682
+ headers?: Record<string, string | undefined> | undefined;
2683
+ prompt?: any;
2684
+ maxOutputTokens?: number | undefined;
2685
+ temperature?: number | undefined;
2686
+ topP?: number | undefined;
2687
+ topK?: number | undefined;
2688
+ presencePenalty?: number | undefined;
2689
+ frequencyPenalty?: number | undefined;
2690
+ seed?: number | undefined;
2691
+ stopSequences?: string[] | undefined;
2692
+ responseFormat?: {
2693
+ type: "text";
2694
+ } | {
2695
+ type: "json";
2696
+ description?: string | undefined;
2697
+ name?: string | undefined;
2698
+ schema?: any;
2699
+ } | undefined;
2700
+ toolChoice?: any;
2701
+ includeRawChunks?: boolean | undefined;
2702
+ abortSignal?: any;
2703
+ providerOptions?: any;
2704
+ };
2705
+ }, {
2706
+ modelId: string;
2707
+ callOptions: {
2708
+ tools?: any[] | undefined;
2709
+ headers?: Record<string, string | undefined> | undefined;
2710
+ prompt?: any;
2711
+ maxOutputTokens?: number | undefined;
2712
+ temperature?: number | undefined;
2713
+ topP?: number | undefined;
2714
+ topK?: number | undefined;
2715
+ presencePenalty?: number | undefined;
2716
+ frequencyPenalty?: number | undefined;
2717
+ seed?: number | undefined;
2718
+ stopSequences?: string[] | undefined;
2719
+ responseFormat?: {
2720
+ type: "text";
2721
+ } | {
2722
+ type: "json";
2723
+ description?: string | undefined;
2724
+ name?: string | undefined;
2725
+ schema?: any;
2726
+ } | undefined;
2727
+ toolChoice?: any;
2728
+ includeRawChunks?: boolean | undefined;
2729
+ abortSignal?: any;
2730
+ providerOptions?: any;
2731
+ };
2732
+ }>;
2733
+ outputSchema: z.ZodObject<{
2734
+ content: z.ZodArray<z.ZodAny, "many">;
2735
+ finishReason: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
2736
+ usage: z.ZodEffects<z.ZodObject<{
2737
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2738
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2739
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2740
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2741
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2742
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2743
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2744
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2745
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2746
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2747
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2748
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2749
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2750
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2751
+ }, z.ZodTypeAny, "passthrough">>, {
2752
+ inputTokens: number | undefined;
2753
+ outputTokens: number | undefined;
2754
+ totalTokens: number | undefined;
2755
+ reasoningTokens: number | undefined;
2756
+ }, z.objectInputType<{
2757
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2758
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2759
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2760
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2761
+ }, z.ZodTypeAny, "passthrough">>;
2762
+ providerMetadata: z.ZodOptional<z.ZodAny>;
2763
+ request: z.ZodOptional<z.ZodObject<{
2764
+ body: z.ZodOptional<z.ZodAny>;
2765
+ }, "strip", z.ZodTypeAny, {
2766
+ body?: any;
2767
+ }, {
2768
+ body?: any;
2769
+ }>>;
2770
+ response: z.ZodOptional<z.ZodObject<{
2771
+ id: z.ZodOptional<z.ZodString>;
2772
+ timestamp: z.ZodOptional<z.ZodDate>;
2773
+ modelId: z.ZodOptional<z.ZodString>;
2774
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2775
+ body: z.ZodOptional<z.ZodAny>;
2776
+ }, "strip", z.ZodTypeAny, {
2777
+ id?: string | undefined;
2778
+ headers?: Record<string, string> | undefined;
2779
+ body?: any;
2780
+ timestamp?: Date | undefined;
2781
+ modelId?: string | undefined;
2782
+ }, {
2783
+ id?: string | undefined;
2784
+ headers?: Record<string, string> | undefined;
2785
+ body?: any;
2786
+ timestamp?: Date | undefined;
2787
+ modelId?: string | undefined;
2788
+ }>>;
2789
+ warnings: z.ZodArray<z.ZodAny, "many">;
2790
+ }, "strip", z.ZodTypeAny, {
2791
+ content: any[];
2792
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
2793
+ usage: {
2794
+ inputTokens: number | undefined;
2795
+ outputTokens: number | undefined;
2796
+ totalTokens: number | undefined;
2797
+ reasoningTokens: number | undefined;
2798
+ };
2799
+ warnings: any[];
2800
+ providerMetadata?: any;
2801
+ request?: {
2802
+ body?: any;
2803
+ } | undefined;
2804
+ response?: {
2805
+ id?: string | undefined;
2806
+ headers?: Record<string, string> | undefined;
2807
+ body?: any;
2808
+ timestamp?: Date | undefined;
2809
+ modelId?: string | undefined;
2810
+ } | undefined;
2811
+ }, {
2812
+ content: any[];
2813
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
2814
+ usage: {
2815
+ inputTokens?: number | undefined;
2816
+ outputTokens?: number | undefined;
2817
+ totalTokens?: number | undefined;
2818
+ reasoningTokens?: number | undefined;
2819
+ } & {
2820
+ [k: string]: unknown;
2821
+ };
2822
+ warnings: any[];
2823
+ providerMetadata?: any;
2824
+ request?: {
2825
+ body?: any;
2826
+ } | undefined;
2827
+ response?: {
2828
+ id?: string | undefined;
2829
+ headers?: Record<string, string> | undefined;
2830
+ body?: any;
2831
+ timestamp?: Date | undefined;
2832
+ modelId?: string | undefined;
2833
+ } | undefined;
2834
+ }>;
2835
+ streamable?: undefined;
2836
+ })[]>;
2837
+ isImplementedBy: (tools: ToolWithSchemas[]) => Promise<boolean>;
2838
+ };
2839
+
2840
+ export { LANGUAGE_MODEL_BINDING, LanguageModelBinding, LanguageModelCallOptionsSchema, LanguageModelGenerateOutputSchema, LanguageModelInputSchema, LanguageModelMetadataSchema, LanguageModelStreamOutputSchema, ModelCollectionEntitySchema, ModelSchema };