@decocms/bindings 0.2.4-beta.4 → 1.0.0-test.1

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