openllmprovider 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +192 -0
  2. package/dist/auth/index.cjs +6 -0
  3. package/dist/auth/index.d.cts +3 -0
  4. package/dist/auth/index.d.mts +3 -0
  5. package/dist/auth/index.mjs +3 -0
  6. package/dist/auto-C2hXJY13.d.cts +33 -0
  7. package/dist/auto-C2hXJY13.d.cts.map +1 -0
  8. package/dist/auto-CBqNYBXs.mjs +48 -0
  9. package/dist/auto-CBqNYBXs.mjs.map +1 -0
  10. package/dist/auto-CInerwvs.d.mts +33 -0
  11. package/dist/auto-CInerwvs.d.mts.map +1 -0
  12. package/dist/auto-D77wgMqO.cjs +59 -0
  13. package/dist/auto-D77wgMqO.cjs.map +1 -0
  14. package/dist/file-DB-rxfzi.mjs +77 -0
  15. package/dist/file-DB-rxfzi.mjs.map +1 -0
  16. package/dist/file-DZ7FGcSW.cjs +73 -0
  17. package/dist/file-DZ7FGcSW.cjs.map +1 -0
  18. package/dist/index.cjs +1909 -0
  19. package/dist/index.cjs.map +1 -0
  20. package/dist/index.d.cts +1239 -0
  21. package/dist/index.d.cts.map +1 -0
  22. package/dist/index.d.mts +1241 -0
  23. package/dist/index.d.mts.map +1 -0
  24. package/dist/index.mjs +1891 -0
  25. package/dist/index.mjs.map +1 -0
  26. package/dist/logger-BsHpI_fH.mjs +11 -0
  27. package/dist/logger-BsHpI_fH.mjs.map +1 -0
  28. package/dist/logger-jRimlMFR.cjs +69 -0
  29. package/dist/logger-jRimlMFR.cjs.map +1 -0
  30. package/dist/plugin/index.cjs +29 -0
  31. package/dist/plugin/index.cjs.map +1 -0
  32. package/dist/plugin/index.d.cts +10 -0
  33. package/dist/plugin/index.d.cts.map +1 -0
  34. package/dist/plugin/index.d.mts +10 -0
  35. package/dist/plugin/index.d.mts.map +1 -0
  36. package/dist/plugin/index.mjs +25 -0
  37. package/dist/plugin/index.mjs.map +1 -0
  38. package/dist/plugin-BkeUu5LW.d.mts +46 -0
  39. package/dist/plugin-BkeUu5LW.d.mts.map +1 -0
  40. package/dist/plugin-wK7RmJhZ.d.cts +46 -0
  41. package/dist/plugin-wK7RmJhZ.d.cts.map +1 -0
  42. package/dist/resolver-BA7LWSJO.mjs +645 -0
  43. package/dist/resolver-BA7LWSJO.mjs.map +1 -0
  44. package/dist/resolver-BMTvzTt9.cjs +662 -0
  45. package/dist/resolver-BMTvzTt9.cjs.map +1 -0
  46. package/dist/resolver-MgJryMWG.d.cts +75 -0
  47. package/dist/resolver-MgJryMWG.d.cts.map +1 -0
  48. package/dist/resolver-_gfXzr_S.d.mts +76 -0
  49. package/dist/resolver-_gfXzr_S.d.mts.map +1 -0
  50. package/dist/storage/index.cjs +7 -0
  51. package/dist/storage/index.d.cts +12 -0
  52. package/dist/storage/index.d.cts.map +1 -0
  53. package/dist/storage/index.d.mts +12 -0
  54. package/dist/storage/index.d.mts.map +1 -0
  55. package/dist/storage/index.mjs +4 -0
  56. package/package.json +137 -0
  57. package/src/auth/.gitkeep +0 -0
  58. package/src/auth/index.ts +10 -0
  59. package/src/auth/resolver.ts +46 -0
  60. package/src/auth/scanners.ts +462 -0
  61. package/src/auth/store.ts +357 -0
  62. package/src/catalog/.gitkeep +0 -0
  63. package/src/catalog/catalog.ts +302 -0
  64. package/src/catalog/index.ts +17 -0
  65. package/src/catalog/mapper.ts +129 -0
  66. package/src/catalog/merger.ts +99 -0
  67. package/src/index.ts +37 -0
  68. package/src/logger.ts +7 -0
  69. package/src/plugin/.gitkeep +0 -0
  70. package/src/plugin/anthropic.test.ts +505 -0
  71. package/src/plugin/anthropic.ts +324 -0
  72. package/src/plugin/codex.ts +656 -0
  73. package/src/plugin/copilot.ts +161 -0
  74. package/src/plugin/google.ts +454 -0
  75. package/src/plugin/index.ts +30 -0
  76. package/src/provider/.gitkeep +0 -0
  77. package/src/provider/bundled.ts +59 -0
  78. package/src/provider/index.ts +249 -0
  79. package/src/provider/state.ts +163 -0
  80. package/src/storage/.gitkeep +0 -0
  81. package/src/storage/auto.ts +32 -0
  82. package/src/storage/file.ts +84 -0
  83. package/src/storage/index.ts +10 -0
  84. package/src/storage/memory.ts +23 -0
  85. package/src/types/.gitkeep +0 -0
  86. package/src/types/auth.ts +18 -0
  87. package/src/types/errors.ts +87 -0
  88. package/src/types/index.ts +26 -0
  89. package/src/types/model.ts +88 -0
  90. package/src/types/plugin.ts +49 -0
  91. package/src/types/provider.ts +48 -0
@@ -0,0 +1,1241 @@
1
+ import { a as MemoryStorage, n as createDefaultStorage, r as FileStorage } from "./auto-CInerwvs.mjs";
2
+ import { StorageAdapter } from "./storage/index.mjs";
3
+ import { i as ProviderInfo, n as AuthHook, r as AuthMethod, t as AuthCredential } from "./plugin-BkeUu5LW.mjs";
4
+ import { a as AuthStoreOptions, c as createAuthStore, d as DiskScanner, f as ScanContext, i as AuthStore, l as DEFAULT_SCANNERS, n as SecretRef, o as DiscoverOptions, r as SecretResolver, s as DiscoveredCredential, u as DiskScanResult } from "./resolver-_gfXzr_S.mjs";
5
+ import "./auth/index.mjs";
6
+ import { getPluginForProvider, getPlugins, registerPlugin } from "./plugin/index.mjs";
7
+ import createDebug from "debug";
8
+ import { z } from "zod";
9
+ import { JSONSchema7 } from "json-schema";
10
+
11
+ //#region node_modules/@ai-sdk/provider/dist/index.d.ts
12
+ type SharedV3Headers = Record<string, string>;
13
+ /**
14
+ * A JSON value can be a string, number, boolean, object, array, or null.
15
+ * JSON values can be serialized and deserialized by the JSON.stringify and JSON.parse methods.
16
+ */
17
+ type JSONValue = null | string | number | boolean | JSONObject | JSONArray;
18
+ type JSONObject = {
19
+ [key: string]: JSONValue | undefined;
20
+ };
21
+ type JSONArray = JSONValue[];
22
+ /**
23
+ * Additional provider-specific metadata.
24
+ * Metadata are additional outputs from the provider.
25
+ * They are passed through to the provider from the AI SDK
26
+ * and enable provider-specific functionality
27
+ * that can be fully encapsulated in the provider.
28
+ *
29
+ * This enables us to quickly ship provider-specific functionality
30
+ * without affecting the core AI SDK.
31
+ *
32
+ * The outer record is keyed by the provider name, and the inner
33
+ * record is keyed by the provider-specific metadata key.
34
+ *
35
+ * ```ts
36
+ * {
37
+ * "anthropic": {
38
+ * "cacheControl": { "type": "ephemeral" }
39
+ * }
40
+ * }
41
+ * ```
42
+ */
43
+ type SharedV3ProviderMetadata = Record<string, JSONObject>;
44
+ /**
45
+ * Additional provider-specific options.
46
+ * Options are additional input to the provider.
47
+ * They are passed through to the provider from the AI SDK
48
+ * and enable provider-specific functionality
49
+ * that can be fully encapsulated in the provider.
50
+ *
51
+ * This enables us to quickly ship provider-specific functionality
52
+ * without affecting the core AI SDK.
53
+ *
54
+ * The outer record is keyed by the provider name, and the inner
55
+ * record is keyed by the provider-specific metadata key.
56
+ *
57
+ * ```ts
58
+ * {
59
+ * "anthropic": {
60
+ * "cacheControl": { "type": "ephemeral" }
61
+ * }
62
+ * }
63
+ * ```
64
+ */
65
+ type SharedV3ProviderOptions = Record<string, JSONObject>;
66
+ /**
67
+ * Warning from the model.
68
+ *
69
+ * For example, that certain features are unsupported or compatibility
70
+ * functionality is used (which might lead to suboptimal results).
71
+ */
72
+ type SharedV3Warning = {
73
+ /**
74
+ * A feature is not supported by the model.
75
+ */
76
+ type: 'unsupported';
77
+ /**
78
+ * The feature that is not supported.
79
+ */
80
+ feature: string;
81
+ /**
82
+ * Additional details about the warning.
83
+ */
84
+ details?: string;
85
+ } | {
86
+ /**
87
+ * A compatibility feature is used that might lead to suboptimal results.
88
+ */
89
+ type: 'compatibility';
90
+ /**
91
+ * The feature that is used in a compatibility mode.
92
+ */
93
+ feature: string;
94
+ /**
95
+ * Additional details about the warning.
96
+ */
97
+ details?: string;
98
+ } | {
99
+ /**
100
+ * Other warning.
101
+ */
102
+ type: 'other';
103
+ /**
104
+ * The message of the warning.
105
+ */
106
+ message: string;
107
+ };
108
+ /**
109
+ * A tool has a name, a description, and a set of parameters.
110
+ *
111
+ * Note: this is **not** the user-facing tool definition. The AI SDK methods will
112
+ * map the user-facing tool definitions to this format.
113
+ */
114
+ type LanguageModelV3FunctionTool = {
115
+ /**
116
+ * The type of the tool (always 'function').
117
+ */
118
+ type: 'function';
119
+ /**
120
+ * The name of the tool. Unique within this model call.
121
+ */
122
+ name: string;
123
+ /**
124
+ * A description of the tool. The language model uses this to understand the
125
+ * tool's purpose and to provide better completion suggestions.
126
+ */
127
+ description?: string;
128
+ /**
129
+ * The parameters that the tool expects. The language model uses this to
130
+ * understand the tool's input requirements and to provide matching suggestions.
131
+ */
132
+ inputSchema: JSONSchema7;
133
+ /**
134
+ * An optional list of input examples that show the language
135
+ * model what the input should look like.
136
+ */
137
+ inputExamples?: Array<{
138
+ input: JSONObject;
139
+ }>;
140
+ /**
141
+ * Strict mode setting for the tool.
142
+ *
143
+ * Providers that support strict mode will use this setting to determine
144
+ * how the input should be generated. Strict mode will always produce
145
+ * valid inputs, but it might limit what input schemas are supported.
146
+ */
147
+ strict?: boolean;
148
+ /**
149
+ * The provider-specific options for the tool.
150
+ */
151
+ providerOptions?: SharedV3ProviderOptions;
152
+ };
153
+ /**
154
+ * Data content. Can be a Uint8Array, base64 encoded data as a string or a URL.
155
+ */
156
+ type LanguageModelV3DataContent = Uint8Array | string | URL;
157
+ /**
158
+ * A prompt is a list of messages.
159
+ *
160
+ * Note: Not all models and prompt formats support multi-modal inputs and
161
+ * tool calls. The validation happens at runtime.
162
+ *
163
+ * Note: This is not a user-facing prompt. The AI SDK methods will map the
164
+ * user-facing prompt types such as chat or instruction prompts to this format.
165
+ */
166
+ type LanguageModelV3Prompt = Array<LanguageModelV3Message>;
167
+ type LanguageModelV3Message = ({
168
+ role: 'system';
169
+ content: string;
170
+ } | {
171
+ role: 'user';
172
+ content: Array<LanguageModelV3TextPart | LanguageModelV3FilePart>;
173
+ } | {
174
+ role: 'assistant';
175
+ content: Array<LanguageModelV3TextPart | LanguageModelV3FilePart | LanguageModelV3ReasoningPart | LanguageModelV3ToolCallPart | LanguageModelV3ToolResultPart>;
176
+ } | {
177
+ role: 'tool';
178
+ content: Array<LanguageModelV3ToolResultPart | LanguageModelV3ToolApprovalResponsePart>;
179
+ }) & {
180
+ /**
181
+ * Additional provider-specific options. They are passed through
182
+ * to the provider from the AI SDK and enable provider-specific
183
+ * functionality that can be fully encapsulated in the provider.
184
+ */
185
+ providerOptions?: SharedV3ProviderOptions;
186
+ };
187
+ /**
188
+ * Text content part of a prompt. It contains a string of text.
189
+ */
190
+ interface LanguageModelV3TextPart {
191
+ type: 'text';
192
+ /**
193
+ * The text content.
194
+ */
195
+ text: string;
196
+ /**
197
+ * Additional provider-specific options. They are passed through
198
+ * to the provider from the AI SDK and enable provider-specific
199
+ * functionality that can be fully encapsulated in the provider.
200
+ */
201
+ providerOptions?: SharedV3ProviderOptions;
202
+ }
203
+ /**
204
+ * Reasoning content part of a prompt. It contains a string of reasoning text.
205
+ */
206
+ interface LanguageModelV3ReasoningPart {
207
+ type: 'reasoning';
208
+ /**
209
+ * The reasoning text.
210
+ */
211
+ text: string;
212
+ /**
213
+ * Additional provider-specific options. They are passed through
214
+ * to the provider from the AI SDK and enable provider-specific
215
+ * functionality that can be fully encapsulated in the provider.
216
+ */
217
+ providerOptions?: SharedV3ProviderOptions;
218
+ }
219
+ /**
220
+ * File content part of a prompt. It contains a file.
221
+ */
222
+ interface LanguageModelV3FilePart {
223
+ type: 'file';
224
+ /**
225
+ * Optional filename of the file.
226
+ */
227
+ filename?: string;
228
+ /**
229
+ * File data. Can be a Uint8Array, base64 encoded data as a string or a URL.
230
+ */
231
+ data: LanguageModelV3DataContent;
232
+ /**
233
+ * IANA media type of the file.
234
+ *
235
+ * Can support wildcards, e.g. `image/*` (in which case the provider needs to take appropriate action).
236
+ *
237
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
238
+ */
239
+ mediaType: string;
240
+ /**
241
+ * Additional provider-specific options. They are passed through
242
+ * to the provider from the AI SDK and enable provider-specific
243
+ * functionality that can be fully encapsulated in the provider.
244
+ */
245
+ providerOptions?: SharedV3ProviderOptions;
246
+ }
247
+ /**
248
+ * Tool call content part of a prompt. It contains a tool call (usually generated by the AI model).
249
+ */
250
+ interface LanguageModelV3ToolCallPart {
251
+ type: 'tool-call';
252
+ /**
253
+ * ID of the tool call. This ID is used to match the tool call with the tool result.
254
+ */
255
+ toolCallId: string;
256
+ /**
257
+ * Name of the tool that is being called.
258
+ */
259
+ toolName: string;
260
+ /**
261
+ * Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
262
+ */
263
+ input: unknown;
264
+ /**
265
+ * Whether the tool call will be executed by the provider.
266
+ * If this flag is not set or is false, the tool call will be executed by the client.
267
+ */
268
+ providerExecuted?: boolean;
269
+ /**
270
+ * Additional provider-specific options. They are passed through
271
+ * to the provider from the AI SDK and enable provider-specific
272
+ * functionality that can be fully encapsulated in the provider.
273
+ */
274
+ providerOptions?: SharedV3ProviderOptions;
275
+ }
276
+ /**
277
+ * Tool result content part of a prompt. It contains the result of the tool call with the matching ID.
278
+ */
279
+ interface LanguageModelV3ToolResultPart {
280
+ type: 'tool-result';
281
+ /**
282
+ * ID of the tool call that this result is associated with.
283
+ */
284
+ toolCallId: string;
285
+ /**
286
+ * Name of the tool that generated this result.
287
+ */
288
+ toolName: string;
289
+ /**
290
+ * Result of the tool call.
291
+ */
292
+ output: LanguageModelV3ToolResultOutput;
293
+ /**
294
+ * Additional provider-specific options. They are passed through
295
+ * to the provider from the AI SDK and enable provider-specific
296
+ * functionality that can be fully encapsulated in the provider.
297
+ */
298
+ providerOptions?: SharedV3ProviderOptions;
299
+ }
300
+ /**
301
+ * Tool approval response content part of a prompt. It contains the user's
302
+ * decision to approve or deny a provider-executed tool call.
303
+ */
304
+ interface LanguageModelV3ToolApprovalResponsePart {
305
+ type: 'tool-approval-response';
306
+ /**
307
+ * ID of the approval request that this response refers to.
308
+ */
309
+ approvalId: string;
310
+ /**
311
+ * Whether the approval was granted (true) or denied (false).
312
+ */
313
+ approved: boolean;
314
+ /**
315
+ * Optional reason for approval or denial.
316
+ */
317
+ reason?: string;
318
+ /**
319
+ * Additional provider-specific options. They are passed through
320
+ * to the provider from the AI SDK and enable provider-specific
321
+ * functionality that can be fully encapsulated in the provider.
322
+ */
323
+ providerOptions?: SharedV3ProviderOptions;
324
+ }
325
+ /**
326
+ * Result of a tool call.
327
+ */
328
+ type LanguageModelV3ToolResultOutput = {
329
+ /**
330
+ * Text tool output that should be directly sent to the API.
331
+ */
332
+ type: 'text';
333
+ value: string;
334
+ /**
335
+ * Provider-specific options.
336
+ */
337
+ providerOptions?: SharedV3ProviderOptions;
338
+ } | {
339
+ type: 'json';
340
+ value: JSONValue;
341
+ /**
342
+ * Provider-specific options.
343
+ */
344
+ providerOptions?: SharedV3ProviderOptions;
345
+ } | {
346
+ /**
347
+ * Type when the user has denied the execution of the tool call.
348
+ */
349
+ type: 'execution-denied';
350
+ /**
351
+ * Optional reason for the execution denial.
352
+ */
353
+ reason?: string;
354
+ /**
355
+ * Provider-specific options.
356
+ */
357
+ providerOptions?: SharedV3ProviderOptions;
358
+ } | {
359
+ type: 'error-text';
360
+ value: string;
361
+ /**
362
+ * Provider-specific options.
363
+ */
364
+ providerOptions?: SharedV3ProviderOptions;
365
+ } | {
366
+ type: 'error-json';
367
+ value: JSONValue;
368
+ /**
369
+ * Provider-specific options.
370
+ */
371
+ providerOptions?: SharedV3ProviderOptions;
372
+ } | {
373
+ type: 'content';
374
+ value: Array<{
375
+ type: 'text';
376
+ /**
377
+ * Text content.
378
+ */
379
+ text: string;
380
+ /**
381
+ * Provider-specific options.
382
+ */
383
+ providerOptions?: SharedV3ProviderOptions;
384
+ } | {
385
+ type: 'file-data';
386
+ /**
387
+ * Base-64 encoded media data.
388
+ */
389
+ data: string;
390
+ /**
391
+ * IANA media type.
392
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
393
+ */
394
+ mediaType: string;
395
+ /**
396
+ * Optional filename of the file.
397
+ */
398
+ filename?: string;
399
+ /**
400
+ * Provider-specific options.
401
+ */
402
+ providerOptions?: SharedV3ProviderOptions;
403
+ } | {
404
+ type: 'file-url';
405
+ /**
406
+ * URL of the file.
407
+ */
408
+ url: string;
409
+ /**
410
+ * Provider-specific options.
411
+ */
412
+ providerOptions?: SharedV3ProviderOptions;
413
+ } | {
414
+ type: 'file-id';
415
+ /**
416
+ * ID of the file.
417
+ *
418
+ * If you use multiple providers, you need to
419
+ * specify the provider specific ids using
420
+ * the Record option. The key is the provider
421
+ * name, e.g. 'openai' or 'anthropic'.
422
+ */
423
+ fileId: string | Record<string, string>;
424
+ /**
425
+ * Provider-specific options.
426
+ */
427
+ providerOptions?: SharedV3ProviderOptions;
428
+ } | {
429
+ /**
430
+ * Images that are referenced using base64 encoded data.
431
+ */
432
+ type: 'image-data';
433
+ /**
434
+ * Base-64 encoded image data.
435
+ */
436
+ data: string;
437
+ /**
438
+ * IANA media type.
439
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
440
+ */
441
+ mediaType: string;
442
+ /**
443
+ * Provider-specific options.
444
+ */
445
+ providerOptions?: SharedV3ProviderOptions;
446
+ } | {
447
+ /**
448
+ * Images that are referenced using a URL.
449
+ */
450
+ type: 'image-url';
451
+ /**
452
+ * URL of the image.
453
+ */
454
+ url: string;
455
+ /**
456
+ * Provider-specific options.
457
+ */
458
+ providerOptions?: SharedV3ProviderOptions;
459
+ } | {
460
+ /**
461
+ * Images that are referenced using a provider file id.
462
+ */
463
+ type: 'image-file-id';
464
+ /**
465
+ * Image that is referenced using a provider file id.
466
+ *
467
+ * If you use multiple providers, you need to
468
+ * specify the provider specific ids using
469
+ * the Record option. The key is the provider
470
+ * name, e.g. 'openai' or 'anthropic'.
471
+ */
472
+ fileId: string | Record<string, string>;
473
+ /**
474
+ * Provider-specific options.
475
+ */
476
+ providerOptions?: SharedV3ProviderOptions;
477
+ } | {
478
+ /**
479
+ * Custom content part. This can be used to implement
480
+ * provider-specific content parts.
481
+ */
482
+ type: 'custom';
483
+ /**
484
+ * Provider-specific options.
485
+ */
486
+ providerOptions?: SharedV3ProviderOptions;
487
+ }>;
488
+ };
489
+ /**
490
+ * The configuration of a provider tool.
491
+ *
492
+ * Provider tools are tools that are specific to a certain provider.
493
+ * The input and output schemas are defined be the provider, and
494
+ * some of the tools are also executed on the provider systems.
495
+ */
496
+ type LanguageModelV3ProviderTool = {
497
+ /**
498
+ * The type of the tool (always 'provider').
499
+ */
500
+ type: 'provider';
501
+ /**
502
+ * The ID of the tool. Should follow the format `<provider-id>.<unique-tool-name>`.
503
+ */
504
+ id: `${string}.${string}`;
505
+ /**
506
+ * The name of the tool. Unique within this model call.
507
+ */
508
+ name: string;
509
+ /**
510
+ * The arguments for configuring the tool. Must match the expected arguments defined by the provider for this tool.
511
+ */
512
+ args: Record<string, unknown>;
513
+ };
514
+ type LanguageModelV3ToolChoice = {
515
+ type: 'auto';
516
+ } | {
517
+ type: 'none';
518
+ } | {
519
+ type: 'required';
520
+ } | {
521
+ type: 'tool';
522
+ toolName: string;
523
+ };
524
+ type LanguageModelV3CallOptions = {
525
+ /**
526
+ * A language mode prompt is a standardized prompt type.
527
+ *
528
+ * Note: This is **not** the user-facing prompt. The AI SDK methods will map the
529
+ * user-facing prompt types such as chat or instruction prompts to this format.
530
+ * That approach allows us to evolve the user facing prompts without breaking
531
+ * the language model interface.
532
+ */
533
+ prompt: LanguageModelV3Prompt;
534
+ /**
535
+ * Maximum number of tokens to generate.
536
+ */
537
+ maxOutputTokens?: number;
538
+ /**
539
+ * Temperature setting. The range depends on the provider and model.
540
+ */
541
+ temperature?: number;
542
+ /**
543
+ * Stop sequences.
544
+ * If set, the model will stop generating text when one of the stop sequences is generated.
545
+ * Providers may have limits on the number of stop sequences.
546
+ */
547
+ stopSequences?: string[];
548
+ /**
549
+ * Nucleus sampling.
550
+ */
551
+ topP?: number;
552
+ /**
553
+ * Only sample from the top K options for each subsequent token.
554
+ *
555
+ * Used to remove "long tail" low probability responses.
556
+ * Recommended for advanced use cases only. You usually only need to use temperature.
557
+ */
558
+ topK?: number;
559
+ /**
560
+ * Presence penalty setting. It affects the likelihood of the model to
561
+ * repeat information that is already in the prompt.
562
+ */
563
+ presencePenalty?: number;
564
+ /**
565
+ * Frequency penalty setting. It affects the likelihood of the model
566
+ * to repeatedly use the same words or phrases.
567
+ */
568
+ frequencyPenalty?: number;
569
+ /**
570
+ * Response format. The output can either be text or JSON. Default is text.
571
+ *
572
+ * If JSON is selected, a schema can optionally be provided to guide the LLM.
573
+ */
574
+ responseFormat?: {
575
+ type: 'text';
576
+ } | {
577
+ type: 'json';
578
+ /**
579
+ * JSON schema that the generated output should conform to.
580
+ */
581
+ schema?: JSONSchema7;
582
+ /**
583
+ * Name of output that should be generated. Used by some providers for additional LLM guidance.
584
+ */
585
+ name?: string;
586
+ /**
587
+ * Description of the output that should be generated. Used by some providers for additional LLM guidance.
588
+ */
589
+ description?: string;
590
+ };
591
+ /**
592
+ * The seed (integer) to use for random sampling. If set and supported
593
+ * by the model, calls will generate deterministic results.
594
+ */
595
+ seed?: number;
596
+ /**
597
+ * The tools that are available for the model.
598
+ */
599
+ tools?: Array<LanguageModelV3FunctionTool | LanguageModelV3ProviderTool>;
600
+ /**
601
+ * Specifies how the tool should be selected. Defaults to 'auto'.
602
+ */
603
+ toolChoice?: LanguageModelV3ToolChoice;
604
+ /**
605
+ * Include raw chunks in the stream. Only applicable for streaming calls.
606
+ */
607
+ includeRawChunks?: boolean;
608
+ /**
609
+ * Abort signal for cancelling the operation.
610
+ */
611
+ abortSignal?: AbortSignal;
612
+ /**
613
+ * Additional HTTP headers to be sent with the request.
614
+ * Only applicable for HTTP-based providers.
615
+ */
616
+ headers?: Record<string, string | undefined>;
617
+ /**
618
+ * Additional provider-specific options. They are passed through
619
+ * to the provider from the AI SDK and enable provider-specific
620
+ * functionality that can be fully encapsulated in the provider.
621
+ */
622
+ providerOptions?: SharedV3ProviderOptions;
623
+ };
624
+ /**
625
+ * A file that has been generated by the model.
626
+ * Generated files as base64 encoded strings or binary data.
627
+ * The files should be returned without any unnecessary conversion.
628
+ */
629
+ type LanguageModelV3File = {
630
+ type: 'file';
631
+ /**
632
+ * The IANA media type of the file, e.g. `image/png` or `audio/mp3`.
633
+ *
634
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
635
+ */
636
+ mediaType: string;
637
+ /**
638
+ * Generated file data as base64 encoded strings or binary data.
639
+ *
640
+ * The file data should be returned without any unnecessary conversion.
641
+ * If the API returns base64 encoded strings, the file data should be returned
642
+ * as base64 encoded strings. If the API returns binary data, the file data should
643
+ * be returned as binary data.
644
+ */
645
+ data: string | Uint8Array;
646
+ /**
647
+ * Optional provider-specific metadata for the file part.
648
+ */
649
+ providerMetadata?: SharedV3ProviderMetadata;
650
+ };
651
+ /**
652
+ * Reasoning that the model has generated.
653
+ */
654
+ type LanguageModelV3Reasoning = {
655
+ type: 'reasoning';
656
+ text: string;
657
+ /**
658
+ * Optional provider-specific metadata for the reasoning part.
659
+ */
660
+ providerMetadata?: SharedV3ProviderMetadata;
661
+ };
662
+ /**
663
+ * A source that has been used as input to generate the response.
664
+ */
665
+ type LanguageModelV3Source = {
666
+ type: 'source';
667
+ /**
668
+ * The type of source - URL sources reference web content.
669
+ */
670
+ sourceType: 'url';
671
+ /**
672
+ * The ID of the source.
673
+ */
674
+ id: string;
675
+ /**
676
+ * The URL of the source.
677
+ */
678
+ url: string;
679
+ /**
680
+ * The title of the source.
681
+ */
682
+ title?: string;
683
+ /**
684
+ * Additional provider metadata for the source.
685
+ */
686
+ providerMetadata?: SharedV3ProviderMetadata;
687
+ } | {
688
+ type: 'source';
689
+ /**
690
+ * The type of source - document sources reference files/documents.
691
+ */
692
+ sourceType: 'document';
693
+ /**
694
+ * The ID of the source.
695
+ */
696
+ id: string;
697
+ /**
698
+ * IANA media type of the document (e.g., 'application/pdf').
699
+ */
700
+ mediaType: string;
701
+ /**
702
+ * The title of the document.
703
+ */
704
+ title: string;
705
+ /**
706
+ * Optional filename of the document.
707
+ */
708
+ filename?: string;
709
+ /**
710
+ * Additional provider metadata for the source.
711
+ */
712
+ providerMetadata?: SharedV3ProviderMetadata;
713
+ };
714
+ /**
715
+ * Text that the model has generated.
716
+ */
717
+ type LanguageModelV3Text = {
718
+ type: 'text';
719
+ /**
720
+ * The text content.
721
+ */
722
+ text: string;
723
+ providerMetadata?: SharedV3ProviderMetadata;
724
+ };
725
+ /**
726
+ * Tool approval request emitted by a provider for a provider-executed tool call.
727
+ *
728
+ * This is used for flows where the provider executes the tool (e.g. MCP tools)
729
+ * but requires an explicit user approval before continuing.
730
+ */
731
+ type LanguageModelV3ToolApprovalRequest = {
732
+ type: 'tool-approval-request';
733
+ /**
734
+ * ID of the approval request. This ID is referenced by the subsequent
735
+ * tool-approval-response (tool message) to approve or deny execution.
736
+ */
737
+ approvalId: string;
738
+ /**
739
+ * The tool call ID that this approval request is for.
740
+ */
741
+ toolCallId: string;
742
+ /**
743
+ * Additional provider-specific metadata for the approval request.
744
+ */
745
+ providerMetadata?: SharedV3ProviderMetadata;
746
+ };
747
+ /**
748
+ * Tool calls that the model has generated.
749
+ */
750
+ type LanguageModelV3ToolCall = {
751
+ type: 'tool-call';
752
+ /**
753
+ * The identifier of the tool call. It must be unique across all tool calls.
754
+ */
755
+ toolCallId: string;
756
+ /**
757
+ * The name of the tool that should be called.
758
+ */
759
+ toolName: string;
760
+ /**
761
+ * Stringified JSON object with the tool call arguments. Must match the
762
+ * parameters schema of the tool.
763
+ */
764
+ input: string;
765
+ /**
766
+ * Whether the tool call will be executed by the provider.
767
+ * If this flag is not set or is false, the tool call will be executed by the client.
768
+ */
769
+ providerExecuted?: boolean;
770
+ /**
771
+ * Whether the tool is dynamic, i.e. defined at runtime.
772
+ * For example, MCP (Model Context Protocol) tools that are executed by the provider.
773
+ */
774
+ dynamic?: boolean;
775
+ /**
776
+ * Additional provider-specific metadata for the tool call.
777
+ */
778
+ providerMetadata?: SharedV3ProviderMetadata;
779
+ };
780
+ /**
781
+ * Result of a tool call that has been executed by the provider.
782
+ */
783
+ type LanguageModelV3ToolResult = {
784
+ type: 'tool-result';
785
+ /**
786
+ * The ID of the tool call that this result is associated with.
787
+ */
788
+ toolCallId: string;
789
+ /**
790
+ * Name of the tool that generated this result.
791
+ */
792
+ toolName: string;
793
+ /**
794
+ * Result of the tool call. This is a JSON-serializable object.
795
+ */
796
+ result: NonNullable<JSONValue>;
797
+ /**
798
+ * Optional flag if the result is an error or an error message.
799
+ */
800
+ isError?: boolean;
801
+ /**
802
+ * Whether the tool result is preliminary.
803
+ *
804
+ * Preliminary tool results replace each other, e.g. image previews.
805
+ * There always has to be a final, non-preliminary tool result.
806
+ *
807
+ * If this flag is set to true, the tool result is preliminary.
808
+ * If this flag is not set or is false, the tool result is not preliminary.
809
+ */
810
+ preliminary?: boolean;
811
+ /**
812
+ * Whether the tool is dynamic, i.e. defined at runtime.
813
+ * For example, MCP (Model Context Protocol) tools that are executed by the provider.
814
+ */
815
+ dynamic?: boolean;
816
+ /**
817
+ * Additional provider-specific metadata for the tool result.
818
+ */
819
+ providerMetadata?: SharedV3ProviderMetadata;
820
+ };
821
+ type LanguageModelV3Content = LanguageModelV3Text | LanguageModelV3Reasoning | LanguageModelV3File | LanguageModelV3ToolApprovalRequest | LanguageModelV3Source | LanguageModelV3ToolCall | LanguageModelV3ToolResult;
822
+ /**
823
+ * Reason why a language model finished generating a response.
824
+ *
825
+ * Contains both a unified finish reason and a raw finish reason from the provider.
826
+ * The unified finish reason is used to provide a consistent finish reason across different providers.
827
+ * The raw finish reason is used to provide the original finish reason from the provider.
828
+ */
829
+ type LanguageModelV3FinishReason = {
830
+ /**
831
+ * Unified finish reason. This enables using the same finish reason across different providers.
832
+ *
833
+ * Can be one of the following:
834
+ * - `stop`: model generated stop sequence
835
+ * - `length`: model generated maximum number of tokens
836
+ * - `content-filter`: content filter violation stopped the model
837
+ * - `tool-calls`: model triggered tool calls
838
+ * - `error`: model stopped because of an error
839
+ * - `other`: model stopped for other reasons
840
+ */
841
+ unified: 'stop' | 'length' | 'content-filter' | 'tool-calls' | 'error' | 'other';
842
+ /**
843
+ * Raw finish reason from the provider.
844
+ * This is the original finish reason from the provider.
845
+ */
846
+ raw: string | undefined;
847
+ };
848
+ interface LanguageModelV3ResponseMetadata {
849
+ /**
850
+ * ID for the generated response, if the provider sends one.
851
+ */
852
+ id?: string;
853
+ /**
854
+ * Timestamp for the start of the generated response, if the provider sends one.
855
+ */
856
+ timestamp?: Date;
857
+ /**
858
+ * The ID of the response model that was used to generate the response, if the provider sends one.
859
+ */
860
+ modelId?: string;
861
+ }
862
+ /**
863
+ * Usage information for a language model call.
864
+ */
865
+ type LanguageModelV3Usage = {
866
+ /**
867
+ * Information about the input tokens.
868
+ */
869
+ inputTokens: {
870
+ /**
871
+ * The total number of input (prompt) tokens used.
872
+ */
873
+ total: number | undefined;
874
+ /**
875
+ * The number of non-cached input (prompt) tokens used.
876
+ */
877
+ noCache: number | undefined;
878
+ /**
879
+ * The number of cached input (prompt) tokens read.
880
+ */
881
+ cacheRead: number | undefined;
882
+ /**
883
+ * The number of cached input (prompt) tokens written.
884
+ */
885
+ cacheWrite: number | undefined;
886
+ };
887
+ /**
888
+ * Information about the output tokens.
889
+ */
890
+ outputTokens: {
891
+ /**
892
+ * The total number of output (completion) tokens used.
893
+ */
894
+ total: number | undefined;
895
+ /**
896
+ * The number of text tokens used.
897
+ */
898
+ text: number | undefined;
899
+ /**
900
+ * The number of reasoning tokens used.
901
+ */
902
+ reasoning: number | undefined;
903
+ };
904
+ /**
905
+ * Raw usage information from the provider.
906
+ *
907
+ * This is the usage information in the shape that the provider returns.
908
+ * It can include additional information that is not part of the standard usage information.
909
+ */
910
+ raw?: JSONObject;
911
+ };
912
+ /**
913
+ * The result of a language model doGenerate call.
914
+ */
915
+ type LanguageModelV3GenerateResult = {
916
+ /**
917
+ * Ordered content that the model has generated.
918
+ */
919
+ content: Array<LanguageModelV3Content>;
920
+ /**
921
+ * The finish reason.
922
+ */
923
+ finishReason: LanguageModelV3FinishReason;
924
+ /**
925
+ * The usage information.
926
+ */
927
+ usage: LanguageModelV3Usage;
928
+ /**
929
+ * Additional provider-specific metadata. They are passed through
930
+ * from the provider to the AI SDK and enable provider-specific
931
+ * results that can be fully encapsulated in the provider.
932
+ */
933
+ providerMetadata?: SharedV3ProviderMetadata;
934
+ /**
935
+ * Optional request information for telemetry and debugging purposes.
936
+ */
937
+ request?: {
938
+ /**
939
+ * Request HTTP body that was sent to the provider API.
940
+ */
941
+ body?: unknown;
942
+ };
943
+ /**
944
+ * Optional response information for telemetry and debugging purposes.
945
+ */
946
+ response?: LanguageModelV3ResponseMetadata & {
947
+ /**
948
+ * Response headers.
949
+ */
950
+ headers?: SharedV3Headers;
951
+ /**
952
+ * Response HTTP body.
953
+ */
954
+ body?: unknown;
955
+ };
956
+ /**
957
+ * Warnings for the call, e.g. unsupported settings.
958
+ */
959
+ warnings: Array<SharedV3Warning>;
960
+ };
961
+ type LanguageModelV3StreamPart = {
962
+ type: 'text-start';
963
+ providerMetadata?: SharedV3ProviderMetadata;
964
+ id: string;
965
+ } | {
966
+ type: 'text-delta';
967
+ id: string;
968
+ providerMetadata?: SharedV3ProviderMetadata;
969
+ delta: string;
970
+ } | {
971
+ type: 'text-end';
972
+ providerMetadata?: SharedV3ProviderMetadata;
973
+ id: string;
974
+ } | {
975
+ type: 'reasoning-start';
976
+ providerMetadata?: SharedV3ProviderMetadata;
977
+ id: string;
978
+ } | {
979
+ type: 'reasoning-delta';
980
+ id: string;
981
+ providerMetadata?: SharedV3ProviderMetadata;
982
+ delta: string;
983
+ } | {
984
+ type: 'reasoning-end';
985
+ id: string;
986
+ providerMetadata?: SharedV3ProviderMetadata;
987
+ } | {
988
+ type: 'tool-input-start';
989
+ id: string;
990
+ toolName: string;
991
+ providerMetadata?: SharedV3ProviderMetadata;
992
+ providerExecuted?: boolean;
993
+ dynamic?: boolean;
994
+ title?: string;
995
+ } | {
996
+ type: 'tool-input-delta';
997
+ id: string;
998
+ delta: string;
999
+ providerMetadata?: SharedV3ProviderMetadata;
1000
+ } | {
1001
+ type: 'tool-input-end';
1002
+ id: string;
1003
+ providerMetadata?: SharedV3ProviderMetadata;
1004
+ } | LanguageModelV3ToolApprovalRequest | LanguageModelV3ToolCall | LanguageModelV3ToolResult | LanguageModelV3File | LanguageModelV3Source | {
1005
+ type: 'stream-start';
1006
+ warnings: Array<SharedV3Warning>;
1007
+ } | ({
1008
+ type: 'response-metadata';
1009
+ } & LanguageModelV3ResponseMetadata) | {
1010
+ type: 'finish';
1011
+ usage: LanguageModelV3Usage;
1012
+ finishReason: LanguageModelV3FinishReason;
1013
+ providerMetadata?: SharedV3ProviderMetadata;
1014
+ } | {
1015
+ type: 'raw';
1016
+ rawValue: unknown;
1017
+ } | {
1018
+ type: 'error';
1019
+ error: unknown;
1020
+ };
1021
+ /**
1022
+ * The result of a language model doStream call.
1023
+ */
1024
+ type LanguageModelV3StreamResult = {
1025
+ /**
1026
+ * The stream.
1027
+ */
1028
+ stream: ReadableStream<LanguageModelV3StreamPart>;
1029
+ /**
1030
+ * Optional request information for telemetry and debugging purposes.
1031
+ */
1032
+ request?: {
1033
+ /**
1034
+ * Request HTTP body that was sent to the provider API.
1035
+ */
1036
+ body?: unknown;
1037
+ };
1038
+ /**
1039
+ * Optional response data.
1040
+ */
1041
+ response?: {
1042
+ /**
1043
+ * Response headers.
1044
+ */
1045
+ headers?: SharedV3Headers;
1046
+ };
1047
+ };
1048
+ /**
1049
+ * Specification for a language model that implements the language model interface version 3.
1050
+ */
1051
+ type LanguageModelV3 = {
1052
+ /**
1053
+ * The language model must specify which language model interface version it implements.
1054
+ */
1055
+ readonly specificationVersion: 'v3';
1056
+ /**
1057
+ * Provider ID.
1058
+ */
1059
+ readonly provider: string;
1060
+ /**
1061
+ * Provider-specific model ID.
1062
+ */
1063
+ readonly modelId: string;
1064
+ /**
1065
+ * Supported URL patterns by media type for the provider.
1066
+ *
1067
+ * The keys are media type patterns or full media types (e.g. `*\/*` for everything, `audio/*`, `video/*`, or `application/pdf`).
1068
+ * and the values are arrays of regular expressions that match the URL paths.
1069
+ *
1070
+ * The matching should be against lower-case URLs.
1071
+ *
1072
+ * Matched URLs are supported natively by the model and are not downloaded.
1073
+ *
1074
+ * @returns A map of supported URL patterns by media type (as a promise or a plain object).
1075
+ */
1076
+ supportedUrls: PromiseLike<Record<string, RegExp[]>> | Record<string, RegExp[]>;
1077
+ /**
1078
+ * Generates a language model output (non-streaming).
1079
+ * Naming: "do" prefix to prevent accidental direct usage of the method
1080
+ * by the user.
1081
+ */
1082
+ doGenerate(options: LanguageModelV3CallOptions): PromiseLike<LanguageModelV3GenerateResult>;
1083
+ /**
1084
+ * Generates a language model output (streaming).
1085
+ *
1086
+ * Naming: "do" prefix to prevent accidental direct usage of the method
1087
+ * by the user.
1088
+ *
1089
+ * @return A stream of higher-level language model output parts.
1090
+ */
1091
+ doStream(options: LanguageModelV3CallOptions): PromiseLike<LanguageModelV3StreamResult>;
1092
+ };
1093
+ /**
1094
+ * Experimental middleware for LanguageModelV3.
1095
+ * This type defines the structure for middleware that can be used to modify
1096
+ * the behavior of LanguageModelV3 operations.
1097
+ */
1098
+ //#endregion
1099
+ //#region src/types/model.d.ts
1100
+ interface ModelDefinition {
1101
+ modelId: string;
1102
+ name?: string;
1103
+ family?: string;
1104
+ type?: 'chat' | 'embedding' | 'image';
1105
+ reasoning?: boolean;
1106
+ tool_call?: boolean;
1107
+ structured_output?: boolean;
1108
+ temperature?: boolean;
1109
+ attachment?: boolean;
1110
+ streaming?: boolean;
1111
+ system_message?: boolean;
1112
+ modalities: {
1113
+ input: Array<'text' | 'image' | 'audio' | 'video' | 'pdf'>;
1114
+ output: Array<'text' | 'image' | 'audio'>;
1115
+ };
1116
+ limit: {
1117
+ context: number;
1118
+ output: number;
1119
+ input_images?: number;
1120
+ };
1121
+ cost?: {
1122
+ input: number;
1123
+ output: number;
1124
+ cache_read?: number;
1125
+ cache_write?: number;
1126
+ };
1127
+ status?: 'stable' | 'beta' | 'deprecated';
1128
+ knowledgeCutoff?: string;
1129
+ provenance?: 'snapshot' | 'remote' | 'user-override';
1130
+ }
1131
+ //#endregion
1132
+ //#region src/catalog/catalog.d.ts
1133
+ interface CatalogProvider {
1134
+ id: string;
1135
+ name: string;
1136
+ env?: string[];
1137
+ api?: string;
1138
+ doc?: string;
1139
+ bundledProvider?: string;
1140
+ baseURL?: string;
1141
+ headers?: Record<string, string>;
1142
+ options?: Record<string, unknown>;
1143
+ }
1144
+ interface ExtendModelConfig {
1145
+ name?: string;
1146
+ modalities?: {
1147
+ input: Array<'text' | 'image' | 'audio' | 'video' | 'pdf'>;
1148
+ output: Array<'text' | 'image' | 'audio'>;
1149
+ };
1150
+ limit?: {
1151
+ context: number;
1152
+ output: number;
1153
+ };
1154
+ }
1155
+ interface ExtendProviderConfig {
1156
+ name: string;
1157
+ env?: string[];
1158
+ bundledProvider?: string;
1159
+ baseURL?: string;
1160
+ headers?: Record<string, string>;
1161
+ options?: Record<string, unknown>;
1162
+ models?: Record<string, ExtendModelConfig>;
1163
+ }
1164
+ interface ExtendConfig {
1165
+ providers?: Record<string, ExtendProviderConfig>;
1166
+ }
1167
+ //#endregion
1168
+ //#region src/types/provider.d.ts
1169
+ interface ProviderUserConfig {
1170
+ apiKey?: SecretRef;
1171
+ baseURL?: string;
1172
+ headers?: Record<string, string>;
1173
+ options?: Record<string, unknown>;
1174
+ }
1175
+ //#endregion
1176
+ //#region src/provider/bundled.d.ts
1177
+ interface ProviderInstance {
1178
+ languageModel(modelId: string): LanguageModelV3;
1179
+ }
1180
+ type ProviderFactory = (options: Record<string, unknown>) => ProviderInstance;
1181
+ declare function loadProvider(packageName: string): Promise<ProviderFactory | undefined>;
1182
+ declare function isProviderInstalled(packageName: string): Promise<boolean>;
1183
+ declare function getAllProviderPackages(): string[];
1184
+ //#endregion
1185
+ //#region src/provider/index.d.ts
1186
+ interface ProviderStoreConfig {
1187
+ userConfig?: Record<string, ProviderUserConfig>;
1188
+ }
1189
+ interface ProviderListOptions {
1190
+ includeUnavailable?: boolean;
1191
+ }
1192
+ interface ModelListOptions {
1193
+ includeUnavailable?: boolean;
1194
+ }
1195
+ interface GetModelOptions {
1196
+ includeUnavailable?: boolean;
1197
+ }
1198
+ interface ProviderStore {
1199
+ getLanguageModel(providerId: string, modelId: string): Promise<LanguageModelV3>;
1200
+ extend(config: ExtendConfig): void;
1201
+ listProviders(options?: ProviderListOptions): Promise<CatalogProvider[]>;
1202
+ listModels(providerId?: string, options?: ModelListOptions): Promise<ModelDefinition[]>;
1203
+ getModel(providerId: string, modelId: string, options?: GetModelOptions): Promise<ModelDefinition | undefined>;
1204
+ }
1205
+ declare function createProviderStore(authStore: AuthStore, config?: ProviderStoreConfig): ProviderStore;
1206
+ declare function getLanguageModel(providerId: string, modelId: string, config?: ProviderStoreConfig): Promise<LanguageModelV3>;
1207
+ //#endregion
1208
+ //#region src/plugin/copilot.d.ts
1209
+ declare const copilotPlugin: AuthHook;
1210
+ //#endregion
1211
+ //#region src/plugin/codex.d.ts
1212
+ /**
1213
+ * Built-in auth plugin for OpenAI Codex (OAuth).
1214
+ *
1215
+ * Only activates for OAuth credentials (`auth.type === 'oauth'`). API key
1216
+ * credentials fall through with an empty options object so the standard
1217
+ * OpenAI SDK path handles them.
1218
+ *
1219
+ * When active the plugin:
1220
+ * 1. Sets a dummy apiKey so the SDK doesn't reject construction
1221
+ * 2. Wraps fetch to auto-refresh expired tokens via refresh_token
1222
+ * 3. Injects `Authorization: Bearer <access_token>`
1223
+ * 4. Sets `ChatGPT-Account-Id` from stored accountId or JWT claims
1224
+ * 5. Rewrites `/v1/responses` and `/chat/completions` URLs to the Codex endpoint
1225
+ */
1226
+ declare const codexPlugin: AuthHook;
1227
+ //#endregion
1228
+ //#region src/plugin/google.d.ts
1229
+ declare const googlePlugin: AuthHook;
1230
+ //#endregion
1231
+ //#region src/plugin/anthropic.d.ts
1232
+ declare const anthropicPlugin: AuthHook;
1233
+ //#endregion
1234
+ //#region src/types/index.d.ts
1235
+ type LanguageModel = LanguageModelV3;
1236
+ //#endregion
1237
+ //#region src/logger.d.ts
1238
+ declare function createLogger(namespace: string): createDebug.Debugger;
1239
+ //#endregion
1240
+ export { type AuthCredential, type AuthHook, type AuthMethod, type AuthStore, type AuthStoreOptions, type CatalogProvider, DEFAULT_SCANNERS, type DiscoverOptions, type DiscoveredCredential, type DiskScanResult, type DiskScanner, type ExtendConfig, type ExtendModelConfig, type ExtendProviderConfig, FileStorage, type GetModelOptions, type LanguageModel, type LanguageModelV3, MemoryStorage, type ModelDefinition, type ModelListOptions, type ProviderInfo, type ProviderListOptions, type ProviderStore, type ProviderStoreConfig, type ProviderUserConfig, type ScanContext, type SecretRef, type SecretResolver, type StorageAdapter, anthropicPlugin, codexPlugin, copilotPlugin, createAuthStore, createDefaultStorage, createLogger, createProviderStore, getAllProviderPackages, getLanguageModel, getPluginForProvider, getPlugins, googlePlugin, isProviderInstalled, loadProvider, registerPlugin };
1241
+ //# sourceMappingURL=index.d.mts.map