@mastra/voice-aws-nova-sonic 0.2.2 → 0.2.3-alpha.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.
- package/dist/_types/@internal_voice/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +371 -29
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +35 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v3/ZodError.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/checks.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/compat.d.ts +9 -11
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/deep-partial.d.ts +14 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/errors.d.ts +3 -4
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/external.d.ts +5 -2
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/in-out.d.ts +8 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/index.d.ts +1 -2
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/iso.d.ts +2 -17
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/parse.d.ts +17 -4
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/schemas.d.ts +68 -19
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/api.d.ts +22 -12
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/checks.d.ts +29 -13
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/compile.d.ts +65 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/core.d.ts +16 -4
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/doc.d.ts +3 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/errors.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/index.d.ts +3 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema.d.ts +2 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/memoizer.d.ts +15 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/parse.d.ts +14 -11
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/regexes.d.ts +5 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/schemas.d.ts +123 -34
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/to-json-schema.d.ts +45 -5
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/util.d.ts +79 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/versions.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/_types/zod/v4/index.d.cts +2 -2
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/bn.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ckb.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/gu.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/hi.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/index.d.ts +11 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/kn.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ne.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/nn.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/pt-BR.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/sk.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tg.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tk.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/index.d.ts +2 -2
- package/dist/_types/@internal_voice/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/voice/composite-voice.d.ts +2 -2
- package/dist/_types/@internal_voice/dist/voice/voice.d.ts +2 -2
- package/dist/_types/@internal_voice/package.json +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-voice-overview.md +25 -0
- package/dist/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/_types/@internal_voice/dist/_types/zod/v3/index.d.cts +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSONSchema7 } from 'json-schema';
|
|
2
2
|
import { ServerResponse } from 'node:http';
|
|
3
3
|
import { ServerResponse as ServerResponse_2 } from 'http';
|
|
4
|
-
import { z } from '../../zod/v4/index.
|
|
5
|
-
import * as z3 from '../../zod/v3/index.
|
|
6
|
-
import * as z4 from '../../zod/v4/index.
|
|
7
|
-
import { ZodType } from '../../zod/v4/index.
|
|
4
|
+
import { z } from '../../zod/v4/index.cjs';
|
|
5
|
+
import * as z3 from '../../zod/v3/index.cjs';
|
|
6
|
+
import * as z4 from '../../zod/v4/index.cjs';
|
|
7
|
+
import { ZodType } from '../../zod/v4/index.cjs';
|
|
8
8
|
|
|
9
9
|
export declare abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
|
|
10
10
|
readonly id: string;
|
|
@@ -121,6 +121,7 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
121
121
|
DataContent,
|
|
122
122
|
DelayedPromise,
|
|
123
123
|
DownloadError_2 as DownloadError,
|
|
124
|
+
EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL,
|
|
124
125
|
FetchFunction,
|
|
125
126
|
FilePart,
|
|
126
127
|
FlexibleSchema,
|
|
@@ -256,6 +257,38 @@ export declare class AISDKError extends Error {
|
|
|
256
257
|
protected static hasMarker(error: unknown, marker: string): boolean;
|
|
257
258
|
}
|
|
258
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Custom error class for AI SDK related errors.
|
|
262
|
+
* @extends Error
|
|
263
|
+
*/
|
|
264
|
+
declare class AISDKError_2 extends Error {
|
|
265
|
+
private readonly [symbol$d_2];
|
|
266
|
+
/**
|
|
267
|
+
* The underlying cause of the error, if any.
|
|
268
|
+
*/
|
|
269
|
+
readonly cause?: unknown;
|
|
270
|
+
/**
|
|
271
|
+
* Creates an AI SDK Error.
|
|
272
|
+
*
|
|
273
|
+
* @param {Object} params - The parameters for creating the error.
|
|
274
|
+
* @param {string} params.name - The name of the error.
|
|
275
|
+
* @param {string} params.message - The error message.
|
|
276
|
+
* @param {unknown} [params.cause] - The underlying cause of the error.
|
|
277
|
+
*/
|
|
278
|
+
constructor({ name, message, cause, }: {
|
|
279
|
+
name: string;
|
|
280
|
+
message: string;
|
|
281
|
+
cause?: unknown;
|
|
282
|
+
});
|
|
283
|
+
/**
|
|
284
|
+
* Checks if the given error is an AI SDK Error.
|
|
285
|
+
* @param {unknown} error - The error to check.
|
|
286
|
+
* @returns {boolean} True if the error is an AI SDK Error, false otherwise.
|
|
287
|
+
*/
|
|
288
|
+
static isInstance(error: unknown): error is AISDKError_2;
|
|
289
|
+
protected static hasMarker(error: unknown, marker: string): boolean;
|
|
290
|
+
}
|
|
291
|
+
|
|
259
292
|
export declare class APICallError extends AISDKError {
|
|
260
293
|
private readonly [symbol$c];
|
|
261
294
|
readonly url: string;
|
|
@@ -280,6 +313,30 @@ export declare class APICallError extends AISDKError {
|
|
|
280
313
|
static isInstance(error: unknown): error is APICallError;
|
|
281
314
|
}
|
|
282
315
|
|
|
316
|
+
declare class APICallError_2 extends AISDKError_2 {
|
|
317
|
+
private readonly [symbol$c_2];
|
|
318
|
+
readonly url: string;
|
|
319
|
+
readonly requestBodyValues: unknown;
|
|
320
|
+
readonly statusCode?: number;
|
|
321
|
+
readonly responseHeaders?: Record<string, string>;
|
|
322
|
+
readonly responseBody?: string;
|
|
323
|
+
readonly isRetryable: boolean;
|
|
324
|
+
readonly data?: unknown;
|
|
325
|
+
constructor({ message, url, requestBodyValues, statusCode, responseHeaders, responseBody, cause, isRetryable, // server error
|
|
326
|
+
data, }: {
|
|
327
|
+
message: string;
|
|
328
|
+
url: string;
|
|
329
|
+
requestBodyValues: unknown;
|
|
330
|
+
statusCode?: number;
|
|
331
|
+
responseHeaders?: Record<string, string>;
|
|
332
|
+
responseBody?: string;
|
|
333
|
+
cause?: unknown;
|
|
334
|
+
isRetryable?: boolean;
|
|
335
|
+
data?: unknown;
|
|
336
|
+
});
|
|
337
|
+
static isInstance(error: unknown): error is APICallError_2;
|
|
338
|
+
}
|
|
339
|
+
|
|
283
340
|
export declare function asSchema<OBJECT>(schema: FlexibleSchema<OBJECT> | undefined): Schema<OBJECT>;
|
|
284
341
|
|
|
285
342
|
/**
|
|
@@ -856,7 +913,7 @@ declare const createJsonErrorResponseHandler: <T>({ errorSchema, errorToMessage,
|
|
|
856
913
|
errorSchema: FlexibleValidator<T>;
|
|
857
914
|
errorToMessage: (error: T) => string;
|
|
858
915
|
isRetryable?: (response: Response, error?: T) => boolean;
|
|
859
|
-
}) => ResponseHandler<
|
|
916
|
+
}) => ResponseHandler<APICallError_2>;
|
|
860
917
|
|
|
861
918
|
declare const createJsonResponseHandler: <T>(responseSchema: FlexibleValidator<T>) => ResponseHandler<T>;
|
|
862
919
|
|
|
@@ -892,7 +949,7 @@ export declare function createProviderRegistry<PROVIDERS extends Record<string,
|
|
|
892
949
|
languageModelMiddleware?: LanguageModelMiddleware | LanguageModelMiddleware[];
|
|
893
950
|
}): ProviderRegistryProvider<PROVIDERS, SEPARATOR>;
|
|
894
951
|
|
|
895
|
-
declare const createStatusCodeErrorResponseHandler: () => ResponseHandler<
|
|
952
|
+
declare const createStatusCodeErrorResponseHandler: () => ResponseHandler<APICallError_2>;
|
|
896
953
|
|
|
897
954
|
export declare function createTextStreamResponse({ status, statusText, headers, textStream, }: ResponseInit & {
|
|
898
955
|
textStream: ReadableStream<string>;
|
|
@@ -1080,7 +1137,7 @@ export declare class DownloadError extends AISDKError {
|
|
|
1080
1137
|
static isInstance(error: unknown): error is DownloadError;
|
|
1081
1138
|
}
|
|
1082
1139
|
|
|
1083
|
-
declare class DownloadError_2 extends
|
|
1140
|
+
declare class DownloadError_2 extends AISDKError_2 {
|
|
1084
1141
|
private readonly [symbol_2];
|
|
1085
1142
|
readonly url: string;
|
|
1086
1143
|
readonly statusCode?: number;
|
|
@@ -1103,7 +1160,7 @@ export declare function dynamicTool(tool: {
|
|
|
1103
1160
|
providerOptions?: ProviderOptions;
|
|
1104
1161
|
inputSchema: FlexibleSchema<unknown>;
|
|
1105
1162
|
execute: ToolExecuteFunction<unknown, unknown>;
|
|
1106
|
-
toModelOutput?: (output: unknown) =>
|
|
1163
|
+
toModelOutput?: (output: unknown) => LanguageModelV2ToolResultPart_2['output'];
|
|
1107
1164
|
}): Tool<unknown, unknown> & {
|
|
1108
1165
|
type: 'dynamic';
|
|
1109
1166
|
};
|
|
@@ -1244,6 +1301,14 @@ export declare function embed<VALUE = string>({ model: modelArg, value, provider
|
|
|
1244
1301
|
*/
|
|
1245
1302
|
export declare type Embedding = EmbeddingModelV2Embedding;
|
|
1246
1303
|
|
|
1304
|
+
/**
|
|
1305
|
+
* Symbol for exposing the UTF-8 input byte budget of an embedding model.
|
|
1306
|
+
*
|
|
1307
|
+
* This capability is experimental and intentionally lives outside the versioned
|
|
1308
|
+
* embedding model specification.
|
|
1309
|
+
*/
|
|
1310
|
+
declare const EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL: unique symbol;
|
|
1311
|
+
|
|
1247
1312
|
/**
|
|
1248
1313
|
Embedding model that is used by the AI SDK Core functions.
|
|
1249
1314
|
*/
|
|
@@ -2110,6 +2175,11 @@ declare type FetchFunction = typeof globalThis.fetch;
|
|
|
2110
2175
|
* The returned response is the final (non-redirect) response. The caller is
|
|
2111
2176
|
* responsible for checking `response.ok` and reading the body.
|
|
2112
2177
|
*
|
|
2178
|
+
* On Node.js, the default fetch resolves every hostname through a validating
|
|
2179
|
+
* lookup hook and passes those exact addresses to the connector, preventing
|
|
2180
|
+
* hostname-to-private-IP and DNS-rebinding bypasses. Other runtimes should
|
|
2181
|
+
* constrain egress at the network layer when handling untrusted URLs.
|
|
2182
|
+
*
|
|
2113
2183
|
* @throws DownloadError if a hop is unsafe, the redirect limit is exceeded, or
|
|
2114
2184
|
* a redirect cannot be validated on a non-browser runtime.
|
|
2115
2185
|
*/
|
|
@@ -3308,14 +3378,14 @@ export declare type InferUITools<TOOLS extends ToolSet> = {
|
|
|
3308
3378
|
declare type InferValidator<SCHEMA> = SCHEMA extends StandardSchemaV1<unknown, infer T> ? T : SCHEMA extends LazyValidator<infer T> ? T : SCHEMA extends Validator<infer T> ? T : never;
|
|
3309
3379
|
|
|
3310
3380
|
declare function injectJsonInstructionIntoMessages({ messages, schema, schemaPrefix, schemaSuffix, }: {
|
|
3311
|
-
messages:
|
|
3381
|
+
messages: LanguageModelV2Prompt_2;
|
|
3312
3382
|
schema?: JSONSchema7;
|
|
3313
3383
|
schemaPrefix?: string;
|
|
3314
3384
|
schemaSuffix?: string;
|
|
3315
|
-
}):
|
|
3385
|
+
}): LanguageModelV2Prompt_2;
|
|
3316
3386
|
|
|
3317
3387
|
export declare class InvalidArgumentError extends AISDKError {
|
|
3318
|
-
private readonly [symbol$
|
|
3388
|
+
private readonly [symbol$c_3];
|
|
3319
3389
|
readonly parameter: string;
|
|
3320
3390
|
readonly value: unknown;
|
|
3321
3391
|
constructor({ parameter, value, message, }: {
|
|
@@ -3483,10 +3553,16 @@ declare type Job = () => Promise<void>;
|
|
|
3483
3553
|
|
|
3484
3554
|
declare type JSONArray = JSONValue_2[];
|
|
3485
3555
|
|
|
3556
|
+
declare type JSONArray_2 = JSONValue_3[];
|
|
3557
|
+
|
|
3486
3558
|
declare type JSONObject = {
|
|
3487
3559
|
[key: string]: JSONValue_2;
|
|
3488
3560
|
};
|
|
3489
3561
|
|
|
3562
|
+
declare type JSONObject_2 = {
|
|
3563
|
+
[key: string]: JSONValue_3;
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3490
3566
|
export declare class JSONParseError extends AISDKError {
|
|
3491
3567
|
private readonly [symbol$7];
|
|
3492
3568
|
readonly text: string;
|
|
@@ -3497,6 +3573,16 @@ export declare class JSONParseError extends AISDKError {
|
|
|
3497
3573
|
static isInstance(error: unknown): error is JSONParseError;
|
|
3498
3574
|
}
|
|
3499
3575
|
|
|
3576
|
+
declare class JSONParseError_2 extends AISDKError_2 {
|
|
3577
|
+
private readonly [symbol$7_2];
|
|
3578
|
+
readonly text: string;
|
|
3579
|
+
constructor({ text, cause }: {
|
|
3580
|
+
text: string;
|
|
3581
|
+
cause: unknown;
|
|
3582
|
+
});
|
|
3583
|
+
static isInstance(error: unknown): error is JSONParseError_2;
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3500
3586
|
/**
|
|
3501
3587
|
* Create a schema using a JSON Schema.
|
|
3502
3588
|
*
|
|
@@ -3521,6 +3607,12 @@ export declare type JSONValue = JSONValue_2;
|
|
|
3521
3607
|
*/
|
|
3522
3608
|
declare type JSONValue_2 = null | string | number | boolean | JSONObject | JSONArray;
|
|
3523
3609
|
|
|
3610
|
+
/**
|
|
3611
|
+
A JSON value can be a string, number, boolean, object, array, or null.
|
|
3612
|
+
JSON values can be serialized and deserialized by the JSON.stringify and JSON.parse methods.
|
|
3613
|
+
*/
|
|
3614
|
+
declare type JSONValue_3 = null | string | number | boolean | JSONObject_2 | JSONArray_2;
|
|
3615
|
+
|
|
3524
3616
|
declare const KNOWN_MODEL_TYPES: readonly ["embedding", "image", "language"];
|
|
3525
3617
|
|
|
3526
3618
|
declare type KnownModelType = (typeof KNOWN_MODEL_TYPES)[number];
|
|
@@ -3800,6 +3892,11 @@ declare type LanguageModelV2Content = LanguageModelV2Text | LanguageModelV2Reaso
|
|
|
3800
3892
|
*/
|
|
3801
3893
|
declare type LanguageModelV2DataContent = Uint8Array | string | URL;
|
|
3802
3894
|
|
|
3895
|
+
/**
|
|
3896
|
+
Data content. Can be a Uint8Array, base64 encoded data as a string or a URL.
|
|
3897
|
+
*/
|
|
3898
|
+
declare type LanguageModelV2DataContent_2 = Uint8Array | string | URL;
|
|
3899
|
+
|
|
3803
3900
|
/**
|
|
3804
3901
|
A file that has been generated by the model.
|
|
3805
3902
|
Generated files as base64 encoded strings or binary data.
|
|
@@ -3853,6 +3950,42 @@ declare interface LanguageModelV2FilePart {
|
|
|
3853
3950
|
providerOptions?: SharedV2ProviderOptions;
|
|
3854
3951
|
}
|
|
3855
3952
|
|
|
3953
|
+
/**
|
|
3954
|
+
File content part of a prompt. It contains a file.
|
|
3955
|
+
*/
|
|
3956
|
+
declare interface LanguageModelV2FilePart_2 {
|
|
3957
|
+
type: 'file';
|
|
3958
|
+
/**
|
|
3959
|
+
* Optional filename of the file.
|
|
3960
|
+
*/
|
|
3961
|
+
filename?: string;
|
|
3962
|
+
/**
|
|
3963
|
+
File data. Can be a Uint8Array, base64 encoded data as a string or a URL.
|
|
3964
|
+
*/
|
|
3965
|
+
data: LanguageModelV2DataContent_2;
|
|
3966
|
+
/**
|
|
3967
|
+
* The original URL string before it was parsed into a `URL`.
|
|
3968
|
+
*
|
|
3969
|
+
* This is available when parsing would change the string and a provider
|
|
3970
|
+
* needs to preserve an opaque non-HTTP URI exactly.
|
|
3971
|
+
*/
|
|
3972
|
+
originalUrl?: string;
|
|
3973
|
+
/**
|
|
3974
|
+
IANA media type of the file.
|
|
3975
|
+
|
|
3976
|
+
Can support wildcards, e.g. `image/*` (in which case the provider needs to take appropriate action).
|
|
3977
|
+
|
|
3978
|
+
@see https://www.iana.org/assignments/media-types/media-types.xhtml
|
|
3979
|
+
*/
|
|
3980
|
+
mediaType: string;
|
|
3981
|
+
/**
|
|
3982
|
+
* Additional provider-specific options. They are passed through
|
|
3983
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
3984
|
+
* functionality that can be fully encapsulated in the provider.
|
|
3985
|
+
*/
|
|
3986
|
+
providerOptions?: SharedV2ProviderOptions_2;
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3856
3989
|
/**
|
|
3857
3990
|
Reason why a language model finished generating a response.
|
|
3858
3991
|
|
|
@@ -3919,6 +4052,27 @@ declare type LanguageModelV2Message = ({
|
|
|
3919
4052
|
providerOptions?: SharedV2ProviderOptions;
|
|
3920
4053
|
};
|
|
3921
4054
|
|
|
4055
|
+
declare type LanguageModelV2Message_2 = ({
|
|
4056
|
+
role: 'system';
|
|
4057
|
+
content: string;
|
|
4058
|
+
} | {
|
|
4059
|
+
role: 'user';
|
|
4060
|
+
content: Array<LanguageModelV2TextPart_2 | LanguageModelV2FilePart_2>;
|
|
4061
|
+
} | {
|
|
4062
|
+
role: 'assistant';
|
|
4063
|
+
content: Array<LanguageModelV2TextPart_2 | LanguageModelV2FilePart_2 | LanguageModelV2ReasoningPart_2 | LanguageModelV2ToolCallPart_2 | LanguageModelV2ToolResultPart_2>;
|
|
4064
|
+
} | {
|
|
4065
|
+
role: 'tool';
|
|
4066
|
+
content: Array<LanguageModelV2ToolResultPart_2>;
|
|
4067
|
+
}) & {
|
|
4068
|
+
/**
|
|
4069
|
+
* Additional provider-specific options. They are passed through
|
|
4070
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
4071
|
+
* functionality that can be fully encapsulated in the provider.
|
|
4072
|
+
*/
|
|
4073
|
+
providerOptions?: SharedV2ProviderOptions_2;
|
|
4074
|
+
};
|
|
4075
|
+
|
|
3922
4076
|
/**
|
|
3923
4077
|
* Experimental middleware for LanguageModelV2.
|
|
3924
4078
|
* This type defines the structure for middleware that can be used to modify
|
|
@@ -4008,6 +4162,17 @@ declare type LanguageModelV2Middleware = {
|
|
|
4008
4162
|
*/
|
|
4009
4163
|
declare type LanguageModelV2Prompt = Array<LanguageModelV2Message>;
|
|
4010
4164
|
|
|
4165
|
+
/**
|
|
4166
|
+
A prompt is a list of messages.
|
|
4167
|
+
|
|
4168
|
+
Note: Not all models and prompt formats support multi-modal inputs and
|
|
4169
|
+
tool calls. The validation happens at runtime.
|
|
4170
|
+
|
|
4171
|
+
Note: This is not a user-facing prompt. The AI SDK methods will map the
|
|
4172
|
+
user-facing prompt types such as chat or instruction prompts to this format.
|
|
4173
|
+
*/
|
|
4174
|
+
declare type LanguageModelV2Prompt_2 = Array<LanguageModelV2Message_2>;
|
|
4175
|
+
|
|
4011
4176
|
/**
|
|
4012
4177
|
The configuration of a tool that is defined by the provider.
|
|
4013
4178
|
*/
|
|
@@ -4059,6 +4224,23 @@ declare interface LanguageModelV2ReasoningPart {
|
|
|
4059
4224
|
providerOptions?: SharedV2ProviderOptions;
|
|
4060
4225
|
}
|
|
4061
4226
|
|
|
4227
|
+
/**
|
|
4228
|
+
Reasoning content part of a prompt. It contains a string of reasoning text.
|
|
4229
|
+
*/
|
|
4230
|
+
declare interface LanguageModelV2ReasoningPart_2 {
|
|
4231
|
+
type: 'reasoning';
|
|
4232
|
+
/**
|
|
4233
|
+
The reasoning text.
|
|
4234
|
+
*/
|
|
4235
|
+
text: string;
|
|
4236
|
+
/**
|
|
4237
|
+
* Additional provider-specific options. They are passed through
|
|
4238
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
4239
|
+
* functionality that can be fully encapsulated in the provider.
|
|
4240
|
+
*/
|
|
4241
|
+
providerOptions?: SharedV2ProviderOptions_2;
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4062
4244
|
declare interface LanguageModelV2ResponseMetadata {
|
|
4063
4245
|
/**
|
|
4064
4246
|
ID for the generated response, if the provider sends one.
|
|
@@ -4215,6 +4397,23 @@ declare interface LanguageModelV2TextPart {
|
|
|
4215
4397
|
providerOptions?: SharedV2ProviderOptions;
|
|
4216
4398
|
}
|
|
4217
4399
|
|
|
4400
|
+
/**
|
|
4401
|
+
Text content part of a prompt. It contains a string of text.
|
|
4402
|
+
*/
|
|
4403
|
+
declare interface LanguageModelV2TextPart_2 {
|
|
4404
|
+
type: 'text';
|
|
4405
|
+
/**
|
|
4406
|
+
The text content.
|
|
4407
|
+
*/
|
|
4408
|
+
text: string;
|
|
4409
|
+
/**
|
|
4410
|
+
* Additional provider-specific options. They are passed through
|
|
4411
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
4412
|
+
* functionality that can be fully encapsulated in the provider.
|
|
4413
|
+
*/
|
|
4414
|
+
providerOptions?: SharedV2ProviderOptions_2;
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4218
4417
|
/**
|
|
4219
4418
|
* Tool calls that the model has generated.
|
|
4220
4419
|
*/
|
|
@@ -4274,6 +4473,36 @@ declare interface LanguageModelV2ToolCallPart {
|
|
|
4274
4473
|
providerOptions?: SharedV2ProviderOptions;
|
|
4275
4474
|
}
|
|
4276
4475
|
|
|
4476
|
+
/**
|
|
4477
|
+
Tool call content part of a prompt. It contains a tool call (usually generated by the AI model).
|
|
4478
|
+
*/
|
|
4479
|
+
declare interface LanguageModelV2ToolCallPart_2 {
|
|
4480
|
+
type: 'tool-call';
|
|
4481
|
+
/**
|
|
4482
|
+
ID of the tool call. This ID is used to match the tool call with the tool result.
|
|
4483
|
+
*/
|
|
4484
|
+
toolCallId: string;
|
|
4485
|
+
/**
|
|
4486
|
+
Name of the tool that is being called.
|
|
4487
|
+
*/
|
|
4488
|
+
toolName: string;
|
|
4489
|
+
/**
|
|
4490
|
+
Arguments of the tool call. This is a JSON-serializable object that matches the tool's input schema.
|
|
4491
|
+
*/
|
|
4492
|
+
input: unknown;
|
|
4493
|
+
/**
|
|
4494
|
+
* Whether the tool call will be executed by the provider.
|
|
4495
|
+
* If this flag is not set or is false, the tool call will be executed by the client.
|
|
4496
|
+
*/
|
|
4497
|
+
providerExecuted?: boolean;
|
|
4498
|
+
/**
|
|
4499
|
+
* Additional provider-specific options. They are passed through
|
|
4500
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
4501
|
+
* functionality that can be fully encapsulated in the provider.
|
|
4502
|
+
*/
|
|
4503
|
+
providerOptions?: SharedV2ProviderOptions_2;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4277
4506
|
declare type LanguageModelV2ToolChoice = {
|
|
4278
4507
|
type: 'auto';
|
|
4279
4508
|
} | {
|
|
@@ -4352,6 +4581,40 @@ declare type LanguageModelV2ToolResultOutput = {
|
|
|
4352
4581
|
}>;
|
|
4353
4582
|
};
|
|
4354
4583
|
|
|
4584
|
+
declare type LanguageModelV2ToolResultOutput_2 = {
|
|
4585
|
+
type: 'text';
|
|
4586
|
+
value: string;
|
|
4587
|
+
} | {
|
|
4588
|
+
type: 'json';
|
|
4589
|
+
value: JSONValue_3;
|
|
4590
|
+
} | {
|
|
4591
|
+
type: 'error-text';
|
|
4592
|
+
value: string;
|
|
4593
|
+
} | {
|
|
4594
|
+
type: 'error-json';
|
|
4595
|
+
value: JSONValue_3;
|
|
4596
|
+
} | {
|
|
4597
|
+
type: 'content';
|
|
4598
|
+
value: Array<{
|
|
4599
|
+
type: 'text';
|
|
4600
|
+
/**
|
|
4601
|
+
Text content.
|
|
4602
|
+
*/
|
|
4603
|
+
text: string;
|
|
4604
|
+
} | {
|
|
4605
|
+
type: 'media';
|
|
4606
|
+
/**
|
|
4607
|
+
Base-64 encoded media data.
|
|
4608
|
+
*/
|
|
4609
|
+
data: string;
|
|
4610
|
+
/**
|
|
4611
|
+
IANA media type.
|
|
4612
|
+
@see https://www.iana.org/assignments/media-types/media-types.xhtml
|
|
4613
|
+
*/
|
|
4614
|
+
mediaType: string;
|
|
4615
|
+
}>;
|
|
4616
|
+
};
|
|
4617
|
+
|
|
4355
4618
|
/**
|
|
4356
4619
|
Tool result content part of a prompt. It contains the result of the tool call with the matching ID.
|
|
4357
4620
|
*/
|
|
@@ -4377,6 +4640,31 @@ declare interface LanguageModelV2ToolResultPart {
|
|
|
4377
4640
|
providerOptions?: SharedV2ProviderOptions;
|
|
4378
4641
|
}
|
|
4379
4642
|
|
|
4643
|
+
/**
|
|
4644
|
+
Tool result content part of a prompt. It contains the result of the tool call with the matching ID.
|
|
4645
|
+
*/
|
|
4646
|
+
declare interface LanguageModelV2ToolResultPart_2 {
|
|
4647
|
+
type: 'tool-result';
|
|
4648
|
+
/**
|
|
4649
|
+
ID of the tool call that this result is associated with.
|
|
4650
|
+
*/
|
|
4651
|
+
toolCallId: string;
|
|
4652
|
+
/**
|
|
4653
|
+
Name of the tool that generated this result.
|
|
4654
|
+
*/
|
|
4655
|
+
toolName: string;
|
|
4656
|
+
/**
|
|
4657
|
+
Result of the tool call.
|
|
4658
|
+
*/
|
|
4659
|
+
output: LanguageModelV2ToolResultOutput_2;
|
|
4660
|
+
/**
|
|
4661
|
+
* Additional provider-specific options. They are passed through
|
|
4662
|
+
* to the provider from the AI SDK and enable provider-specific
|
|
4663
|
+
* functionality that can be fully encapsulated in the provider.
|
|
4664
|
+
*/
|
|
4665
|
+
providerOptions?: SharedV2ProviderOptions_2;
|
|
4666
|
+
}
|
|
4667
|
+
|
|
4380
4668
|
/**
|
|
4381
4669
|
Usage information for a language model call.
|
|
4382
4670
|
|
|
@@ -4636,7 +4924,7 @@ export declare class NoOutputGeneratedError extends AISDKError {
|
|
|
4636
4924
|
Thrown when no output type is specified and output-related methods are called.
|
|
4637
4925
|
*/
|
|
4638
4926
|
export declare class NoOutputSpecifiedError extends AISDKError {
|
|
4639
|
-
private readonly [symbol$
|
|
4927
|
+
private readonly [symbol$7_3];
|
|
4640
4928
|
constructor({ message }?: {
|
|
4641
4929
|
message?: string;
|
|
4642
4930
|
});
|
|
@@ -4690,7 +4978,7 @@ export declare class NoSuchProviderError extends NoSuchModelError {
|
|
|
4690
4978
|
}
|
|
4691
4979
|
|
|
4692
4980
|
export declare class NoSuchToolError extends AISDKError {
|
|
4693
|
-
private readonly [symbol$
|
|
4981
|
+
private readonly [symbol$d_3];
|
|
4694
4982
|
readonly toolName: string;
|
|
4695
4983
|
readonly availableTools: string[] | undefined;
|
|
4696
4984
|
constructor({ toolName, availableTools, message, }: {
|
|
@@ -4894,7 +5182,7 @@ declare const parallelSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedT
|
|
|
4894
5182
|
declare function parseJSON(options: {
|
|
4895
5183
|
text: string;
|
|
4896
5184
|
schema?: undefined;
|
|
4897
|
-
}): Promise<
|
|
5185
|
+
}): Promise<JSONValue_3>;
|
|
4898
5186
|
|
|
4899
5187
|
/**
|
|
4900
5188
|
* Parses a JSON string into a strongly-typed object using the provided schema.
|
|
@@ -4934,7 +5222,7 @@ declare type ParseResult<T> = {
|
|
|
4934
5222
|
rawValue: unknown;
|
|
4935
5223
|
} | {
|
|
4936
5224
|
success: false;
|
|
4937
|
-
error:
|
|
5225
|
+
error: JSONParseError_2 | TypeValidationError_2;
|
|
4938
5226
|
rawValue: unknown;
|
|
4939
5227
|
};
|
|
4940
5228
|
|
|
@@ -5098,7 +5386,7 @@ declare const postFormDataToApi: <T>({ url, headers, formData, failedResponseHan
|
|
|
5098
5386
|
url: string;
|
|
5099
5387
|
headers?: Record<string, string | undefined>;
|
|
5100
5388
|
formData: FormData;
|
|
5101
|
-
failedResponseHandler: ResponseHandler<
|
|
5389
|
+
failedResponseHandler: ResponseHandler<APICallError_2>;
|
|
5102
5390
|
successfulResponseHandler: ResponseHandler<T>;
|
|
5103
5391
|
abortSignal?: AbortSignal;
|
|
5104
5392
|
fetch?: FetchFunction;
|
|
@@ -5112,7 +5400,7 @@ declare const postJsonToApi: <T>({ url, headers, body, failedResponseHandler, su
|
|
|
5112
5400
|
url: string;
|
|
5113
5401
|
headers?: Record<string, string | undefined>;
|
|
5114
5402
|
body: unknown;
|
|
5115
|
-
failedResponseHandler: ResponseHandler<
|
|
5403
|
+
failedResponseHandler: ResponseHandler<APICallError_2>;
|
|
5116
5404
|
successfulResponseHandler: ResponseHandler<T>;
|
|
5117
5405
|
abortSignal?: AbortSignal;
|
|
5118
5406
|
fetch?: FetchFunction;
|
|
@@ -5318,7 +5606,7 @@ export declare type ProviderMetadata = SharedV2ProviderMetadata;
|
|
|
5318
5606
|
They are passed through to the provider from the AI SDK and enable
|
|
5319
5607
|
provider-specific functionality that can be fully encapsulated in the provider.
|
|
5320
5608
|
*/
|
|
5321
|
-
declare type ProviderOptions =
|
|
5609
|
+
declare type ProviderOptions = SharedV2ProviderOptions_2;
|
|
5322
5610
|
|
|
5323
5611
|
export declare interface ProviderRegistryProvider<PROVIDERS extends Record<string, ProviderV2> = Record<string, ProviderV2>, SEPARATOR extends string = ':'> {
|
|
5324
5612
|
languageModel<KEY extends keyof PROVIDERS>(id: KEY extends string ? `${KEY & string}${SEPARATOR}${ExtractLiteralUnion<Parameters<NonNullable<PROVIDERS[KEY]['languageModel']>>[0]>}` : never): LanguageModelV2;
|
|
@@ -5541,7 +5829,7 @@ declare type ResponseHandler<RETURN_TYPE> = (options: {
|
|
|
5541
5829
|
declare type ResponseMessage = AssistantModelMessage | ToolModelMessage;
|
|
5542
5830
|
|
|
5543
5831
|
export declare class RetryError extends AISDKError {
|
|
5544
|
-
private readonly [symbol$
|
|
5832
|
+
private readonly [symbol$1_3];
|
|
5545
5833
|
readonly reason: RetryErrorReason;
|
|
5546
5834
|
readonly lastError: unknown;
|
|
5547
5835
|
readonly errors: Array<unknown>;
|
|
@@ -5564,7 +5852,7 @@ declare type RetryErrorReason = 'maxRetriesExceeded' | 'errorNotRetryable' | 'ab
|
|
|
5564
5852
|
declare function safeParseJSON(options: {
|
|
5565
5853
|
text: string;
|
|
5566
5854
|
schema?: undefined;
|
|
5567
|
-
}): Promise<ParseResult<
|
|
5855
|
+
}): Promise<ParseResult<JSONValue_3>>;
|
|
5568
5856
|
|
|
5569
5857
|
/**
|
|
5570
5858
|
* Safely parses a JSON string into a strongly-typed object, using a provided schema to validate the object.
|
|
@@ -5597,7 +5885,7 @@ declare function safeValidateTypes<OBJECT>({ value, schema, }: {
|
|
|
5597
5885
|
rawValue: unknown;
|
|
5598
5886
|
} | {
|
|
5599
5887
|
success: false;
|
|
5600
|
-
error:
|
|
5888
|
+
error: TypeValidationError_2;
|
|
5601
5889
|
rawValue: unknown;
|
|
5602
5890
|
}>;
|
|
5603
5891
|
|
|
@@ -5700,6 +5988,29 @@ declare type SharedV2ProviderMetadata = Record<string, Record<string, JSONValue_
|
|
|
5700
5988
|
*/
|
|
5701
5989
|
declare type SharedV2ProviderOptions = Record<string, Record<string, JSONValue_2>>;
|
|
5702
5990
|
|
|
5991
|
+
/**
|
|
5992
|
+
* Additional provider-specific options.
|
|
5993
|
+
* Options are additional input to the provider.
|
|
5994
|
+
* They are passed through to the provider from the AI SDK
|
|
5995
|
+
* and enable provider-specific functionality
|
|
5996
|
+
* that can be fully encapsulated in the provider.
|
|
5997
|
+
*
|
|
5998
|
+
* This enables us to quickly ship provider-specific functionality
|
|
5999
|
+
* without affecting the core AI SDK.
|
|
6000
|
+
*
|
|
6001
|
+
* The outer record is keyed by the provider name, and the inner
|
|
6002
|
+
* record is keyed by the provider-specific metadata key.
|
|
6003
|
+
*
|
|
6004
|
+
* ```ts
|
|
6005
|
+
* {
|
|
6006
|
+
* "anthropic": {
|
|
6007
|
+
* "cacheControl": { "type": "ephemeral" }
|
|
6008
|
+
* }
|
|
6009
|
+
* }
|
|
6010
|
+
* ```
|
|
6011
|
+
*/
|
|
6012
|
+
declare type SharedV2ProviderOptions_2 = Record<string, Record<string, JSONValue_3>>;
|
|
6013
|
+
|
|
5703
6014
|
/**
|
|
5704
6015
|
* Creates a ReadableStream that emits the provided values with an optional delay between each value.
|
|
5705
6016
|
*
|
|
@@ -7278,6 +7589,8 @@ declare const symbol$1: unique symbol;
|
|
|
7278
7589
|
|
|
7279
7590
|
declare const symbol$1_2: unique symbol;
|
|
7280
7591
|
|
|
7592
|
+
declare const symbol$1_3: unique symbol;
|
|
7593
|
+
|
|
7281
7594
|
declare const symbol$2: unique symbol;
|
|
7282
7595
|
|
|
7283
7596
|
declare const symbol$2_2: unique symbol;
|
|
@@ -7302,6 +7615,8 @@ declare const symbol$7: unique symbol;
|
|
|
7302
7615
|
|
|
7303
7616
|
declare const symbol$7_2: unique symbol;
|
|
7304
7617
|
|
|
7618
|
+
declare const symbol$7_3: unique symbol;
|
|
7619
|
+
|
|
7305
7620
|
declare const symbol$8: unique symbol;
|
|
7306
7621
|
|
|
7307
7622
|
declare const symbol$8_2: unique symbol;
|
|
@@ -7320,10 +7635,14 @@ declare const symbol$c: unique symbol;
|
|
|
7320
7635
|
|
|
7321
7636
|
declare const symbol$c_2: unique symbol;
|
|
7322
7637
|
|
|
7638
|
+
declare const symbol$c_3: unique symbol;
|
|
7639
|
+
|
|
7323
7640
|
declare const symbol$d: unique symbol;
|
|
7324
7641
|
|
|
7325
7642
|
declare const symbol$d_2: unique symbol;
|
|
7326
7643
|
|
|
7644
|
+
declare const symbol$d_3: unique symbol;
|
|
7645
|
+
|
|
7327
7646
|
declare const symbol$e: unique symbol;
|
|
7328
7647
|
|
|
7329
7648
|
declare const symbol: unique symbol;
|
|
@@ -7523,7 +7842,7 @@ declare type TimeInput = HrTime | number | Date;
|
|
|
7523
7842
|
|
|
7524
7843
|
The tool can also contain an optional execute function for the actual execution function of the tool.
|
|
7525
7844
|
*/
|
|
7526
|
-
export declare type Tool<INPUT extends
|
|
7845
|
+
export declare type Tool<INPUT extends JSONValue_3 | unknown | never = any, OUTPUT extends JSONValue_3 | unknown | never = any> = {
|
|
7527
7846
|
/**
|
|
7528
7847
|
An optional description of what the tool does.
|
|
7529
7848
|
Will be used by the language model to decide whether to use the tool.
|
|
@@ -7567,7 +7886,7 @@ export declare type Tool<INPUT extends JSONValue_2 | unknown | never = any, OUTP
|
|
|
7567
7886
|
|
|
7568
7887
|
If not provided, the tool result will be sent as a JSON object.
|
|
7569
7888
|
*/
|
|
7570
|
-
toModelOutput?: (output: 0 extends 1 & OUTPUT ? any : [OUTPUT] extends [never] ? any : NoInfer<OUTPUT>) =>
|
|
7889
|
+
toModelOutput?: (output: 0 extends 1 & OUTPUT ? any : [OUTPUT] extends [never] ? any : NoInfer<OUTPUT>) => LanguageModelV2ToolResultPart_2['output'];
|
|
7571
7890
|
} & ({
|
|
7572
7891
|
/**
|
|
7573
7892
|
Tool with user-defined input and output schemas.
|
|
@@ -7824,7 +8143,7 @@ export declare interface ToolResultPart {
|
|
|
7824
8143
|
/**
|
|
7825
8144
|
Result of the tool call. This is a JSON-serializable object.
|
|
7826
8145
|
*/
|
|
7827
|
-
output:
|
|
8146
|
+
output: LanguageModelV2ToolResultOutput_2;
|
|
7828
8147
|
/**
|
|
7829
8148
|
Additional provider-specific metadata. They are passed through
|
|
7830
8149
|
to the provider from the AI SDK and enable provider-specific
|
|
@@ -8176,6 +8495,30 @@ export declare class TypeValidationError extends AISDKError {
|
|
|
8176
8495
|
}): TypeValidationError;
|
|
8177
8496
|
}
|
|
8178
8497
|
|
|
8498
|
+
declare class TypeValidationError_2 extends AISDKError_2 {
|
|
8499
|
+
private readonly [symbol$1_2];
|
|
8500
|
+
readonly value: unknown;
|
|
8501
|
+
constructor({ value, cause }: {
|
|
8502
|
+
value: unknown;
|
|
8503
|
+
cause: unknown;
|
|
8504
|
+
});
|
|
8505
|
+
static isInstance(error: unknown): error is TypeValidationError_2;
|
|
8506
|
+
/**
|
|
8507
|
+
* Wraps an error into a TypeValidationError.
|
|
8508
|
+
* If the cause is already a TypeValidationError with the same value, it returns the cause.
|
|
8509
|
+
* Otherwise, it creates a new TypeValidationError.
|
|
8510
|
+
*
|
|
8511
|
+
* @param {Object} params - The parameters for wrapping the error.
|
|
8512
|
+
* @param {unknown} params.value - The value that failed validation.
|
|
8513
|
+
* @param {unknown} params.cause - The original error or cause of the validation failure.
|
|
8514
|
+
* @returns {TypeValidationError} A TypeValidationError instance.
|
|
8515
|
+
*/
|
|
8516
|
+
static wrap({ value, cause, }: {
|
|
8517
|
+
value: unknown;
|
|
8518
|
+
cause: unknown;
|
|
8519
|
+
}): TypeValidationError_2;
|
|
8520
|
+
}
|
|
8521
|
+
|
|
8179
8522
|
export declare const UI_MESSAGE_STREAM_HEADERS: {
|
|
8180
8523
|
'content-type': string;
|
|
8181
8524
|
'cache-control': string;
|
|
@@ -8599,9 +8942,8 @@ export declare const userModelMessageSchema: z.ZodType<UserModelMessage>;
|
|
|
8599
8942
|
* Validates that a URL is safe to download from, blocking private/internal addresses
|
|
8600
8943
|
* to prevent SSRF attacks.
|
|
8601
8944
|
*
|
|
8602
|
-
* Note: this performs string/literal-IP checks only.
|
|
8603
|
-
*
|
|
8604
|
-
* should additionally constrain egress at the network layer when handling untrusted URLs).
|
|
8945
|
+
* Note: this function performs string/literal-IP checks only. The Node.js
|
|
8946
|
+
* download fetch additionally validates and pins DNS results at connect time.
|
|
8605
8947
|
*
|
|
8606
8948
|
* @param url - The URL string to validate.
|
|
8607
8949
|
* @throws DownloadError if the URL is unsafe.
|
|
@@ -8776,5 +9118,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
|
|
|
8776
9118
|
}): Schema<OBJECT>;
|
|
8777
9119
|
|
|
8778
9120
|
export { }
|
|
8779
|
-
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, FlexibleValidator as FlexibleValidator, ValidationResult as ValidationResult,
|
|
8780
|
-
export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol, symbol_2, symbol_3, validatorSymbol };
|
|
9121
|
+
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, FlexibleValidator as FlexibleValidator, ValidationResult as ValidationResult, LanguageModelV2ToolResultOutput_2 as LanguageModelV2ToolResultOutput_2, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, JSONValue_3 as JSONValue_3, ToolOutputProperties as ToolOutputProperties, LanguageModelV2ToolResultPart_2 as LanguageModelV2ToolResultPart_2, FlexibleSchema as FlexibleSchema, ImageModelV2CallWarning as ImageModelV2CallWarning, SpeechModelV2CallWarning as SpeechModelV2CallWarning, TranscriptionModelV2CallWarning as TranscriptionModelV2CallWarning, AttributeValue as AttributeValue, Tracer as Tracer, EmbeddingModelV2Embedding as EmbeddingModelV2Embedding, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2FinishReason as LanguageModelV2FinishReason, LanguageModelV2CallWarning as LanguageModelV2CallWarning, LanguageModelV2Middleware as LanguageModelV2Middleware, SharedV2ProviderMetadata as SharedV2ProviderMetadata, LanguageModelV2Usage as LanguageModelV2Usage, Source as Source, ResponseMessage as ResponseMessage, DeepPartialInternal as DeepPartialInternal, LanguageModelV2ToolCall as LanguageModelV2ToolCall, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ValueOf as ValueOf, asUITool as asUITool, _ai_sdk_provider_utils as _ai_sdk_provider_utils, DataUIMessageChunk as DataUIMessageChunk, ConsumeStreamOptions as ConsumeStreamOptions, Output_2 as Output_2, InferAgentTools as InferAgentTools, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, InferSchema as InferSchema, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, JSONValue_2 as JSONValue_2, LanguageModelV2CallOptions as LanguageModelV2CallOptions, LanguageModelV2 as LanguageModelV2, EmbeddingModelV2 as EmbeddingModelV2, ImageModelV2 as ImageModelV2, TranscriptionModelV2 as TranscriptionModelV2, SpeechModelV2 as SpeechModelV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV2 as ProviderV2, getOriginalFetch as getOriginalFetch, UIMessageStreamResponseInit as UIMessageStreamResponseInit, InferUIMessageToolCall as InferUIMessageToolCall, Validator as Validator, StandardSchemaV1 as StandardSchemaV1, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, InferUIMessageTools as InferUIMessageTools, Resolvable as Resolvable, FetchFunction as FetchFunction };
|
|
9122
|
+
export { EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, schemaSymbol, symbol$1, symbol$1_2, symbol$1_3, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$7_3, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$c_3, symbol$d, symbol$d_2, symbol$d_3, symbol$e, symbol, symbol_2, symbol_3, validatorSymbol };
|